Skip to content

Commit e8b8c19

Browse files
authored
fix: add output to specify which table formats are being used (#1676)
1 parent 2df7063 commit e8b8c19

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

data_override/include/data_override.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ if (grid_center_bug) then
194194
endif
195195

196196
if (use_data_table_yaml) then
197-
call mpp_error(NOTE, "You are using YAML.")
197+
call mpp_error(NOTE, "data_override_init: You are using the yaml version of the data table.")
198198
else
199-
call mpp_error(NOTE, "You are using the legacy table.")
199+
call mpp_error(NOTE, "data_override_init: You are using the legacy version of the data table.")
200200
end if
201201

202202
atm_on = PRESENT(Atm_domain_in)

diag_manager/diag_manager.F90

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4212,9 +4212,13 @@ SUBROUTINE diag_manager_init(diag_model_subset, time_init, err_msg)
42124212
END IF
42134213

42144214
if (use_modern_diag) then
4215+
CALL error_mesg('diag_manager_mod::diag_manager_init',&
4216+
& 'You are using the yaml version of the diag table', NOTE)
42154217
CALL fms_diag_object%init(diag_subset_output, time_init)
42164218
endif
42174219
if (.not. use_modern_diag) then
4220+
CALL error_mesg('diag_manager_mod::diag_manager_init',&
4221+
& 'You are using the legacy version of the diag table', NOTE)
42184222
CALL parse_diag_table(DIAG_SUBSET=diag_subset_output, ISTAT=mystat, ERR_MSG=err_msg_local)
42194223
IF ( mystat /= 0 ) THEN
42204224
IF ( fms_error_handler('diag_manager_mod::diag_manager_init',&

field_manager/field_manager.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,13 +561,13 @@ subroutine field_manager_init(nfields, table_name)
561561
if (file_exists("field_table")) &
562562
call mpp_error(FATAL, "You cannot have the legacy field_table if use_field_table_yaml=.true.")
563563

564-
call mpp_error(NOTE, "You are using the yaml version of the field_table")
564+
call mpp_error(NOTE, "field_manager_init:: You are using the yaml version of the field_table")
565565
call read_field_table_yaml(nfields, table_name)
566566
#endif
567567
else
568568
if (file_exists("field_table.yaml")) &
569569
call mpp_error(FATAL, "You cannot have the yaml field_table if use_field_table_yaml=.false.")
570-
call mpp_error(NOTE, "You are using the legacy version of the field_table")
570+
call mpp_error(NOTE, "field_manager_init:: You are using the legacy version of the field_table")
571571
call read_field_table_legacy(nfields, table_name)
572572
endif
573573

0 commit comments

Comments
 (0)