Skip to content

Commit 07f5727

Browse files
committed
renaming mesh, part II
1 parent e1ed3cc commit 07f5727

23 files changed

+70
-70
lines changed

pySDC/implementations/datatype_classes/mesh.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def bcast(self, root=None, comm=None):
140140
return self
141141

142142

143-
class parallel_imex_mesh(object):
143+
class imex_mesh(object):
144144
"""
145145
RHS data type for meshes with implicit and explicit components
146146
@@ -157,7 +157,7 @@ def __init__(self, init, val=0.0):
157157
158158
Args:
159159
init: can either be a tuple (one int per dimension) or a number (if only one dimension is requested)
160-
or another parallel_imex_mesh object
160+
or another imex_mesh object
161161
val (float): an initial number (default: 0.0)
162162
Raises:
163163
DataError: if init is none of the types above
@@ -175,7 +175,7 @@ def __init__(self, init, val=0.0):
175175
raise DataError('something went wrong during %s initialization' % type(self))
176176

177177

178-
class parallel_comp2_mesh(object):
178+
class comp2_mesh(object):
179179
"""
180180
RHS data type for meshes with 2 components
181181
@@ -190,7 +190,7 @@ def __init__(self, init, val=0.0):
190190
191191
Args:
192192
init: can either be a tuple (one int per dimension) or a number (if only one dimension is requested)
193-
or another parallel_comp2_mesh object
193+
or another comp2_mesh object
194194
Raises:
195195
DataError: if init is none of the types above
196196
"""

pySDC/implementations/problem_classes/AcousticAdvection_1D_FD_imex.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from pySDC.core.Errors import ParameterError
55
from pySDC.core.Problem import ptype
6-
from pySDC.implementations.datatype_classes.mesh import mesh, parallel_imex_mesh
6+
from pySDC.implementations.datatype_classes.mesh import mesh, imex_mesh
77
from pySDC.implementations.problem_classes.acoustic_helpers.buildWave1DMatrix import getWave1DMatrix, \
88
getWave1DAdvectionMatrix
99

@@ -22,7 +22,7 @@ class acoustic_1d_imex(ptype):
2222
2323
"""
2424

25-
def __init__(self, problem_params, dtype_u=mesh, dtype_f=parallel_imex_mesh):
25+
def __init__(self, problem_params, dtype_u=mesh, dtype_f=imex_mesh):
2626
"""
2727
Initialization routine
2828

pySDC/implementations/problem_classes/AdvectionDiffusionEquation_1D_FFT.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from pySDC.core.Errors import ParameterError, ProblemError
44
from pySDC.core.Problem import ptype
5-
from pySDC.implementations.datatype_classes.mesh import mesh, parallel_imex_mesh
5+
from pySDC.implementations.datatype_classes.mesh import mesh, imex_mesh
66

77

88
# noinspection PyUnusedLocal
@@ -19,7 +19,7 @@ class advectiondiffusion1d_imex(ptype):
1919
irfft_object: planned IFFT for backward transformation, real-valued output
2020
"""
2121

22-
def __init__(self, problem_params, dtype_u=mesh, dtype_f=parallel_imex_mesh):
22+
def __init__(self, problem_params, dtype_u=mesh, dtype_f=imex_mesh):
2323
"""
2424
Initialization routine
2525

pySDC/implementations/problem_classes/AllenCahn_1D_FD.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from pySDC.core.Errors import ParameterError, ProblemError
77
from pySDC.core.Problem import ptype
8-
from pySDC.implementations.datatype_classes.mesh import mesh, parallel_imex_mesh, parallel_comp2_mesh
8+
from pySDC.implementations.datatype_classes.mesh import mesh, imex_mesh, comp2_mesh
99

1010

1111
class allencahn_front_fullyimplicit(ptype):
@@ -197,7 +197,7 @@ class allencahn_front_semiimplicit(allencahn_front_fullyimplicit):
197197
dx: distance between two spatial nodes
198198
"""
199199

