@@ -92,7 +92,6 @@ class Uniform1DSubMesh(SubMesh1D):
9292 """
9393
9494 def __init__ (self , lims , npts ):
95-
9695 spatial_var , spatial_lims , tabs = self .read_lims (lims )
9796 npts = npts [spatial_var .name ]
9897
@@ -112,22 +111,25 @@ class Exponential1DSubMesh(SubMesh1D):
112111 If side is "left", the gridpoints are given by
113112
114113 .. math::
115- x_{k} = (b-a) + \\ frac{\mathrm{e}^{\\ alpha k / N} - 1}{\mathrm{e}^{\\ alpha} - 1} + a,
114+ x_{k} = (b-a) +
115+ \\ frac{\mathrm{e}^{\\ alpha k / N} - 1}{\mathrm{e}^{\\ alpha} - 1} + a,
116116
117117 for k = 1, ..., N, where N is the number of nodes.
118118
119119 Is side is "right", the gridpoints are given by
120120
121121 .. math::
122- x_{k} = (b-a) + \\ frac{\mathrm{e}^{-\\ alpha k / N} - 1}{\mathrm{e}^{-\\ alpha} - 1} + a,
122+ x_{k} = (b-a) +
123+ \\ frac{\mathrm{e}^{-\\ alpha k / N} - 1}{\mathrm{e}^{-\\ alpha} - 1} + a,
123124
124125 for k = 1, ..., N.
125126
126127 If side is "symmetric", the first half of the interval is meshed using the
127128 gridpoints
128129
129130 .. math::
130- x_{k} = (b/2-a) + \\ frac{\mathrm{e}^{\\ alpha k / N} - 1}{\mathrm{e}^{\\ alpha} - 1} + a,
131+ x_{k} = (b/2-a) +
132+ \\ frac{\mathrm{e}^{\\ alpha k / N} - 1}{\mathrm{e}^{\\ alpha} - 1} + a,
131133
132134 for k = 1, ..., N. The grid spacing is then reflected to contruct the grid
133135 on the full interval [a,b].
@@ -156,7 +158,6 @@ class Exponential1DSubMesh(SubMesh1D):
156158 """
157159
158160 def __init__ (self , lims , npts , side = "symmetric" , stretch = None ):
159-
160161 spatial_var , spatial_lims , tabs = self .read_lims (lims )
161162 a = spatial_lims ["min" ]
162163 b = spatial_lims ["max" ]
@@ -236,7 +237,6 @@ class Chebyshev1DSubMesh(SubMesh1D):
236237 """
237238
238239 def __init__ (self , lims , npts , tabs = None ):
239-
240240 spatial_var , spatial_lims , tabs = self .read_lims (lims )
241241 npts = npts [spatial_var .name ]
242242
@@ -275,7 +275,6 @@ class UserSupplied1DSubMesh(SubMesh1D):
275275 """
276276
277277 def __init__ (self , lims , npts , edges = None ):
278-
279278 # raise error if no edges passed
280279 if edges is None :
281280 raise pybamm .GeometryError ("User mesh requires parameter 'edges'" )
@@ -340,7 +339,6 @@ class SpectralVolume1DSubMesh(SubMesh1D):
340339 """
341340
342341 def __init__ (self , lims , npts , edges = None , order = 2 ):
343-
344342 spatial_var , spatial_lims , tabs = self .read_lims (lims )
345343 npts = npts [spatial_var .name ]
346344
0 commit comments