MOM_coupler_types module reference

This module provides coupler type interfaces for use by MOM6

Generic Interfaces

coupler_type_spawn

This is the interface to spawn one coupler_bc_type into another.

coupler_type_initialized

This function interface indicates whether a coupler_bc_type has been initialized.

coupler_type_destructor

This is the interface to deallocate any data associated with a coupler_bc_type.

coupler_type_copy_data

Copy all elements of the data in either a coupler_2d_bc_type or a coupler_3d_bc_type into another structure of the same or the other type. Both must have the same array sizes in common dimensions, while the details of any expansion from 2d to 3d are controlled by arguments.

coupler_type_increment_data

Increment data in all elements of one coupler_2d_bc_type or coupler_3d_bc_type with the data from another. Both must have the same array sizes and rank.

coupler_type_rescale_data

Rescale the fields in the elements of a coupler_2d_bc_type by multiplying by a factor scale. If scale is 0, this is a direct assignment to 0, so that NaNs will not persist.

coupler_type_redistribute_data

Redistribute the data in all elements of one coupler_2d_bc_type or coupler_3d_bc_type into another, which may be on different processors with a different decomposition.

coupler_type_write_chksums

Write out checksums for the elements of a coupler_2d_bc_type or coupler_3d_bc_type

Functions/Subroutines

CT_spawn_1d_2d

Generate a 2-D coupler type using a 1-D coupler type as a template.

CT_spawn_1d_3d

Generate a 3-D coupler type using a 1-D coupler type as a template.

CT_spawn_2d_2d

Generate one 2-D coupler type using another 2-D coupler type as a template.

CT_spawn_2d_3d

Generate a 3-D coupler type using a 2-D coupler type as a template.

CT_spawn_3d_2d

Generate a 2-D coupler type using a 3-D coupler type as a template.

CT_spawn_3d_3d

Generate a 3-D coupler type using another 3-D coupler type as a template.

CT_copy_data_2d

Copy all elements of the data in a coupler_2d_bc_type into another. Both must have the same array sizes.

CT_copy_data_3d

Copy all elements of the data in a coupler_3d_bc_type into another. Both must have the same array sizes.

CT_copy_data_2d_3d

Copy all elements of the data in a coupler_2d_bc_type into a coupler_3d_bc_type. Both must have the same array sizes for the first two dimensions, while the extent of the 3rd dimension that is being filled may be specified via optional arguments.

CT_increment_data_2d

Increment data in all elements of one coupler_2d_bc_type with the data from another. Both must have the same array sizes.

CT_increment_data_3d

Increment data in all elements of one coupler_3d_bc_type with the data from another. Both must have the same array sizes.

CT_increment_data_2d_3d

Increment data in the elements of a coupler_2d_bc_type with weighted averages of elements of a coupler_3d_bc_type

CT_rescale_data_2d

Rescales the fields in the elements of a coupler_2d_bc_type by multiplying by a factor scale. If scale is 0, this is a direct assignment to 0, so that NaNs will not persist.

CT_rescale_data_3d

Rescales the fields in the elements of a coupler_3d_bc_type by multiplying by a factor scale. If scale is 0, this is a direct assignment to 0, so that NaNs will not persist.

CT_redistribute_data_2d

Redistribute the data in all elements of one coupler_2d_bc_type into another, which may be on different processors with a different decomposition.

CT_redistribute_data_3d

Redistribute the data in all elements of one coupler_3d_bc_type into another, which may be on different processors with a different decomposition.

coupler_type_data_override

Potentially override the values in a coupler_2d_bc_type

extract_coupler_type_data

Extract a 2d field from a coupler_2d_bc_type into a two-dimensional array, using a MOM-specific interface.

set_coupler_type_data

Set single 2d field in coupler_2d_bc_type from a two-dimensional array, using a MOM-specific interface.

coupler_type_set_diags

Register the diagnostics of a coupler_2d_bc_type

coupler_type_send_data

Write out all diagnostics of elements of a coupler_2d_bc_type

CT_write_chksums_2d

Write out checksums for the elements of a coupler_2d_bc_type

CT_write_chksums_3d

Write out checksums for the elements of a coupler_3d_bc_type

CT_initialized_1d

Indicate whether a coupler_1d_bc_type has been initialized.

CT_initialized_2d

Indicate whether a coupler_2d_bc_type has been initialized.

CT_initialized_3d

Indicate whether a coupler_3d_bc_type has been initialized.

CT_destructor_1d

Deallocate all data associated with a coupler_1d_bc_type

CT_destructor_2d

Deallocate all data associated with a coupler_2d_bc_type

Generic Interface Documentation

interface coupler_type_spawn

This is the interface to spawn one coupler_bc_type into another.

