stable0.3/src/base/iMutil.cc File Reference

#include <sstream>
#include <cstring>
#include "iceModel.hh"
#include "pism_signal.h"
#include <petscvec.h>
Include dependency graph for iMutil.cc:

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 lon, PetscReal lat)

Function Documentation

static PetscReal cos_degrees ( PetscReal  deg  )  [static]

Definition at line 386 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 392 of file iMutil.cc.

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

Referenced by IceModel.correct_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 402 of file iMutil.cc.

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

Referenced by IceModel.correct_cell_areas().

static PetscReal geo_z ( PetscReal  a,
PetscReal  b,
PetscReal  lon,
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 412 of file iMutil.cc.

References vfnow.N, and sin_degrees().

Referenced by IceModel.correct_cell_areas().

static PetscReal sin_degrees ( PetscReal  deg  )  [static]

Definition at line 382 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 370 of file iMutil.cc.

Referenced by IceModel.correct_cell_areas().

 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Defines
Generated by  doxygen 1.6.2-20100124