GeoTessCExamples  2.0
Macros | Functions | Variables
Integrate2D.c File Reference
#include "CpuTimerC.h"
#include "GeoTessMetaDataC.h"
#include "GeoTessModelC.h"
#include "GeoTessUtilsC.h"
#include "PointMapC.h"
#include "PolygonC.h"
#include "GeoTessGridC.h"
#include "InterpolatorTypeC.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "DataTypeC.h"
#include "ErrorHandler.h"
#include "bool.h"

Go to the source code of this file.

Macros

#define len   512
 

Functions

double integrate2D (GeoTessModelC *model, double *pointA, double *pointB, int attributeIndex)
 
void errorCheck ()
 
GeoTessModelC * velocityModel (char *gridFile)
 
int main (int argc, char **argv)
 

Variables

static const double rtd = 180./3.1415926535897932384626
 
static const double dtr = 3.1415926535897932384626/180.
 

Macro Definition Documentation

◆ len

#define len   512

Definition at line 52 of file Integrate2D.c.

Function Documentation

◆ errorCheck()

void errorCheck ( )

Check to see if any errors have occurred. If any, print out the error messages and abort.

Definition at line 250 of file Integrate2D.c.

◆ integrate2D()

double integrate2D ( GeoTessModelC *  model,
double *  pointA,
double *  pointB,
int  attributeIndex 
)

Definition at line 108 of file Integrate2D.c.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 64 of file Integrate2D.c.

◆ velocityModel()

GeoTessModelC * velocityModel ( char *  gridFile)

Generate a starting model for the Integrate2D example program. The model will have a single attribute (velocity in km/sec), and will be a 2D model, i.e., there will be no radius associated with the nodes of the model. For this simple example, the model is populated with a single, constant value of 10 km/sec.

Parameters
gridFilethe name of the file containing the GeoTessGrid upon which the starting model will be based.
Returns
a GeoTessModelC

Definition at line 169 of file Integrate2D.c.

Variable Documentation

◆ dtr

const double dtr = 3.1415926535897932384626/180.
static

Definition at line 55 of file Integrate2D.c.

◆ rtd

const double rtd = 180./3.1415926535897932384626
static

Definition at line 54 of file Integrate2D.c.