Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/module_EARTH_GRID_COMP.F90
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ MODULE module_EARTH_GRID_COMP
#endif
#ifdef FRONT_DATM
use FRONT_DATM, only: DATM_SS => SetServices
#endif
#ifdef FRONT_CDEPS_DATM
use FRONT_CDEPS_DATM, only: DATM_SS => SetServices
#endif
! - Handle build time OCN options:
#ifdef FRONT_SOCN
Expand Down Expand Up @@ -3596,8 +3599,9 @@ subroutine SetModelServices(driver, rc)
file=__FILE__, rcToReturn=rc)
return ! bail out
#endif
elseif (trim(model) == "datm") then
#ifdef FRONT_DATM
elseif (trim(model) == "datm" .or. trim(model) == "datm_cfsr" .or. &

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these CDEPS data atmosphere? I think this implementation is not flexible enough because you need to add a line for each specific datm stream. At this level model only need to know the datm not the stream used in CDEPS. So, only datm is enough for driver at this point. Please refer to following version of the file found in hafs-community#3

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we need to remove datm_cfsr and datm_gefs because the way to configure the DATM input data is via its namelist. Moreover, the driver does not need to know what the source of the data is. Also, this approach means we'd need to change the driver to add a new data source to CDEPS. All good reasons why we only need DATM at the driver level. This is important to get right.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rsdunlapiv So you're saying that nems.configure will have the atm model either datm (=nemsdatm), datm_cfsr (=cdeps,cfsr source) or datm_gefs (cdeps,gefs source). There is nothing in the driver it self that is needed to distinguish those options.

trim(model) == "datm_gefs") then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is same with the previous one.

#if defined FRONT_DATM || defined FRONT_CDEPS_DATM
call NUOPC_DriverAddComp(driver, trim(prefix), DATM_SS, &
petList=petList, comp=comp, rc=rc)
if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, &
Expand Down