Skip to content

Commit

Permalink
change the Autotest.sh with the case of 104_PW_NC_magnetic to run wit…
Browse files Browse the repository at this point in the history
…h OMP_NUM_THREADS=1, to get Stable value.
  • Loading branch information
Zhuxuegang2022 committed Jan 9, 2024
1 parent fa03cac commit 025ecde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/integrate/104_PW_NC_magnetic/result.ref
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
etotref -5866.197119619808
etotperatomref -2933.0985598099
etotref -5866.197297574256
etotperatomref -2933.0986487871
pointgroupref O_h
spacegroupref O_h
nksibzref 1
totaltimeref 3.84
totaltimeref 4.97
3 changes: 2 additions & 1 deletion tests/integrate/Autotest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ check_out(){
calculation=`grep calculation INPUT | awk '{print $2}' | sed s/[[:space:]]//g`
running_path=`echo "OUT.autotest/running_$calculation"".log"`
cat $running_path
'\n'
fi
if [ $(echo "sqrt($deviation*$deviation) < $fatal_threshold"|bc) = 0 ]; then
let fatal++
Expand Down Expand Up @@ -201,6 +200,8 @@ for dir in $testdir; do
time {
if [ "$case" = "282_NO_RPA" -o "$dir" = "102_PW_BPCG" ]; then
mpirun -np 1 $abacus > log.txt
elif [ "$case" = "104_PW_NC_magnetic" ]; then
OMP_NUM_THREADS=1 mpirun -np $np $abacus > log.txt
else
mpirun -np $np $abacus > log.txt
fi
Expand Down

0 comments on commit 025ecde

Please sign in to comment.