Révision f43a1b4c global_script.sh
b/global_script.sh | ||
---|---|---|
1 | 1 |
#!/bin/bash |
2 | 2 |
|
3 | 3 |
user="$(pwd | awk -F"/" '{print $3}')" |
4 |
|
|
5 |
file_path="$(find /home/${user} -name "DockOnSurf_path")"
|
|
4 |
file_path="$(find $HOME -name "DockOnSurf_path")" |
|
5 |
echo $file_path
|
|
6 | 6 |
|
7 | 7 |
### Mise en place de l'arborescence |
8 | 8 |
|
... | ... | |
51 | 51 |
|
52 | 52 |
${DockOnSurf_path}/modules/launch_cp2k_molecule_seule.sh $molecule |
53 | 53 |
|
54 |
### Attente jusqu'à ce que tous les calculs aient fini |
|
55 |
|
|
56 |
mol="$(echo $molecule | cut -c1-10)" |
|
57 |
while [ "$(qstat | grep $mol | wc -l)" != 0 ]; |
|
58 |
do |
|
59 |
sleep 30 |
|
60 |
done |
|
61 |
|
|
62 | 54 |
echo ' -- ALL CALCULATIONS FOR MOLECULE ALONE HAVE BEEN DONE --' |
63 | 55 |
|
64 | 56 |
### Suppression des fichiers inutiles |
... | ... | |
116 | 108 |
|
117 | 109 |
${DockOnSurf_path}/modules/launch_script+diss.sh $molecule |
118 | 110 |
|
119 |
### Attente jusqu'à ce que tous les calculs aient fini |
|
120 |
|
|
121 |
mol2="$(echo $molecule | cut -c1-5)" |
|
122 |
while [ "$(qstat | grep surf_${mol2} | wc -l)" != 0 ]; |
|
123 |
do |
|
124 |
sleep 30 |
|
125 |
done |
|
126 |
|
|
127 | 111 |
echo ' -- ALL CALCULATIONS FOR ADSORPTION STRUCTURES HAVE BEEN DONE --' |
128 | 112 |
|
129 | 113 |
### Suppression des fichiers inutiles |
... | ... | |
139 | 123 |
|
140 | 124 |
${DockOnSurf_path}/modules/script_grandes_molecules+diss.sh $molecule $num_center ${nb_at_surf} ${cutoff} |
141 | 125 |
|
142 |
echo ' -- CLUSTERING HAS BEEN DONE AND CLUSTER CENTERS CALCULATIONS HAVE BEEN LAUNCHED --' |
|
143 |
|
|
144 |
### Attente jusqu'à ce que tous les calculs aient fini |
|
145 |
|
|
146 |
while [ "$(qstat | grep surf_${mol2} | wc -l)" != 0 ]; |
|
147 |
do |
|
148 |
sleep 30 |
|
149 |
done |
|
150 |
|
|
151 | 126 |
echo ' -- ALL CLUSTER CENTERS CALCULATIONS HAVE BEEN DONE --' |
152 | 127 |
|
153 | 128 |
|
Formats disponibles : Unified diff