make location of potential/forcefield files depend on the RPM variables

This commit is contained in:
Axel Kohlmeyer
2013-07-07 15:04:36 +02:00
parent d8023fecd5
commit c1db4de795
2 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,3 @@
# set environment for LAMMPS executables to find potential files
if ( "$?LAMMPS_POTENTIALS" == 0 ) setenv LAMMPS_POTENTIALS /usr/share/lammps/potentials
if ( "$?BIOSYM_LIBRARY" == 0 ) setenv BIOSYM_LIBRARY /usr/share/lammps/biosym_frc_files
if ( "$?LAMMPS_POTENTIALS" == 0 ) setenv LAMMPS_POTENTIALS @DATADIR@/potentials
if ( "$?BIOSYM_LIBRARY" == 0 ) setenv BIOSYM_LIBRARY @DATADIR@/biosym_frc_files

View File

@ -1,3 +1,3 @@
# set environment for LAMMPS executables to find potential files
export LAMMPS_POTENTIALS=${LAMMPS_POTENTIALS-/usr/share/lammps/potentials}
export BIOSYM_LIBRARY=${BIOSYM_LIBRARY-/usr/share/lammps/biosym_frc_files}
export LAMMPS_POTENTIALS=${LAMMPS_POTENTIALS-@DATADIR@/potentials}
export BIOSYM_LIBRARY=${BIOSYM_LIBRARY-@DATADIR@/biosym_frc_files}