200-
def __init__(self, problem_params, dtype_u=mesh, dtype_f=parallel_imex_mesh):
200+
def __init__(self, problem_params, dtype_u=mesh, dtype_f=imex_mesh):
201201
"""
202202
Initialization routine
203203
@@ -549,7 +549,7 @@ class allencahn_periodic_semiimplicit(allencahn_periodic_fullyimplicit):
549549
with driving force, 0-1 formulation (Bayreuth example)
550550
"""
551551

552-
def __init__(self, problem_params, dtype_u=mesh, dtype_f=parallel_imex_mesh):
552+
def __init__(self, problem_params, dtype_u=mesh, dtype_f=imex_mesh):
553553
"""
554554
Initialization routine
555555
@@ -620,7 +620,7 @@ class allencahn_periodic_multiimplicit(allencahn_periodic_fullyimplicit):
620620
with driving force, 0-1 formulation (Bayreuth example)
621621
"""
622622

623-
def __init__(self, problem_params, dtype_u=mesh, dtype_f=parallel_comp2_mesh):
623+
def __init__(self, problem_params, dtype_u=mesh, dtype_f=comp2_mesh):
624624
"""
625625
Initialization routine
626626

pySDC/implementations/problem_classes/AllenCahn_2D_FD.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from pySDC.core.Errors import ParameterError, ProblemError
77
from pySDC.core.Problem import ptype
8-
from pySDC.implementations.datatype_classes.mesh import mesh, parallel_imex_mesh, parallel_comp2_mesh
8+
from pySDC.implementations.datatype_classes.mesh import mesh, imex_mesh, comp2_mesh
99

1010

1111
# http://www.personal.psu.edu/qud2/Res/Pre/dz09sisc.pdf
@@ -187,7 +187,7 @@ class allencahn_semiimplicit(allencahn_fullyimplicit):
187187
Example implementing the Allen-Cahn equation in 2D with finite differences, SDC standard splitting
188188
"""
189189

190-
def __init__(self, problem_params, dtype_u=mesh, dtype_f=parallel_imex_mesh):
190+
def __init__(self, problem_params, dtype_u=mesh, dtype_f=imex_mesh):
191191
"""
192192
Initialization routine
193193
@@ -258,7 +258,7 @@ class allencahn_semiimplicit_v2(allencahn_fullyimplicit):
258258
Example implementing the Allen-Cahn equation in 2D with finite differences, AC splitting
259259
"""
260260

261-
def __init__(self, problem_params, dtype_u=mesh, dtype_f=parallel_imex_mesh):
261+
def __init__(self, problem_params, dtype_u=mesh, dtype_f=imex_mesh):
262262
"""
263263
Initialization routine
264264
@@ -352,7 +352,7 @@ class allencahn_multiimplicit(allencahn_fullyimplicit):
352352
Example implementing the Allen-Cahn equation in 2D with finite differences, SDC standard splitting
353353
"""
354354

355-
def __init__(self, problem_params, dtype_u=mesh, dtype_f=parallel_comp2_mesh):
355+
def __init__(self, problem_params, dtype_u=mesh, dtype_f=comp2_mesh):
356356
"""
357357
Initialization routine
358358
@@ -479,7 +479,7 @@ class allencahn_multiimplicit_v2(allencahn_fullyimplicit):
479479
Example implementing the Allen-Cahn equation in 2D with finite differences, AC splitting
480480
"""
481481

482-
def __init__(self, problem_params, dtype_u=mesh, dtype_f=parallel_comp2_mesh):
482+
def __init__(self, problem_params, dtype_u=mesh, dtype_f=comp2_mesh):
483483
"""
484484
Initialization routine
485485

pySDC/implementations/problem_classes/AllenCahn_2D_FFT.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from pySDC.core.Errors import ParameterError, ProblemError
44
from pySDC.core.Problem import ptype
5-
from pySDC.implementations.datatype_classes.mesh import mesh, parallel_imex_mesh
5+
from pySDC.implementations.datatype_classes.mesh import mesh, imex_mesh
66

77

88
# noinspection PyUnusedLocal
@@ -18,7 +18,7 @@ class allencahn2d_imex(ptype):
1818
irfft_object: planned IFFT for backward transformation
1919
"""
2020

