Skip to content

Commit

Permalink
Merge pull request brucefan1983#691 from zhyan0603/zhyan0603-GPUMD
Browse files Browse the repository at this point in the history
add NSW check for AIMD simulations
  • Loading branch information
brucefan1983 authored Aug 14, 2024
2 parents 977e94a + 1b99ef9 commit 0120a18
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/vasp2xyz/outcar2xyz/multipleFrames-outcars2nep-exyz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,16 @@ converged_files=()
non_converged_files=()

for file in $(find "$read_dire" -name "OUTCAR"); do
NSW=$(grep "number of steps for IOM" "$file" | awk '{print $3}')

if [ "$NSW" -ne 0 ]; then
converged_files+=("$file")
continue
fi

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
if [ "$actual_steps" -lt "$NELM" ]; then
converged_files+=("$file")
Expand Down

0 comments on commit 0120a18

Please sign in to comment.