-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a stub rof rather than mosart with lilac
This change is important in the short-term, at least, because I'm not ready to bring the mosart lilac_cap branch to master, so we're pointing to a version of mosart that doesn't have the necessary changes - see ESCOMP/MOSART#32. Once those MOSART changes are on MOSART's master branch, then we should change buildlib back to using the MOSART source code rather than stub rof. We may want to do this conditionally, depending on whether rof coupling is actually wanted in the given run. (I at first thought that we could let the cime build build mosart for us, but then realized that the current mechanism is needed because lilac depends on the mosart code; also, mosart is not built during the --sharedlib build phase.) Note: I have NOT given careful thought to the changes in lilac_mod.F90: It seems right to put this rof-related code inside a conditional, but I haven't done a careful analysis to determine if that's correct.
- Loading branch information
Showing
3 changed files
with
83 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
module rof_comp_esmf | ||
|
||
! ------------------------------------------------------------------------ | ||
! This is a stub version of rof_comp_esmf that can be used when we don't have a true | ||
! rof component, just to satisfy the necessary interfaces in LILAC. | ||
! ------------------------------------------------------------------------ | ||
|
||
use ESMF | ||
|
||
implicit none | ||
private | ||
|
||
public :: rof_register | ||
|
||
!=============================================================================== | ||
contains | ||
!=============================================================================== | ||
|
||
subroutine rof_register(comp, rc) | ||
|
||
! Stub rof_register routine - shouldn't ever be called! | ||
|
||
! input/output argumenents | ||
type(ESMF_GridComp) :: comp ! ROF grid component | ||
integer, intent(out) :: rc ! return status | ||
|
||
rc = ESMF_RC_NOT_IMPL | ||
end subroutine rof_register | ||
|
||
end module rof_comp_esmf |