Skip to content

Commit 39e4a34

Browse files
committed
TL: solved formating and merge problems
1 parent 117c702 commit 39e4a34

File tree

5 files changed

+1
-85
lines changed

5 files changed

+1
-85
lines changed

pySDC/helpers/fieldsIO.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ def setupMPI(cls, comm: MPI.Intracomm, iLoc, nLoc):
518518
cls.comm = comm
519519
cls.iLoc = iLoc
520520
cls.nLoc = nLoc
521-
cls.mpiFile:MPI.File = None
521+
cls.mpiFile: MPI.File = None
522522

523523
@property
524524
def MPI_ON(self):

pySDC/projects/Resilience/GS.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,9 @@ def u_exact(self, t, u_init=None, t_init=None, recompute=False, _t0=None):
5454
return data
5555

5656

57-
<<<<<<< HEAD
58-
grayscott_imex_diffusion._u_exact = grayscott_imex_diffusion.u_exact
59-
grayscott_imex_diffusion.u_exact = u_exact
60-
=======
6157
if not hasattr(grayscott_imex_diffusion, '_u_exact'):
6258
grayscott_imex_diffusion._u_exact = grayscott_imex_diffusion.u_exact
6359
grayscott_imex_diffusion.u_exact = u_exact
64-
>>>>>>> master
6560

6661

6762
def run_GS(

pySDC/projects/Resilience/RBC.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,7 @@ def plot_step_size(t0=0, Tend=30, e_tol=1e-3, recompute=False): # pragma: no co
296296
plt.show()
297297

298298

299-
<<<<<<< HEAD
300-
def plot_factorizations_over_time(t0=0, Tend=50, e_tol=1e-3, recompute=False, adaptivity_mode='dt'):
301-
=======
302299
def plot_factorizations_over_time(t0=0, Tend=50, e_tol=1e-3, recompute=False, adaptivity_mode='dt'): # pragma: no cover
303-
>>>>>>> master
304300
import matplotlib.pyplot as plt
305301
import pickle
306302
import os

pySDC/projects/Resilience/paper_plots.py

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -906,73 +906,6 @@ def make_plots_for_thesis(): # pragma: no cover
906906
plot_RBC_solution(setup)
907907

908908
from pySDC.projects.Resilience.RBC import plot_factorizations_over_time
909-
<<<<<<< HEAD
910-
911-
plot_factorizations_over_time(t0=0, Tend=50)
912-
913-
from pySDC.projects.Resilience.work_precision import (
914-
all_problems,
915-
)
916-
917-
all_params = {
918-
'record': False,
919-
'work_key': 't',
920-
'precision_key': 'e_global_rel',
921-
'plotting': True,
922-
'base_path': 'data/paper',
923-
'target': 'thesis',
924-
}
925-
926-
for mode in ['compare_strategies', 'parallel_efficiency_dt_k', 'parallel_efficiency_dt', 'RK_comp']:
927-
all_problems(**all_params, mode=mode)
928-
all_problems(**{**all_params, 'work_key': 'param'}, mode='compare_strategies')
929-
930-
for tend in [500, 2000]:
931-
plot_GS_solution(tend=tend)
932-
for setup in ['resilience', 'adaptivity']:
933-
plot_vdp_solution(setup=setup)
934-
935-
plot_adaptivity_stuff()
936-
937-
plot_fault_Lorenz(0)
938-
plot_fault_Lorenz(20)
939-
compare_recovery_rate_problems(target='thesis', num_procs=1, strategy_type='SDC')
940-
plot_recovery_rate_per_acceptance_threshold(run_Lorenz)
941-
plot_recovery_rate(get_stats(run_Lorenz))
942-
plot_recovery_rate_detailed_Lorenz()
943-
944-
945-
def make_plots_for_TUHH_seminar(): # pragma: no cover
946-
global JOURNAL
947-
JOURNAL = 'JSC_beamer'
948-
949-
from pySDC.projects.Resilience.work_precision import (
950-
all_problems,
951-
)
952-
953-
all_params = {
954-
'record': False,
955-
'work_key': 't',
956-
'precision_key': 'e_global_rel',
957-
'plotting': True,
958-
'base_path': 'data/paper',
959-
'target': 'talk',
960-
}
961-
962-
for mode in ['compare_strategies', 'parallel_efficiency_dt_k', 'parallel_efficiency_dt', 'RK_comp']:
963-
all_problems(**all_params, mode=mode)
964-
all_problems(**{**all_params, 'work_key': 'param'}, mode='compare_strategies')
965-
966-
# plot_GS_solution()
967-
# for setup in ['resilience_thesis', 'work_precision']:
968-
# plot_RBC_solution(setup)
969-
# for setup in ['resilience', 'adaptivity']:
970-
# plot_vdp_solution(setup=setup)
971-
972-
# plot_adaptivity_stuff()
973-
974-
# plot_fault_Lorenz(20, target='talk')
975-
=======
976909

977910
plot_factorizations_over_time(t0=0, Tend=50)
978911

@@ -1037,7 +970,6 @@ def make_plots_for_TUHH_seminar(): # pragma: no cover
1037970
plot_adaptivity_stuff()
1038971

1039972
plot_fault_Lorenz(20, target='talk')
1040-
>>>>>>> master
1041973
compare_recovery_rate_problems(target='talk', num_procs=1, strategy_type='SDC')
1042974
plot_recovery_rate_per_acceptance_threshold(run_Lorenz, target='talk')
1043975
plot_recovery_rate_detailed_Lorenz(target='talk')

pySDC/projects/Resilience/work_precision.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,6 @@ def record_work_precision(
297297
exponents = [-3, -2, -1, 0, 0.2, 0.8, 1][::-1]
298298
if problem.__name__ == 'run_RBC':
299299
exponents = [1, 0, -0.5, -1, -2]
300-
<<<<<<< HEAD
301-
# exponents = [3, 2, 1, 0]
302-
=======
303-
>>>>>>> master
304300
if problem.__name__ == 'run_GS':
305301
exponents = [-2, -1, 0, 1, 2, 3][::-1]
306302
if problem.__name__ == 'run_Lorenz':
@@ -989,8 +985,6 @@ def get_configs(mode, problem):
989985
'num_procs': num_procs_dt,
990986
'plotting_params': {'label': rf'$\Delta t$-adaptivity $N$={num_procs_dt}x1', 'ls': ls[num_procs_dt]},
991987
}
992-
<<<<<<< HEAD
993-
=======
994988

995989
elif mode == 'RK_comp_high_order_RBC':
996990
"""
@@ -1057,7 +1051,6 @@ def get_configs(mode, problem):
10571051
'num_procs': num_procs_dt,
10581052
'plotting_params': {'label': rf'$\Delta t$-adaptivity $N$={num_procs_dt}x1', 'ls': ls[num_procs_dt]},
10591053
}
1060-
>>>>>>> master
10611054

10621055
elif mode == 'parallel_efficiency':
10631056
"""

0 commit comments

Comments
 (0)