Changeset 16514


Ignore:
Timestamp:
10/22/13 11:15:56 (11 years ago)
Author:
Mathieu Morlighem
Message:

NEW: added check that marshalled file is not corrupt

Location:
issm/trunk-jpl/src/m/solve
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/solve/marshall.m

    r15689 r16514  
    3939end
    4040
     41%Last, write MaximumNumberOfEnum+1 to make sure that the binary file is not corrupt
     42WriteData(fid,'enum',MaximumNumberOfDefinitionsEnum()+1,'data',true,'format','Boolean');
     43
    4144%close file
    4245st=fclose(fid);
  • issm/trunk-jpl/src/m/solve/marshall.py

    r15689 r16514  
    4242                exec("md.%s.marshall(md,fid)" % field)
    4343
     44        #Last, write MaximumNumberOfEnum+1 to make sure that the binary file is not corrupt
     45        WriteData(fid,'enum',MaximumNumberOfDefinitionsEnum()+1,'data',True,'format','Boolean');
     46
    4447        #close file
    4548        try:
Note: See TracChangeset for help on using the changeset viewer.