Callers call graph
Callers of mom_coupler_types::interface::coupler_type_spawn calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_forcing_type MOM_forcing_type cluster_mom_variables MOM_variables mom_coupler_types::interface::coupler_type_spawn coupler_type_spawn (interface) mom_forcing_type::allocate_forcing_by_ref allocate_forcing_by_ref [private/internal] mom_forcing_type::allocate_forcing_by_ref->mom_coupler_types::interface::coupler_type_spawn mom_variables::allocate_surface_state allocate_surface_state mom_variables::allocate_surface_state->mom_coupler_types::interface::coupler_type_spawn
Text view
interface coupler_type_initialized

This function interface indicates whether a coupler_bc_type has been initialized.

Callers call graph
Callers of mom_coupler_types::interface::coupler_type_initialized calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_forcing_type MOM_forcing_type cluster_mom_variables MOM_variables mom_coupler_types::interface::coupler_type_initialized coupler_type_initialized (interface) mom_forcing_type::allocate_forcing_by_ref allocate_forcing_by_ref [private/internal] mom_forcing_type::allocate_forcing_by_ref->mom_coupler_types::interface::coupler_type_initialized mom_forcing_type::fluxes_accumulate fluxes_accumulate mom_forcing_type::fluxes_accumulate->mom_coupler_types::interface::coupler_type_initialized mom_forcing_type::rotate_forcing rotate_forcing mom_forcing_type::rotate_forcing->mom_coupler_types::interface::coupler_type_initialized mom_variables::allocate_surface_state allocate_surface_state mom_variables::allocate_surface_state->mom_coupler_types::interface::coupler_type_initialized mom_variables::rotate_surface_state rotate_surface_state mom_variables::rotate_surface_state->mom_coupler_types::interface::coupler_type_initialized
Text view
interface coupler_type_destructor

This is the interface to deallocate any data associated with a coupler_bc_type.

Callers call graph
Callers of mom_coupler_types::interface::coupler_type_destructor calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_forcing_type MOM_forcing_type cluster_mom_variables MOM_variables mom_coupler_types::interface::coupler_type_destructor coupler_type_destructor (interface) mom_forcing_type::deallocate_forcing_type deallocate_forcing_type mom_forcing_type::deallocate_forcing_type->mom_coupler_types::interface::coupler_type_destructor mom_variables::deallocate_surface_state deallocate_surface_state mom_variables::deallocate_surface_state->mom_coupler_types::interface::coupler_type_destructor
Text view
interface coupler_type_copy_data

Copy all elements of the data in either a coupler_2d_bc_type or a coupler_3d_bc_type into another structure of the same or the other type. Both must have the same array sizes in common dimensions, while the details of any expansion from 2d to 3d are controlled by arguments.

Callers call graph
Callers of mom_coupler_types::interface::coupler_type_copy_data calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_forcing_type MOM_forcing_type cluster_mom_variables MOM_variables mom_coupler_types::interface::coupler_type_copy_data coupler_type_copy_data (interface) mom_forcing_type::rotate_forcing rotate_forcing mom_forcing_type::rotate_forcing->mom_coupler_types::interface::coupler_type_copy_data mom_variables::rotate_surface_state rotate_surface_state mom_variables::rotate_surface_state->mom_coupler_types::interface::coupler_type_copy_data
Text view
interface coupler_type_increment_data

Increment data in all elements of one coupler_2d_bc_type or coupler_3d_bc_type with the data from another. Both must have the same array sizes and rank.

Callers call graph
Callers of mom_coupler_types::interface::coupler_type_increment_data calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_forcing_type MOM_forcing_type mom_coupler_types::interface::coupler_type_increment_data coupler_type_increment_data (interface) mom_forcing_type::fluxes_accumulate fluxes_accumulate mom_forcing_type::fluxes_accumulate->mom_coupler_types::interface::coupler_type_increment_data
Text view
interface coupler_type_rescale_data

Rescale the fields in the elements of a coupler_2d_bc_type by multiplying by a factor scale. If scale is 0, this is a direct assignment to 0, so that NaNs will not persist.

interface coupler_type_redistribute_data

Redistribute the data in all elements of one coupler_2d_bc_type or coupler_3d_bc_type into another, which may be on different processors with a different decomposition.

interface coupler_type_write_chksums

Write out checksums for the elements of a coupler_2d_bc_type or coupler_3d_bc_type

Functions/Subroutine Documentation

subroutine CT_spawn_1d_2d(var_in, var, idim, jdim, suffix, as_needed)

Generate a 2-D coupler type using a 1-D coupler type as a template.

Parameters
  • var_in [in]

    structure from which to copy information

  • var [inout]

    structure into which to copy information

  • idim [in]

    The data and computational domain extents of the first dimension in a non-decreasing list

  • jdim [in]

    The data and computational domain extents of the second dimension in a non-decreasing list

  • suffix [in]

    optional suffix to make the name identifier unique

  • as_needed [in]

    Only do the spawn if the target type (var) is not set and the parent type (var_in) is set.

