summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/omega-h/package.py29
1 files changed, 25 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/omega-h/package.py b/var/spack/repos/builtin/packages/omega-h/package.py
index 81c1f6e221..b94aad8e9a 100644
--- a/var/spack/repos/builtin/packages/omega-h/package.py
+++ b/var/spack/repos/builtin/packages/omega-h/package.py
@@ -11,11 +11,11 @@ class OmegaH(CMakePackage):
hardware including GPUs.
"""
- homepage = "https://github.com/SNLComputation/omega_h"
- url = "https://github.com/SNLComputation/omega_h/archive/v9.34.1.tar.gz"
- git = "https://github.com/SNLComputation/omega_h.git"
+ homepage = "https://github.com/sandialabs/omega_h"
+ url = "https://github.com/sandialabs/omega_h/archive/v9.34.1.tar.gz"
+ git = "https://github.com/sandialabs/omega_h.git"
- maintainers = ['ibaned']
+ maintainers = ['cwsmith']
tags = ['e4s']
version('main', branch='main')
version('9.34.1', sha256='3a812da3b8df3e0e5d78055e91ad23333761bcd9ed9b2c8c13ee1ba3d702e46c')
@@ -99,3 +99,24 @@ class OmegaH(CMakePackage):
flags.append("-Wno-final-dtor-non-final-class")
return (None, None, flags)
+
+ def test(self):
+ if self.spec.version < Version('9.34.1'):
+ print('Skipping tests since only relevant for versions > 9.34.1')
+ return
+
+ exe = join_path(self.prefix.bin, 'osh_box')
+ options = ['1', '1', '1', '2', '2', '2', 'box.osh']
+ description = 'testing mesh construction'
+ self.run_test(exe, options, purpose=description)
+
+ exe = join_path(self.prefix.bin, 'osh_scale')
+ options = ['box.osh', '100', 'box_100.osh']
+ expected = 'adapting took'
+ description = 'testing mesh adaptation'
+ self.run_test(exe, options, expected, purpose=description)
+
+ exe = join_path(self.prefix.bin, 'osh2vtk')
+ options = ['box_100.osh', 'box_100_vtk']
+ description = 'testing mesh to vtu conversion'
+ self.run_test(exe, options, purpose=description)