Skip to content

Commit 7398fe2

Browse files
author
Thomas Baumann
committed
Added Euler config
1 parent 08ed5ea commit 7398fe2

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

pySDC/projects/GPU/analysis_scripts/RBC3D_stability.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
'RBC3DG4Ra1e5': [3, 1e0, 1e-1, 8e-2, 6e-2],
88
'RBC3DG4RKRa1e5': [1e3, 5, 4, 1e0, 1e-1, 8e-2, 6e-2],
99
'RBC3DG4R4Ra1e5': [1e0, 1e-1, 9e-2, 8e-2, 7e-2, 6e-2, 5e-2],
10+
'RBC3DG4R4RKRa1e5': [1e0, 1e-1, 9e-2, 8e-2, 7e-2, 6e-2, 5e-2],
1011
}
1112
n_freefall_times = {}
1213

pySDC/projects/GPU/configs/RBC3D_configs.py

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,11 +490,26 @@ def get_description(self, *args, res=-1, dt=-1, **kwargs):
490490
return desc
491491

492492

493+
class RBC3DverificationEuler(RBC3DverificationRK):
494+
495+
def get_description(self, *args, res=-1, dt=-1, **kwargs):
496+
from pySDC.implementations.sweeper_classes.Runge_Kutta import IMEXEuler
497+
498+
desc = super().get_description(*args, res=res, dt=dt, **kwargs)
499+
desc['sweeper_class'] = IMEXEuler
500+
return desc
501+
502+
493503
class RBC3DverificationRKGamma4(RBC3DverificationRK):
494504
gamma = 4
495505
res_ratio = 2
496506

497507

508+
class RBC3DverificationEulerG4R4(RBC3DverificationEuler):
509+
gamma = 4
510+
res_ratio = 4
511+
512+
498513
class RBC3DRa1e4(RBC3Dverification):
499514
converged = 60
500515
dt = 1.0
@@ -539,7 +554,24 @@ class RBC3DG4Ra1e5(RBC3DverificationGamma4):
539554

540555
class RBC3DG4R4Ra1e5(RBC3DverificationGamma4):
541556
res_ratio = 4
542-
Tend = 100
557+
Tend = 200
558+
dt = 8e-2
559+
ic_config = None
560+
res = 32
561+
converged = 50
562+
563+
564+
class RBC3DG4R4RKRa1e5(RBC3DverificationRKGamma4):
565+
res_ratio = 4
566+
Tend = 200
567+
dt = 8e-2
568+
ic_config = None
569+
res = 32
570+
converged = 50
571+
572+
573+
class RBC3DG4R4EulerRa1e5(RBC3DverificationEulerG4R4):
574+
Tend = 200
543575
dt = 8e-2
544576
ic_config = None
545577
res = 32

pySDC/projects/GPU/configs/base_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def merge_all_stats(self, controller):
207207
with open(self.get_stats_path(index=i), 'rb') as file:
208208
_stats = pickle.load(file)
209209
stats = {**stats, **_stats}
210-
except FileNotFoundError:
210+
except (FileNotFoundError, EOFError):
211211
print(f'Warning: No stats found at path {self.get_stats_path(index=i)}')
212212

213213
stats = {**stats, **controller.return_stats()}

0 commit comments

Comments
 (0)