DFShellSetCoordinates

Sets grid coordinate information in a DF shell.

Synopsis

int DFShellSetCoordinates(DF df,int M,int N,int P,double *c0,double *c1,double *c2)

Input Parameters

df - the DF shell
c0, c1, c2 - coordinates in each dimension
M, N, P - number of coordinates in each dimension

Notes

The coordinate information is used only in the routinesDFVecRefineVector(), DFVecDrawTensorContoursX(), andDFVecDrawTensorSurfaceContoursVRML().

Currently, we fully support only 3D structured meshes withbrick elements (2D rectangular meshes), where the usersets on each processor the x-, y-, and z-coordinates ( inc0, c1, and c2, respectively) for the entire global mesh.

Example

3-D grid of global dimension MxNxP

      for ( i=0; i<M; i++ ) c0[i] = i*0.3;
      for ( i=0; i<N; i++ ) c1[i] = i*0.6;
      for ( i=0; i<P; i++ ) c2[i] = i*0.5;

See Also

DFShellCreate(), DFShellGetCoordinates()

Location: src/dfvec/interface/dfvec.c
Discrete Function Index
Table of Contents