Skip to content

Commit 686c733

Browse files
authored
Merge pull request #309 from mandli/fix-gauge-format
Flip binary32 and binary64 so it matches output options
2 parents 4486c96 + 2c4ece9 commit 686c733

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/python/amrclaw/data.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,10 @@ def write(self, num_eqn, num_aux, out_file='gauges.data',
437437
self.expand_gauge_format_option(key)
438438

439439
# File format
440-
self._out_file.write("# File format (1=ascii, 2=binary64, 3=binary32)\n")
441-
format_map = {'ascii':1, 'binary':2, 'binary64':2, 'binary32':3}
440+
# self._out_file.write("# File format (1=ascii, 2=binary64, 3=binary32)\n")
441+
# format_map = {'ascii':1, 'binary':2, 'binary64':2, 'binary32':3}
442+
self._out_file.write("# File format (1=ascii, 2=binary32, 3=binary64)\n")
443+
format_map = {'ascii':1, 'binary':3, 'binary32':2, 'binary64':3}
442444
for gauge_num in self.gauge_numbers:
443445
try:
444446
file_format = format_map[self.file_format[gauge_num].lower()]
@@ -648,4 +650,3 @@ def read_adjoint_files(self):
648650

649651
if __name__ == '__main__':
650652
raise Exception("Not unit tests have been defined for this module.")
651-

0 commit comments

Comments
 (0)