diff --git a/src/ASPHERE/Install.sh b/src/ASPHERE/Install.sh index 041ddc78a..bc25e4f03 100644 --- a/src/ASPHERE/Install.sh +++ b/src/ASPHERE/Install.sh @@ -1,58 +1,62 @@ # 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 cp atom_vec_ellipsoid.cpp .. cp compute_erotate_asphere.cpp .. cp compute_temp_asphere.cpp .. cp fix_nh_asphere.cpp .. cp fix_nph_asphere.cpp .. cp fix_npt_asphere.cpp .. cp fix_nve_asphere.cpp .. cp fix_nvt_asphere.cpp .. cp pair_gayberne.cpp .. cp pair_resquared.cpp .. cp atom_vec_ellipsoid.h .. cp compute_erotate_asphere.h .. cp compute_temp_asphere.h .. cp fix_nh_asphere.h .. cp fix_nph_asphere.h .. cp fix_npt_asphere.h .. cp fix_nve_asphere.h .. cp fix_nvt_asphere.h .. 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 ../atom_vec_ellipsoid.cpp rm ../compute_erotate_asphere.cpp rm ../compute_temp_asphere.cpp rm ../fix_nh_asphere.cpp rm ../fix_nph_asphere.cpp rm ../fix_npt_asphere.cpp rm ../fix_nve_asphere.cpp rm ../fix_nvt_asphere.cpp rm ../pair_gayberne.cpp rm ../pair_resquared.cpp rm ../atom_vec_ellipsoid.h rm ../compute_erotate_asphere.h rm ../compute_temp_asphere.h rm ../fix_nh_asphere.h rm ../fix_nph_asphere.h rm ../fix_npt_asphere.h rm ../fix_nve_asphere.h rm ../fix_nvt_asphere.h rm ../pair_gayberne.h rm ../pair_resquared.h if (test -e ../pair_gayberne_gpu.h) then - cd ../GPU; sh Install.sh 0; sh Install.sh 1 + cd ../GPU; /bin/sh Install.sh 0; /bin/sh Install.sh 1 fi fi diff --git a/src/MANYBODY/Install.sh b/src/MANYBODY/Install.sh index 0aadb7403..802258615 100644 --- a/src/MANYBODY/Install.sh +++ b/src/MANYBODY/Install.sh @@ -1,46 +1,50 @@ # 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 cp pair_airebo.cpp .. cp pair_eam.cpp .. cp pair_eam_alloy.cpp .. cp pair_eam_fs.cpp .. cp pair_sw.cpp .. cp pair_tersoff.cpp .. cp pair_tersoff_zbl.cpp .. cp pair_airebo.h .. cp pair_eam.h .. cp pair_eam_alloy.h .. cp pair_eam_fs.h .. cp pair_sw.h .. 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 ../pair_airebo.cpp rm ../pair_eam.cpp rm ../pair_eam_alloy.cpp rm ../pair_eam_fs.cpp rm ../pair_sw.cpp rm ../pair_tersoff.cpp rm ../pair_tersoff_zbl.cpp rm ../pair_airebo.h rm ../pair_eam.h rm ../pair_eam_alloy.h rm ../pair_eam_fs.h rm ../pair_sw.h 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