Ice Sheet System Model  4.18
Code documentation
Functions
ExpToLevelSetx.cpp File Reference
#include "./ExpToLevelSetx.h"

Go to the source code of this file.

Functions

int ExpToLevelSetx (double **pdistance, double *x, double *y, int nods, Contours *contours)
 

Function Documentation

◆ ExpToLevelSetx()

int ExpToLevelSetx ( double **  pdistance,
double *  x,
double *  y,
int  nods,
Contours contours 
)

Definition at line 12 of file ExpToLevelSetx.cpp.

12  {
13 
14  /*output: */
15  double* distance = xNew<double>(nods);
16  for(int i=0;i<nods;i++) distance[i]=1e50;
17 
18  /*initialize thread parameters: */
20  gate.contours = contours;
21  gate.nods = nods;
22  gate.distance = distance;
23  gate.x = x;
24  gate.y = y;
25 
26  /*launch the thread manager with ExpToLevelSetxt as a core: */
27  LaunchThread(ExpToLevelSetxt,(void*)&gate,_NUMTHREADS_);
28 
29  /*Assign output pointers: */
30  *pdistance=distance;
31 
32  return 1;
33 }
LaunchThread
void LaunchThread(void *function(void *), void *gate, int num_threads)
Definition: LaunchThread.cpp:25
ExpToLevelSetxThreadStruct
Definition: ExpToLevelSetx.h:12
ExpToLevelSetxThreadStruct::x
double * x
Definition: ExpToLevelSetx.h:17
ExpToLevelSetxThreadStruct::distance
double * distance
Definition: ExpToLevelSetx.h:16
ExpToLevelSetxThreadStruct::contours
Contours * contours
Definition: ExpToLevelSetx.h:14
ExpToLevelSetxThreadStruct::y
double * y
Definition: ExpToLevelSetx.h:18
ExpToLevelSetxThreadStruct::nods
int nods
Definition: ExpToLevelSetx.h:15
ExpToLevelSetxt
void * ExpToLevelSetxt(void *vExpToLevelSetxThreadStruct)
Definition: ExpToLevelSetxt.cpp:16