forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5315 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
b22df84673
commit
0dad5a8551
|
@ -2,8 +2,10 @@
|
|||
|
||||
if (test $1 = 1) then
|
||||
|
||||
cp angle_cg_cmm.h ..
|
||||
cp angle_cg_cmm.cpp ..
|
||||
if (test -e ../angle_harmonic.cpp) then
|
||||
cp angle_cg_cmm.h ..
|
||||
cp angle_cg_cmm.cpp ..
|
||||
fi
|
||||
|
||||
cp cg_cmm_parms.h ..
|
||||
cp cg_cmm_parms.cpp ..
|
||||
|
@ -14,13 +16,16 @@ if (test $1 = 1) then
|
|||
cp pair_cg_cmm.h ..
|
||||
cp pair_cg_cmm_coul_cut.cpp ..
|
||||
cp pair_cg_cmm_coul_cut.h ..
|
||||
cp pair_cg_cmm_coul_long.cpp ..
|
||||
cp pair_cg_cmm_coul_long.h ..
|
||||
|
||||
if (test -e ../pppm.cpp) then
|
||||
cp pair_cg_cmm_coul_long.cpp ..
|
||||
cp pair_cg_cmm_coul_long.h ..
|
||||
fi
|
||||
|
||||
elif (test $1 = 0) then
|
||||
|
||||
rm ../angle_cg_cmm.h
|
||||
rm ../angle_cg_cmm.cpp
|
||||
rm -f ../angle_cg_cmm.h
|
||||
rm -f ../angle_cg_cmm.cpp
|
||||
|
||||
rm ../cg_cmm_parms.h
|
||||
rm ../cg_cmm_parms.cpp
|
||||
|
@ -31,7 +36,8 @@ elif (test $1 = 0) then
|
|||
rm ../pair_cg_cmm.h
|
||||
rm ../pair_cg_cmm_coul_cut.cpp
|
||||
rm ../pair_cg_cmm_coul_cut.h
|
||||
rm ../pair_cg_cmm_coul_long.cpp
|
||||
rm ../pair_cg_cmm_coul_long.h
|
||||
|
||||
rm -f ../pair_cg_cmm_coul_long.cpp
|
||||
rm -f ../pair_cg_cmm_coul_long.h
|
||||
|
||||
fi
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
# Update package files in LAMMPS
|
||||
# cp package file to src if doesn't exist or is different
|
||||
# do not copy molecular and kspace files if corresponding versions do not exist
|
||||
|
||||
for file in *.cpp *.h; do
|
||||
if (test $file = angle_cg_cmm.cpp -a ! -e ../pair_angle_harmonic.cpp) then
|
||||
continue
|
||||
fi
|
||||
if (test $file = angle_cg_cmm.h -a ! -e ../pair_angle_harmonic.h) then
|
||||
continue
|
||||
fi
|
||||
if (test $file = pair_cg_cmm_coul_long.cpp -a ! -e ../pair_lj_cut_coul_long.cpp) then
|
||||
continue
|
||||
fi
|
||||
if (test $file = pair_cg_cmm_coul_long.h -a ! -e ../pair_lj_cut_coul_long.h) then
|
||||
continue
|
||||
fi
|
||||
|
||||
if (test ! -e ../$file) then
|
||||
echo " creating src/$file"
|
||||
cp $file ..
|
||||
elif (test "`diff --brief $file ../$file`" != "") then
|
||||
echo " updating src/$file"
|
||||
cp $file ..
|
||||
fi
|
||||
done
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
/* ----------------------------------------------------------------------
|
||||
Common parameters for the CMM coarse grained MD potentials.
|
||||
Contributing author: Axel Kohlmeyer <akohlmey@cmm.chem.upenn.edu>
|
||||
Contributing author: Axel Kohlmeyer (Temple U) <akohlmey@gmail.com>
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
#ifndef LMP_CG_CMM_PARMS_H
|
||||
|
|
Loading…
Reference in New Issue