Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/pot3d/build_and_run_gfortran.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ cp pot3d ../bin/

cd ..
./validate.sh
./validate.sh validation2
1 change: 1 addition & 0 deletions tests/pot3d/build_and_run_lfortran.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ cp pot3d ../bin/

cd ..
./validate.sh
./validate.sh validation2
Binary file not shown.
30 changes: 30 additions & 0 deletions tests/pot3d/testsuite/validation2/input/pot3d.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
&topology
nr=63
nt=91
np=225
/
&inputvars
ifprec=1
option='ss'
r1=2.5
rfrac=0.0,1.0
drratio=2.5
nfrmesh=0
tfrac=0.00
dtratio=1.0
nftmesh=0
pfrac=0.00
dpratio=1.0
nfpmesh=0
phishift=0.
br0file='br_input_tiny_bin.bin'
phifile=''
brfile=''
btfile=''
bpfile=''
br_photo_file=''
ncghist=10
ncgmax=10000000
epscg=1.e-8
Copy link
Collaborator Author

@gxyd gxyd May 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only point of difference between validation testsuite (which has epscg=1.e-12) and validation2 introduced in this PR.

idebug=0
/
Empty file.
445 changes: 445 additions & 0 deletions tests/pot3d/testsuite/validation2/validation/pot3d.out

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion tests/pot3d/validate.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
set -ex

POT3D_HOME=$PWD
TEST="validation"
# we can provide first argument to decide which test case we want to run to validate.sh script
TEST="${1:-validation}"
MPIEXEC=${CONDA_PREFIX}/bin/mpiexec

cp ${POT3D_HOME}/testsuite/${TEST}/input/* ${POT3D_HOME}/testsuite/${TEST}/run/
Expand Down