Changeset 23370 for issm/trunk-jpl/src/c/classes/Params/Parameters.cpp
- Timestamp:
- 10/02/18 10:00:01 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Params/Parameters.cpp
r23310 r23370 92 92 } 93 93 /*}}}*/ 94 void Parameters::DeepEcho(void){/*{{{*/ 94 void Parameters::DeepEcho(void){/*{{{*/ 95 95 for(int i=0;i<NUMPARAMS;i++) { 96 96 if(this->params[i]) this->params[i]->DeepEcho(); … … 99 99 } 100 100 /*}}}*/ 101 void Parameters::Echo(void){/*{{{*/ 101 void Parameters::Echo(void){/*{{{*/ 102 102 for(int i=0;i<NUMPARAMS;i++) { 103 103 if(this->params[i]) this->params[i]->Echo(); … … 139 139 140 140 /*Recover enum of object first: */ 141 MARSHALLING(obj_enum); 141 MARSHALLING(obj_enum); 142 142 143 143 if(obj_enum==DoubleParamEnum){ … … 200 200 fileparam->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); 201 201 delete fileparam; 202 /* No need to add this object, the pointer is not valid 202 /* No need to add this object, the pointer is not valid 203 203 The FemModel should reset all FileParams in the restart function */ 204 204 } … … 649 649 char* OptionsFromAnalysis(char** pouttoolkit,Parameters* parameters,int analysis_type){ /*{{{*/ 650 650 651 /* figure out ISSM options for current analysis, return a string. */ 651 /* figure out ISSM options for current analysis, return a string. */ 652 652 653 653 /*output: */ … … 667 667 668 668 parameters->FindParam(&strings,&numanalyses,ToolkitsOptionsStringsEnum); 669 parameters->FindParam(&toolkits,&dummy,ToolkitsTypesEnum); _assert_(dummy==numanalyses); 670 parameters->FindParam(&analyses,&dummy,ToolkitsOptionsAnalysesEnum); _assert_(dummy==numanalyses); 669 parameters->FindParam(&toolkits,&dummy,ToolkitsTypesEnum); _assert_(dummy==numanalyses); 670 parameters->FindParam(&analyses,&dummy,ToolkitsOptionsAnalysesEnum); _assert_(dummy==numanalyses); 671 671 672 672 if(numanalyses==0)return NULL; //we did not find petsc options, don't bother. … … 710 710 xDelete<int>(analyses); 711 711 return outstring; 712 } 712 } 713 713 /*}}}*/ 714 714 void ToolkitsOptionsFromAnalysis(Parameters* parameters,int analysis_type){ /*{{{*/ 715 715 716 716 /*!\file: ToolkitsOptionsFromAnalysis.cpp 717 * \brief: for each analysis, setup the issmoptions string. 718 * This is mainly for the case where we run our toolkits using petsc. In this case, we need to 719 * plug our toolkits options directly into the petsc options database. This is the case for each analysis type 717 * \brief: for each analysis, setup the issmoptions string. 718 * This is mainly for the case where we run our toolkits using petsc. In this case, we need to 719 * plug our toolkits options directly into the petsc options database. This is the case for each analysis type 720 720 * and parameters 721 */ 721 */ 722 722 723 723 char* options = NULL; … … 731 731 732 732 #ifdef _HAVE_PETSC_ 733 /*In case we are using PETSC, we do not rely on issmoptions. Instead, we dump issmoptions into the Petsc 733 /*In case we are using PETSC, we do not rely on issmoptions. Instead, we dump issmoptions into the Petsc 734 734 * options database: */ 735 735 #if (_PETSC_MINOR_>=7)
Note:
See TracChangeset
for help on using the changeset viewer.