Changeset 22588


Ignore:
Timestamp:
03/20/18 17:46:13 (7 years ago)
Author:
erobo
Message:

CHG: fix nightly tests errors

Location:
issm/trunk-jpl/src/c/classes/Params
Files:
4 edited

Legend:

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

    r20827 r22588  
    2424
    2525        enum_type=in_enum_type;
    26         value=in_value->Copy();;
     26        value=in_value->Copy();
    2727}
    2828/*}}}*/
     
    7474}
    7575/*}}}*/
     76void DataSetParam::SetValue(DataSet* dataset){/*{{{*/
     77        this->value=dataset;
     78}
     79/*}}}*/
  • issm/trunk-jpl/src/c/classes/Params/DataSetParam.h

    r20827 r22588  
    7070                void  SetValue(Vector<IssmDouble>* vec){_error_("Param "<< EnumToStringx(enum_type) << " cannot hold a Vec");}
    7171                void  SetValue(Matrix<IssmDouble>* mat){_error_("Param "<< EnumToStringx(enum_type) << " cannot hold a Mat");}
    72                 void  SetValue(DataSet* dataset){_error_("DataSet param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold a DataSet yet");}
     72                void  SetValue(DataSet* dataset);
    7373                void  SetValue(IssmDouble** array, int M, int* mdim_array, int* ndim_array){_error_("DataSet param of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot hold an array of matrices");}
    7474                /*}}}*/
  • issm/trunk-jpl/src/c/classes/Params/Param.h

    r21508 r22588  
    5353                virtual void  SetValue(char* string)=0;
    5454                virtual void  SetValue(char** stringarray,int M)=0;
     55                virtual void  SetValue(DataSet* dataset){_error_("not implemented yet");};
    5556                virtual void  SetValue(IssmDouble* IssmDoublearray,int M)=0;
    5657                virtual void  SetValue(IssmDouble* pIssmDoublearray,int M,int N)=0;
  • issm/trunk-jpl/src/c/classes/Params/Parameters.cpp

    r22561 r22588  
    554554        param=xDynamicCast<Param*>(this->FindParamObject(enum_type));
    555555
    556         if(param) param->SetValue(dataset); //already exists, just set it.
    557         else this->AddObject(new DataSetParam(enum_type,dataset)); //just add the new parameter.
     556        if(param){
     557                param->SetValue(dataset); //already exists, just set it.
     558        }
     559        else{
     560                this->AddObject(new DataSetParam(enum_type,dataset)); //just add the new parameter.
     561        }
    558562}
    559563/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.