Skip to content

Commit 46856cf

Browse files
committed
++
1 parent aa10a29 commit 46856cf

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

tests/functional/harris/harris_2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def test_run(self, diag_dir=None, sim=None):
180180
return self
181181

182182
def plot(self, timestamps, diag_dir, plot_dir):
183-
run = self.run(diag_dir)
183+
run = self.getRun(diag_dir)
184184
for time in timestamps:
185185
run.GetDivB(time).plot(
186186
filename=plot_file_for_qty(plot_dir, "divb", time),

tests/functional/harris/harris_2d_100_x_100_slow.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ def config():
4747
final_time=final_time,
4848
cells=cells,
4949
dl=(0.40, 0.40),
50-
# refinement="tagging",
51-
# max_nbr_levels=1,
5250
nesting_buffer=1,
5351
clustering="tile",
5452
tag_buffer="1",

tests/simulator/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ class SimulatorTestRunInterop(run.Run):
204204

205205
def __init__(self, *args, **kwargs):
206206
super().__init__(*args, **kwargs)
207-
self.dummies = {}
208207

209208
@staticmethod
210209
def _wrapper(func, func_name):
@@ -213,7 +212,7 @@ def wrapped(*args, **kwargs):
213212
try:
214213
return func(*args, **kwargs)
215214
except FileNotFoundError:
216-
print("File not found, maybe diagnostic is not active")
215+
print(f"{func_name} : file not found, maybe diagnostic is not active")
217216

218217
return wrapped
219218

@@ -271,7 +270,7 @@ def __init__(self, *args, **kwargs):
271270
self.diag_dirs = [] # cleanup after tests
272271
self.success = True
273272

274-
def run(self, result=None):
273+
def run(self, result=None): # override superclass function
275274
self._outcome = result
276275
super().run(result)
277276

@@ -294,5 +293,5 @@ def clean_up_diags_dirs(self):
294293
shutil.rmtree(diag_dir)
295294
cpp_lib().mpi_barrier()
296295

297-
def run(self, diag_dir):
296+
def getRun(self, diag_dir):
298297
return SimulatorTestRunInterop(diag_dir)

0 commit comments

Comments
 (0)