Callees call graph
Callees of mom_coupler_types::ct_spawn_1d_2d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_spawn_1d_2d CT_spawn_1d_2d [private/internal] mom_couplertype_infra::interface::ct_spawn CT_spawn (interface) mom_coupler_types::ct_spawn_1d_2d->mom_couplertype_infra::interface::ct_spawn
Text view
subroutine CT_spawn_1d_3d(var_in, var, idim, jdim, kdim, suffix, as_needed)

Generate a 3-D coupler type using a 1-D coupler type as a template.

Parameters
  • var_in [in]

    structure from which to copy information

  • var [inout]

    structure into which to copy information

  • idim [in]

    The data and computational domain extents of the first dimension in a non-decreasing list

  • jdim [in]

    The data and computational domain extents of the second dimension in a non-decreasing list

  • kdim [in]

    The array extents of the third dimension in a non-decreasing list

  • suffix [in]

    optional suffix to make the name identifier unique

  • as_needed [in]

    Only do the spawn if the target type (var) is not set and the parent type (var_in) is set.

Callees call graph
Callees of mom_coupler_types::ct_spawn_1d_3d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_spawn_1d_3d CT_spawn_1d_3d [private/internal] mom_couplertype_infra::interface::ct_spawn CT_spawn (interface) mom_coupler_types::ct_spawn_1d_3d->mom_couplertype_infra::interface::ct_spawn
Text view
subroutine CT_spawn_2d_2d(var_in, var, idim, jdim, suffix, as_needed)

Generate one 2-D coupler type using another 2-D coupler type as a template.

Parameters
  • var_in [in]

    structure from which to copy information

  • var [inout]

    structure into which to copy information

  • idim [in]

    The data and computational domain extents of the first dimension in a non-decreasing list

  • jdim [in]

    The data and computational domain extents of the second dimension in a non-decreasing list

  • suffix [in]

    optional suffix to make the name identifier unique

  • as_needed [in]

    Only do the spawn if the target type (var) is not set and the parent type (var_in) is set.

Callees call graph
Callees of mom_coupler_types::ct_spawn_2d_2d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_spawn_2d_2d CT_spawn_2d_2d [private/internal] mom_couplertype_infra::interface::ct_spawn CT_spawn (interface) mom_coupler_types::ct_spawn_2d_2d->mom_couplertype_infra::interface::ct_spawn
Text view
subroutine CT_spawn_2d_3d(var_in, var, idim, jdim, kdim, suffix, as_needed)

Generate a 3-D coupler type using a 2-D coupler type as a template.

Parameters
  • var_in [in]

    structure from which to copy information

  • var [inout]

    structure into which to copy information

  • idim [in]

    The data and computational domain extents of the first dimension in a non-decreasing list

  • jdim [in]

    The data and computational domain extents of the second dimension in a non-decreasing list

  • kdim [in]

    The array extents of the third dimension in a non-decreasing list

  • suffix [in]

    optional suffix to make the name identifier unique

  • as_needed [in]

    Only do the spawn if the target type (var) is not set and the parent type (var_in) is set.

Callees call graph
Callees of mom_coupler_types::ct_spawn_2d_3d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_spawn_2d_3d CT_spawn_2d_3d [private/internal] mom_couplertype_infra::interface::ct_spawn CT_spawn (interface) mom_coupler_types::ct_spawn_2d_3d->mom_couplertype_infra::interface::ct_spawn
Text view
subroutine CT_spawn_3d_2d(var_in, var, idim, jdim, suffix, as_needed)

Generate a 2-D coupler type using a 3-D coupler type as a template.

Parameters
  • var_in [in]

    structure from which to copy information

  • var [inout]

    structure into which to copy information

  • idim [in]

    The data and computational domain extents of the first dimension in a non-decreasing list

  • jdim [in]

    The data and computational domain extents of the second dimension in a non-decreasing list

  • suffix [in]

    optional suffix to make the name identifier unique

  • as_needed [in]

    Only do the spawn if the target type (var) is not set and the parent type (var_in) is set.

Callees call graph
Callees of mom_coupler_types::ct_spawn_3d_2d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_spawn_3d_2d CT_spawn_3d_2d [private/internal] mom_couplertype_infra::interface::ct_spawn CT_spawn (interface) mom_coupler_types::ct_spawn_3d_2d->mom_couplertype_infra::interface::ct_spawn
Text view
subroutine CT_spawn_3d_3d(var_in, var, idim, jdim, kdim, suffix, as_needed)

Generate a 3-D coupler type using another 3-D coupler type as a template.

