Definition at line 81 of file MOM_domains.F90.
|
integer function | pass_vector_start_3d (u_cmpt, v_cmpt, MOM_dom, direction, stagger, complete, halo) |
|
integer function | pass_vector_start_2d (u_cmpt, v_cmpt, MOM_dom, direction, stagger, complete, halo) |
|
◆ pass_vector_start_2d()
integer function mom_domains::pass_vector_start::pass_vector_start_2d |
( |
real, dimension(:,:), intent(inout) |
u_cmpt, |
|
|
real, dimension(:,:), intent(inout) |
v_cmpt, |
|
|
type(mom_domain_type), intent(inout) |
MOM_dom, |
|
|
integer, intent(in), optional |
direction, |
|
|
integer, intent(in), optional |
stagger, |
|
|
logical, intent(in), optional |
complete, |
|
|
integer, intent(in), optional |
halo |
|
) |
| |
|
private |
- Parameters
-
[in,out] | u_cmpt | The nominal zonal (u) component of the vector pair which is having its halos points exchanged. |
[in,out] | v_cmpt | The nominal meridional (v) component of the vector pair which is having its halos points exchanged. |
[in,out] | mom_dom | The MOM_domain_type containing the mpp_domain needed to determine where data should be sent. |
[in] | direction | An optional integer indicating which directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, TO_NORTH, and TO_SOUTH, possibly plus SCALAR_PAIR if these are paired non-directional scalars discretized at the typical vector component locations. For example, TO_EAST sends the data to the processor to the east, so the halos on the western side are filled. TO_ALL is the default if omitted. |
[in] | stagger | An optional flag, which may be one of A_GRID, BGRID_NE, or CGRID_NE, indicating where the two components of the vector are discretized. Omitting stagger is the same as setting it to CGRID_NE. |
[in] | complete | An optional argument indicating whether the halo updates should be completed before progress resumes. Omitting complete is the same as setting complete to .true. |
[in] | halo | The size of the halo to update - the full halo by default. |
- Returns
- The integer index for this update.
Definition at line 680 of file MOM_domains.F90.
680 real,
dimension(:,:),
intent(inout) :: u_cmpt
683 real,
dimension(:,:),
intent(inout) :: v_cmpt
686 type(mom_domain_type),
intent(inout) :: mom_dom
689 integer,
optional,
intent(in) :: direction
695 integer,
optional,
intent(in) :: stagger
698 logical,
optional,
intent(in) :: complete
701 integer,
optional,
intent(in) :: halo
703 integer :: pass_vector_start_2d
729 integer :: stagger_local
732 stagger_local = cgrid_ne
733 if (
present(stagger)) stagger_local = stagger
736 if (
present(direction))
then ;
if (direction > 0) dirflag = direction ;
endif 738 if (
present(halo) .and. mom_dom%thin_halo_updates)
then 739 pass_vector_start_2d = mpp_start_update_domains(u_cmpt, v_cmpt, &
740 mom_dom%mpp_domain, flags=dirflag, gridtype=stagger_local, &
741 whalo=halo, ehalo=halo, shalo=halo, nhalo=halo)
743 pass_vector_start_2d = mpp_start_update_domains(u_cmpt, v_cmpt, &
744 mom_dom%mpp_domain, flags=dirflag, gridtype=stagger_local)
◆ pass_vector_start_3d()
integer function mom_domains::pass_vector_start::pass_vector_start_3d |
( |
real, dimension(:,:,:), intent(inout) |
u_cmpt, |
|
|
real, dimension(:,:,:), intent(inout) |
v_cmpt, |
|
|
type(mom_domain_type), intent(inout) |
MOM_dom, |
|
|
integer, intent(in), optional |
direction, |
|
|
integer, intent(in), optional |
stagger, |
|
|
logical, intent(in), optional |
complete, |
|
|
integer, intent(in), optional |
halo |
|
) |
| |
|
private |
- Parameters
-
[in,out] | u_cmpt | The nominal zonal (u) component of the vector pair which is having its halos points exchanged. |
[in,out] | v_cmpt | The nominal meridional (v) component of the vector pair which is having its halos points exchanged. |
[in,out] | mom_dom | The MOM_domain_type containing the mpp_domain needed to determine where data should be sent. |
[in] | direction | An optional integer indicating which directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, TO_NORTH, and TO_SOUTH, possibly plus SCALAR_PAIR if these are paired non-directional scalars discretized at the typical vector component locations. For example, TO_EAST sends the data to the processor to the east, so the halos on the western side are filled. TO_ALL is the default if omitted. |
[in] | stagger | An optional flag, which may be one of A_GRID, BGRID_NE, or CGRID_NE, indicating where the two components of the vector are discretized. Omitting stagger is the same as setting it to CGRID_NE. |
[in] | complete | An optional argument indicating whether the halo updates should be completed before progress resumes. Omitting complete is the same as setting complete to .true. |
[in] | halo | The size of the halo to update - the full halo by default. |
- Returns
- The integer index for this update.
Definition at line 750 of file MOM_domains.F90.
750 real,
dimension(:,:,:),
intent(inout) :: u_cmpt
753 real,
dimension(:,:,:),
intent(inout) :: v_cmpt
756 type(mom_domain_type),
intent(inout) :: mom_dom
759 integer,
optional,
intent(in) :: direction
765 integer,
optional,
intent(in) :: stagger
768 logical,
optional,
intent(in) :: complete
771 integer,
optional,
intent(in) :: halo
773 integer :: pass_vector_start_3d
799 integer :: stagger_local
802 stagger_local = cgrid_ne
803 if (
present(stagger)) stagger_local = stagger
806 if (
present(direction))
then ;
if (direction > 0) dirflag = direction ;
endif 808 if (
present(halo) .and. mom_dom%thin_halo_updates)
then 809 pass_vector_start_3d = mpp_start_update_domains(u_cmpt, v_cmpt, &
810 mom_dom%mpp_domain, flags=dirflag, gridtype=stagger_local, &
811 whalo=halo, ehalo=halo, shalo=halo, nhalo=halo)
813 pass_vector_start_3d = mpp_start_update_domains(u_cmpt, v_cmpt, &
814 mom_dom%mpp_domain, flags=dirflag, gridtype=stagger_local)
The documentation for this interface was generated from the following file:
- /home/adcroft/GitHub/workspace/Gaea-stats-MOM6-examples/MOM6-examples/src/MOM6/src/framework/MOM_domains.F90