Changeset 25315


Ignore:
Timestamp:
07/30/20 13:02:01 (5 years ago)
Author:
jdquinn
Message:

CHG: Quick method for saving copy of binary files (commented out)

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

Legend:

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

    r25161 r25315  
    4343%close file
    4444st=fclose(fid);
     45% % Uncomment the following to make a copy of the binary input file for debugging
     46% % purposes (can be fed into scripts/ReadBin.py).
     47% copyfile([md.miscellaneous.name '.bin'], [md.miscellaneous.name '.m.bin'])
    4548if st==-1,
    4649        error(['marshall error message: could not close file ' [md.miscellaneous.name '.bin']]);
  • issm/trunk-jpl/src/m/solve/marshall.py

    r25300 r25315  
     1import subprocess
     2
    13from WriteData import WriteData
    24
     
    4042    try:
    4143        fid.close()
     44        # # Uncomment the following to make a copy of the binary input file for
     45        # # debugging purposes (can be fed into scripts/ReadBin.py).
     46        # copy_cmd = "cp {}.bin {}.py.bin".format(md.miscellaneous.name, md.miscellaneous.name)
     47        # subprocess.call(copy_cmd, shell=True)
    4248    except IOError as e:
    4349        print("marshall error message: could not close file '{}.bin' due to:".format(md.miscellaneous.name), e)
Note: See TracChangeset for help on using the changeset viewer.