Parameters
  • var_in [in]

    structure from which to copy information

  • var [inout]

    structure into which to copy information

  • idim [in]

    The data and computational domain extents of the first dimension in a non-decreasing list

  • jdim [in]

    The data and computational domain extents of the second dimension in a non-decreasing list

  • kdim [in]

    The array extents of the third dimension in a non-decreasing list

  • suffix [in]

    optional suffix to make the name identifier unique

  • as_needed [in]

    Only do the spawn if the target type (var) is not set and the parent type (var_in) is set.

Callees call graph
Callees of mom_coupler_types::ct_spawn_3d_3d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_spawn_3d_3d CT_spawn_3d_3d [private/internal] mom_couplertype_infra::interface::ct_spawn CT_spawn (interface) mom_coupler_types::ct_spawn_3d_3d->mom_couplertype_infra::interface::ct_spawn
Text view
subroutine CT_copy_data_2d(var_in, var, halo_size, bc_index, field_index, exclude_flux_type, only_flux_type, pass_through_ice)

Copy all elements of the data in a coupler_2d_bc_type into another. Both must have the same array sizes.

Parameters
  • var_in [in]

    BC_type structure with the data to copy

  • var [inout]

    The recipient BC_type structure

  • halo_size [in]

    The extent of the halo to copy; 0 by default

  • bc_index [in]

    The index of the boundary condition that is being copied

  • field_index [in]

    The index of the field in the boundary condition that is being copied

  • exclude_flux_type [in]

    A string describing which types of fluxes to exclude from this copy.

  • only_flux_type [in]

    A string describing which types of fluxes to include from this copy.

  • pass_through_ice [in]

    If true, only copy BCs whose value of pass_through ice matches this

Callees call graph
Callees of mom_coupler_types::ct_copy_data_2d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_copy_data_2d CT_copy_data_2d [private/internal] mom_couplertype_infra::interface::ct_copy_data CT_copy_data (interface) mom_coupler_types::ct_copy_data_2d->mom_couplertype_infra::interface::ct_copy_data
Text view
subroutine CT_copy_data_3d(var_in, var, halo_size, bc_index, field_index, exclude_flux_type, only_flux_type, pass_through_ice)

Copy all elements of the data in a coupler_3d_bc_type into another. Both must have the same array sizes.

Parameters
  • var_in [in]

    BC_type structure with the data to copy

  • var [inout]

    The recipient BC_type structure

  • halo_size [in]

    The extent of the halo to copy; 0 by default

  • bc_index [in]

    The index of the boundary condition that is being copied

  • field_index [in]

    The index of the field in the boundary condition that is being copied

  • exclude_flux_type [in]

    A string describing which types of fluxes to exclude from this copy.

  • only_flux_type [in]

    A string describing which types of fluxes to include from this copy.

  • pass_through_ice [in]

    If true, only copy BCs whose value of pass_through ice matches this

Callees call graph
Callees of mom_coupler_types::ct_copy_data_3d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_copy_data_3d CT_copy_data_3d [private/internal] mom_couplertype_infra::interface::ct_copy_data CT_copy_data (interface) mom_coupler_types::ct_copy_data_3d->mom_couplertype_infra::interface::ct_copy_data
Text view
subroutine CT_copy_data_2d_3d(var_in, var, halo_size, bc_index, field_index, exclude_flux_type, only_flux_type, pass_through_ice, ind3_start, ind3_end)

Copy all elements of the data in a coupler_2d_bc_type into a coupler_3d_bc_type. Both must have the same array sizes for the first two dimensions, while the extent of the 3rd dimension that is being filled may be specified via optional arguments.

Parameters
  • var_in [in]

    BC_type structure with the data to copy

  • var [inout]

    The recipient BC_type structure

  • halo_size [in]

    The extent of the halo to copy; 0 by default

  • bc_index [in]

    The index of the boundary condition that is being copied

  • field_index [in]

    The index of the field in the boundary condition that is being copied

  • exclude_flux_type [in]

    A string describing which types of fluxes to exclude from this copy.

  • only_flux_type [in]

    A string describing which types of fluxes to include from this copy.

  • pass_through_ice [in]

    If true, only copy BCs whose value of pass_through ice matches this

  • ind3_start [in]

    The starting value of the 3rd index of the 3d type to fill in.

  • ind3_end [in]

    The ending value of the 3rd index of the 3d type to fill in.

Callees call graph
Callees of mom_coupler_types::ct_copy_data_2d_3d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_copy_data_2d_3d CT_copy_data_2d_3d [private/internal] mom_couplertype_infra::interface::ct_copy_data CT_copy_data (interface) mom_coupler_types::ct_copy_data_2d_3d->mom_couplertype_infra::interface::ct_copy_data
Text view
subroutine CT_increment_data_2d(var_in, var, halo_size, scale_factor, scale_prev)