21-
def __init__(self, problem_params, dtype_u=mesh, dtype_f=parallel_imex_mesh):
21+
def __init__(self, problem_params, dtype_u=mesh, dtype_f=imex_mesh):
2222
"""
2323
Initialization routine
2424
@@ -147,7 +147,7 @@ class allencahn2d_imex_stab(allencahn2d_imex):
147147
irfft_object: planned IFFT for backward transformation
148148
"""
149149

150-
def __init__(self, problem_params, dtype_u=mesh, dtype_f=parallel_imex_mesh):
150+
def __init__(self, problem_params, dtype_u=mesh, dtype_f=imex_mesh):
151151
"""
152152
Initialization routine
153153

pySDC/implementations/problem_classes/AllenCahn_MPIFFT.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from pySDC.core.Errors import ParameterError, ProblemError
66
from pySDC.core.Problem import ptype
7-
from pySDC.implementations.datatype_classes.mesh import mesh, parallel_imex_mesh
7+
from pySDC.implementations.datatype_classes.mesh import mesh, imex_mesh
88

99
from mpi4py_fft import newDistArray
1010

@@ -23,7 +23,7 @@ class allencahn_imex(ptype):
2323
dy: mesh width in y direction
2424
"""
2525

26-
def __init__(self, problem_params, dtype_u=mesh, dtype_f=parallel_imex_mesh):
26+
def __init__(self, problem_params, dtype_u=mesh, dtype_f=imex_mesh):
2727
"""
2828
Initialization routine
2929

pySDC/implementations/problem_classes/AllenCahn_Temp_MPIFFT.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from pySDC.core.Errors import ParameterError, ProblemError
66
from pySDC.core.Problem import ptype
7-
from pySDC.implementations.datatype_classes.mesh import mesh, parallel_imex_mesh
7+
from pySDC.implementations.datatype_classes.mesh import mesh, imex_mesh
88

99
from mpi4py_fft import newDistArray
1010

@@ -23,7 +23,7 @@ class allencahn_temp_imex(ptype):
2323
dy: mesh width in y direction
2424
"""
2525

26-
def __init__(self, problem_params, dtype_u=mesh, dtype_f=parallel_imex_mesh):
26+
def __init__(self, problem_params, dtype_u=mesh, dtype_f=imex_mesh):
2727
"""
2828
Initialization routine
2929

pySDC/implementations/problem_classes/Boussinesq_2D_FD_imex.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from pySDC.core.Errors import ParameterError
55
from pySDC.core.Problem import ptype
6-
from pySDC.implementations.datatype_classes.mesh import mesh, parallel_imex_mesh
6+
from pySDC.implementations.datatype_classes.mesh import mesh, imex_mesh
77
from pySDC.implementations.problem_classes.boussinesq_helpers.build2DFDMatrix import get2DMesh
88
from pySDC.implementations.problem_classes.boussinesq_helpers.buildBoussinesq2DMatrix import getBoussinesq2DMatrix
99
from pySDC.implementations.problem_classes.boussinesq_helpers.buildBoussinesq2DMatrix import getBoussinesq2DUpwindMatrix
@@ -17,7 +17,7 @@ class boussinesq_2d_imex(ptype):
1717
Example implementing the 2D Boussinesq equation for different boundary conditions
1818
"""
1919

20-
def __init__(self, problem_params, dtype_u=mesh, dtype_f=parallel_imex_mesh):
20+
def __init__(self, problem_params, dtype_u=mesh, dtype_f=imex_mesh):
2121
"""
2222
Initialization routine
2323

pySDC/implementations/problem_classes/FastWaveSlowWave_0D.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from pySDC.core.Errors import ParameterError
55
from pySDC.core.Problem import ptype
6-
from pySDC.implementations.datatype_classes.mesh import mesh, parallel_imex_mesh
6+
from pySDC.implementations.datatype_classes.mesh import mesh, imex_mesh
77

88

99
# noinspection PyUnusedLocal
@@ -14,7 +14,7 @@ class swfw_scalar(ptype):
1414
Attributes:
1515
"""
1616

17-
def __init__(self, problem_params, dtype_u=mesh, dtype_f=parallel_imex_mesh):
17+
def __init__(self, problem_params, dtype_u=mesh, dtype_f=imex_mesh):
1818
"""
1919
Initialization routine
2020

0 commit comments

Comments
 (0)