Skip to content

Commit

Permalink
Unzip OUTCAR.gz if present (and warn), for checking relaxation outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
kavanase committed Aug 23, 2024
1 parent 9d223a3 commit 361fc63
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shakenbreak/SnB_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ SnB_run_loop() {
if [[ "$i" == *"_High_Energy"* ]]; then
continue
fi
if [ -f "${i}"/OUTCAR.gz ]; then
echo "Unzipping OUTCAR for ${i%/}, needed for checking relaxation"
gzip -d "${i}"/OUTCAR.gz
fi
if [ ! -f "${i}"/OUTCAR ] || { ! grep -q "required accuracy" "${i}"/OUTCAR && ! grep -q "considering this converged" "${i}"/OUTCAR; }; then # check calculation not converged
builtin cd "$i" || return
if [ ! -f "${job_filepath}" ] && [ ! "$job_in_cwd" = false ]; then
Expand Down

0 comments on commit 361fc63

Please sign in to comment.