mirror of
https://github.com/LCPQ/quantum_package
synced 2025-04-15 21:19:40 +02:00
Add scripts and .gitignore
This commit is contained in:
parent
89b0ff941a
commit
20e3488df7
@ -1,4 +1,6 @@
|
||||
quantum_package
|
||||
Quantum package
|
||||
===============
|
||||
|
||||
Set of quantum chemistry programs and libraries
|
||||
Set of quantum chemistry programs and libraries.
|
||||
|
||||
|
||||
|
14
scripts/prepare_module.sh
Executable file
14
scripts/prepare_module.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Checks if all the other module directories are properly linked in the
|
||||
# current directory. If not, the links are created.
|
||||
|
||||
for dir in $@
|
||||
do
|
||||
if [[ ! -h $dir ]] ;
|
||||
then
|
||||
ln -s ../$dir $dir
|
||||
fi
|
||||
done
|
||||
|
||||
|
39
scripts/save_current_mos.sh
Executable file
39
scripts/save_current_mos.sh
Executable file
@ -0,0 +1,39 @@
|
||||
#!/bin/bash
|
||||
|
||||
EZFIO=$1
|
||||
|
||||
if [[ -z ${EZFIO} ]]
|
||||
then
|
||||
echo "Error in $0"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ! -f ${EZFIO}/mo_basis/mo_label ]]
|
||||
then
|
||||
LABEL='no_label'
|
||||
else
|
||||
LABEL=$(head -1 ${EZFIO}/mo_basis/mo_label)
|
||||
fi
|
||||
|
||||
DESTINATION="save/mo_basis/${LABEL}"
|
||||
|
||||
cd ${EZFIO}
|
||||
|
||||
if [[ ! -d save/mo_basis ]]
|
||||
then
|
||||
mkdir -p save/mo_basis
|
||||
fi
|
||||
|
||||
BACKUP=${DESTINATION}.old
|
||||
if [[ -d ${BACKUP} ]]
|
||||
then
|
||||
rm -rf ${BACKUP}
|
||||
fi
|
||||
|
||||
if [[ -d ${DESTINATION} ]]
|
||||
then
|
||||
mv ${DESTINATION} ${BACKUP}
|
||||
fi
|
||||
|
||||
cp -r mo_basis ${DESTINATION}
|
||||
|
Loading…
x
Reference in New Issue
Block a user