Utilities

This module contains functions, objects, and constants used by various modules in the coupler.

Utilities API

ClimaCoupler.Utilities.swap_space!Function
swap_space!(space_out::CC.Spaces.AbstractSpace, field_in::CC.Fields.Field)

Remap the values of a field onto a new space.

Arguments

  • space_out: [CC.Spaces.AbstractSpace] The axes of the space we want to remap onto
  • field_in: [CC.Fields.Field] to be remapped to new space.
ClimaCoupler.Utilities.get_comms_contextFunction
get_comms_context(parsed_args)

Sets up the appropriate ClimaComms context for the device the model is to be run on

Arguments

parsed_args: dictionary containing a "device" flag whcih decides which device context is needed

ClimaCoupler.Utilities.get_deviceFunction
get_device(parsed_args)

Returns the device on which the model is being run

Arguments

  • parsed_args: dictionary containing a "device" flag which decides which device to run on