Changeset 14512
- Timestamp:
- 04/04/13 15:59:43 (12 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/IoModel.cpp
r14453 r14512 338 338 339 339 /* Read the record length and the data type code: */ 340 fread(&record_length,sizeof(int),1,this->fid);341 fread(&record_code,sizeof(int),1,this->fid);340 if(fread(&record_length,sizeof(int),1,this->fid)!=1) _error_("Cound not read record_length"); 341 if(fread(&record_code ,sizeof(int),1,this->fid)!=1) _error_("Cound not read record_code"); 342 342 343 343 #ifdef _HAVE_MPI_ … … 1288 1288 1289 1289 /*read the record length, and use it to skip this record: */ 1290 fread(&record_length,sizeof(int),1,fid);1290 if(fread(&record_length,sizeof(int),1,fid)!=1) _error_("Could not read record_length"); 1291 1291 fseek(fid,record_length,SEEK_CUR); 1292 1292 lastindex=index; … … 1335 1335 /*Ok, we have found the correct string. Pass the record length, and read data type code: */ 1336 1336 fseek(fid,sizeof(int),SEEK_CUR); 1337 fread(&record_code,sizeof(int),1,fid);1337 if(fread(&record_code,sizeof(int),1,fid)!=1) _error_("Could not read record_code"); 1338 1338 1339 1339 /*if record_code points to a vector, get its type (nodal or elementary): */ 1340 if(5<=record_code && record_code<=7)fread(&vector_type,sizeof(int),1,fid); 1340 if(5<=record_code && record_code<=7){ 1341 if(fread(&vector_type,sizeof(int),1,fid)!=1) _error_("Could not read vector_type"); 1342 } 1341 1343 found=1; 1342 1344 break; … … 1344 1346 else{ 1345 1347 /*This is not the correct string, read the record length, and use it to skip this record: */ 1346 fread(&record_length,sizeof(int),1,fid);1348 if(fread(&record_length,sizeof(int),1,fid)!=1) _error_("Could not read record_length"); 1347 1349 /*skip: */ 1348 1350 fseek(fid,record_length,SEEK_CUR); -
issm/trunk-jpl/src/c/shared/Exp/exp.h
r14377 r14512 161 161 if(pclosed) *pclosed=closed; 162 162 else xDelete<bool>(closed); 163 163 164 } /*}}}*/ 164 165 /*DataSet* ExpRead(char* domainname){{{*/ -
issm/trunk-jpl/src/c/solutions/dakota_core.cpp
r13787 r14512 59 59 char* dakota_output_file = NULL; 60 60 char* dakota_error_file = NULL; 61 const char* parallel_lib_string= "serial"; 61 62 int status=0; 62 63 Dakota::ModelLIter ml_iter; … … 75 76 // Instantiate/initialize the parallel library and problem description 76 77 // database objects. 77 Dakota::ParallelLibrary parallel_lib( "serial"); //use our own ISSM Dakota library mode constructor, which only fires up Dakota on CPU 0.78 Dakota::ParallelLibrary parallel_lib(parallel_lib_string); //use our own ISSM Dakota library mode constructor, which only fires up Dakota on CPU 0. 78 79 Dakota::ProblemDescDB problem_db(parallel_lib); 79 80
Note:
See TracChangeset
for help on using the changeset viewer.