Changeset 13542 for issm/trunk-jpl/src/c/solutions/issm.cpp
- Timestamp:
- 10/04/12 18:08:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/solutions/issm.cpp
r13540 r13542 61 61 /*Create femmodel, using input file: */ 62 62 profiler->Tag(StartInit); 63 64 63 femmodel=new FemModel(rootpath,binfilename,outbinfilename,solution_type,analyses,numanalyses); 65 64 … … 83 82 profiler->Tag(FinishInit); 84 83 85 /*If running AD, then initialize a placeholder with which to work: */86 #ifdef _HAVE_ADOLC_87 GenericParam<Adolc_edf> *theAdolcEDF_p=new GenericParam<Adolc_edf>(AdolcParamEnum);88 theAdolcEDF_p->GetParameterValue().myEDF_for_solverx_p=reg_ext_fct(EDF_for_solverx);89 // to save some space:90 // we know we won't use adolc inside of the solver:91 theAdolcEDF_p->GetParameterValue().myEDF_for_solverx_p->nestedAdolc=false;92 // the solution vector is just allocated and doesn't have a meaningfull prior value93 theAdolcEDF_p->GetParameterValue().myEDF_for_solverx_p->dp_y_priorRequired=false;94 // the solver wrapper makes sure the matrix and the right hand side don't change95 theAdolcEDF_p->GetParameterValue().myEDF_for_solverx_p->dp_x_changes=false;96 femmodel->parameters->AddObject(theAdolcEDF_p);97 #else98 if(autodiff) _error_("ISSM was not compiled with ADOLC support, cannot carry out autodiff analysis!");99 #endif100 101 84 _pprintLine_("call computational core:"); 102 85 profiler->Tag(StartCore); solutioncore(femmodel); profiler->Tag(FinishCore);
Note:
See TracChangeset
for help on using the changeset viewer.