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

NEW: added check that marshalled file is not corrupt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.