PISM, A Parallel Ice Sheet Model stable 0.4.1779
Functions

src/base/iMutil.cc File Reference

#include <sstream>
#include <cstring>
#include "iceModel.hh"
#include "pism_signal.h"
#include <petscvec.h>

Go to the source code of this file.

Functions

static PetscReal triangle_area (PetscReal *A, PetscReal *B, PetscReal *C)
 Computes the area of a triangle using vector cross product.
static PetscReal sin_degrees (PetscReal deg)
static PetscReal cos_degrees (PetscReal deg)
static PetscReal geo_x (PetscReal a, PetscReal b, PetscReal lon, PetscReal lat)
static PetscReal geo_y (PetscReal a, PetscReal b, PetscReal lon, PetscReal lat)
static PetscReal geo_z (PetscReal a, PetscReal b, PetscReal, PetscReal lat)

Function Documentation

static PetscReal cos_degrees ( PetscReal  deg) [inline, static]

Definition at line 312 of file iMutil.cc.

Referenced by geo_x(), and geo_y().

static PetscReal geo_x ( PetscReal  a,
PetscReal  b,
PetscReal  lon,
PetscReal  lat 
) [static]

Computes geocentric x-coordinate of a point using reference ellipsoid parameters. (see http://en.wikipedia.org/wiki/Reference_ellipsoid)

Definition at line 318 of file iMutil.cc.

References cos_degrees(), vfnow::N, and sin_degrees().

Referenced by IceModel::compute_cell_areas().

static PetscReal geo_y ( PetscReal  a,
PetscReal  b,
PetscReal  lon,
PetscReal  lat 
) [static]

Computes geocentric y-coordinate of a point using reference ellipsoid parameters. (see http://en.wikipedia.org/wiki/Reference_ellipsoid)

Definition at line 328 of file iMutil.cc.

References cos_degrees(), vfnow::N, and sin_degrees().

Referenced by IceModel::compute_cell_areas().

static PetscReal geo_z ( PetscReal  a,
PetscReal  b,
PetscReal  ,
PetscReal  lat 
) [static]

Computes geocentric z-coordinate of a point using reference ellipsoid parameters. (see http://en.wikipedia.org/wiki/Reference_ellipsoid)

Definition at line 338 of file iMutil.cc.

References vfnow::N, and sin_degrees().

Referenced by IceModel::compute_cell_areas().

static PetscReal sin_degrees ( PetscReal  deg) [inline, static]

Definition at line 308 of file iMutil.cc.

Referenced by geo_x(), geo_y(), and geo_z().

static PetscReal triangle_area ( PetscReal A,
PetscReal B,
PetscReal C 
) [static]

Computes the area of a triangle using vector cross product.

Definition at line 296 of file iMutil.cc.

Referenced by IceModel::compute_cell_areas().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines