-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1889 from GEOS-ESM/feature/aoloso/merge_v10.23.0_…
…MSTRF_GWD_hybrid Extend OMP layer to support ESMF callback states
- Loading branch information
Showing
7 changed files
with
153 additions
and
6 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,19 @@ | ||
module mapl_CallbackMap | ||
|
||
use mapl_ESMF_Interfaces | ||
|
||
#define Key __CHARACTER_DEFERRED | ||
#define T CallbackMethodWrapper | ||
#define Map CallbackMap | ||
#define Pair CallbackPair | ||
#define MapIterator CallbackMapIterator | ||
|
||
#include "map/template.inc" | ||
|
||
#undef MapIterator | ||
#undef Pair | ||
#undef Map | ||
#undef T | ||
#undef Key | ||
|
||
end module mapl_CallbackMap |
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,22 @@ | ||
! This module is a collection of abstract interfaces that enforce | ||
! interfaces of user routines that are passed to ESMF. | ||
|
||
module mapl_ESMF_Interfaces | ||
implicit none | ||
private ! except | ||
public :: I_CallBackMethod | ||
public :: CallbackMethodWrapper | ||
|
||
abstract interface | ||
subroutine I_CallBackMethod(state, rc) | ||
use ESMF | ||
type(ESMF_State) :: state | ||
integer, intent(out) :: rc | ||
end subroutine I_CallBackMethod | ||
end interface | ||
|
||
type CallbackMethodWrapper | ||
procedure(I_CallBackMethod), pointer, nopass :: userRoutine | ||
end type CallbackMethodWrapper | ||
|
||
end module mapl_ESMF_Interfaces |
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