the MESONT package depends on the MOLECULE package since the last upgrade
This commit is contained in:
@ -387,6 +387,7 @@ pkg_depends(CG-DNA MOLECULE)
|
||||
pkg_depends(CG-DNA ASPHERE)
|
||||
pkg_depends(ELECTRODE KSPACE)
|
||||
pkg_depends(EXTRA-MOLECULE MOLECULE)
|
||||
pkg_depends(MESONT MOLECULE)
|
||||
|
||||
# detect if we may enable OpenMP support by default
|
||||
set(BUILD_OMP_DEFAULT OFF)
|
||||
|
||||
@ -150,6 +150,7 @@ if (test $1 = "MOLECULE") then
|
||||
depend GPU
|
||||
depend KOKKOS
|
||||
depend FEP
|
||||
depend MESONT
|
||||
depend OPENMP
|
||||
depend INTEL
|
||||
fi
|
||||
|
||||
40
src/MESONT/Install.sh
Executable file
40
src/MESONT/Install.sh
Executable file
@ -0,0 +1,40 @@
|
||||
# Install/unInstall package files in LAMMPS
|
||||
# mode = 0/1/2 for uninstall/install/update
|
||||
|
||||
mode=$1
|
||||
|
||||
# enforce using portable C locale
|
||||
LC_ALL=C
|
||||
export LC_ALL
|
||||
|
||||
# arg1 = file, arg2 = file it depends on
|
||||
|
||||
action () {
|
||||
if (test $mode = 0) then
|
||||
rm -f ../$1
|
||||
elif (! cmp -s $1 ../$1) then
|
||||
if (test -z "$2" || test -e ../$2) then
|
||||
cp $1 ..
|
||||
if (test $mode = 2) then
|
||||
echo " updating src/$1"
|
||||
fi
|
||||
fi
|
||||
elif (test -n "$2") then
|
||||
if (test ! -e ../$2) then
|
||||
rm -f ../$1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# some styles in MESONT have base classes in MOLECULE
|
||||
|
||||
if (test $1 = 1) then
|
||||
if (test ! -e ../bond_harmonic.cpp) then
|
||||
echo "Must install MOLECULE package with MESONT"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
for file in *.cpp *.h; do
|
||||
action ${file}
|
||||
done
|
||||
Reference in New Issue
Block a user