Skip to content

Commit

Permalink
Merge pull request brucefan1983#680 from zhyan0603/zhyan0603-GPUMD
Browse files Browse the repository at this point in the history
update convergence check
  • Loading branch information
Yanzhou-Wang authored Jul 31, 2024
2 parents eafed60 + 9b6dc6e commit 350734b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/vasp2xyz/outcar2xyz/multipleFrames-outcars2nep-exyz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,14 @@ converged_files=()
non_converged_files=()

for file in $(find "$read_dire" -name "OUTCAR"); do
NELM=$(grep "NELM" "$file" | awk '{print $3}' | tr -d ';')
actual_steps=$(grep -c "Iteration" "$file")
if grep -q "aborting loop because EDIFF is reached" "$file"; then
converged_files+=("$file")
if [ "$actual_steps" -lt "$NELM" ]; then
converged_files+=("$file")
else
non_converged_files+=("$file")
fi
else
non_converged_files+=("$file")
fi
Expand Down

0 comments on commit 350734b

Please sign in to comment.