Changeset 19307


Ignore:
Timestamp:
04/23/15 11:33:54 (10 years ago)
Author:
Eric.Larour
Message:

CHG: unhooking check pointing and restart from transientcore. Hardcoding it into the esmfbinders.

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

Legend:

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

    r19224 r19307  
    2525        bool       time_adapt;
    2626        int        output_frequency;
    27         int        restart_frequency;
    2827        int        domaintype,groundingline_migration,smb_model;
    2928        int        numoutputs;
     
    3534        IssmDouble time;
    3635
    37         //first, figure out if there was a check point, if so, do a reset of the FemModel* femmodel structure.
    38         femmodel->Restart();
    39 
    4036        //then recover parameters common to all solutions
    4137        femmodel->parameters->FindParam(&domaintype,DomainTypeEnum);
     
    4642        femmodel->parameters->FindParam(&dakota_analysis,QmuIsdakotaEnum);
    4743        femmodel->parameters->FindParam(&output_frequency,SettingsOutputFrequencyEnum);
    48         femmodel->parameters->FindParam(&restart_frequency,SettingsRestartFrequencyEnum);
    4944        femmodel->parameters->FindParam(&time_adapt,TimesteppingTimeAdaptEnum);
    5045        femmodel->parameters->FindParam(&isstressbalance,TransientIsstressbalanceEnum);
     
    185180                        OutputResultsx(femmodel);
    186181                }
    187                 if(restart_frequency && step%restart_frequency==0){
    188                         if(VerboseSolution()) _printf0_("   checkpointing model \n");
    189                         femmodel->CheckPoint();
    190                 }
    191182        }
    192183
  • issm/trunk-jpl/src/c/main/esmfbinders.cpp

    r19289 r19307  
    3333                /*Some specific code here for the binding: */
    3434                femmodel->parameters->SetParam(SMBgcmEnum,SurfaceforcingsEnum); //bypass SMB model, will be provided by GCM!
     35       
     36                /*Restart file: */
     37                femmodel->Restart();
    3538
    3639                /*Assign output pointers: */
     
    106109        void FinalizeISSM(){ /*{{{*/
    107110
     111                /*Output results: */
     112                OutputResultsx(femmodel);
     113                       
     114                /*Check point: */
     115                femmodel->CheckPoint();
     116
    108117                /*Wrap up: */
    109118                delete femmodel; femmodel=NULL;
Note: See TracChangeset for help on using the changeset viewer.