Skip to content

Commit 53d931a

Browse files
committed
add reason to comment about variable not able to be checekd
1 parent 4a48220 commit 53d931a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/data/write_init_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ def write_phys_check_subroutine(outfile, host_dict, host_vars, host_imports,
12551255
call_str += "min_difference, min_relative_value, is_first, diff_found)"
12561256
else:
12571257
# For check field, don't endrun
1258-
call_str = f"! do nothing - '{var_locname}' can't be checked against a file"
1258+
call_str = f"! do nothing - '{var_locname}' can't be checked against a file because {reason}"
12591259
# end if
12601260
# Add string to dictionary:
12611261
call_string_dict[call_string_key] = call_str

test/unit/python/sample_files/write_init_files/physics_inputs_simple.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ subroutine physics_check_data(file_name, suite_names, timestep, min_difference,
337337
min_relative_value, is_first, diff_found)
338338

339339
case ('scalar_variable_llama')
340-
! do nothing - 'var_nodim' can't be checked against a file
340+
! do nothing - 'var_nodim' can't be checked against a file because var_nodim has no horizontal dimension
341341

342342
end select !check variables
343343
if (diff_found) then

0 commit comments

Comments
 (0)