From ceb98c4d8c54dc22fbea6000a022beaad1cb29e4 Mon Sep 17 00:00:00 2001 From: tradke Date: Fri, 28 Apr 2000 11:43:47 +0000 Subject: Adding testsuite for recovery from an IEEEIO initial data checkpoint file. This was created by running checkpoint.parfile which basically is the wavetoyf77_flat.par example. In the recovery parameter file you just need to specify the recovery filename and dir (note that it is given as a relative path here from the testsuite dir), all other parameters are recovered from the file as well. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@117 ebee0441-1374-4afa-a3b5-247f3ba15b9a --- test/WavetoyID.chkpt.it_0.ieee | Bin 0 -> 263925 bytes test/checkpoint.parfile | 46 ++++++++++++++ test/test_recover.par | 17 +++++ test/test_recover/phi.dl | 138 +++++++++++++++++++++++++++++++++++++++++ test/test_recover/phi.xl | 138 +++++++++++++++++++++++++++++++++++++++++ test/test_recover/phi.yl | 138 +++++++++++++++++++++++++++++++++++++++++ test/test_recover/phi_max.tl | 7 +++ test/test_recover/phi_min.tl | 7 +++ test/test_recover/phi_nm1.tl | 7 +++ test/test_recover/phi_nm2.tl | 7 +++ 10 files changed, 505 insertions(+) create mode 100644 test/WavetoyID.chkpt.it_0.ieee create mode 100644 test/checkpoint.parfile create mode 100644 test/test_recover.par create mode 100644 test/test_recover/phi.dl create mode 100644 test/test_recover/phi.xl create mode 100644 test/test_recover/phi.yl create mode 100644 test/test_recover/phi_max.tl create mode 100644 test/test_recover/phi_min.tl create mode 100644 test/test_recover/phi_nm1.tl create mode 100644 test/test_recover/phi_nm2.tl (limited to 'test') diff --git a/test/WavetoyID.chkpt.it_0.ieee b/test/WavetoyID.chkpt.it_0.ieee new file mode 100644 index 0000000..d66bc35 Binary files /dev/null and b/test/WavetoyID.chkpt.it_0.ieee differ diff --git a/test/checkpoint.parfile b/test/checkpoint.parfile new file mode 100644 index 0000000..8316a9f --- /dev/null +++ b/test/checkpoint.parfile @@ -0,0 +1,46 @@ +!DESC "Checkpoint Wavetoy ID in IEEEIO file format" + +ActiveThorns = "Time WavetoyF77 IDScalarWave PUGH CartGrid3D IOUtil IOBasic IOASCII IOFlexIO" + +# Output directory must be the basename of the recovery parameter file's +# filename +IO::outdir = "test_recover" + +# Checkpoint initial data into a single unchunked checkpoint file +# with basename 'WavetoyID' and place it into the current directory +IO::checkpoint_ID = "yes" +IO::out3D_unchunked = "yes" +IO::out3D_mode = "onefile" +IO::checkpoint_ID_file = "WavetoyID.chkpt" +IO::checkpoint_dir = "." + +# Say that the checkpoint file should be created by the IOFlexIO method +IOFlexIO::checkpoint = "yes" + +############################################################################ +# Down from here the original parameter settings from the +# CactusWave/WaveToyF77/test/test_wavetoyf77.par test suite follow + +grid::type = "box" + +time::dtfac = 0.5 + +idscalarwave::initial_data = "gaussian" +idscalarwave::sigma = 0.1 +idscalarwave::radius = 0 + +driver::global_nx = 20 +driver::global_ny = 20 +driver::global_nz = 20 + +cactus::cctk_itlast = 10 + +IOASCII::out1D_every = 2 +IOASCII::out1D_vars = "wavetoy::phi " +IOASCII::out1D_z = "no" + +IOBasic::outScalar_every = 2 +IOBasic::outScalar_vars = "wavetoy::phi " + +IOBasic::outInfo_every = 2 +IOBasic::outInfo_vars = "wavetoy::phi " diff --git a/test/test_recover.par b/test/test_recover.par new file mode 100644 index 0000000..913a705 --- /dev/null +++ b/test/test_recover.par @@ -0,0 +1,17 @@ +!DESC "Recovery from WaveToy ID checkpoint file in IEEEIO file format" + +ActiveThorns = "Time WavetoyF77 IDScalarWave PUGH CartGrid3D IOUtil IOBasic IOASCII IOFlexIO" + +# Say that we want to recover ... +# You can also try "auto" and omit the ".it_0" field in the recover_file. +IO::recover = "manual" + +# ... from a ID checkpoint file with basename ... +IO::recover_file = "WavetoyID.chkpt.it_0" + +# ... to be found in directory ... +IO::recovery_dir = "../../arrangements/CactusPUGHIO/IOFlexIO/test/" + +# Note that this parameter is restored to "yes" during parameter recovery. +# Since we don't need to checkpoint twice it is explicitely disabled here. +IO::checkpoint_ID = "no" diff --git a/test/test_recover/phi.dl b/test/test_recover/phi.dl new file mode 100644 index 0000000..12f574d --- /dev/null +++ b/test/test_recover/phi.dl @@ -0,0 +1,138 @@ + + +"Time = 0.000000 +-0.866025 0.0000000000000 +-0.774865 0.0000000000000 +-0.683704 0.0000000000000 +-0.592544 0.0000000000000 +-0.501383 0.0000000000121 +-0.410223 0.0000000491566 +-0.319062 0.0000379191081 +-0.227901 0.0055502860213 +-0.136741 0.1541535501874 +-0.045580 0.8124050503725 +0.045580 0.8124050503725 +0.136741 0.1541535501874 +0.227901 0.0055502860213 +0.319062 0.0000379191081 +0.410223 0.0000000491566 +0.501383 0.0000000000121 +0.592544 0.0000000000000 +0.683704 0.0000000000000 +0.774865 0.0000000000000 +0.866025 0.0000000000000 + + +"Time = 0.052632 +-0.866025 0.0000000000000 +-0.774865 0.0000000000000 +-0.683704 0.0000000000000 +-0.592544 0.0000000000000 +-0.501383 -0.0000000000791 +-0.410223 -0.0000002406983 +-0.319062 -0.0000993771711 +-0.227901 -0.0072242068990 +-0.136741 -0.0979217322775 +-0.045580 -0.1950571619856 +0.045580 -0.1950571619856 +0.136741 -0.0979217322775 +0.227901 -0.0072242068990 +0.319062 -0.0000993771711 +0.410223 -0.0000002406983 +0.501383 -0.0000000000791 +0.592544 0.0000000000000 +0.683704 0.0000000000000 +0.774865 0.0000000000000 +0.866025 0.0000000000000 + + +"Time = 0.105263 +-0.866025 0.0000000000000 +-0.774865 0.0000000000000 +-0.683704 0.0000000000000 +-0.592544 -0.0000000000000 +-0.501383 -0.0000000070778 +-0.410223 -0.0000069066610 +-0.319062 -0.0010528818637 +-0.227901 -0.0332682845732 +-0.136741 -0.2986866103570 +-0.045580 -1.1290503258507 +0.045580 -1.1290503258507 +0.136741 -0.2986866103570 +0.227901 -0.0332682845732 +0.319062 -0.0010528818637 +0.410223 -0.0000069066610 +0.501383 -0.0000000070778 +0.592544 -0.0000000000000 +0.683704 0.0000000000000 +0.774865 0.0000000000000 +0.866025 0.0000000000000 + + +"Time = 0.157895 +-0.866025 0.0000000000000 +-0.774865 0.0000000000000 +-0.683704 0.0000000000000 +-0.592544 -0.0000000001229 +-0.501383 -0.0000003859714 +-0.410223 -0.0001219858026 +-0.319062 -0.0070834276763 +-0.227901 -0.0973584266251 +-0.136741 -0.4576544210254 +-0.045580 -0.9019842677611 +0.045580 -0.9019842677611 +0.136741 -0.4576544210254 +0.227901 -0.0973584266251 +0.319062 -0.0070834276763 +0.410223 -0.0001219858026 +0.501383 -0.0000003859714 +0.592544 -0.0000000001229 +0.683704 0.0000000000000 +0.774865 0.0000000000000 +0.866025 0.0000000000000 + + +"Time = 0.210526 +-0.866025 0.0000000000000 +-0.774865 0.0000000000000 +-0.683704 0.0000000000016 +-0.592544 -0.0000000159252 +-0.501383 -0.0000113878002 +-0.410223 -0.0012768875054 +-0.319062 -0.0304556068145 +-0.227901 -0.2006651910238 +-0.136741 -0.4997593550838 +-0.045580 -0.2663944260771 +0.045580 -0.2663944260771 +0.136741 -0.4997593550838 +0.227901 -0.2006651910238 +0.319062 -0.0304556068145 +0.410223 -0.0012768875054 +0.501383 -0.0000113878002 +0.592544 -0.0000000159252 +0.683704 0.0000000000016 +0.774865 0.0000000000000 +0.866025 0.0000000000000 + + +"Time = 0.263158 +-0.866025 0.0000000000000 +-0.774865 0.0000000000002 +-0.683704 -0.0000000003848 +-0.592544 -0.0000008256207 +-0.501383 -0.0001851985238 +-0.410223 -0.0080724403495 +-0.319062 -0.0860002778716 +-0.227901 -0.3020549188440 +-0.136741 -0.2694342257320 +-0.045580 -0.0172399268943 +0.045580 -0.0172399268943 +0.136741 -0.2694342257320 +0.227901 -0.3020549188440 +0.319062 -0.0860002778716 +0.410223 -0.0080724403495 +0.501383 -0.0001851985238 +0.592544 -0.0000008256207 +0.683704 -0.0000000003848 +0.774865 0.0000000000002 +0.866025 0.0000000000000 diff --git a/test/test_recover/phi.xl b/test/test_recover/phi.xl new file mode 100644 index 0000000..55a520c --- /dev/null +++ b/test/test_recover/phi.xl @@ -0,0 +1,138 @@ + + +"Time = 0.000000 +-0.500000 0.0000000000121 +-0.447368 0.0000000017699 +-0.394737 0.0000001488657 +-0.342105 0.0000071951364 +-0.289474 0.0001998375962 +-0.236842 0.0031894000956 +-0.184211 0.0292505776823 +-0.131579 0.1541535501874 +-0.078947 0.4668380576006 +-0.026316 0.8124050503725 +0.026316 0.8124050503725 +0.078947 0.4668380576006 +0.131579 0.1541535501874 +0.184211 0.0292505776823 +0.236842 0.0031894000956 +0.289474 0.0001998375962 +0.342105 0.0000071951364 +0.394737 0.0000001488657 +0.447368 0.0000000017699 +0.500000 0.0000000000121 + + +"Time = 0.052632 +-0.500000 0.0000000001579 +-0.447368 0.0000002442580 +-0.394737 0.0000055185355 +-0.342105 0.0000636892398 +-0.289474 0.0002832523498 +-0.236842 -0.0010800497738 +-0.184211 -0.0182063021811 +-0.131579 -0.0835854975190 +-0.078947 -0.1767183072710 +-0.026316 -0.1950571619856 +0.026316 -0.1950571619856 +0.078947 -0.1767183072710 +0.131579 -0.0835854975190 +0.184211 -0.0182063021811 +0.236842 -0.0010800497738 +0.289474 0.0002832523498 +0.342105 0.0000636892398 +0.394737 0.0000055185355 +0.447368 0.0000002442580 +0.500000 0.0000000001579 + + +"Time = 0.105263 +-0.500000 0.0000000000000 +-0.447368 0.0000074500893 +-0.394737 0.0000571366787 +-0.342105 0.0000891850929 +-0.289474 -0.0021735254063 +-0.236842 -0.0208336611591 +-0.184211 -0.0974778459232 +-0.131579 -0.2995396203857 +-0.078947 -0.6860436385846 +-0.026316 -1.1290503258507 +0.026316 -1.1290503258507 +0.078947 -0.6860436385846 +0.131579 -0.2995396203857 +0.184211 -0.0974778459232 +0.236842 -0.0208336611591 +0.289474 -0.0021735254063 +0.342105 0.0000891850929 +0.394737 0.0000571366787 +0.447368 0.0000074500893 +0.500000 0.0000000000000 + + +"Time = 0.157895 +-0.500000 0.0000000000121 +-0.447368 0.0000404464522 +-0.394737 -0.0000934611932 +-0.342105 -0.0028408356421 +-0.289474 -0.0203343223824 +-0.236842 -0.0840586024960 +-0.184211 -0.2362253936422 +-0.131579 -0.4920251452215 +-0.078947 -0.7713978386790 +-0.026316 -0.9019842677611 +0.026316 -0.9019842677611 +0.078947 -0.7713978386790 +0.131579 -0.4920251452215 +0.184211 -0.2362253936422 +0.236842 -0.0840586024960 +0.289474 -0.0203343223824 +0.342105 -0.0028408356421 +0.394737 -0.0000934611932 +0.447368 0.0000404464522 +0.500000 0.0000000000121 + + +"Time = 0.210526 +-0.500000 0.0000000001579 +-0.447368 -0.0002560735181 +-0.394737 -0.0032223677598 +-0.342105 -0.0191504023972 +-0.289474 -0.0718425508170 +-0.236842 -0.1869773941516 +-0.184211 -0.3531984196036 +-0.131579 -0.4762760737732 +-0.078947 -0.4212470397782 +-0.026316 -0.2663944260771 +0.026316 -0.2663944260771 +0.078947 -0.4212470397782 +0.131579 -0.4762760737732 +0.184211 -0.3531984196036 +0.236842 -0.1869773941516 +0.289474 -0.0718425508170 +0.342105 -0.0191504023972 +0.394737 -0.0032223677598 +0.447368 -0.0002560735181 +0.500000 0.0000000001579 + + +"Time = 0.263158 +-0.500000 0.0000000000000 +-0.447368 -0.0034053134726 +-0.394737 -0.0177523942812 +-0.342105 -0.0616617809179 +-0.289474 -0.1512610524542 +-0.236842 -0.2676581405491 +-0.184211 -0.3314593226319 +-0.131579 -0.2530697030290 +-0.078947 -0.0930373771550 +-0.026316 -0.0172399268943 +0.026316 -0.0172399268943 +0.078947 -0.0930373771550 +0.131579 -0.2530697030290 +0.184211 -0.3314593226319 +0.236842 -0.2676581405491 +0.289474 -0.1512610524542 +0.342105 -0.0616617809179 +0.394737 -0.0177523942812 +0.447368 -0.0034053134726 +0.500000 0.0000000000000 diff --git a/test/test_recover/phi.yl b/test/test_recover/phi.yl new file mode 100644 index 0000000..55a520c --- /dev/null +++ b/test/test_recover/phi.yl @@ -0,0 +1,138 @@ + + +"Time = 0.000000 +-0.500000 0.0000000000121 +-0.447368 0.0000000017699 +-0.394737 0.0000001488657 +-0.342105 0.0000071951364 +-0.289474 0.0001998375962 +-0.236842 0.0031894000956 +-0.184211 0.0292505776823 +-0.131579 0.1541535501874 +-0.078947 0.4668380576006 +-0.026316 0.8124050503725 +0.026316 0.8124050503725 +0.078947 0.4668380576006 +0.131579 0.1541535501874 +0.184211 0.0292505776823 +0.236842 0.0031894000956 +0.289474 0.0001998375962 +0.342105 0.0000071951364 +0.394737 0.0000001488657 +0.447368 0.0000000017699 +0.500000 0.0000000000121 + + +"Time = 0.052632 +-0.500000 0.0000000001579 +-0.447368 0.0000002442580 +-0.394737 0.0000055185355 +-0.342105 0.0000636892398 +-0.289474 0.0002832523498 +-0.236842 -0.0010800497738 +-0.184211 -0.0182063021811 +-0.131579 -0.0835854975190 +-0.078947 -0.1767183072710 +-0.026316 -0.1950571619856 +0.026316 -0.1950571619856 +0.078947 -0.1767183072710 +0.131579 -0.0835854975190 +0.184211 -0.0182063021811 +0.236842 -0.0010800497738 +0.289474 0.0002832523498 +0.342105 0.0000636892398 +0.394737 0.0000055185355 +0.447368 0.0000002442580 +0.500000 0.0000000001579 + + +"Time = 0.105263 +-0.500000 0.0000000000000 +-0.447368 0.0000074500893 +-0.394737 0.0000571366787 +-0.342105 0.0000891850929 +-0.289474 -0.0021735254063 +-0.236842 -0.0208336611591 +-0.184211 -0.0974778459232 +-0.131579 -0.2995396203857 +-0.078947 -0.6860436385846 +-0.026316 -1.1290503258507 +0.026316 -1.1290503258507 +0.078947 -0.6860436385846 +0.131579 -0.2995396203857 +0.184211 -0.0974778459232 +0.236842 -0.0208336611591 +0.289474 -0.0021735254063 +0.342105 0.0000891850929 +0.394737 0.0000571366787 +0.447368 0.0000074500893 +0.500000 0.0000000000000 + + +"Time = 0.157895 +-0.500000 0.0000000000121 +-0.447368 0.0000404464522 +-0.394737 -0.0000934611932 +-0.342105 -0.0028408356421 +-0.289474 -0.0203343223824 +-0.236842 -0.0840586024960 +-0.184211 -0.2362253936422 +-0.131579 -0.4920251452215 +-0.078947 -0.7713978386790 +-0.026316 -0.9019842677611 +0.026316 -0.9019842677611 +0.078947 -0.7713978386790 +0.131579 -0.4920251452215 +0.184211 -0.2362253936422 +0.236842 -0.0840586024960 +0.289474 -0.0203343223824 +0.342105 -0.0028408356421 +0.394737 -0.0000934611932 +0.447368 0.0000404464522 +0.500000 0.0000000000121 + + +"Time = 0.210526 +-0.500000 0.0000000001579 +-0.447368 -0.0002560735181 +-0.394737 -0.0032223677598 +-0.342105 -0.0191504023972 +-0.289474 -0.0718425508170 +-0.236842 -0.1869773941516 +-0.184211 -0.3531984196036 +-0.131579 -0.4762760737732 +-0.078947 -0.4212470397782 +-0.026316 -0.2663944260771 +0.026316 -0.2663944260771 +0.078947 -0.4212470397782 +0.131579 -0.4762760737732 +0.184211 -0.3531984196036 +0.236842 -0.1869773941516 +0.289474 -0.0718425508170 +0.342105 -0.0191504023972 +0.394737 -0.0032223677598 +0.447368 -0.0002560735181 +0.500000 0.0000000001579 + + +"Time = 0.263158 +-0.500000 0.0000000000000 +-0.447368 -0.0034053134726 +-0.394737 -0.0177523942812 +-0.342105 -0.0616617809179 +-0.289474 -0.1512610524542 +-0.236842 -0.2676581405491 +-0.184211 -0.3314593226319 +-0.131579 -0.2530697030290 +-0.078947 -0.0930373771550 +-0.026316 -0.0172399268943 +0.026316 -0.0172399268943 +0.078947 -0.0930373771550 +0.131579 -0.2530697030290 +0.184211 -0.3314593226319 +0.236842 -0.2676581405491 +0.289474 -0.1512610524542 +0.342105 -0.0616617809179 +0.394737 -0.0177523942812 +0.447368 -0.0034053134726 +0.500000 0.0000000000000 diff --git a/test/test_recover/phi_max.tl b/test/test_recover/phi_max.tl new file mode 100644 index 0000000..7d6d6cf --- /dev/null +++ b/test/test_recover/phi_max.tl @@ -0,0 +1,7 @@ +"phi max v time +0.000000 0.8124050503725 +0.052632 0.0002832523498 +0.105263 0.0000891850929 +0.157895 0.0000404464522 +0.210526 0.0000003961856 +0.263158 0.0000001100397 diff --git a/test/test_recover/phi_min.tl b/test/test_recover/phi_min.tl new file mode 100644 index 0000000..a1d8579 --- /dev/null +++ b/test/test_recover/phi_min.tl @@ -0,0 +1,7 @@ +"phi min v time +0.000000 0.0000000000000 +0.052632 -0.1950571619856 +0.105263 -1.1290503258507 +0.157895 -0.9019842677611 +0.210526 -0.4997593550838 +0.263158 -0.3594146186543 diff --git a/test/test_recover/phi_nm1.tl b/test/test_recover/phi_nm1.tl new file mode 100644 index 0000000..895a3b0 --- /dev/null +++ b/test/test_recover/phi_nm1.tl @@ -0,0 +1,7 @@ +"phi norm1 v time +0.000000 0.0047741452163 +0.052632 0.0023586563905 +0.105263 0.0094832901779 +0.157895 0.0166095490059 +0.210526 0.0237365580784 +0.263158 0.0308582835960 diff --git a/test/test_recover/phi_nm2.tl b/test/test_recover/phi_nm2.tl new file mode 100644 index 0000000..0fea72d --- /dev/null +++ b/test/test_recover/phi_nm2.tl @@ -0,0 +1,7 @@ +"phi norm2 v time +0.000000 0.0410842432418 +0.052632 0.0158441957039 +0.105263 0.0637392141088 +0.157895 0.0805995803466 +0.210526 0.0821416890828 +0.263158 0.0821638479495 -- cgit v1.2.3