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