make dependency of CG-DNA on ASPHERE and MOLECULE a hard dependency

This commit is contained in:
Axel Kohlmeyer
2021-07-15 15:42:50 -04:00
parent d024dc0e09
commit d97ea4ebf6
3 changed files with 24 additions and 2 deletions

View File

@ -305,6 +305,8 @@ pkg_depends(LATBOLTZ MPI)
pkg_depends(PHONON KSPACE)
pkg_depends(SCAFACOS MPI)
pkg_depends(DIELECTRIC KSPACE)
pkg_depends(CG-DNA MOLECULE)
pkg_depends(CG-DNA ASPHERE)
# detect if we may enable OpenMP support by default
set(BUILD_OMP_DEFAULT OFF)

View File

@ -311,6 +311,11 @@ rigid-body integrators with improved stability.
**Author:** Oliver Henrich (University of Strathclyde, Glasgow).
**Install:**
The CG-DNA package requires that also the `MOLECULE <PKG-MOLECULE>`_ and
`ASPHERE <PKG-ASPHERE>`_ packages are installed.
**Supporting info:**
* src/CG-DNA: filenames -> commands

View File

@ -26,10 +26,25 @@ action () {
fi
}
# the CG-DNA package cannot be used without
# the MOLECULE and ASPHERE packages installed.
if (test $1 = 1) then
if (test ! -e ../bond_harmonic.cpp) then
echo "Must install MOLECULE package with CG-DNA"
exit 1
fi
if (test ! -e ../fix_nve_asphere.cpp) then
echo "Must install ASPHERE package with CG-DNA"
exit 1
fi
fi
# list of files with dependcies
action atom_vec_oxdna.cpp atom_vec.h
action atom_vec_oxdna.h atom_vec.h
action atom_vec_oxdna.cpp
action atom_vec_oxdna.h
action bond_oxdna_fene.cpp bond_fene.h
action bond_oxdna2_fene.cpp bond_fene.h
action bond_oxrna2_fene.cpp bond_fene.h