Increment data in all elements of one coupler_2d_bc_type with the data from another. Both must have the same array sizes.

Parameters
  • var_in [in]

    A coupler_type structure with data in arbitrary arbitrary units [A] to add to the other type

  • var [inout]

    A coupler_type structure with data in arbitrary units [B] whose fields are being incremented

  • halo_size [in]

    The extent of the halo to increment; 0 by default

  • scale_factor [in]

    A scaling factor for the data that is being added in arbitrary units [C A-1]

  • scale_prev [in]

    A scaling factor for the data that is already here in arbitrary units [C B-1]

Callees call graph
Callees of mom_coupler_types::ct_increment_data_2d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_increment_data_2d CT_increment_data_2d [private/internal] mom_couplertype_infra::interface::ct_increment_data CT_increment_data (interface) mom_coupler_types::ct_increment_data_2d->mom_couplertype_infra::interface::ct_increment_data
Text view
subroutine CT_increment_data_3d(var_in, var, halo_size, scale_factor, scale_prev, exclude_flux_type, only_flux_type)

Increment data in all elements of one coupler_3d_bc_type with the data from another. Both must have the same array sizes.

Parameters
  • var_in [in]

    A coupler_type structure with data in arbitrary arbitrary units [A] to add to the other type

  • var [inout]

    A coupler_type structure with data in arbitrary units [B] whose fields are being incremented

  • halo_size [in]

    The extent of the halo to increment; 0 by default

  • scale_factor [in]

    A scaling factor for the data that is being added in arbitrary units [C A-1]

  • scale_prev [in]

    A scaling factor for the data that is already here in arbitrary units [C B-1]

  • exclude_flux_type [in]

    A string describing which types of fluxes to exclude from this increment.

  • only_flux_type [in]

    A string describing which types of fluxes to include from this increment.

Callees call graph
Callees of mom_coupler_types::ct_increment_data_3d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_increment_data_3d CT_increment_data_3d [private/internal] mom_couplertype_infra::interface::ct_increment_data CT_increment_data (interface) mom_coupler_types::ct_increment_data_3d->mom_couplertype_infra::interface::ct_increment_data
Text view
subroutine CT_increment_data_2d_3d(var_in, weights, var, halo_size)

Increment data in the elements of a coupler_2d_bc_type with weighted averages of elements of a coupler_3d_bc_type

Parameters
  • var_in [in]

    coupler_type structure with the data to add to the other type

  • weights [in]

    An array of normalized weights for the 3d-data to increment the 2d-data [nondim]. There is no renormalization, so if the weights do not sum to 1 in the 3rd dimension there may be adverse consequences!

  • var [inout]

    The coupler_type structure whose fields are being incremented

  • halo_size [in]

    The extent of the halo to increment; 0 by default

Callees call graph
Callees of mom_coupler_types::ct_increment_data_2d_3d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_increment_data_2d_3d CT_increment_data_2d_3d [private/internal] mom_couplertype_infra::interface::ct_increment_data CT_increment_data (interface) mom_coupler_types::ct_increment_data_2d_3d->mom_couplertype_infra::interface::ct_increment_data
Text view
subroutine CT_rescale_data_2d(var, scale)

Rescales the fields in the elements of a coupler_2d_bc_type by multiplying by a factor scale. If scale is 0, this is a direct assignment to 0, so that NaNs will not persist.

Parameters
  • var [inout]

    The BC_type structure whose fields are being rescaled, with the internal data units perhaps changing from arbitrary units [A] to other arbitrary units [B]

  • scale [in]

    A scaling factor to multiply fields by in arbitrary units [B A-1]

Callees call graph
Callees of mom_coupler_types::ct_rescale_data_2d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_rescale_data_2d CT_rescale_data_2d [private/internal] mom_couplertype_infra::interface::ct_rescale_data CT_rescale_data (interface) mom_coupler_types::ct_rescale_data_2d->mom_couplertype_infra::interface::ct_rescale_data
Text view
subroutine CT_rescale_data_3d(var, scale)

Rescales the fields in the elements of a coupler_3d_bc_type by multiplying by a factor scale. If scale is 0, this is a direct assignment to 0, so that NaNs will not persist.

Parameters
  • var [inout]

    The BC_type structure whose fields are being rescaled, with the internal data units perhaps changing from arbitrary units [A] to other arbitrary units [B]

  • scale [in]

    A scaling factor to multiply fields by in arbitrary units [B A-1]

Callees call graph
Callees of mom_coupler_types::ct_rescale_data_3d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_rescale_data_3d CT_rescale_data_3d [private/internal] mom_couplertype_infra::interface::ct_rescale_data CT_rescale_data (interface) mom_coupler_types::ct_rescale_data_3d->mom_couplertype_infra::interface::ct_rescale_data
Text view
subroutine CT_redistribute_data_2d(var_in, domain_in, var_out, domain_out, complete)

