fv_create_data.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
7 #ifndef Adaptors_fv_create_data_h
8 #define Adaptors_fv_create_data_h
9 
10 #include "vtkPVAdaptorsCamModule.h"
11 
12 // This code is meant to be used as an API for C simulation
13 // codes. To use with C codes, include this header file. Call the
14 // 'extern "C"' functions as named below for both Fortran and C.
15 // C code should include this header file to get the properly
16 // mangled function names.
17 
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #endif
22 
27  void VTKPVADAPTORSCAM_EXPORT fv_coprocessorinitializewithpython_(const char* pythonScriptName);
28 
32  void VTKPVADAPTORSCAM_EXPORT fv_create_grid_(int* dim, double* lonCoord, double* latCoord,
33  double* levCoord, int* nCells2d, int* maxNcols, int* myRank);
34 
39  void VTKPVADAPTORSCAM_EXPORT fv_add_chunk_(int* nstep, int* chunkSize, double* lonRad,
40  double* latRad, double* psScalar, double* tScalar, double* uScalar, double* vScalar);
41 
43 
47  int VTKPVADAPTORSCAM_EXPORT fv_requestdatadescription_(int* timeStep, double* time);
48 
52  int VTKPVADAPTORSCAM_EXPORT fv_requestdatadescription_(int* timeStep, double* time);
53 
58 
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 #endif
void VTKPVADAPTORSCAM_EXPORT fv_coprocess_()
Calls the coprocessor.
#define VTKPVADAPTORSCAM_EXPORT
int VTKPVADAPTORSCAM_EXPORT fv_requestdatadescription_(int *timeStep, double *time)
Checks if Catalyst needs to coprocess data.
void VTKPVADAPTORSCAM_EXPORT fv_add_chunk_(int *nstep, int *chunkSize, double *lonRad, double *latRad, double *psScalar, double *tScalar, double *uScalar, double *vScalar)
for timestep 0: creates the points and cells for the grids.
int VTKPVADAPTORSCAM_EXPORT fv_needtocreategrid_()
Checks if the grids need to be created.
void VTKPVADAPTORSCAM_EXPORT fv_create_grid_(int *dim, double *lonCoord, double *latCoord, double *levCoord, int *nCells2d, int *maxNcols, int *myRank)
Creates the Grids for 2D, 3D rectilinear and 2D, 3D spherical.
void VTKPVADAPTORSCAM_EXPORT fv_catalyst_finalize_()
void VTKPVADAPTORSCAM_EXPORT fv_coprocessorinitializewithpython_(const char *pythonScriptName)
Initializes the Catalyst Coprocessor.