Skip to content

Commit

Permalink
Add support for restart regression tests (#410)
Browse files Browse the repository at this point in the history
* Add restart regression tests to cgyro

* Add restart spec files for the regression tests

---------

Co-authored-by: Igor Sfiligoi <[email protected]>
  • Loading branch information
sfiligoi and Igor Sfiligoi authored Oct 2, 2024
1 parent 7c8bc4d commit 1b5f3ee
Show file tree
Hide file tree
Showing 46 changed files with 748 additions and 1 deletion.
13 changes: 12 additions & 1 deletion cgyro/bin/cgyro
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ then
echo " -rs <case>"
echo " Run specified regression case."
echo
echo " -rt"
echo " Enable restart regression testing."
echo
echo " -reset"
echo " Reset regression data."
echo
Expand Down Expand Up @@ -104,6 +107,7 @@ MPINUMA=0
TEST_FLAG=0
GENERATE_FLAG=0
REGRESS_FLAG=0
REGRESS_RESTART=0
MTEST_FLAG=0
CLEAN=0
COMPRESS_FLAG=0
Expand Down Expand Up @@ -142,6 +146,8 @@ while [ $# -gt 0 ] ; do

-rs) REGRESS_FLAG=1 ; shift ; SCASE=$1 ;;

-rt) REGRESS_RESTART=1 ;;

-reset) RESET=1 ;;

