#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 lon, PetscReal lat) |
| static PetscReal cos_degrees | ( | PetscReal | deg | ) | [static] |
| 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] |
| 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().
1.6.2-20100124