Skip to content

Commit cb6e5c8

Browse files
authored
CI: test validation2 dataset at fortran_mpi's CI (#127)
the only different between validation and validation2 dataset is it sets the value of the read variable `epscg` (located at `testsuite/validation/input/pot3d.dat`'s namelist in validation dataset is `1e-12`, while in validation2 dataset it is `1e-8`
1 parent 5965138 commit cb6e5c8

File tree

7 files changed

+479
-1
lines changed

7 files changed

+479
-1
lines changed

tests/pot3d/build_and_run_gfortran.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ cp pot3d ../bin/
1717

1818
cd ..
1919
./validate.sh
20+
./validate.sh validation2

tests/pot3d/build_and_run_lfortran.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ cp pot3d ../bin/
1717

1818
cd ..
1919
./validate.sh
20+
./validate.sh validation2
Binary file not shown.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
&topology
2+
nr=63
3+
nt=91
4+
np=225
5+
/
6+
&inputvars
7+
ifprec=1
8+
option='ss'
9+
r1=2.5
10+
rfrac=0.0,1.0
11+
drratio=2.5
12+
nfrmesh=0
13+
tfrac=0.00
14+
dtratio=1.0
15+
nftmesh=0
16+
pfrac=0.00
17+
dpratio=1.0
18+
nfpmesh=0
19+
phishift=0.
20+
br0file='br_input_tiny_bin.bin'
21+
phifile=''
22+
brfile=''
23+
btfile=''
24+
bpfile=''
25+
br_photo_file=''
26+
ncghist=10
27+
ncgmax=10000000
28+
epscg=1.e-8
29+
idebug=0
30+
/

tests/pot3d/testsuite/validation2/run/.gitkeep

Whitespace-only changes.

tests/pot3d/testsuite/validation2/validation/pot3d.out

Lines changed: 445 additions & 0 deletions
Large diffs are not rendered by default.

tests/pot3d/validate.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
set -ex
22

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

78
cp ${POT3D_HOME}/testsuite/${TEST}/input/* ${POT3D_HOME}/testsuite/${TEST}/run/

0 commit comments

Comments
 (0)