From e21b4731a97fe79a34d80b52fa4ad089ad70ac74 Mon Sep 17 00:00:00 2001 From: Andrew W Elble Date: Thu, 14 May 2020 21:09:41 -0400 Subject: [PATCH] lammps: set LAMMPS_POTENTIALS in the runtime environment (#16643) so lammps can find the installed potential files --- var/spack/repos/builtin/packages/lammps/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/lammps/package.py b/var/spack/repos/builtin/packages/lammps/package.py index 5bf2986858..b578016311 100644 --- a/var/spack/repos/builtin/packages/lammps/package.py +++ b/var/spack/repos/builtin/packages/lammps/package.py @@ -182,3 +182,7 @@ def cmake_args(self): args.append('-DEXTERNAL_KOKKOS=ON') return args + + def setup_run_environment(self, env): + env.set('LAMMPS_POTENTIALS', + self.prefix.share.lammps.potentials)