Redistribute the data in all elements of one coupler_2d_bc_type into another, which may be on different processors with a different decomposition.

Parameters
  • var_in [in]

    BC_type structure with the data to copy

  • domain_in [in]

    The FMS domain for the input structure

  • var_out [inout]

    The recipient BC_type structure (data intent out)

  • domain_out [in]

    The FMS domain for the output structure

  • complete [in]

    If true, complete the updates

Callees call graph
Callees of mom_coupler_types::ct_redistribute_data_2d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_redistribute_data_2d CT_redistribute_data_2d [private/internal] mom_couplertype_infra::interface::ct_redistribute_data CT_redistribute_data (interface) mom_coupler_types::ct_redistribute_data_2d->mom_couplertype_infra::interface::ct_redistribute_data
Text view
subroutine CT_redistribute_data_3d(var_in, domain_in, var_out, domain_out, complete)

Redistribute the data in all elements of one coupler_3d_bc_type into another, which may be on different processors with a different decomposition.

Parameters
  • var_in [in]

    BC_type structure with the data to copy

  • domain_in [in]

    The FMS domain for the input structure

  • var_out [inout]

    The recipient BC_type structure (data intent out)

  • domain_out [in]

    The FMS domain for the output structure

  • complete [in]

    If true, complete the updates

Callees call graph
Callees of mom_coupler_types::ct_redistribute_data_3d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_redistribute_data_3d CT_redistribute_data_3d [private/internal] mom_couplertype_infra::interface::ct_redistribute_data CT_redistribute_data (interface) mom_coupler_types::ct_redistribute_data_3d->mom_couplertype_infra::interface::ct_redistribute_data
Text view
subroutine coupler_type_data_override(gridname, var, time)

Potentially override the values in a coupler_2d_bc_type

Parameters
  • gridname [in]

    3-character long model grid ID

  • var [inout]

    BC_type structure to override

  • time [in]

    The current model time

Callees call graph
Callees of mom_coupler_types::coupler_type_data_override calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::coupler_type_data_override coupler_type_data_override mom_couplertype_infra::ct_data_override CT_data_override mom_coupler_types::coupler_type_data_override->mom_couplertype_infra::ct_data_override
Text view
subroutine extract_coupler_type_data(var_in, bc_index, array_out, scale_factor, halo_size, idim, jdim, field_index, turns)

Extract a 2d field from a coupler_2d_bc_type into a two-dimensional array, using a MOM-specific interface.

Parameters
  • var_in [in]

    BC_type structure with the data to extract The internal data has arbitrary units [B].

  • bc_index [in]

    The index of the boundary condition that is being copied

  • array_out [out]

    The recipient array for the field in arbitrary units [A]; the size of this array must match the size of the data being copied unless idim and jdim are supplied.

  • scale_factor [in]

    A scaling factor for the data that is being extracted, in arbitrary units [A B-1]

  • halo_size [in]

    The extent of the halo to copy; 0 by default

  • idim [in]

    The data and computational domain extents of the first dimension of the output array in a non-decreasing list

  • jdim [in]

    The data and computational domain extents of the second dimension of the output array in a non-decreasing list

  • field_index [in]

    The index of the field in the boundary condition that is being copied, or the surface flux by default.

  • turns [in]

    The number of quarter-turns from the unrotated coupler_2d_bt_type to model grid

Callees call graph
Callees of mom_coupler_types::extract_coupler_type_data calls cluster_mom_array_transform MOM_array_transform cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_array_transform::interface::allocate_rotated_array allocate_rotated_array (interface) mom_array_transform::interface::rotate_array rotate_array (interface) mom_coupler_types::extract_coupler_type_data extract_coupler_type_data mom_coupler_types::extract_coupler_type_data->mom_array_transform::interface::allocate_rotated_array mom_coupler_types::extract_coupler_type_data->mom_array_transform::interface::rotate_array mom_couplertype_infra::ct_extract_data CT_extract_data mom_coupler_types::extract_coupler_type_data->mom_couplertype_infra::ct_extract_data
Text view
Callers call graph
Callers of mom_coupler_types::extract_coupler_type_data calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC mom_coupler_types::extract_coupler_type_data extract_coupler_type_data mom_ocmip2_cfc::ocmip2_cfc_column_physics OCMIP2_CFC_column_physics mom_ocmip2_cfc::ocmip2_cfc_column_physics->mom_coupler_types::extract_coupler_type_data
Text view
subroutine set_coupler_type_data(array_in, bc_index, var, solubility, scale_factor, halo_size, idim, jdim, field_index, turns)

