Changeset 1972
- Timestamp:
- 08/26/09 17:03:10 (16 years ago)
- Location:
- issm/trunk/src
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/parallel/objectivefunctionC.cpp
r1970 r1972 72 72 femmodel->parameters->FindParam((void*)&numberofnodes,"numberofnodes"); 73 73 femmodel->parameters->FindParam((void*)&numberofdofspernode,"numberofdofspernode"); 74 femmodel->parameters->FindParam((void*)&dt,"dt");75 74 femmodel->parameters->FindParam((void*)&isstokes,"isstokes"); 76 75 … … 88 87 inputs->Add(control_type,param_g_copy,1,numberofnodes); 89 88 90 if (dt==0){89 if (analysis_type==DiagnosticAnalysisEnum()){ 91 90 //Run diagnostic with updated parameters. 92 91 diagnostic_core_nonlinear(&u_g,NULL,NULL,NULL,femmodel,inputs,DiagnosticAnalysisEnum(),sub_analysis_type); -
issm/trunk/src/m/solutions/cielo/objectivefunctionC.m
r1971 r1972 8 8 fit=m.parameters.fit(n); 9 9 control_type=m.parameters.control_type; 10 dt=m.parameters.dt;10 analysis_type=m.parameters.analysis_type; 11 11 12 12 %Update along gradient using scalar supplied by fmincon optimization routine … … 17 17 18 18 %Run diagnostic with updated parameters. 19 if dt==0,19 if (analysis_type==DiagnosticAnalysisEnum()), 20 20 %do a simple diagnostic, with the current temperature profile, do not look for steady state. 21 21 u_g=diagnostic_core_nonlinear(m,inputs,analysis_type,sub_analysis_type);
Note:
See TracChangeset
for help on using the changeset viewer.