MOM_particles_mod module reference

A set of dummy interfaces for compiling the MOM6 drifters code

Functions/Subroutines

particles_init

Initializes particles container "parts"

particles_run

The main driver the steps updates particles

particles_save_restart

Save particle locations (and sometimes other vars) to restart file

particles_end

Deallocate all memory and disassociated pointer

particles_to_k_space

particles_to_z_space

Functions/Subroutine Documentation

subroutine particles_init(parts, Grid, Time, dt, u, v, h)

Initializes particles container "parts"

Parameters
  • parts [out]

    Container for all types and memory

  • Grid [in]

    Grid type from parent model

  • Time [in]

    Time type from parent model

  • dt [in]

    particle timestep in seconds [T ~> s]

  • u [in]

    Zonal velocity field [L T-1 ~> m s-1]

  • v [in]

    Meridional velocity field [L T-1 ~> m s-1]

  • h [in]

    Thickness of each layer [H ~> m or kg m-2]

Callers call graph
Callers of mom_particles_mod::particles_init calls cluster_mom MOM cluster_mom_particles_mod MOM_particles_mod mom::finish_mom_initialization finish_MOM_initialization mom_particles_mod::particles_init particles_init mom::finish_mom_initialization->mom_particles_mod::particles_init
Text view
subroutine particles_run(parts, time, uo, vo, ho, tv, dt_adv, use_uh)

The main driver the steps updates particles

Parameters
  • parts

    Container for all types and memory

  • time [in]

    Model time

  • uo [in]

    If use_uh is false, ocean zonal velocity [L T-1 ~>m s-1]. If use_uh is true, accumulated zonal thickness fluxes that are used to advect tracers [H L2 ~> m3 or kg]

  • vo [in]

    If use_uh is false, ocean meridional velocity [L T-1 ~>m s-1]. If use_uh is true, accumulated meridional thickness fluxes that are used to advect tracers [H L2 ~> m3 or kg]

  • ho [in]

    Ocean layer thickness [H ~> m or kg m-2]

  • tv [in]

    structure containing pointers to available thermodynamic fields

  • dt_adv [in]

    timestep for advecting particles [s]

  • use_uh

    Flag for whether u and v are weighted by thickness

Callers call graph
Callers of mom_particles_mod::particles_run calls cluster_mom MOM cluster_mom_particles_mod MOM_particles_mod mom::step_mom_dynamics step_MOM_dynamics [private/internal] mom_particles_mod::particles_run particles_run mom::step_mom_dynamics->mom_particles_mod::particles_run mom::step_mom_tracer_dyn step_MOM_tracer_dyn [private/internal] mom::step_mom_tracer_dyn->mom_particles_mod::particles_run
Text view
subroutine particles_save_restart(parts, h, directory, time, time_stamped)

Save particle locations (and sometimes other vars) to restart file

Parameters
  • parts

    Container for all types and memory

  • h [in]

    Thickness of each layer [H ~> m or kg m-2]

  • directory [in]

    The directory where the restart files are to be written

  • time [in]

    The current model time

  • time_stamped [in]

    If present and true, add time-stamp to the restart file names

Callers call graph
Callers of mom_particles_mod::particles_save_restart calls cluster_mom MOM cluster_mom_particles_mod MOM_particles_mod mom::save_mom_restart save_MOM_restart mom_particles_mod::particles_save_restart particles_save_restart mom::save_mom_restart->mom_particles_mod::particles_save_restart
Text view
subroutine particles_end(parts, h, temp, salt)

Deallocate all memory and disassociated pointer

Parameters
  • parts

    Container for all types and memory

  • h [in]

    Thickness of each layer [H ~> m or kg m-2]

  • temp [in]

    Optional container for temperature [C ~> degC]

  • salt [in]

    Optional container for salinity [S ~> ppt]

Callers call graph
Callers of mom_particles_mod::particles_end calls cluster_mom MOM cluster_mom_particles_mod MOM_particles_mod mom::mom_end MOM_end mom_particles_mod::particles_end particles_end mom::mom_end->mom_particles_mod::particles_end
Text view

subroutine particles_to_k_space(parts, h)

Parameters
  • parts

    Container for all types and memory

  • h [in]

    Thickness of layers [H ~> m or kg m-2]

Callers call graph
Callers of mom_particles_mod::particles_to_k_space calls cluster_mom MOM cluster_mom_particles_mod MOM_particles_mod mom::post_diabatic_halo_updates post_diabatic_halo_updates [private/internal] mom_particles_mod::particles_to_k_space particles_to_k_space mom::post_diabatic_halo_updates->mom_particles_mod::particles_to_k_space mom::step_mom_dynamics step_MOM_dynamics [private/internal] mom::step_mom_dynamics->mom_particles_mod::particles_to_k_space
Text view

subroutine particles_to_z_space(parts, h)

Parameters
  • parts

    Container for all types and memory

  • h [in]

    Thickness of layers [H ~> m or kg m-2]

Callers call graph
Callers of mom_particles_mod::particles_to_z_space calls cluster_mom MOM cluster_mom_particles_mod MOM_particles_mod mom::ale_regridding_and_remapping ALE_regridding_and_remapping [private/internal] mom_particles_mod::particles_to_z_space particles_to_z_space mom::ale_regridding_and_remapping->mom_particles_mod::particles_to_z_space mom::step_mom_dynamics step_MOM_dynamics [private/internal] mom::step_mom_dynamics->mom_particles_mod::particles_to_z_space
Text view
API generated with Flint · Rendered from reStructuredText