Set single 2d field in coupler_2d_bc_type from a two-dimensional array, using a MOM-specific interface.

Parameters
  • array_in [in]

    The source array for the field in arbitrary units [A]; the size of this array must match the size of the data being copied unless idim and jdim are supplied.

  • bc_index [in]

    The index of the boundary condition that is being copied

  • var [inout]

    BC_type structure with the data to set The internal data has arbitrary units [B].

  • solubility [in]

    If true and field index is missing, set the solubility field. Otherwise set the surface concentration (the default).

  • scale_factor [in]

    A scaling factor for the data that is being set, in arbitrary units [B A-1]

  • halo_size [in]

    The extent of the halo to copy; 0 by default

  • idim [in]

    The data and computational domain extents of the first dimension of the output array in a non-decreasing list

  • jdim [in]

    The data and computational domain extents of the second dimension of the output array in a non-decreasing list

  • field_index [in]

    The index of the field in the boundary condition that is being set. The surface concentration is set by default.

  • turns [in]

    The number of quarter-turns from the unrotated coupler_2d_bt_type to model grid

Callees call graph
Callees of mom_coupler_types::set_coupler_type_data calls cluster_mom_array_transform MOM_array_transform cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_array_transform::interface::allocate_rotated_array allocate_rotated_array (interface) mom_array_transform::interface::rotate_array rotate_array (interface) mom_coupler_types::set_coupler_type_data set_coupler_type_data mom_coupler_types::set_coupler_type_data->mom_array_transform::interface::allocate_rotated_array mom_coupler_types::set_coupler_type_data->mom_array_transform::interface::rotate_array mom_couplertype_infra::ct_set_data CT_set_data mom_coupler_types::set_coupler_type_data->mom_couplertype_infra::ct_set_data
Text view
Callers call graph
Callers of mom_coupler_types::set_coupler_type_data calls cluster_advection_test_tracer advection_test_tracer cluster_boundary_impulse_tracer boundary_impulse_tracer cluster_dome_tracer DOME_tracer cluster_ideal_age_example ideal_age_example cluster_isomip_tracer ISOMIP_tracer cluster_mom_coupler_types MOM_coupler_types cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_oil_tracer oil_tracer cluster_regional_dyes regional_dyes cluster_user_tracer_example USER_tracer_example advection_test_tracer::advection_test_tracer_surface_state advection_test_tracer_surface_state mom_coupler_types::set_coupler_type_data set_coupler_type_data advection_test_tracer::advection_test_tracer_surface_state->mom_coupler_types::set_coupler_type_data boundary_impulse_tracer::boundary_impulse_tracer_surface_state boundary_impulse_tracer_surface_state boundary_impulse_tracer::boundary_impulse_tracer_surface_state->mom_coupler_types::set_coupler_type_data dome_tracer::dome_tracer_surface_state DOME_tracer_surface_state dome_tracer::dome_tracer_surface_state->mom_coupler_types::set_coupler_type_data ideal_age_example::ideal_age_tracer_surface_state ideal_age_tracer_surface_state ideal_age_example::ideal_age_tracer_surface_state->mom_coupler_types::set_coupler_type_data isomip_tracer::isomip_tracer_surface_state ISOMIP_tracer_surface_state isomip_tracer::isomip_tracer_surface_state->mom_coupler_types::set_coupler_type_data mom_ocmip2_cfc::ocmip2_cfc_surface_state OCMIP2_CFC_surface_state mom_ocmip2_cfc::ocmip2_cfc_surface_state->mom_coupler_types::set_coupler_type_data oil_tracer::oil_tracer_surface_state oil_tracer_surface_state oil_tracer::oil_tracer_surface_state->mom_coupler_types::set_coupler_type_data regional_dyes::dye_tracer_surface_state dye_tracer_surface_state regional_dyes::dye_tracer_surface_state->mom_coupler_types::set_coupler_type_data user_tracer_example::user_tracer_surface_state USER_tracer_surface_state user_tracer_example::user_tracer_surface_state->mom_coupler_types::set_coupler_type_data
Text view
subroutine coupler_type_set_diags(var, diag_name, axes, time)

Register the diagnostics of a coupler_2d_bc_type

Parameters
  • var [inout]

    BC_type structure for which to register diagnostics

  • diag_name [in]

    name for diagnostic file, or blank not to register the fields

  • axes [in]

    array of axes identifiers for diagnostic variable registration

  • time [in]

    model time variable for registering diagnostic field

Callees call graph
Callees of mom_coupler_types::coupler_type_set_diags calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::coupler_type_set_diags coupler_type_set_diags mom_couplertype_infra::ct_set_diags CT_set_diags mom_coupler_types::coupler_type_set_diags->mom_couplertype_infra::ct_set_diags
Text view
subroutine coupler_type_send_data(var, Time)

