Changeset 11335


Ignore:
Timestamp:
02/06/12 15:54:21 (13 years ago)
Author:
Mathieu Morlighem
Message:

Added mex module for Newton's method

Location:
issm/trunk-jpl/src
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/solutions/diagnostic_core.m

    r10649 r11335  
    1515        ismacayealpattyn=femmodel.parameters.FlowequationIsmacayealpattyn;
    1616        isstokes=femmodel.parameters.FlowequationIsstokes;
     17        isnewton=femmodel.parameters.DiagnosticIsnewton;
    1718        dakota_analysis=femmodel.parameters.QmuIsdakota;
    1819        control_analysis=femmodel.parameters.InversionIscontrol;
     
    5354                issmprintf(VerboseSolution,'\n%s',['   computing horizontal velocities']);
    5455                femmodel=SetCurrentConfiguration(femmodel,DiagnosticHorizAnalysisEnum);
    55                 femmodel=solver_nonlinear(femmodel,modify_loads);
     56                if isnewton,
     57                        femmodel=solver_newton(femmodel);
     58                else
     59                        femmodel=solver_nonlinear(femmodel,modify_loads);
     60                end
    5661        end
    5762       
  • issm/trunk-jpl/src/mex/Makefile.am

    r11295 r11335  
    2222                                CostFunction \
    2323                                CreateNodalConstraints\
     24                                CreateJacobianMatrix\
    2425                                Echo\
    2526                                ElementConnectivity\
     
    327328                          SystemMatrices/SystemMatrices.h
    328329
     330
     331CreateJacobianMatrix_SOURCES = CreateJacobianMatrix/CreateJacobianMatrix.cpp\
     332                                                                 CreateJacobianMatrix/CreateJacobianMatrix.h
     333
    329334SurfaceArea_SOURCES = SurfaceArea/SurfaceArea.cpp\
    330335                                                                 SurfaceArea/SurfaceArea.h
Note: See TracChangeset for help on using the changeset viewer.