Changeset 19224


Ignore:
Timestamp:
03/24/15 12:08:13 (10 years ago)
Author:
Eric.Larour
Message:

CHG: hooking up the Restart capability into the transient core.

File:
1 edited

Legend:

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

    r19200 r19224  
    3535        IssmDouble time;
    3636
    37         //first recover parameters common to all solutions
     37        //first, figure out if there was a check point, if so, do a reset of the FemModel* femmodel structure.
     38        femmodel->Restart();
     39
     40        //then recover parameters common to all solutions
    3841        femmodel->parameters->FindParam(&domaintype,DomainTypeEnum);
    3942        femmodel->parameters->FindParam(&starttime,TimesteppingStartTimeEnum);
     
    182185                        OutputResultsx(femmodel);
    183186                }
    184                 if(restart_frequency && step%restart_frequency==0)femmodel->CheckPoint();
     187                if(restart_frequency && step%restart_frequency==0){
     188                        if(VerboseSolution()) _printf0_("   checkpointing model \n");
     189                        femmodel->CheckPoint();
     190                }
    185191        }
    186192
Note: See TracChangeset for help on using the changeset viewer.