From 9414b11490d95a36b14fab6c08c0e7cdb8b6bc87 Mon Sep 17 00:00:00 2001 From: Mark Abraham Date: Sun, 7 Feb 2021 13:29:53 +0100 Subject: [PATCH] Clarify GROMACS relaxed double option (#21510) * Clarify relaxed double precision option This is only intended for use on the Fujitsu PRIMEHPC platform * Fix typo * Shorten line to keep linter happy --- var/spack/repos/builtin/packages/gromacs/package.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/var/spack/repos/builtin/packages/gromacs/package.py b/var/spack/repos/builtin/packages/gromacs/package.py index 68ef10c330..cf8aaa013c 100644 --- a/var/spack/repos/builtin/packages/gromacs/package.py +++ b/var/spack/repos/builtin/packages/gromacs/package.py @@ -73,8 +73,8 @@ class Gromacs(CMakePackage): ' of libgromacs and/or the mdrun program') variant('openmp', default=True, description='Enables OpenMP at configure time') - variant('double_precision', default=False, - description='GMX_RELAXED_DOUBLE_PRECISION for Fujitsu PRIMEHPC') + variant('relaxed_double_precision', default=False, + description='GMX_RELAXED_DOUBLE_PRECISION, use only for Fujitsu PRIMEHPC') variant('hwloc', default=True, description='Use the hwloc portable hardware locality library') variant('lapack', default=False, @@ -251,7 +251,7 @@ def cmake_args(self): else: options.append('-DGMX_OPENMP:BOOL=ON') - if '+double_precision' in self.spec: + if '+relaxed_double_precision' in self.spec: options.append('-DGMX_RELAXED_DOUBLE_PRECISION:BOOL=ON') else: options.append('-DGMX_RELAXED_DOUBLE_PRECISION:BOOL=OFF')