Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F113708382
Depend.sh
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, May 20, 13:43
Size
2 KB
Mime Type
text/plain
Expires
Thu, May 22, 13:43 (1 d, 14 h)
Engine
blob
Format
Raw Data
Handle
26302343
Attached To
rLAMMPS lammps
Depend.sh
View Options
# Depend.sh = Install/unInstall files due to package dependencies
# this script is invoked after any package is installed/uninstalled
# enforce using portable C locale
LC_ALL=C
export LC_ALL
# all parent/child package dependencies should be listed below
# parent package = has files that files in another package derive from
# child package = has files that derive from files in another package
# update child packages that depend on the parent,
# but only if the child package is already installed
# this is necessary to insure the child package installs
# only child files whose parent package files are now installed
# decisions on (un)installing individual child files are made by
# the Install.sh script in the child package
# depend function: arg = child-package
# checks if child-package is installed, if not just return
# otherwise invoke update of child package via its Install.sh
depend () {
cd $1
installed=0
for file in *.cpp *.h; do
if (test -e ../$file) then
installed=1
fi
done
cd ..
if (test $installed = 0) then
return
fi
echo " updating package $1"
if (test -e $1/Install.sh) then
cd $1; /bin/sh Install.sh 2; cd ..
else
cd $1; /bin/sh ../Install.sh 2; cd ..
fi
}
# add one if statement per parent package
# add one depend() call per child package that depends on that parent
if (test $1 = "ASPHERE") then
depend GPU
depend USER-OMP
depend USER-INTEL
fi
if (test $1 = "CLASS2") then
depend GPU
depend USER-OMP
fi
if (test $1 = "COLLOID") then
depend GPU
depend USER-OMP
fi
if (test $1 = "DIPOLE") then
depend USER-MISC
depend USER-OMP
fi
if (test $1 = "GRANULAR") then
depend USER-OMP
fi
if (test $1 = "KSPACE") then
depend CORESHELL
depend GPU
depend KOKKOS
depend OPT
depend USER-OMP
depend USER-INTEL
depend USER-PHONON
depend USER-FEP
fi
if (test $1 = "MANYBODY") then
depend GPU
depend KOKKOS
depend OPT
depend USER-MISC
depend USER-OMP
fi
if (test $1 = "MOLECULE") then
depend GPU
depend KOKKOS
depend USER-MISC
depend USER-OMP
depend USER-FEP
depend USER-INTEL
fi
if (test $1 = "PERI") then
depend USER-OMP
fi
if (test $1 = "RIGID") then
depend USER-OMP
fi
if (test $1 = "USER-CG-CMM") then
depend GPU
depend KOKKOS
depend USER-OMP
fi
if (test $1 = "USER-FEP") then
depend USER-OMP
fi
if (test $1 = "USER-MISC") then
depend GPU
depend USER-OMP
fi
if (test $1 = "USER-REAXC") then
depend KOKKOS
fi
Event Timeline
Log In to Comment