From cf176a48a8a2679e7d9c9c6086fadfb89ef553ae Mon Sep 17 00:00:00 2001 From: Randy LeVeque Date: Sat, 28 Sep 2013 09:57:15 -0700 Subject: [PATCH] added other options for specifying transverse solver choice in 3d, e.g. 'all' or 2 give same as 22 --- src/python/clawutil/data.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/python/clawutil/data.py b/src/python/clawutil/data.py index 15f66083..27c9d634 100644 --- a/src/python/clawutil/data.py +++ b/src/python/clawutil/data.py @@ -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)