next up previous contents
Next: 4.7 Fortran: Module Interface Up: 4 Module Descriptions Previous: 4.5 Fortran: Module Interface   Contents

Subsections

4.6 Fortran: Module Interface ice_coupling - message passing to and from the coupler (Source File: ice_coupling.F)

Message passing to and from the coupler


REVISION HISTORY:

   author: Elizabeth C. Hunke, LANL
INTERFACE:
       module ice_coupling
USES:
       use ice_calendar
       use ice_model_size
       use ice_prescribed
       use shr_sys_mod, only : shr_sys_flush, shr_sys_abort

4.6.1 init_cpl - initializes message passing between ice and coupler


INTERFACE:

       subroutine init_cpl
DESCRIPTION:

Initializes message passing between ice and coupler


REVISION HISTORY:

   author: Elizabeth C. Hunke, LANL
USES:
       use ice_domain
       use ice_constants
       use ice_mpi_internal
       use ice_grid
       use ice_calendar
       use ice_history, only : runtype
INPUT/OUTPUT PARAMETERS:


4.6.2 from_coupler - input from coupler to sea ice model


INTERFACE:

       subroutine from_coupler
DESCRIPTION:

Reads input data from coupler to sea ice model


REVISION HISTORY:

   author: Elizabeth C. Hunke, LANL
USES:
       use ice_domain
       use ice_constants
       use ice_flux
       use ice_timers
       use ice_mpi_internal
       use ice_diagnostics
       use ice_grid
       use ice_calendar
       use ice_state
       use ice_prnpnt
INPUT/OUTPUT PARAMETERS:


4.6.3 to_coupler - send data from sea ice model to coupler


INTERFACE:

       subroutine to_coupler
DESCRIPTION:

Sea ice model to coupler


REVISION HISTORY:

   author: Elizabeth C. Hunke, LANL
USES:
       use ice_model_size
       use ice_domain
       use ice_constants
       use ice_flux
       use ice_timers
       use ice_mpi_internal
       use ice_albedo
       use ice_diagnostics
       use ice_grid
       use ice_calendar
       use ice_state
       use ice_history, only : sabs
       use ice_prnpnt
       use ice_prescribed
       use ice_ocean
INPUT/OUTPUT PARAMETERS:


4.6.4 exit_coupler - exit from coupled/mpi environment


INTERFACE:

       subroutine exit_coupler
DESCRIPTION:

Exit from coupled/MPI environment


REVISION HISTORY:

   author: Elizabeth C. Hunke, LANL
USES:
       use ice_kinds_mod
       use ice_model_size
       use ice_domain
INPUT/OUTPUT PARAMETERS:


4.6.5 mpi_coupled - sets mpi communicators and component task ids


INTERFACE:

       subroutine mpi_coupled (in_model_name, 
      &                        cpl_task, model_task, model_comm)
DESCRIPTION:

This routine queries all the components of the full coupled
system and sets up proper communicators and task ids for each
component of the coupled system

This routine should be called after mpi-init, but before
setting up any internal mpi setups (since these will require
the internal communicators returned by this routine)

Code originally based on POP routine


REVISION HISTORY:

   author: Elizabeth C. Hunke, LANL
USES:
       include "mpif.h"                  ! MPI library definitions
INPUT/OUTPUT PARAMETERS:
       character (3), intent(in) :: in_model_name   
                         ! 3-letter identifier (atm, lnd, ocn, ice, cpl)
                         ! for the model calling this routine
 
       integer, intent(out) ::
      &  cpl_task           ! master task of coupler
      &, model_task         ! master task of model (in MPI_COMM_WORLD)
      &, model_comm         ! communicator for internal model comms


next up previous contents
Next: 4.7 Fortran: Module Interface Up: 4 Module Descriptions Previous: 4.5 Fortran: Module Interface   Contents
csm@ucar.edu