FV3 Bundle
gradient_c2l.c File Reference
#include <math.h>
#include <stdlib.h>
#include "constant.h"
#include "mosaic_util.h"
#include "gradient_c2l.h"
#include <stdio.h>
Include dependency graph for gradient_c2l.c:

Go to the source code of this file.

Functions

void grad_c2l_ (const int *nlon, const int *nlat, const double *pin, const double *dx, const double *dy, const double *area, const double *edge_w, const double *edge_e, const double *edge_s, const double *edge_n, const double *en_n, const double *en_e, const double *vlon, const double *vlat, double *grad_x, double *grad_y, const int *on_west_edge, const int *on_east_edge, const int *on_south_edge, const int *on_north_edge)
 
void grad_c2l (const int *nlon, const int *nlat, const double *pin, const double *dx, const double *dy, const double *area, const double *edge_w, const double *edge_e, const double *edge_s, const double *edge_n, const double *en_n, const double *en_e, const double *vlon, const double *vlat, double *grad_x, double *grad_y, const int *on_west_edge, const int *on_east_edge, const int *on_south_edge, const int *on_north_edge)
 
void a2b_ord2 (int nx, int ny, const double *qin, const double *edge_w, const double *edge_e, const double *edge_s, const double *edge_n, double *qout, int on_west_edge, int on_east_edge, int on_south_edge, int on_north_edge)
 
void get_edge (int nx, int ny, const double *lont, const double *latt, const double *lonc, const double *latc, double *edge_w, double *edge_e, double *edge_s, double *edge_n, int on_west_edge, int on_east_edge, int on_south_edge, int on_north_edge)
 
void mid_pt_sphere (const double *p1, const double *p2, double *pm)
 
void mid_pt3_cart (const double *p1, const double *p2, double *e)
 
void calc_c2l_grid_info_ (int *nx_pt, int *ny_pt, const double *xt, const double *yt, const double *xc, const double *yc, double *dx, double *dy, double *area, double *edge_w, double *edge_e, double *edge_s, double *edge_n, double *en_n, double *en_e, double *vlon, double *vlat, int *on_west_edge, int *on_east_edge, int *on_south_edge, int *on_north_edge)
 
void calc_c2l_grid_info (int *nx_pt, int *ny_pt, const double *xt, const double *yt, const double *xc, const double *yc, double *dx, double *dy, double *area, double *edge_w, double *edge_e, double *edge_s, double *edge_n, double *en_n, double *en_e, double *vlon, double *vlat, int *on_west_edge, int *on_east_edge, int *on_south_edge, int *on_north_edge)
 

Function Documentation

◆ a2b_ord2()

void a2b_ord2 ( int  nx,
int  ny,
const double *  qin,
const double *  edge_w,
const double *  edge_e,
const double *  edge_s,
const double *  edge_n,
double *  qout,
int  on_west_edge,
int  on_east_edge,
int  on_south_edge,
int  on_north_edge 
)

Definition at line 119 of file gradient_c2l.c.

Here is the caller graph for this function:

◆ calc_c2l_grid_info()

void calc_c2l_grid_info ( int *  nx_pt,
int *  ny_pt,
const double *  xt,
const double *  yt,
const double *  xc,
const double *  yc,
double *  dx,
double *  dy,
double *  area,
double *  edge_w,
double *  edge_e,
double *  edge_s,
double *  edge_n,
double *  en_n,
double *  en_e,
double *  vlon,
double *  vlat,
int *  on_west_edge,
int *  on_east_edge,
int *  on_south_edge,
int *  on_north_edge 
)

Definition at line 379 of file gradient_c2l.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calc_c2l_grid_info_()

void calc_c2l_grid_info_ ( int *  nx_pt,
int *  ny_pt,
const double *  xt,
const double *  yt,
const double *  xc,
const double *  yc,
double *  dx,
double *  dy,
double *  area,
double *  edge_w,
double *  edge_e,
double *  edge_s,
double *  edge_n,
double *  en_n,
double *  en_e,
double *  vlon,
double *  vlat,
int *  on_west_edge,
int *  on_east_edge,
int *  on_south_edge,
int *  on_north_edge 
)

Definition at line 369 of file gradient_c2l.c.

Here is the call graph for this function:

◆ get_edge()

void get_edge ( int  nx,
int  ny,
const double *  lont,
const double *  latt,
const double *  lonc,
const double *  latc,
double *  edge_w,
double *  edge_e,
double *  edge_s,
double *  edge_n,
int  on_west_edge,
int  on_east_edge,
int  on_south_edge,
int  on_north_edge 
)

Definition at line 209 of file gradient_c2l.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ grad_c2l()

void grad_c2l ( const int *  nlon,
const int *  nlat,
const double *  pin,
const double *  dx,
const double *  dy,
const double *  area,
const double *  edge_w,
const double *  edge_e,
const double *  edge_s,
const double *  edge_n,
const double *  en_n,
const double *  en_e,
const double *  vlon,
const double *  vlat,
double *  grad_x,
double *  grad_y,
const int *  on_west_edge,
const int *  on_east_edge,
const int *  on_south_edge,
const int *  on_north_edge 
)

Definition at line 53 of file gradient_c2l.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ grad_c2l_()

void grad_c2l_ ( const int *  nlon,
const int *  nlat,
const double *  pin,
const double *  dx,
const double *  dy,
const double *  area,
const double *  edge_w,
const double *  edge_e,
const double *  edge_s,
const double *  edge_n,
const double *  en_n,
const double *  en_e,
const double *  vlon,
const double *  vlat,
double *  grad_x,
double *  grad_y,
const int *  on_west_edge,
const int *  on_east_edge,
const int *  on_south_edge,
const int *  on_north_edge 
)

Definition at line 43 of file gradient_c2l.c.

Here is the call graph for this function:

◆ mid_pt3_cart()

void mid_pt3_cart ( const double *  p1,
const double *  p2,
double *  e 
)

Definition at line 337 of file gradient_c2l.c.

Here is the caller graph for this function:

◆ mid_pt_sphere()

void mid_pt_sphere ( const double *  p1,
const double *  p2,
double *  pm 
)

Definition at line 326 of file gradient_c2l.c.

Here is the call graph for this function:
Here is the caller graph for this function: