Remove initial profile output - needs to be done elsewhere

这个提交包含在:
Craig Warren
2022-11-29 09:07:16 +00:00
父节点 a5cc7de99e
当前提交 35c52c3018

查看文件

@@ -45,14 +45,6 @@ class AddSurfaceRoughness(UserObjectGeometry):
that the surface roughness should be applied to.
seed: (optional) float parameter which controls the seeding of the random
number generator used to create the fractals.
p3: (optional) list of the lower left 2D coordinates of a surface within
FractalSurface class. Used to specify section of fractal surface
to print to stdio. Useful for extracting a profile for a
source/antenna to follow in another model run.
p4: (optional) list of the upper left 2D coordinates of a surface within
FractalSurface class. Used to specify section of fractal surface
to print to stdio. Useful for extracting a profile for a
source/antenna to follow in another model run.
"""
def __init__(self, **kwargs):
@@ -90,13 +82,6 @@ class AddSurfaceRoughness(UserObjectGeometry):
except KeyError:
seed = None
try:
p3 = self.kwargs['p3']
p4 = self.kwargs['p4']
profile = True
except KeyError:
profile = False
if self.do_rotate:
self._do_rotate()
@@ -243,10 +228,4 @@ class AddSurfaceRoughness(UserObjectGeometry):
f'{surface.dimension:g}, fractal weightings {surface.weighting[0]:g}, ' +
f'{surface.weighting[1]:g}, fractal seeding {surface.seed}, ' +
f'and range {limits[0]:g}m to {limits[1]:g}m, added to ' +
f'{surface.operatingonID}.')
profile = True
if profile:
logger.info(surface.fractalsurface.shape)
logger.info(self.grid_name(grid) + f'Fractal surface profile from XX ' +
f'to YY = {surface.fractalsurface[74:75, :]}')
f'{surface.operatingonID}.')