dockonsurf / modules / launch_cp2k_molecule_seule.sh @ 86112fec
Historique | Voir | Annoter | Télécharger (1,18 ko)
1 |
#!/bin/bash |
---|---|
2 |
|
3 |
molecule=$1 |
4 |
|
5 |
n="$(find ${Molecule_results_path}/${molecule}_confs/xyz_files/${molecule}*.xyz | wc -l)" |
6 |
|
7 |
if [ ! -d "${Molecule_results_path}/${molecule}" ] |
8 |
then mkdir ${Molecule_results_path}/${molecule} |
9 |
else |
10 |
print 'problem there is already a directory for this molecule' |
11 |
exit |
12 |
fi |
13 |
|
14 |
mkdir ${Molecule_results_path}/${molecule}/${molecule}_1 |
15 |
cd ${Molecule_results_path}/${molecule}/${molecule}_1 |
16 |
sed "/PROJECT_NAME/c\PROJECT_NAME ${molecule}" ${CP2K_input_molecule} > ${Molecule_results_path}/${molecule}/${molecule}_1/${molecule}.inp |
17 |
sed "s/XXXX/${molecule}/g" ${CP2K_sub} > ${Molecule_results_path}/${molecule}/${molecule}_1/cp2k_gamma.j |
18 |
cp ${Molecule_results_path}/${molecule}_confs/xyz_files/${molecule}_1.xyz ${Molecule_results_path}/${molecule}/${molecule}_1/coord.xyz |
19 |
qsub cp2k_gamma.j |
20 |
|
21 |
for ((i=2; i<=n; i++)) ; do |
22 |
mkdir ${Molecule_results_path}/${molecule}/${molecule}_$i |
23 |
cd ${Molecule_results_path}/${molecule}/${molecule}_$i |
24 |
ln ${Molecule_results_path}/${molecule}/${molecule}_1/cp2k_gamma.j . |
25 |
ln ${Molecule_results_path}/${molecule}/${molecule}_1/${molecule}.inp . |
26 |
cp ${Molecule_results_path}/${molecule}_confs/xyz_files/${molecule}_${i}.xyz coord.xyz |
27 |
qsub cp2k_gamma.j |
28 |
done |
29 |
|
30 |
|
31 |
|