Ignore:
Timestamp:
02/20/15 10:02:35 (10 years ago)
Author:
Mathieu Morlighem
Message:

CHG: allow spc temperatures to be reset by PDD scheme

File:
1 edited

Legend:

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

    r18879 r19138  
    2121IoModel::IoModel(){/*{{{*/
    2222        this->fid=NULL;
     23        this->solution_enum=-1;
    2324        this->data=NULL;
    2425        this->independents=NULL;
     
    5051}
    5152/*}}}*/
    52 IoModel::IoModel(FILE* iomodel_handle,bool trace,IssmPDouble* X){/*{{{*/
     53IoModel::IoModel(FILE* iomodel_handle,int solution_enum_in,bool trace,IssmPDouble* X){/*{{{*/
    5354
    5455        bool autodiff=false;
     
    6061        /*Check that Enums are Synchronized*/
    6162        this->CheckEnumSync();
     63
     64        /*Keep track of solution*/
     65        this->solution_enum = solution_enum_in;
    6266
    6367        /*Initialize data: */
     
    240244}
    241245/*}}}*/
    242 void IoModel::Constant(bool* poutput,int constant_enum){/*{{{*/
     246void  IoModel::Constant(bool* poutput,int constant_enum){/*{{{*/
    243247
    244248        _assert_(constant_enum>=0);
     
    248252}
    249253/*}}}*/
    250 void IoModel::Constant(int* poutput,int constant_enum){/*{{{*/
     254void  IoModel::Constant(int* poutput,int constant_enum){/*{{{*/
    251255
    252256        _assert_(constant_enum>=0);
     
    256260}
    257261/*}}}*/
    258 void IoModel::Constant(IssmDouble* poutput,int constant_enum){/*{{{*/
     262void  IoModel::Constant(IssmDouble* poutput,int constant_enum){/*{{{*/
    259263
    260264        _assert_(constant_enum>=0);
     
    264268}
    265269/*}}}*/
    266 void IoModel::Constant(char** poutput,int constant_enum){/*{{{*/
     270void  IoModel::Constant(char** poutput,int constant_enum){/*{{{*/
    267271
    268272        _assert_(constant_enum>=0);
     
    291295}
    292296/*}}}*/
    293 void IoModel::StartTrace(bool trace){/*{{{*/
     297void  IoModel::StartTrace(bool trace){/*{{{*/
    294298
    295299        bool autodiff = false;
     
    331335}
    332336/*}}}*/
    333 void IoModel::DeclareIndependents(bool trace,IssmPDouble* X){/*{{{*/
     337void  IoModel::DeclareIndependents(bool trace,IssmPDouble* X){/*{{{*/
    334338
    335339        int  i;
     
    15161520}
    15171521/*}}}*/
    1518 void IoModel::FetchDataToInput(Elements* elements,int vector_enum,IssmDouble default_value){/*{{{*/
     1522void  IoModel::FetchDataToInput(Elements* elements,int vector_enum,IssmDouble default_value){/*{{{*/
    15191523
    15201524        /*intermediary: */
     
    15411545}
    15421546/*}}}*/
    1543 void IoModel::FetchDataToInput(Elements* elements,int vector_enum){/*{{{*/
     1547void  IoModel::FetchDataToInput(Elements* elements,int vector_enum){/*{{{*/
    15441548
    15451549        /*intermediary: */
     
    16131617}
    16141618/*}}}*/
    1615 void IoModel::LastIndex(int *pindex){/*{{{*/
     1619void  IoModel::LastIndex(int *pindex){/*{{{*/
    16161620
    16171621        int my_rank;
     
    16491653}
    16501654/*}}}*/
    1651 /*FUNCTION IoModel::SetFilePointerToData{{{*/
    1652 FILE* IoModel::SetFilePointerToData(int* pcode,int* pvector_type, int data_enum){
     1655FILE* IoModel::SetFilePointerToData(int* pcode,int* pvector_type, int data_enum){/*{{{*/
    16531656
    16541657        int my_rank;
Note: See TracChangeset for help on using the changeset viewer.