diff --git a/tests/integration_tests/mechanics/debug_mode/opt/heron_input.xml b/tests/integration_tests/mechanics/debug_mode/opt/heron_input.xml new file mode 100644 index 00000000..5e9f0923 --- /dev/null +++ b/tests/integration_tests/mechanics/debug_mode/opt/heron_input.xml @@ -0,0 +1,113 @@ + + + DebugMode + talbpaul + 2021-02-22 + + Tests a debug mode of operation, where a single outer runs a single sample of inner + and outputs the optimized dispatch. + + HERON + + + + opt + + 2 + 2 + True + + 1 + + Time + 2 + 21 + + + 3 + 0.08 + 0.3 + 0.02 + 50 + + + + + + + + + + + 1, 100 + + + + 5 + + + + + + steam + + -100 + + + + -1 + 0.5 + + + + + 5 + + + + + + + -2 + + + + 30 + + + electricity + + + 0.5 + + + + + + + + + -1e200 + + + + 30 + + + electricity + + + transfers + + + + + + + + + %HERON_DATA%/TSA/Sine/arma.pk + ../transfers.py + + + diff --git a/tests/integration_tests/mechanics/debug_mode/heron_input.xml b/tests/integration_tests/mechanics/debug_mode/sweep/heron_input.xml similarity index 98% rename from tests/integration_tests/mechanics/debug_mode/heron_input.xml rename to tests/integration_tests/mechanics/debug_mode/sweep/heron_input.xml index e7a312c8..97562dcf 100644 --- a/tests/integration_tests/mechanics/debug_mode/heron_input.xml +++ b/tests/integration_tests/mechanics/debug_mode/sweep/heron_input.xml @@ -107,7 +107,7 @@ %HERON_DATA%/TSA/Sine/arma.pk - transfers.py + ../transfers.py diff --git a/tests/integration_tests/mechanics/debug_mode/tests b/tests/integration_tests/mechanics/debug_mode/tests index f525b46e..ed2f7657 100644 --- a/tests/integration_tests/mechanics/debug_mode/tests +++ b/tests/integration_tests/mechanics/debug_mode/tests @@ -1,25 +1,48 @@ [Tests] - [./DebugMode] + [./DebugModeWithSweep] type = 'HeronIntegration' - input = heron_input.xml + input = 'sweep/heron_input.xml' [./dispatch_db] type = NetCDF - output = 'Debug_Run_o/dispatch.nc' + output = 'sweep/Debug_Run_o/dispatch.nc' gold_files = 'dispatch.nc' [../] [./dispatch_csv] type = UnorderedCSV - output = 'Debug_Run_o/dispatch_print.csv' + output = 'sweep/Debug_Run_o/dispatch_print.csv' gold_files = 'dispatch_print.csv' rel_err = 1e-8 [../] [./debug_plot] type = Exists - output = 'Debug_Run_o/dispatch_id0_y10_c0_f1.png Debug_Run_o/dispatch_id0_y11_c0_f1.png Debug_Run_o/dispatch_id1_y10_c0_f1.png Debug_Run_o/dispatch_id1_y11_c0_f1.png' + output = 'sweep/Debug_Run_o/dispatch_id0_y10_c0_f1.png sweep/Debug_Run_o/dispatch_id0_y11_c0_f1.png sweep/Debug_Run_o/dispatch_id1_y10_c0_f1.png sweep/Debug_Run_o/dispatch_id1_y11_c0_f1.png' [../] [./debug_plot] type = Exists - output = 'network.png' + output = 'sweep/network.png' + [../] + [../] + [./DebugModeWithOpt] + type = 'HeronIntegration' + input = 'opt/heron_input.xml' + [./dispatch_db] + type = NetCDF + output = 'opt/Debug_Run_o/dispatch.nc' + gold_files = 'dispatch.nc' + [../] + [./dispatch_csv] + type = UnorderedCSV + output = 'opt/Debug_Run_o/dispatch_print.csv' + gold_files = 'dispatch_print.csv' + rel_err = 1e-8 + [../] + [./debug_plot] + type = Exists + output = 'opt/Debug_Run_o/dispatch_id0_y10_c0_f1.png opt/Debug_Run_o/dispatch_id0_y11_c0_f1.png opt/Debug_Run_o/dispatch_id1_y10_c0_f1.png opt/Debug_Run_o/dispatch_id1_y11_c0_f1.png' + [../] + [./debug_plot] + type = Exists + output = 'opt/network.png' [../] [../] []