forked from mom-ocean/MOM6
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add documentation for mom_cap_methods
remove duplicated declearation of function chkerr, change case to match
- Loading branch information
1 parent
5f5871c
commit 633dc92
Showing
4 changed files
with
36 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ module MOM_cap_mod | |
use MOM_ocean_model_nuopc, only: get_ocean_grid, get_eps_omesh | ||
use MOM_cap_time, only: AlarmInit | ||
use MOM_cap_methods, only: mom_import, mom_export, mom_set_geomtype, state_diagnose | ||
use MOM_cap_methods, only: ChkErr | ||
#ifdef CESMCOUPLED | ||
use shr_file_mod, only: shr_file_setLogUnit, shr_file_getLogUnit | ||
#endif | ||
|
@@ -2049,18 +2050,6 @@ subroutine shr_file_getLogUnit(nunit) | |
end subroutine shr_file_getLogUnit | ||
#endif | ||
|
||
logical function chkerr(rc, line, file) | ||
integer, intent(in) :: rc | ||
integer, intent(in) :: line | ||
character(len=*), intent(in) :: file | ||
integer :: lrc | ||
chkerr = .false. | ||
lrc = rc | ||
if (ESMF_LogFoundError(rcToCheck=lrc, msg=ESMF_LOGERR_PASSTHRU, line=line, file=file)) then | ||
chkerr = .true. | ||
endif | ||
end function chkerr | ||
|
||
!> | ||
!! @page nuopc_cap NUOPC Cap | ||
!! @author Fei Liu ([email protected]) | ||
|
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