-m) MTEST_FLAG=1 ;;
Expand Down Expand Up @@ -219,7 +225,12 @@ then
exit 1
fi
# NOMP=1 RESET=0
gacode_reg_do $NPROC $NOMP $RESET cgyro 1e-6 $SCASE
if [ $REGRESS_RESTART -eq 0 ]
then
gacode_reg_do $NPROC $NOMP $RESET cgyro 1e-6 $SCASE
else
gacode_reg_do_restart $NPROC $NOMP $RESET cgyro 1e-6 $SCASE
fi
exit 0
fi
#============================================================
Expand Down
8 changes: 8 additions & 0 deletions cgyro/tools/input/reg01/out.cgyro.prec.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
2.013013119164E+00
2.486568726776E+00
2.559561538001E+00
2.473776730333E+00
2.420263807834E+00
2.396080604402E+00
2.402558768716E+00
2.425182399755E+00
12 changes: 12 additions & 0 deletions cgyro/tools/input/reg01/out.cgyro.prec.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
2.013013119164E+00
2.486568726776E+00
2.559561538001E+00
2.473776730333E+00
2.420263807834E+00
2.396080604402E+00
2.402558768716E+00
2.425182399755E+00
2.454628140585E+00
2.483013963694E+00
2.505870980565E+00
2.521047993198E+00
8 changes: 8 additions & 0 deletions cgyro/tools/input/reg02/out.cgyro.prec.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
1.979346853662E+00
2.508012799496E+00
2.574077406326E+00
2.504034806000E+00
2.452071665652E+00
2.433113352374E+00
2.443397378591E+00
2.469445542057E+00
12 changes: 12 additions & 0 deletions cgyro/tools/input/reg02/out.cgyro.prec.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
1.979346853662E+00
2.508012799496E+00
2.574077406326E+00
2.504034806000E+00
2.452071665652E+00
2.433113352374E+00
2.443397378591E+00
2.469445542057E+00
2.500154168710E+00
2.527804972465E+00
2.548148846507E+00
2.559807893916E+00
8 changes: 8 additions & 0 deletions cgyro/tools/input/reg03/out.cgyro.prec.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
2.421669971683E+00
2.307245962457E+00
2.524153058625E+00
2.561615140337E+00
2.429605635528E+00
2.403103209457E+00
2.387877290711E+00
2.366290588048E+00
12 changes: 12 additions & 0 deletions cgyro/tools/input/reg03/out.cgyro.prec.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
2.421669971683E+00
2.307245962457E+00
2.524153058625E+00
2.561615140337E+00
2.429605635528E+00
2.403103209457E+00
2.387877290711E+00
2.366290588048E+00
2.362318747903E+00
2.362541441803E+00
2.362472161487E+00
2.364531625492E+00
8 changes: 8 additions & 0 deletions cgyro/tools/input/reg04/out.cgyro.prec.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
8.723019189894E-01
3.922565014553E+00
4.221614198458E+00
4.491679856946E+00
4.473821806778E+00
4.470422978528E+00
4.379870852232E+00
4.317550367044E+00
12 changes: 12 additions & 0 deletions cgyro/tools/input/reg04/out.cgyro.prec.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
8.723019189894E-01
3.922565014553E+00
4.221614198458E+00
4.491679856946E+00
4.473821806778E+00
4.470422978528E+00
4.379870852232E+00
4.317550367044E+00
4.277701338439E+00
4.245213280151E+00
4.222512341360E+00
4.207953623964E+00
8 changes: 8 additions & 0 deletions cgyro/tools/input/reg05/out.cgyro.prec.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
1.870402145742E-04
3.458409451344E-04
4.639347854870E-04
5.427862510043E-04
5.925446017430E-04
6.265709885667E-04
6.573655601493E-04
6.950033032386E-04
12 changes: 12 additions & 0 deletions cgyro/tools/input/reg05/out.cgyro.prec.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
1.870402145742E-04
3.458409451344E-04
4.639347854870E-04
5.427862510043E-04
5.925446017430E-04
6.265709885667E-04
6.573655601493E-04
6.950033032386E-04
7.477440506395E-04
8.225500588855E-04
9.259382570892E-04
1.064422742241E-03
8 changes: 8 additions & 0 deletions cgyro/tools/input/reg06/out.cgyro.prec.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
1.279651406955E-03
2.399311429728E-03
3.497741973365E-03
5.037420719768E-03
8.204438224472E-03
1.398363333973E-02
2.391820265253E-02
4.150226324676E-02
12 changes: 12 additions & 0 deletions cgyro/tools/input/reg06/out.cgyro.prec.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
1.279651406955E-03
2.399311429728E-03
3.497741973365E-03
5.037420719768E-03
8.204438224472E-03
1.398363333973E-02
2.391820265253E-02
4.150226324676E-02
7.402538034069E-02
1.442278751776E-01
2.933799857723E-01
6.059408567834E-01
8 changes: 8 additions & 0 deletions cgyro/tools/input/reg07/out.cgyro.prec.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
1.874828574249E-04
3.498799027781E-04
4.781834107938E-04
5.767228615583E-04
6.563167839234E-04
7.277945434430E-04
7.984600858466E-04
8.715835735689E-04
12 changes: 12 additions & 0 deletions cgyro/tools/input/reg07/out.cgyro.prec.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
1.874828574249E-04
3.498799027781E-04
4.781834107938E-04
5.767228615583E-04
6.563167839234E-04
7.277945434430E-04
7.984600858466E-04
8.715835735689E-04
9.474364432724E-04
1.023881431146E-03
1.097122731828E-03
1.160698794088E-03
8 changes: 8 additions & 0 deletions cgyro/tools/input/reg08/out.cgyro.prec.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
2.370589712493E+00
2.384271985470E+00
2.561022875987E+00
2.627239705581E+00
2.573511547085E+00
2.562847192966E+00
2.563369314914E+00
2.558757886050E+00
9 changes: 9 additions & 0 deletions cgyro/tools/input/reg08/out.cgyro.prec.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
2.370589712493E+00
2.384271985470E+00
2.561022875987E+00
2.627239705581E+00
2.573511547085E+00
2.562847192966E+00
2.563369314914E+00
2.558757886050E+00
2.557567320249E+00
8 changes: 8 additions & 0 deletions cgyro/tools/input/reg09/out.cgyro.prec.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
1.279823859110E-03
2.420361783525E-03
3.548259949601E-03
5.132832971564E-03
8.403746796842E-03
1.438153973583E-02
2.470204676818E-02
4.305302986243E-02
12 changes: 12 additions & 0 deletions cgyro/tools/input/reg09/out.cgyro.prec.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
1.279823859110E-03
2.420361783525E-03
3.548259949601E-03
5.132832971564E-03
8.403746796842E-03
1.438153973583E-02
2.470204676818E-02
4.305302986243E-02
7.717675763479E-02
1.513932781538E-01
3.092477818032E-01
6.410808829719E-01
8 changes: 8 additions & 0 deletions cgyro/tools/input/reg10/out.cgyro.prec.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
1.101502827565E+00
1.633603073065E+00
2.047170567269E+00
2.648606283857E+00
3.255350458294E+00
3.765533902115E+00
4.025664356559E+00
3.873436452363E+00
12 changes: 12 additions & 0 deletions cgyro/tools/input/reg10/out.cgyro.prec.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
1.101502827565E+00
1.633603073065E+00
2.047170567269E+00
2.648606283857E+00
3.255350458294E+00
3.765533902115E+00
4.025664356559E+00
3.873436452363E+00
3.318962359148E+00
2.911720396277E+00
2.777991128462E+00
2.620672104498E+00
16 changes: 16 additions & 0 deletions cgyro/tools/input/reg11/out.cgyro.prec.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
1.316064580013E+00
2.006581595910E+00
2.390519084792E+00
2.488440650372E+00
2.485484898183E+00
2.560143360494E+00
2.527940553213E+00
2.474071035919E+00
2.449276535063E+00
2.420591248181E+00
2.405003080415E+00
2.396328451931E+00
2.399969896097E+00
2.403241100832E+00
2.412604984369E+00
2.425444561401E+00
24 changes: 24 additions & 0 deletions cgyro/tools/input/reg11/out.cgyro.prec.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
1.316064580013E+00
2.006581595910E+00
2.390519084792E+00
2.488440650372E+00
2.485484898183E+00
2.560143360494E+00
2.527940553213E+00
2.474071035919E+00
2.449276535063E+00
2.420591248181E+00
2.405003080415E+00
2.396328451931E+00
2.399969896097E+00
2.403241100832E+00
2.412604984369E+00
2.425444561401E+00
2.439901682643E+00
2.454904964522E+00
2.469506936672E+00
2.483304562283E+00
2.495626713599E+00
2.506172359164E+00
2.514764664295E+00
2.521354688032E+00
80 changes: 80 additions & 0 deletions cgyro/tools/input/reg12/out.cgyro.prec.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
1.469587008039E-02
1.616316399211E-02
1.576713132328E-02
1.406815395677E-02
1.598907613720E-02
1.306236101631E-02
1.407190958068E-02
1.324734001040E-02
1.123779361754E-02
1.267188218223E-02
9.522388999330E-03
1.010224578072E-02
9.034629147033E-03
6.755051470026E-03
7.901719216590E-03
4.635374062866E-03
4.952495289324E-03
3.827790975603E-03
2.870504094896E-03
3.694801233727E-03
2.683363810892E-03
9.730295113092E-04
1.786865031049E-03
3.924817885512E-03
3.803663934235E-03
5.823670260700E-03
5.297033298298E-03
6.171445246254E-03
8.216028495594E-03
6.758751794733E-03
9.551305832791E-03
8.697819977464E-03
9.248181908804E-03
1.085353854845E-02
9.087899561158E-03
1.139481266931E-02
1.018128889053E-02
1.029134693332E-02
1.143886479425E-02
9.304016475865E-03
1.110130508852E-02
9.531123869895E-03
9.174545550241E-03
9.922845893029E-03
7.409942489134E-03
8.786670944171E-03
6.894327014956E-03
6.165247667067E-03
6.605211508900E-03
3.975674660630E-03
4.900345922473E-03
2.777839287049E-03
1.856124083042E-03
2.732073170450E-03
2.920938124637E-03
2.278374606498E-03
2.091922094769E-03
3.036268469160E-03
3.058210328050E-03
5.671820545085E-03
4.690900845186E-03
6.755131057997E-03
7.568729201781E-03
7.243012070703E-03
9.821284263012E-03
8.676134244378E-03
1.043761446767E-02
1.099322526023E-02
1.037109030928E-02
1.258750429909E-02
1.114296948562E-02
1.249776278312E-02
1.270137356942E-02
1.168657704874E-02
1.348855535296E-02
1.166458123882E-02
1.259077029727E-02
1.239418883687E-02
1.098296250218E-02
1.236551614225E-02
Loading

0 comments on commit 1b5f3ee

Please sign in to comment.