Changeset 19333


Ignore:
Timestamp:
04/30/15 12:55:17 (10 years ago)
Author:
Eric.Larour
Message:

CHG: retrieve step from the ModelProcessorx given value instead of hardcoding it to 0
at the beginning of the transient core. We also give it a value of 0 instead of 1 in the
ModelProcessorx. This is to allow the steps to increment correctly (instead of resetting)
when running restart and checkpointing in a couple GCM/ISSM run.

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

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/cores/transient_core.cpp

    r19317 r19333  
    3737        //then recover parameters common to all solutions
    3838        femmodel->parameters->FindParam(&domaintype,DomainTypeEnum);
     39        femmodel->parameters->FindParam(&step,StepEnum);
    3940        femmodel->parameters->FindParam(&starttime,TimesteppingStartTimeEnum);
    4041        femmodel->parameters->FindParam(&finaltime,TimesteppingFinalTimeEnum);
     
    6465
    6566        /*initialize: */
    66         step=0;
    6767        time=starttime;
    6868
  • issm/trunk-jpl/src/c/modules/ModelProcessorx/CreateParameters.cpp

    r19317 r19333  
    191191        iomodel->Constant(&time,TimesteppingStartTimeEnum);
    192192        parameters->AddObject(new DoubleParam(TimeEnum,time)); 
    193         parameters->AddObject(new IntParam(StepEnum,1)); 
     193        parameters->AddObject(new IntParam(StepEnum,0)); 
    194194
    195195        /*By default, save all results*/
Note: See TracChangeset for help on using the changeset viewer.