|
MOM6
|
Contains import/export methods for both NEMS and CMEPS.
Data Types | |
| interface | state_getfldptr |
| Get field pointer. More... | |
Functions/Subroutines | |
| subroutine, public | mom_set_geomtype (geomtype_in) |
| Sets module variable geometry type. More... | |
| subroutine, public | mom_import (ocean_public, ocean_grid, importState, ice_ocean_boundary, rc) |
| This function has a few purposes: (1) it imports surface fluxes using data from the mediator; and (2) it can apply restoring in SST and SSS. More... | |
| subroutine, public | mom_export (ocean_public, ocean_grid, ocean_state, exportState, clock, rc) |
| Maps outgoing ocean data to ESMF State. More... | |
| subroutine | state_getfldptr_1d (State, fldname, fldptr, rc) |
| Get field pointer 1D. More... | |
| subroutine | state_getfldptr_2d (State, fldname, fldptr, rc) |
| Get field pointer 2D. More... | |
| subroutine, private | state_getimport (state, fldname, isc, iec, jsc, jec, output, do_sum, rc) |
| Map import state field to output array. More... | |
| subroutine, private | state_setexport (state, fldname, isc, iec, jsc, jec, input, ocean_grid, rc) |
| Map input array to export state. More... | |
Variables | |
| integer | import_cnt = 0 |
| used to skip using the import state at the first count for cesm More... | |
| type(esmf_geomtype_flag) | geomtype |
| SMF type describing type of geometry (mesh or grid) More... | |
| subroutine, public mom_cap_methods::mom_export | ( | type(ocean_public_type), intent(in) | ocean_public, |
| type(ocean_grid_type), intent(in) | ocean_grid, | ||
| type(ocean_state_type), pointer | ocean_state, | ||
| type(esmf_state), intent(inout) | exportState, | ||
| type(esmf_clock), intent(in) | clock, | ||
| integer, intent(inout) | rc | ||
| ) |
Maps outgoing ocean data to ESMF State.
| [in] | ocean_public | Ocean surface state |
| [in] | ocean_grid | Ocean model grid |
| ocean_state | Ocean state | |
| [in,out] | exportstate | outgoing data |
| [in] | clock | ESMF clock |
| [in,out] | rc | Return code |
Definition at line 309 of file mom_cap_methods.F90.
References state_setexport().
Referenced by mom_cap_mod::datainitialize(), and mom_cap_mod::modeladvance().
| subroutine, public mom_cap_methods::mom_import | ( | type(ocean_public_type), intent(in) | ocean_public, |
| type(ocean_grid_type), intent(in) | ocean_grid, | ||
| type(esmf_state), intent(inout) | importState, | ||
| type(ice_ocean_boundary_type), intent(inout) | ice_ocean_boundary, | ||
| integer, intent(inout) | rc | ||
| ) |
This function has a few purposes: (1) it imports surface fluxes using data from the mediator; and (2) it can apply restoring in SST and SSS.
| [in] | ocean_public | Ocean surface state |
| [in] | ocean_grid | Ocean model grid |
| [in,out] | importstate | incoming data from mediator |
| [in,out] | ice_ocean_boundary | Ocean boundary forcing |
| [in,out] | rc | Return code |
Definition at line 61 of file mom_cap_methods.F90.
References state_getimport().
Referenced by mom_cap_mod::modeladvance().
| subroutine, public mom_cap_methods::mom_set_geomtype | ( | type(esmf_geomtype_flag), intent(in) | geomtype_in | ) |
Sets module variable geometry type.
| [in] | geomtype_in | ESMF type describing type of geometry (mesh or grid) |
Definition at line 50 of file mom_cap_methods.F90.
References geomtype.
Referenced by mom_cap_mod::initializerealize().
|
private |
Get field pointer 1D.
| [in] | state | ESMF state |
| [in] | fldname | Field name |
| [in] | fldptr | Pointer to the 1D field |
| [out] | rc | Return code |
Definition at line 619 of file mom_cap_methods.F90.
|
private |
Get field pointer 2D.
| [in] | state | ESMF state |
| [in] | fldname | Field name |
| [in] | fldptr | Pointer to the 2D field |
| [out] | rc | Return code |
Definition at line 646 of file mom_cap_methods.F90.
|
private |
Map import state field to output array.
| [in] | state | ESMF state |
| [in] | fldname | Field name |
| [in] | isc | The start i-index of cell centers within the computational domain |
| [in] | iec | The end i-index of cell centers within the computational domain |
| [in] | jsc | The start j-index of cell centers within the computational domain |
| [in] | jec | The end j-index of cell centers within the computational domain |
| [in,out] | output | Output 2D array |
| [in] | do_sum | If true, sums the data |
| [out] | rc | Return code |
Definition at line 673 of file mom_cap_methods.F90.
References geomtype.
Referenced by mom_import().
|
private |
Map input array to export state.
| [in,out] | state | ESMF state |
| [in] | fldname | Field name |
| [in] | isc | The start i-index of cell centers within the computational domain |
| [in] | iec | The end i-index of cell centers within the computational domain |
| [in] | jsc | The start j-index of cell centers within the computational domain |
| [in] | jec | The end j-index of cell centers within the computational domain |
| [in] | input | Input 2D array |
| [in] | ocean_grid | Ocean horizontal grid |
| [out] | rc | Return code |
Definition at line 754 of file mom_cap_methods.F90.
References geomtype.
Referenced by mom_export().
|
private |
SMF type describing type of geometry (mesh or grid)
Definition at line 43 of file mom_cap_methods.F90.
Referenced by mom_set_geomtype(), state_getimport(), and state_setexport().
|
private |
used to skip using the import state at the first count for cesm
Definition at line 41 of file mom_cap_methods.F90.