FMS 2025.01-dev
Flexible Modeling System
Loading...
Searching...
No Matches
gradient_mod

Implements some utility routines to calculate gradient. More...

Functions/Subroutines

subroutine, public calc_cubic_grid_info (xt, yt, xc, yc, dx, dy, area, edge_w, edge_e, edge_s, edge_n, en_n, en_e, vlon, vlat, on_west_edge, on_east_edge, on_south_edge, on_north_edge)
 

Detailed Description

Implements some utility routines to calculate gradient.

Author
Zhi Liang

Currently only gradient on cubic grid is implemented. Also a public interface is provided to calculate grid information needed to calculate gradient.

Function/Subroutine Documentation

◆ calc_cubic_grid_info()

subroutine, public calc_cubic_grid_info ( real(r8_kind), dimension(:,: ), intent(in)  xt,
real(r8_kind), dimension(:,: ), intent(in)  yt,
real(r8_kind), dimension(:,: ), intent(in)  xc,
real(r8_kind), dimension(:,: ), intent(in)  yc,
real(r8_kind), dimension(:,: ), intent(out)  dx,
real(r8_kind), dimension(:,: ), intent(out)  dy,
real(r8_kind), dimension(:,: ), intent(out)  area,
real(r8_kind), dimension(: ), intent(out)  edge_w,
real(r8_kind), dimension(: ), intent(out)  edge_e,
real(r8_kind), dimension(: ), intent(out)  edge_s,
real(r8_kind), dimension(: ), intent(out)  edge_n,
real(r8_kind), dimension(:,:,:), intent(out)  en_n,
real(r8_kind), dimension(:,:,:), intent(out)  en_e,
real(r8_kind), dimension(:,:,:), intent(out)  vlon,
real(r8_kind), dimension(:,:,:), intent(out)  vlat,
logical, intent(in)  on_west_edge,
logical, intent(in)  on_east_edge,
logical, intent(in)  on_south_edge,
logical, intent(in)  on_north_edge 
)

Definition at line 107 of file gradient.F90.