openfoam: delete print to screen and updated docstrings/comments (#17985)
This commit is contained in:
parent
49b47864e9
commit
b2d2bb694e
@ -386,7 +386,6 @@ def url_for_version(self, version):
|
||||
corresponding unpatched directories (eg '1906').
|
||||
Older versions (eg, v1612+) had additional '+' in naming
|
||||
"""
|
||||
tty.info('openfoam: {0}'.format(version))
|
||||
if version <= Version('1612'):
|
||||
fmt = 'v{0}+/OpenFOAM-v{1}+.tgz'
|
||||
else:
|
||||
@ -584,10 +583,10 @@ def make_fujitsu_rules(self):
|
||||
backup=False, string=True)
|
||||
|
||||
def configure(self, spec, prefix):
|
||||
"""Make adjustments to the OpenFOAM configuration files in their various
|
||||
locations: etc/bashrc, etc/config.sh/FEATURE and customizations that
|
||||
don't properly fit get placed in the etc/prefs.sh file (similiarly for
|
||||
csh).
|
||||
"""Make adjustments to the OpenFOAM configuration files in their
|
||||
various locations: etc/bashrc, etc/config.sh/FEATURE and
|
||||
customizations that don't properly fit get placed in the etc/prefs.sh
|
||||
file (similiarly for csh).
|
||||
"""
|
||||
# Filtering bashrc, cshrc
|
||||
edits = {}
|
||||
@ -915,9 +914,10 @@ def __init__(self, spec, **kwargs):
|
||||
# Build WM_OPTIONS
|
||||
# ----
|
||||
# WM_LABEL_OPTION=Int$WM_LABEL_SIZE
|
||||
# WM_OPTIONS=$WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_LABEL_OPTION$WM_COMPILE_OPTION
|
||||
# WM_OPTIONS_BASE=$WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION
|
||||
# WM_OPTIONS=$WM_OPTIONS_BASE$WM_LABEL_OPTION$WM_COMPILE_OPTION
|
||||
# or
|
||||
# WM_OPTIONS=$WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_COMPILE_OPTION
|
||||
# WM_OPTIONS=$WM_OPTIONS_BASE$WM_COMPILE_OPTION
|
||||
# ----
|
||||
self.options = ''.join([
|
||||
self.arch,
|
||||
|
Loading…
Reference in New Issue
Block a user