source:
issm/oecreview/Archive/18296-19100/ISSM-18889-18890.diff@
19102
Last change on this file since 19102 was 19102, checked in by , 10 years ago | |
---|---|
File size: 1.5 KB |
-
../trunk-jpl/src/c/classes/FemModel.cpp
89 89 FemModel::FemModel(char* rootpath, char* inputfilename, char* outputfilename, char* toolkitsfilename, char* lockfilename, ISSM_MPI_Comm incomm, int solution_type,IssmPDouble* X){ /*{{{*/ 90 90 91 91 bool traceon=true; 92 this->profiler=NULL; /*avoid leak, as we are not using the profiler ever in ad control run. */ 92 93 93 94 /*Store the communicator, but do not set it as a global variable, as this has already 94 95 * been done by the FemModel that called this copy constructor: */ … … 111 112 this->parameters->FindParam(&lockfilename,LockFileNameEnum); 112 113 113 114 /*Delete all the datasets: */ 114 xDelete<int>(analysis_type_list);115 xDelete<char>(outbinfilename);116 xDelete<char>(lockfilename);117 delete elements;118 delete nodes;119 delete vertices;120 delete constraints;121 delete loads;122 delete materials;123 delete parameters;124 delete results;115 if(analysis_type_list)xDelete<int>(analysis_type_list); 116 if(outbinfilename)xDelete<char>(outbinfilename); 117 if(lockfilename)xDelete<char>(lockfilename); 118 if(elements)delete elements; 119 if(nodes)delete nodes; 120 if(vertices)delete vertices; 121 if(constraints)delete constraints; 122 if(loads)delete loads; 123 if(materials)delete materials; 124 if(parameters)delete parameters; 125 if(results)delete results; 125 126 126 127 /*Now delete: */ 127 delete profiler; 128 128 if(profiler)delete profiler; 129 129 } 130 130 /*}}}*/ 131 131
Note:
See TracBrowser
for help on using the repository browser.