Skip to content

Commit

Permalink
hound fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jfgrimm committed Dec 12, 2023
1 parent 1d53af3 commit 6e688d4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions easybuild/easyblocks/d/dualsphysics.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
from easybuild.tools.modules import get_software_root
from easybuild.tools.run import run_cmd


class EB_DualSPHysics(CMakeMakeCp):
"""Support for building/installing DualSPHysics."""

Expand All @@ -48,7 +49,7 @@ def extra_options():
extra_vars = CMakeMakeCp.extra_options()

extra_vars['separate_build_dir'][0] = True

# files_to_copy is not mandatory here since we set it in the easyblock
extra_vars['files_to_copy'][2] = CUSTOM
return extra_vars
Expand All @@ -59,11 +60,11 @@ def __init__(self, *args, **kwargs):

self.dsph_target = None
self.shortver = None

def prepare_step(self):
"""Determine name of binary that will be installed."""
super(EB_DualSPHysics, self).prepare_step()

if get_software_root('CUDA'):
self.dsph_target = 'GPU'
else:
Expand Down Expand Up @@ -124,10 +125,9 @@ def post_install_step(self):
except OSError as err:
raise EasyBuildError("Failed to patch RPATH section in binaries/libraries: %s", err)


def sanity_check_step(self):
"""Custom sanity checks for DualSPHysics."""

# repeated here in case other steps are skipped (e.g. due to --sanity-check-only)
if get_software_root('CUDA'):
self.dsph_target = 'GPU'
Expand All @@ -140,7 +140,7 @@ def sanity_check_step(self):
'DualSPHysics4.0_LiquidGasCPU', 'DualSPHysics%s' % self.shortver,
'DualSPHysics%s%s' % (self.shortver, self.dsph_target), 'DualSPHysics%s_NNewtonian' % self.shortver,
'DualSPHysics%s_NNewtonianCPU' % self.shortver]

custom_paths = {
'files': ['bin/%s_linux64' % x for x in bins],
'dirs': ['lib'],
Expand Down

0 comments on commit 6e688d4

Please sign in to comment.