Skip to content

Commit

Permalink
Merge pull request #274 from rjleveque/gauge_binary32
Browse files Browse the repository at this point in the history
add support for binary gauge files containing float32 values
  • Loading branch information
mandli authored May 31, 2022
2 parents 18d3655 + cd7748e commit 7530472
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/amrclaw/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,8 @@ def write(self, num_eqn, num_aux, out_file='gauges.data',
self.expand_gauge_format_option(key)

# File format
self._out_file.write("# File format (1=ascii, 2=binary)\n")
format_map = {'ascii':1, 'binary': 2}
self._out_file.write("# File format (1=ascii, 2=binary64, 3=binary32)\n")
format_map = {'ascii':1, 'binary':2, 'binary64':2, 'binary32':3}
for gauge_num in self.gauge_numbers:
try:
file_format = format_map[self.file_format[gauge_num].lower()]
Expand Down

0 comments on commit 7530472

Please sign in to comment.