Changeset 20638


Ignore:
Timestamp:
05/23/16 14:56:20 (9 years ago)
Author:
Mathieu Morlighem
Message:

CHG: implemented Paramneters->Copy for dakota

Location:
issm/trunk-jpl/src/c
Files:
2 edited

Legend:

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

    r20636 r20638  
    7777/*}}}*/
    7878Parameters* Parameters::Copy(void){/*{{{*/
    79         _error_("not implemented yet");
     79
     80        Parameters* output = new Parameters();
     81
     82        for(int i=0;i<NUMPARAMS;i++){
     83                if(this->params[i]){
     84                        output->params[i]=this->params[i]->copy();
     85                }
     86        }
     87
     88        return output;
    8089}
    8190/*}}}*/
  • issm/trunk-jpl/src/c/shared/Exceptions/Exceptions.cpp

    r19701 r20638  
    5555}/*}}}*/
    5656const char* ErrorException::what() const throw(){/*{{{*/
     57        this->Report();
    5758        return what_str;
    5859}/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.