Index: /issm/trunk-jpl/src/m/solve/marshall.m
===================================================================
--- /issm/trunk-jpl/src/m/solve/marshall.m	(revision 25314)
+++ /issm/trunk-jpl/src/m/solve/marshall.m	(revision 25315)
@@ -43,4 +43,7 @@
 %close file
 st=fclose(fid);
+% % Uncomment the following to make a copy of the binary input file for debugging 
+% % purposes (can be fed into scripts/ReadBin.py).
+% copyfile([md.miscellaneous.name '.bin'], [md.miscellaneous.name '.m.bin'])
 if st==-1,
 	error(['marshall error message: could not close file ' [md.miscellaneous.name '.bin']]);
Index: /issm/trunk-jpl/src/m/solve/marshall.py
===================================================================
--- /issm/trunk-jpl/src/m/solve/marshall.py	(revision 25314)
+++ /issm/trunk-jpl/src/m/solve/marshall.py	(revision 25315)
@@ -1,2 +1,4 @@
+import subprocess
+
 from WriteData import WriteData
 
@@ -40,4 +42,8 @@
     try:
         fid.close()
+        # # Uncomment the following to make a copy of the binary input file for 
+        # # debugging purposes (can be fed into scripts/ReadBin.py).
+        # copy_cmd = "cp {}.bin {}.py.bin".format(md.miscellaneous.name, md.miscellaneous.name)
+        # subprocess.call(copy_cmd, shell=True)
     except IOError as e:
         print("marshall error message: could not close file '{}.bin' due to:".format(md.miscellaneous.name), e)
