source:
issm/oecreview/Archive/26740-27031/ISSM-26889-26890.diff@
27032
Last change on this file since 27032 was 27032, checked in by , 3 years ago | |
---|---|
File size: 3.1 KB |
-
../trunk-jpl/src/c/classes/FemModel.cpp
575 575 } 576 576 } 577 577 /*}}}*/ 578 void FemModel::Restart( ){ /*{{{*/578 void FemModel::Restart(int verboselevel){ /*{{{*/ 579 579 580 FILE * restartfid=NULL;581 char * restartfilename= NULL;582 int femmodel_size =0;583 int fread_return =0;584 char * femmodel_buffer=NULL;585 char * femmodel_buffer_ini=NULL;580 FILE *restartfid = NULL; 581 char *restartfilename = NULL; 582 int femmodel_size = 0; 583 int fread_return = 0; 584 char *femmodel_buffer = NULL; 585 char *femmodel_buffer_ini = NULL; 586 586 587 587 /*First, recover the name of the restart file: */ 588 588 parameters->FindParam(&restartfilename,RestartFileNameEnum); … … 596 596 } 597 597 598 598 /*Print banner*/ 599 _printf0_(" \n"); 600 _printf0_("====================================================================\n"); 601 _printf0_(" RESTART DETECTED: "<<restartfilename<< "\n"); 602 _printf0_("====================================================================\n"); 603 _printf0_(" \n"); 599 if(verboselevel>1){ 600 _printf0_(" \n"); 601 _printf0_("====================================================================\n"); 602 _printf0_(" RESTART DETECTED: "<<restartfilename<< "\n"); 603 _printf0_("====================================================================\n"); 604 _printf0_(" \n"); 605 } 606 else if(verboselevel==1){ 607 _printf0_(" == restarting from "<<restartfilename<<"\n"); 608 } 609 else{ 610 /*Do not print anything*/ 611 } 604 612 605 613 /*Figure out size of buffer to be read: */ 606 614 fseek(restartfid, 0L, SEEK_END); … … 644 652 this->parameters->AddObject(new StringParam(RestartFileNameEnum,restartfilename)); 645 653 646 654 /*Read files*/ 647 this->Restart( );655 this->Restart(1); 648 656 649 657 /*Clean up and return*/ 650 658 xDelete<char>(restartfilename); -
../trunk-jpl/src/c/classes/FemModel.h
82 82 void InitFromFiles(char* rootpath, char* inputfilename, char* outputfilename, char* petscfilename, char* lockfilename, char* restartfilename, char* modelname, const int solution_type,bool trace,IssmPDouble* X=NULL); 83 83 void InitFromFids(char* rootpath, FILE* IOMODEL, FILE* toolkitsoptionsfid, int in_solution_type, bool trace, IssmPDouble* X=NULL); 84 84 void Marshall(MarshallHandle* marshallhandle); 85 void Restart( void);85 void Restart(int verboselevel=2); 86 86 void RestartAD(int step); 87 87 void SetCurrentConfiguration(int configuration_type); 88 88 void SetCurrentConfiguration(int configuration_type,int analysis_type);
Note:
See TracBrowser
for help on using the repository browser.