Changeset 2341


Ignore:
Timestamp:
09/28/09 10:04:28 (15 years ago)
Author:
Eric.Larour
Message:

meanvel, epsvel, cm_noisedamping, etc ... whatever appears
in Numpar, should be in the general CreateParameters routine, otherwise we
run the risk of not finding it when UpdateFromInputs tries to update the
Numpar fields.

Location:
issm/trunk/src/c/ModelProcessorx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/ModelProcessorx/Control/CreateParametersControl.cpp

    r2339 r2341  
    8787                parameters->AddObject(param);
    8888
    89                 /*cm_noisedampening: */
    90                 count++;
    91                 param= new Param(count,"cm_noisedampening",DOUBLE);
    92                 param->SetDouble(iomodel->cm_noisedampening);
    93                 parameters->AddObject(param);
    94 
     89               
    9590                /*mincontrolconstraint: */
    9691                count++;
     
    105100                parameters->AddObject(param);
    106101               
    107                 /*epsvel: */
    108                 count++;
    109                 param= new Param(count,"epsvel",DOUBLE);
    110                 param->SetDouble(iomodel->epsvel);
    111                 parameters->AddObject(param);
     102                               
    112103               
    113                 /*meanvel: */
    114                 count++;
    115                 param= new Param(count,"meanvel",DOUBLE);
    116                 param->SetDouble(iomodel->meanvel);
    117                 parameters->AddObject(param);
    118 
    119104                /*Now, recover fit, optscal and maxiter as vectors: */
    120105                IoModelFetchData(&iomodel->fit,NULL,NULL,iomodel_handle,"fit");
  • issm/trunk/src/c/ModelProcessorx/CreateParameters.cpp

    r2339 r2341  
    204204        param= new Param(count,"viscosity_overshoot",DOUBLE);
    205205        param->SetDouble(iomodel->viscosity_overshoot);
     206        parameters->AddObject(param);
     207
     208        /*meanvel: */
     209        count++;
     210        param= new Param(count,"meanvel",DOUBLE);
     211        param->SetDouble(iomodel->meanvel);
     212        parameters->AddObject(param);
     213
     214        /*cm_noisedampening: */
     215        count++;
     216        param= new Param(count,"cm_noisedampening",DOUBLE);
     217        param->SetDouble(iomodel->cm_noisedampening);
     218        parameters->AddObject(param);
     219
     220        /*epsvel: */
     221        count++;
     222        param= new Param(count,"epsvel",DOUBLE);
     223        param->SetDouble(iomodel->epsvel);
    206224        parameters->AddObject(param);
    207225
Note: See TracChangeset for help on using the changeset viewer.