Changeset 1972


Ignore:
Timestamp:
08/26/09 17:03:10 (16 years ago)
Author:
Mathieu Morlighem
Message:

minor

Location:
issm/trunk/src
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/parallel/objectivefunctionC.cpp

    r1970 r1972  
    7272        femmodel->parameters->FindParam((void*)&numberofnodes,"numberofnodes");
    7373        femmodel->parameters->FindParam((void*)&numberofdofspernode,"numberofdofspernode");
    74         femmodel->parameters->FindParam((void*)&dt,"dt");
    7574        femmodel->parameters->FindParam((void*)&isstokes,"isstokes");
    7675
     
    8887        inputs->Add(control_type,param_g_copy,1,numberofnodes);
    8988
    90         if(dt==0){
     89        if (analysis_type==DiagnosticAnalysisEnum()){
    9190                //Run diagnostic with updated parameters.
    9291                diagnostic_core_nonlinear(&u_g,NULL,NULL,NULL,femmodel,inputs,DiagnosticAnalysisEnum(),sub_analysis_type);
  • issm/trunk/src/m/solutions/cielo/objectivefunctionC.m

    r1971 r1972  
    88fit=m.parameters.fit(n);
    99control_type=m.parameters.control_type;
    10 dt=m.parameters.dt;
     10analysis_type=m.parameters.analysis_type;
    1111
    1212%Update along gradient using scalar supplied by fmincon optimization routine
     
    1717
    1818%Run diagnostic with updated parameters.
    19 if dt==0,
     19if (analysis_type==DiagnosticAnalysisEnum()),
    2020        %do a simple diagnostic, with the current temperature profile, do not look for steady state.
    2121        u_g=diagnostic_core_nonlinear(m,inputs,analysis_type,sub_analysis_type);
Note: See TracChangeset for help on using the changeset viewer.