From 459753ccdf87383ea7b5581211595f2dfd6594da Mon Sep 17 00:00:00 2001 From: RussTreadon-NOAA Date: Fri, 15 Nov 2024 19:24:02 +0000 Subject: [PATCH] add optional do_testing section --- .../atmosphere/fv3jedi_fv3inc_lgetkf.yaml.j2 | 18 ++++++++++++++++++ .../fv3jedi_fv3inc_variational.yaml.j2 | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/algorithm/atmosphere/fv3jedi_fv3inc_lgetkf.yaml.j2 b/algorithm/atmosphere/fv3jedi_fv3inc_lgetkf.yaml.j2 index 54fdc84..576a133 100644 --- a/algorithm/atmosphere/fv3jedi_fv3inc_lgetkf.yaml.j2 +++ b/algorithm/atmosphere/fv3jedi_fv3inc_lgetkf.yaml.j2 @@ -62,3 +62,21 @@ members from template: pattern: '%mem%' nmembers: {{ atmosphere_number_ensemble_members }} zero padding: 3 + +# Optionally test the application +{% if do_testing | default(false) %} +test: + reference filename: {{test_reference_filename}} +{% if test_output_filename is defined %} + test output filename: {{test_output_filename}} +{% endif %} +{% if log_output_filename is defined %} + log output filename: {{log_output_filename}} +{% endif %} +{% if mpi_pattern is defined %} + mpi pattern: {{mpi_pattern}} +{% endif %} + float relative tolerance: {{test_float_relative_tolerance | default(1.0e-6, true)}} + float absolute tolerance: {{test_float_absolute_tolerance | default(0.0, true) }} + integer tolerance: {{test_integer_tolerance | default(0, true) }} +{% endif %} diff --git a/algorithm/atmosphere/fv3jedi_fv3inc_variational.yaml.j2 b/algorithm/atmosphere/fv3jedi_fv3inc_variational.yaml.j2 index 07fc206..dd60ebb 100644 --- a/algorithm/atmosphere/fv3jedi_fv3inc_variational.yaml.j2 +++ b/algorithm/atmosphere/fv3jedi_fv3inc_variational.yaml.j2 @@ -58,3 +58,21 @@ members: filetype: auxgrid gridtype: gaussian filename: ./anl/atminc. + +# Optionally test the application +{% if do_testing | default(false) %} +test: + reference filename: {{test_reference_filename}} +{% if test_output_filename is defined %} + test output filename: {{test_output_filename}} +{% endif %} +{% if log_output_filename is defined %} + log output filename: {{log_output_filename}} +{% endif %} +{% if mpi_pattern is defined %} + mpi pattern: {{mpi_pattern}} +{% endif %} + float relative tolerance: {{test_float_relative_tolerance | default(1.0e-6, true)}} + float absolute tolerance: {{test_float_absolute_tolerance | default(0.0, true) }} + integer tolerance: {{test_integer_tolerance | default(0, true) }} +{% endif %}