Skip to content

Commit f13435f

Browse files
vithikashah001vithikashah001
andauthored
added warnings (NOAA-GFDL#1802)
Co-authored-by: vithikashah001 <vithikashah001@github.com>
1 parent 1d6427c commit f13435f

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

data_override/include/data_override.inc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@ end if
240240
else
241241
if (file_exists("data_table.yaml"))&
242242
call mpp_error(FATAL, "You cannot have the yaml data_table if use_data_table_yaml=.false.")
243+
call mpp_error(NOTE, &
244+
&"data_override_init:: You are using the yaml version of the data_table. &
245+
The legacy data_table format will be deprecated in a future release, &
246+
please switch to the yaml format.")
243247
allocate(data_table(max_table))
244248
do i = 1, max_table
245249
data_table(i) = default_table
@@ -252,6 +256,10 @@ end if
252256

253257
if (use_data_table_yaml) then
254258
call mpp_error(FATAL, "You cannot have use_data_table_yaml=.true. without compiling with -Duse_yaml")
259+
call mpp_error(NOTE, &
260+
&"data_override_init:: You are using the yaml version of the data_table. &
261+
The legacy data_table format will be deprecated in a future release, &
262+
please switch to the yaml format.")
255263
else
256264

257265
allocate(data_table(max_table))

field_manager/field_manager.F90

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,12 +557,20 @@ subroutine field_manager_init(nfields, table_name)
557557
call mpp_error(FATAL, "You cannot have the legacy field_table if use_field_table_yaml=.true.")
558558

559559
call mpp_error(NOTE, "field_manager_init:: You are using the yaml version of the field_table")
560+
call mpp_error(NOTE, &
561+
&"field_manager_init:: You are using the yaml version of the field_table. &
562+
The legacy field_table format will be deprecated in a future release, &
563+
please switch to the yaml format.")
560564
call read_field_table_yaml(nfields, table_name)
561565
#endif
562566
else
563567
if (file_exists("field_table.yaml")) &
564568
call mpp_error(FATAL, "You cannot have the yaml field_table if use_field_table_yaml=.false.")
565569
call mpp_error(NOTE, "field_manager_init:: You are using the legacy version of the field_table")
570+
call mpp_error(NOTE, &
571+
&"field_manager_init:: You are using the yaml version of the field_table. &
572+
The legacy field_table format will be deprecated in a future release, &
573+
please switch to the yaml format.")
566574
call read_field_table_legacy(nfields, table_name)
567575
endif
568576

0 commit comments

Comments
 (0)