Skip to content

Commit

Permalink
added other options for specifying transverse solver choice in 3d, e.…
Browse files Browse the repository at this point in the history
…g. 'all' or 2 give same as 22
  • Loading branch information
Randy LeVeque committed Sep 28, 2013
1 parent 8bbfa97 commit cf176a4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/python/clawutil/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,12 @@ def write(self, out_file='claw.data', data_source='setrun.py'):
raise AttributeError("Unrecognized transverse_waves: %s" \
% self.transverse_waves)
else: # 3D
# Add textual names later
if self.transverse_waves in [0,'none']:
self.transverse_waves = 0
elif self.transverse_waves in [1,'increment']:
self.transverse_waves = 11
elif self.transverse_waves in [2,'all']:
self.transverse_waves = 22
if not (self.transverse_waves in [0, 10, 11, 20, 21, 22]):
raise AttributeError("Unrecognized transverse_waves: %s" \
% self.transverse_waves)
Expand Down

0 comments on commit cf176a4

Please # to comment.