Changeset 25145


Ignore:
Timestamp:
06/24/20 19:14:18 (5 years ago)
Author:
Eric.Larour
Message:

CHG: more debug statements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/IoModel.cpp

    r25079 r25145  
    596596                        }
    597597                        if(record_name_size<3 || record_name_size>80){
    598                                 _error_("error while looking in binary file. Found a string of size "<<record_name_size);
     598                                /*we are going to error out, still try and get informatoin for the user:*/
     599                                record_name=xNew<char>(record_name_size+1);
     600                                record_name[record_name_size]='\0';
     601                               
     602                                /*Read record_name: */
     603                                fread(record_name,record_name_size*sizeof(char),1,fid);
     604                               
     605                                _error_("error while looking in binary file. String " << record_name << " a string of size "<<record_name_size);
    599606                        }
    600607
     
    607614                                _error_("Could not read record name");
    608615                        }
     616
    609617                        if(strncmp(record_name,mddot,3)!=0){
    610618                                _error_("error while reading binary file: record does not start with \"md.\": "<<record_name);
Note: See TracChangeset for help on using the changeset viewer.