Skip to content

Commit

Permalink
add optional do_testing section
Browse files Browse the repository at this point in the history
  • Loading branch information
RussTreadon-NOAA committed Nov 15, 2024
1 parent 588a3a4 commit 459753c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions algorithm/atmosphere/fv3jedi_fv3inc_lgetkf.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
18 changes: 18 additions & 0 deletions algorithm/atmosphere/fv3jedi_fv3inc_variational.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

0 comments on commit 459753c

Please sign in to comment.