PagosaAdaptor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: PagosaAdaptor.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
22 #ifndef vtkPagosaAdaptor_h
23 #define vtkPagosaAdaptor_h
24 
26 
27 // This code is meant to be used as an API for C simulation
28 // codes. To use with C codes, include this header file. Call the
29 // 'extern "C"' functions as named below for both Fortran and C.
30 // C code should include this header file to get the properly
31 // mangled function names.
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
50 void VTKPVADAPTORSPAGOSA_EXPORT setcoprocessorgeometry_(int* mx, int* my, int* mz, double* x0,
51  double* y0, double* z0, double* dx, double* dy, double* dz, int* my_id, const int* tot_pes,
52  char* nframe, int* nframelen, char* version, int* versionlen);
53 
65  char* nframe, int* nframelen, char* version, int* versionlen, int* cycleNum, double* simTime);
66 
77  char* fname, int* len, int* mx, int* my, int* mz, int* my_id, float* data, bool* down_convert);
78 
88 void VTKPVADAPTORSPAGOSA_EXPORT setmarkergeometry_(int* nvp, char* nframe, int* nframelen,
89  char* version, int* versionlen, int* cycleNum, double* simTime);
90 
98  int* numberAdded, float* xloc, float* yloc, float* zloc);
99 
100 /*
101  * Set a scalar field in the unstructured grid of markers
102  *
103  * @param fname, len Name of data, len(fname)
104  * @param numberAdded number of markers added on this PE
105  * @param data Data by marker
106  */
108  char* fname, int* len, int* numberAdded, float* data);
109 
118  char* fname, int* len, int* numberAdded, float* data0, float* data1, float* data2);
119 
127 void VTKPVADAPTORSPAGOSA_EXPORT addmarkertensorfield_(char* fname, int* len, int* numberAdded,
128  float* data0, float* data1, float* data2, float* data3, float* data4, float* data5);
129 
130 #ifdef __cplusplus
131 } /* extern "C" */
132 #endif
133 
134 #endif
void VTKPVADAPTORSPAGOSA_EXPORT addgridfield_(char *fname, int *len, int *mx, int *my, int *mz, int *my_id, float *data, bool *down_convert)
Add field data in the first grid of nonoverlapping AMR.
void VTKPVADAPTORSPAGOSA_EXPORT setcoprocessorgeometry_(int *mx, int *my, int *mz, double *x0, double *y0, double *z0, double *dx, double *dy, double *dz, int *my_id, const int *tot_pes, char *nframe, int *nframelen, char *version, int *versionlen)
Simulation code.
#define VTKPVADAPTORSPAGOSA_EXPORT
void VTKPVADAPTORSPAGOSA_EXPORT addmarkergeometry_(int *numberAdded, float *xloc, float *yloc, float *zloc)
Add a field to the unstructured grid of markers.
void VTKPVADAPTORSPAGOSA_EXPORT addmarkertensorfield_(char *fname, int *len, int *numberAdded, float *data0, float *data1, float *data2, float *data3, float *data4, float *data5)
Set a 6 element tensor field in the unstructured grid of markers.
void VTKPVADAPTORSPAGOSA_EXPORT addmarkervectorfield_(char *fname, int *len, int *numberAdded, float *data0, float *data1, float *data2)
Set a 3 element vector field in the unstructured grid of markers.
void VTKPVADAPTORSPAGOSA_EXPORT setgridgeometry_(char *nframe, int *nframelen, char *version, int *versionlen, int *cycleNum, double *simTime)
Update the vtkNonOverlappingAMR headers for every frame (time step) This holds ImageData which does n...
void VTKPVADAPTORSPAGOSA_EXPORT addmarkerscalarfield_(char *fname, int *len, int *numberAdded, float *data)
void VTKPVADAPTORSPAGOSA_EXPORT setmarkergeometry_(int *nvp, char *nframe, int *nframelen, char *version, int *versionlen, int *cycleNum, double *simTime)
Initialize unstructured grid for ALL markers and allocate total size.