git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6204 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2011-05-21 00:30:37 +00:00
parent 66c5a33eff
commit c6e661ddba
12 changed files with 58 additions and 57 deletions

View File

@ -1,7 +1,4 @@
# Install/unInstall package files in LAMMPS
# for unInstall, also unInstall/Install GPU package if installed
# so it will remove GPU files that depend on ASPHERE files,
# then replace others
if (test $1 = 1) then
@ -25,10 +22,6 @@ if (test $1 = 1) then
cp pair_gayberne.h ..
cp pair_resquared.h ..
if (test -e ../pair_lj_cut_gpu.h) then
cd ../GPU; /bin/sh Install.sh 1
fi
elif (test $1 = 0) then
rm ../compute_erotate_asphere.cpp
@ -51,8 +44,4 @@ elif (test $1 = 0) then
rm ../pair_gayberne.h
rm ../pair_resquared.h
if (test -e ../pair_gayberne_gpu.h) then
cd ../GPU; /bin/sh Install.sh 0; /bin/sh Install.sh 1
fi
fi

30
src/Depend.sh Normal file
View File

@ -0,0 +1,30 @@
# Depend.sh = Install/unInstall dependent package files
# only Install/unInstall if dependent package is already installed
# install dependent child files when new parent files installed
# uninstall dependent child files when parent files uninstalled
if (test $1 = 1) then
if (test -e pair_lj_cut_opt.h) then
cd OPT; /bin/sh Install.sh 1; cd ..
fi
if (test -e pair_lj_cut_gpu.h) then
cd GPU; /bin/sh Install.sh 1; cd ..
fi
if (test -e pair_lj_cut_cuda.h) then
cd USER-CUDA; /bin/sh Install.sh 1; cd ..
fi
elif (test $1 = 0) then
if (test -e pair_lj_cut_opt.h) then
cd OPT; /bin/sh Install.sh 0; /bin/sh Install.sh 1; cd ..
fi
if (test -e pair_lj_cut_gpu.h) then
cd GPU; /bin/sh Install.sh 0; /bin/sh Install.sh 1; cd ..
fi
if (test -e pair_lj_cut_cuda.h) then
cd USER-CUDA; /bin/sh Install.sh 0; /bin/sh Install.sh 1; cd ..
fi
fi

View File

@ -1,7 +1,6 @@
# Install/unInstall package files in LAMMPS
# edit Makefile.package to include/exclude GPU library
# do not copy gayberne files if non-GPU version does not exist
# do not copy charmm files if non-GPU version does not exist
# edit Makefile.package to include/exclude GPU info
# do not install child files if parent does not exist
if (test $1 = 1) then
@ -15,15 +14,6 @@ if (test $1 = 1) then
sed -i -e 's|^PKG_SYSPATH =[ \t]*|&$(gpu_SYSPATH) |' ../Makefile.package
fi
if (test -e ../pppm.cpp) then
cp pppm_gpu.cpp ..
cp pppm_gpu_single.cpp ..
cp pppm_gpu_double.cpp ..
cp pppm_gpu.h ..
cp pppm_gpu_single.h ..
cp pppm_gpu_double.h ..
fi
if (test -e ../pair_gayberne.cpp) then
cp pair_gayberne_gpu.cpp ..
cp pair_gayberne_gpu.h ..
@ -49,6 +39,15 @@ if (test $1 = 1) then
cp pair_cg_cmm_coul_long_gpu.h ..
fi
if (test -e ../pppm.cpp) then
cp pppm_gpu.cpp ..
cp pppm_gpu_single.cpp ..
cp pppm_gpu_double.cpp ..
cp pppm_gpu.h ..
cp pppm_gpu_single.h ..
cp pppm_gpu_double.h ..
fi
cp pair_lj_cut_gpu.cpp ..
cp pair_morse_gpu.cpp ..
cp pair_lj96_cut_gpu.cpp ..

View File

@ -1,7 +1,4 @@
# Install/unInstall package files in LAMMPS
# for unInstall, also unInstall/Install OPT package if installed
# so it will remove OPT files that depend on KSPACE files,
# then replace others
if (test $1 = 1) then
@ -63,8 +60,4 @@ elif (test $1 = 0) then
rm ../remap.h
rm ../remap_wrap.h
if (test -e ../pair_lj_charmm_coul_long_opt.h) then
cd ../OPT; sh Install.sh 0; sh Install.sh 1
fi
fi

