particles_types_mod module reference

Dummy data structures and methods for drifters package

Data Types

particles_gridded

Container for gridded fields

xyt

xyt is a data structure containing particle position and velocity fields.

particle

particle types are data structures describing a tracked particle

buffer

A buffer structure for message passing

linked_list

A wrapper for the particle linked list (since an array of pointers is not allowed)

particles

A grand data structure for the particles in the local MOM domain

Type Documentation

type, public :: particles_gridded

Container for gridded fields

Parameters
  • domain

    MPP parallel domain

  • halo

    Nominal halo width

  • isc

    Start i-index of computational domain

  • iec

    End i-index of computational domain

  • jsc

    Start j-index of computational domain

  • jec

    End j-index of computational domain

  • isd

    Start i-index of data domain

  • ied

    End i-index of data domain

  • jsd

    Start j-index of data domain

  • jed

    End j-index of data domain

  • isg

    Start i-index of global domain

  • ieg

    End i-index of global domain

  • jsg

    Start j-index of global domain

  • jeg

    End j-index of global domain

  • is_offset

    add to i to recover global i-index

  • js_offset

    add to j to recover global j-index

  • my_pe

    MPI PE index

  • pe_N

    MPI PE index of PE to the north

  • pe_S

    MPI PE index of PE to the south

  • pe_E

    MPI PE index of PE to the east

  • pe_W

    MPI PE index of PE to the west

  • grid_is_latlon

    Flag to say whether the coordinate is in lat-lon degrees, or meters

  • grid_is_regular

    Flag to say whether point in cell can be found assuming regular Cartesian grid

  • Lx

    Length of the domain in x direction

  • lon

    Longitude of cell corners (degree E)

  • lat

    Latitude of cell corners (degree N)

  • lonc

    Longitude of cell centers (degree E)

  • latc

    Latitude of cell centers (degree N)

  • dx

    Length of cell edge (m)

  • dy

    Length of cell edge (m)

  • area

    Area of cell (m^2)

  • msk

    Ocean-land mask (1=ocean)

  • cos

    Cosine from rotation matrix to lat-lon coords

  • sin

    Sine from rotation matrix to lat-lon coords

  • ocean_depth

    Depth of ocean (m)

  • uo

    Ocean zonal flow (m/s)

  • vo

    Ocean meridional flow (m/s)

  • tmp

    Temporary work space

  • tmpc

    Temporary work space

  • parity_x

    X component of vector point from i,j to i+1,j+1

  • parity_y

    Y component of vector point from i,j to i+1,j+1

  • id_uo

    Diagnostic handle

  • id_vo

    Diagnostic handle

  • id_unused

    Diagnostic handle

  • id_count

    Diagnostic handle

  • id_chksum

    Diagnostic handle

type, public :: xyt

xyt is a data structure containing particle position and velocity fields.

Parameters
  • lon

    Longitude of particle (degree N or unit of grid coordinate)

  • lat

    Latitude of particle (degree N or unit of grid coordinate)

  • day

    Day of this record (days)

  • lat_old

    Previous latitude

  • lon_old

    Previous longitude

  • uvel

    Zonal velocity of particle (m/s)

  • vvel

    Meridional velocity of particle (m/s)

  • uvel_old

    Previous zonal velocity component (m/s)

  • vvel_old

    Previous meridional velocity component (m/s)

  • year

    Year of this record

  • particle_num

    Current particle number

  • id

    Particle Identifier

  • next

    Pointer to the next position in the list

type, public :: particle

particle types are data structures describing a tracked particle

Parameters
  • prev

    Previous link in list

  • next

    Next link in list

  • lon

    Longitude of particle (degree N or unit of grid coordinate)

  • lat

    Latitude of particle (degree E or unit of grid coordinate)

  • depth

    Depth of particle

  • uvel

    Zonal velocity of particle (m/s)

  • vvel

    Meridional velocity of particle (m/s)

  • lon_old

    previous lon (degrees)

  • lat_old

    previous lat (degrees)

  • uvel_old

    previous uvel

  • vvel_old

    previous vvel

  • start_lon

    starting longitude where particle was created

  • start_lat

    starting latitude where particle was created

  • start_day

    origination position (degrees) and day

  • start_year

    origination year

  • halo_part

    equal to zero for particles on the computational domain, and 1 for particles on the halo

  • id

    particle identifier

  • drifter_num

    particle identifier

  • ine

    nearest i-index in NE direction (for convenience)

  • jne

    nearest j-index in NE direction (for convenience)

  • xi

    non-dimensional x-coordinate within current cell (0..1)

  • yj

    non-dimensional y-coordinate within current cell (0..1)

  • uo

    zonal ocean velocity

  • vo

    meridional ocean velocity by the particle (m/s)

  • trajectory

    Trajectory for this particle

type, public :: buffer

A buffer structure for message passing

Parameters
  • size

    Size of buffer

  • data

    Buffer memory

type, public :: linked_list

A wrapper for the particle linked list (since an array of pointers is not allowed)

Parameters
  • first

    Pointer to the beginning of a linked list of parts

type, public :: particles

A grand data structure for the particles in the local MOM domain

Parameters
  • grd

    Container with all gridded data

  • list

    Linked list of particles

  • trajectories

    A linked list for detached segments of trajectories

  • dt

    Time-step between particle calls

  • current_year

    Current year (years)

  • current_yearday

    Current year-day, 1.00-365.99, (days)

  • traj_sample_hrs

    Period between sampling for trajectories (hours)

  • traj_write_hrs

    Period between writing of trajectories (hours)

  • clock

    Handles for clocks

  • clock_mom

    Handles for clocks

  • clock_the

    Handles for clocks

  • clock_int

    Handles for clocks

  • clock_cal

    Handles for clocks

  • clock_com

    Handles for clocks

  • clock_ini

    Handles for clocks

  • clock_ior

    Handles for clocks

  • clock_iow

    Handles for clocks

  • clock_dia

    Handles for clocks

  • clock_trw

    Handles for clocks

  • clock_trp

    Handles for clocks

  • restarted

    Indicate whether we read state from a restart or not

  • Runge_not_Verlet

    True=Runge-Kutta, False=Verlet.

  • ignore_missing_restart_parts

    True allows the model to ignore particles missing in the restart.

  • halo_debugging

    Use for debugging halos (remove when its working)

  • save_short_traj

    True saves only lon,lat,time,id in particle_trajectory.nc

  • ignore_traj

    If true, then model does not write trajectory data at all

  • use_new_predictive_corrective

    Flag to use Bob's predictive corrective particle scheme

  • debug_particle_with_id

    If positive, monitors a part with this id

  • obuffer_n

    Buffer for outgoing parts to the north

  • ibuffer_n

    Buffer for incoming parts from the north

  • obuffer_s

    Buffer for outgoing parts to the south

  • ibuffer_s

    Buffer for incoming parts from the south

  • obuffer_e

    Buffer for outgoing parts to the east

  • ibuffer_e

    Buffer for incoming parts from the east

  • obuffer_w

    Buffer for outgoing parts to the west

  • ibuffer_w

    Buffer for incoming parts from the west

  • obuffer_io

    Buffer for outgoing parts during i/o

  • ibuffer_io

    Buffer for incoming parts during i/o

API generated with Flint · Rendered from reStructuredText