Ignore:
Timestamp:
10/02/18 10:00:01 (6 years ago)
Author:
bdef
Message:

BUG:partial fix, issues remain in Hydro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Params/Parameters.cpp

    r23310 r23370  
    9292}
    9393/*}}}*/
    94 void Parameters::DeepEcho(void){/*{{{*/ 
     94void Parameters::DeepEcho(void){/*{{{*/
    9595        for(int i=0;i<NUMPARAMS;i++) {
    9696                if(this->params[i]) this->params[i]->DeepEcho();
     
    9999}
    100100/*}}}*/
    101 void Parameters::Echo(void){/*{{{*/     
     101void Parameters::Echo(void){/*{{{*/
    102102        for(int i=0;i<NUMPARAMS;i++) {
    103103                if(this->params[i]) this->params[i]->Echo();
     
    139139
    140140                        /*Recover enum of object first: */
    141                         MARSHALLING(obj_enum); 
     141                        MARSHALLING(obj_enum);
    142142
    143143                        if(obj_enum==DoubleParamEnum){
     
    200200                                fileparam->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction);
    201201                                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
    203203                                        The FemModel should reset all FileParams in the restart function */
    204204                        }
     
    649649char* OptionsFromAnalysis(char** pouttoolkit,Parameters* parameters,int analysis_type){ /*{{{*/
    650650
    651         /* figure out ISSM options for current analysis, return a string. */ 
     651        /* figure out ISSM options for current analysis, return a string. */
    652652
    653653        /*output: */
     
    667667
    668668        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);
    671671
    672672        if(numanalyses==0)return NULL; //we did not find petsc options, don't bother.
     
    710710        xDelete<int>(analyses);
    711711        return outstring;
    712 } 
     712}
    713713/*}}}*/
    714714void ToolkitsOptionsFromAnalysis(Parameters* parameters,int analysis_type){ /*{{{*/
    715715
    716716        /*!\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
    720720         * and parameters
    721          */ 
     721         */
    722722
    723723        char* options = NULL;
     
    731731
    732732        #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
    734734                 * options database: */
    735735                #if (_PETSC_MINOR_>=7)
Note: See TracChangeset for help on using the changeset viewer.