View File

@ -1,7 +1,4 @@
# Install/unInstall package files in LAMMPS
# for unInstall, also unInstall/Install OPT package if installed
# so it will remove OPT files that depend on MANYBODY files,
# then replace others
if (test $1 = 1) then
@ -27,10 +24,6 @@ if (test $1 = 1) then
cp pair_tersoff.h ..
cp pair_tersoff_zbl.h ..
if (test -e ../pair_lj_cut_opt.h) then
cd ../OPT; sh Install.sh 1
fi
elif (test $1 = 0) then
rm ../fix_qeq_comb.cpp
@ -55,8 +48,4 @@ elif (test $1 = 0) then
rm ../pair_tersoff.h
rm ../pair_tersoff_zbl.h
if (test -e ../pair_eam_opt.h) then
cd ../OPT; sh Install.sh 0; sh Install.sh 1
fi
fi

View File

@ -1,5 +1,5 @@
# Install/unInstall package files in LAMMPS
# edit Makefile.package to include/exclude MEAM library
# edit Makefile.package to include/exclude MEAM info
if (test $1 = 1) then

View File

@ -149,7 +149,7 @@ yes-%:
echo "Package $(@:yes-%=%) does not exist"; \
else \
echo "Installing package $(@:yes-%=%)"; \
cd $(YESDIR); $(SHELL) Install.sh 1; \
cd $(YESDIR); $(SHELL) Install.sh 1; cd ..; $(SHELL) Depend.sh 1; \
fi;
no-%:
@ -157,7 +157,7 @@ no-%:
echo "Package $(@:no-%=%) does not exist"; \
else \
echo "Uninstalling package $(@:no-%=%), ignore errors"; \
cd $(NODIR); $(SHELL) Install.sh 0; cd ..; \
cd $(NODIR); $(SHELL) Install.sh 0; cd ..; $(SHELL) Depend.sh 0; \
fi;
# status = list differences between src and package files

View File

@ -1,5 +1,5 @@
# Install/unInstall package files in LAMMPS
# do not copy eam and charmm files if non-OPT versions do not exist
# do not install child files if parent does not exist
if (test $1 = 1) then

View File

@ -1,5 +1,5 @@
# Install/unInstall package files in LAMMPS
# edit Makefile.package to include/exclude POEMS library
# edit Makefile.package to include/exclude POEMS info
if (test $1 = 1) then

View File

@ -1,5 +1,5 @@
# Install/unInstall package files in LAMMPS
# edit Makefile.package to include/exclude REAX library
# edit Makefile.package to include/exclude REAX info
if (test $1 = 1) then

View File

@ -1,5 +1,5 @@
# Install/unInstall package files in LAMMPS
# edit Makefile.package to include/exclude ATC library
# edit Makefile.package to include/exclude ATC info
if (test $1 = 1) then

View File

@ -1,4 +1,5 @@
# Install/unInstall package files in LAMMPS
# do not install child files if parent does not exist
if (test $1 = 1) then
@ -7,6 +8,11 @@ if (test $1 = 1) then
cp angle_cg_cmm.cpp ..
fi
if (test -e ../pppm.cpp) then
cp pair_cg_cmm_coul_long.cpp ..
cp pair_cg_cmm_coul_long.h ..
fi
cp cg_cmm_parms.h ..
cp cg_cmm_parms.cpp ..
@ -17,15 +23,10 @@ if (test $1 = 1) then
cp pair_cg_cmm_coul_cut.cpp ..
cp pair_cg_cmm_coul_cut.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 -f ../angle_cg_cmm.h
rm -f ../angle_cg_cmm.cpp
rm ../angle_cg_cmm.h
rm ../angle_cg_cmm.cpp
rm ../cg_cmm_parms.h
rm ../cg_cmm_parms.cpp
@ -37,7 +38,7 @@ elif (test $1 = 0) then
rm ../pair_cg_cmm_coul_cut.cpp
rm ../pair_cg_cmm_coul_cut.h
rm -f ../pair_cg_cmm_coul_long.cpp
rm -f ../pair_cg_cmm_coul_long.h
rm ../pair_cg_cmm_coul_long.cpp
rm ../pair_cg_cmm_coul_long.h
fi