PagosaAdaptor.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
10 #ifndef vtkPagosaAdaptor_h
11 #define vtkPagosaAdaptor_h
12 
14 
15 // This code is meant to be used as an API for C simulation
16 // codes. To use with C codes, include this header file. Call the
17 // 'extern "C"' functions as named below for both Fortran and C.
18 // C code should include this header file to get the properly
19 // mangled function names.
20 
21 #ifdef __cplusplus
22 extern "C"
23 {
24 #endif
25 
39  void VTKPVADAPTORSPAGOSA_EXPORT setcoprocessorgeometry_(int* mx, int* my, int* mz, double* x0,
40  double* y0, double* z0, double* dx, double* dy, double* dz, int* my_id, const int* tot_pes,
41  char* nframe, int* nframelen, char* version, int* versionlen);
42 
54  char* nframe, int* nframelen, char* version, int* versionlen, int* cycleNum, double* simTime);
55 
66  char* fname, int* len, int* mx, int* my, int* mz, int* my_id, float* data, bool* down_convert);
67 
77  void VTKPVADAPTORSPAGOSA_EXPORT setmarkergeometry_(int* nvp, char* nframe, int* nframelen,
78  char* version, int* versionlen, int* cycleNum, double* simTime);
79 
87  int* numberAdded, float* xloc, float* yloc, float* zloc);
88 
89  /*
90  * Set a scalar field in the unstructured grid of markers
91  *
92  * @param fname, len Name of data, len(fname)
93  * @param numberAdded number of markers added on this PE
94  * @param data Data by marker
95  */
97  char* fname, int* len, int* numberAdded, float* data);
98 
107  char* fname, int* len, int* numberAdded, float* data0, float* data1, float* data2);
108 
116  void VTKPVADAPTORSPAGOSA_EXPORT addmarkertensorfield_(char* fname, int* len, int* numberAdded,
117  float* data0, float* data1, float* data2, float* data3, float* data4, float* data5);
118 
119 #ifdef __cplusplus
120 } /* extern "C" */
121 #endif
122 
123 #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.