Changeset 2383
- Timestamp:
- 10/07/09 14:57:09 (15 years ago)
- Location:
- issm/trunk/src/c
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/Makefile.am
r2333 r2383 599 599 ./parallel/control_core.cpp\ 600 600 ./parallel/ControlInitialization.cpp\ 601 ./parallel/Control TemporaryResults.cpp\601 ./parallel/ControlRestart.cpp\ 602 602 ./parallel/objectivefunctionC.cpp\ 603 603 ./parallel/gradjcompute_core.cpp\ -
issm/trunk/src/c/ModelProcessorx/Control/CreateParametersControl.cpp
r2354 r2383 49 49 50 50 if(iomodel->control_analysis){ 51 51 52 /*control_type: */ 52 53 count++; -
issm/trunk/src/c/ModelProcessorx/CreateParameters.cpp
r2354 r2383 39 39 numpar= new Numpar(count); 40 40 parameters->AddObject(numpar); 41 42 //outputfilename 43 count++; 44 param= new Param(count,"outputfilename",STRING); 45 param->SetString(iomodel->outputfilename); 46 parameters->AddObject(param); 41 47 42 48 -
issm/trunk/src/c/ModelProcessorx/IoModel.cpp
r2354 r2383 33 33 /*!initialize all pointers to 0: */ 34 34 iomodel->name=NULL; 35 iomodel->inputfilename=NULL; 36 iomodel->outputfilename=NULL; 35 37 iomodel->repository=NULL; 36 38 iomodel->meshtype=NULL; … … 256 258 257 259 /*!Delete structure fields: */ 260 xfree((void**)&iomodel->inputfilename); 261 xfree((void**)&iomodel->outputfilename); 258 262 xfree((void**)&iomodel->repository); 259 263 xfree((void**)&iomodel->meshtype); … … 296 300 /*In IoModelInit, we get all the data that is not difficult to get, and that is small: */ 297 301 IoModelFetchData(&iomodel->name,iomodel_handle,"name"); 302 IoModelFetchData(&iomodel->inputfilename,iomodel_handle,"inputfilename"); 303 IoModelFetchData(&iomodel->outputfilename,iomodel_handle,"outputfilename"); 298 304 IoModelFetchData(&iomodel->analysis_type,iomodel_handle,"analysis_type"); 299 305 IoModelFetchData(&iomodel->sub_analysis_type,iomodel_handle,"sub_analysis_type"); -
issm/trunk/src/c/ModelProcessorx/IoModel.h
r2354 r2383 16 16 17 17 char* name; 18 char* inputfilename; 19 char* outputfilename; 18 20 char* repository; 19 21 char* meshtype; -
issm/trunk/src/c/parallel/ControlRestart.cpp
r2376 r2383 51 51 52 52 /*Free ressources:*/ 53 delete result;54 53 delete temporary_results; 55 54 delete results; -
issm/trunk/src/c/parallel/control_core.cpp
r2354 r2383 166 166 167 167 //some temporary saving 168 /*if (((n+1)%5)==0){168 if (((n+1)%1)==0){ 169 169 _printf_("%s\n"," saving temporary results..."); 170 Control TemporaryResults(model,param_g,J,n,inputs);170 ControlRestart(model,param_g); 171 171 _printf_("%s\n"," done."); 172 } */172 } 173 173 } 174 174 -
issm/trunk/src/c/parallel/parallel.h
r2112 r2383 48 48 49 49 void ControlInitialization(Model* model, ParameterInputs* inputs); 50 void Control TemporaryResults(Model* model,double* param_g,double* J,int n,ParameterInputs* inputs);50 void ControlRestart(Model* model,double* param_g); 51 51 52 52 void CreateFemModel(FemModel* femmodel,ConstDataHandle MODEL,int analysis_type,int sub_analysis_type);
Note:
See TracChangeset
for help on using the changeset viewer.