Write out all diagnostics of elements of a coupler_2d_bc_type

Parameters
  • var [in]

    BC_type structure with the diagnostics to write

  • time [in]

    The current model time

Callees call graph
Callees of mom_coupler_types::coupler_type_send_data calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::coupler_type_send_data coupler_type_send_data mom_couplertype_infra::ct_send_data CT_send_data mom_coupler_types::coupler_type_send_data->mom_couplertype_infra::ct_send_data
Text view
Callers call graph
Callers of mom_coupler_types::coupler_type_send_data calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_diagnostics MOM_diagnostics mom_coupler_types::coupler_type_send_data coupler_type_send_data mom_diagnostics::post_surface_thermo_diags post_surface_thermo_diags mom_diagnostics::post_surface_thermo_diags->mom_coupler_types::coupler_type_send_data
Text view
subroutine CT_write_chksums_2d(var, outunit, name_lead)

Write out checksums for the elements of a coupler_2d_bc_type

Parameters
  • var [in]

    BC_type structure for which to register diagnostics

  • outunit [in]

    The index of a open output file

  • name_lead [in]

    An optional prefix for the variable names

Callees call graph
Callees of mom_coupler_types::ct_write_chksums_2d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_write_chksums_2d CT_write_chksums_2d [private/internal] mom_couplertype_infra::interface::ct_write_chksums CT_write_chksums (interface) mom_coupler_types::ct_write_chksums_2d->mom_couplertype_infra::interface::ct_write_chksums
Text view
subroutine CT_write_chksums_3d(var, outunit, name_lead)

Write out checksums for the elements of a coupler_3d_bc_type

Parameters
  • var [in]

    BC_type structure for which to register diagnostics

  • outunit [in]

    The index of a open output file

  • name_lead [in]

    An optional prefix for the variable names

Callees call graph
Callees of mom_coupler_types::ct_write_chksums_3d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_write_chksums_3d CT_write_chksums_3d [private/internal] mom_couplertype_infra::interface::ct_write_chksums CT_write_chksums (interface) mom_coupler_types::ct_write_chksums_3d->mom_couplertype_infra::interface::ct_write_chksums
Text view
logical function CT_initialized_1d(var)

Indicate whether a coupler_1d_bc_type has been initialized.

Parameters
  • var [in]

    BC_type structure to be deconstructed

Callees call graph
Callees of mom_coupler_types::ct_initialized_1d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_initialized_1d CT_initialized_1d [private/internal] mom_couplertype_infra::interface::ct_initialized CT_initialized (interface) mom_coupler_types::ct_initialized_1d->mom_couplertype_infra::interface::ct_initialized
Text view
logical function CT_initialized_2d(var)

Indicate whether a coupler_2d_bc_type has been initialized.

Parameters
  • var [in]

    BC_type structure to be deconstructed

Callees call graph
Callees of mom_coupler_types::ct_initialized_2d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_initialized_2d CT_initialized_2d [private/internal] mom_couplertype_infra::interface::ct_initialized CT_initialized (interface) mom_coupler_types::ct_initialized_2d->mom_couplertype_infra::interface::ct_initialized
Text view
logical function CT_initialized_3d(var)

Indicate whether a coupler_3d_bc_type has been initialized.

Parameters
  • var [in]

    BC_type structure to be deconstructed

Callees call graph
Callees of mom_coupler_types::ct_initialized_3d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_initialized_3d CT_initialized_3d [private/internal] mom_couplertype_infra::interface::ct_initialized CT_initialized (interface) mom_coupler_types::ct_initialized_3d->mom_couplertype_infra::interface::ct_initialized
Text view
subroutine CT_destructor_1d(var)

Deallocate all data associated with a coupler_1d_bc_type

Parameters
  • var [inout]

    BC_type structure to be deconstructed

Callees call graph
Callees of mom_coupler_types::ct_destructor_1d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_destructor_1d CT_destructor_1d [private/internal] mom_couplertype_infra::interface::ct_destructor CT_destructor (interface) mom_coupler_types::ct_destructor_1d->mom_couplertype_infra::interface::ct_destructor
Text view
subroutine CT_destructor_2d(var)

Deallocate all data associated with a coupler_2d_bc_type

Parameters
  • var [inout]

    BC_type structure to be deconstructed

Callees call graph
Callees of mom_coupler_types::ct_destructor_2d calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_couplertype_infra MOM_couplertype_infra mom_coupler_types::ct_destructor_2d CT_destructor_2d [private/internal] mom_couplertype_infra::interface::ct_destructor CT_destructor (interface) mom_coupler_types::ct_destructor_2d->mom_couplertype_infra::interface::ct_destructor
Text view
API generated with Flint · Rendered from reStructuredText