Skip to content

Commit

Permalink
Merge pull request clawpack#62 from rjleveque/transverse3d
Browse files Browse the repository at this point in the history
 Added 3d transverse options to data.py
  • Loading branch information
mandli committed Oct 2, 2013
2 parents 8bbfa97 + cf176a4 commit 8088186
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 8088186

Please # to comment.