src
paraview-5.12
Clients
Catalyst
CAdaptorAPI.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2
// SPDX-License-Identifier: BSD-3-Clause
3
#ifndef CAdaptorAPI_h
4
#define CAdaptorAPI_h
5
6
#include "vtkPVCatalystModule.h"
7
8
// This code is meant to be used as an API for C simulation
9
// codes. To use with C codes, include this header file. Call the
10
// 'extern "C"' functions as named below for both Fortran and C.
11
// C code should include this header file to get the properly
12
// mangled function names.
13
14
#ifdef __cplusplus
15
extern
"C"
16
{
17
#endif
18
19
// call at the start of the simulation
20
void
VTKPVCATALYST_EXPORT
coprocessorinitialize
();
21
22
// call at the end of the simulation
23
void
VTKPVCATALYST_EXPORT
coprocessorfinalize
();
24
25
// this is the function that determines whether or not there
26
// is anything to coprocess this time step
27
void
VTKPVCATALYST_EXPORT
requestdatadescription
(
28
int
* timeStep,
double
* time,
int
* coprocessThisTimeStep);
29
30
// this function sets needgrid to 1 if it does not have a copy of the grid
31
// it sets needgrid to 0 if it does have a copy of the grid but does not
32
// check if the grid is modified or needs to be updated
33
void
VTKPVCATALYST_EXPORT
needtocreategrid
(
int
* needGrid);
34
35
// do the actual coprocessing. it is assumed that the vtkCPDataDescription
36
// has been filled in elsewhere.
37
void
VTKPVCATALYST_EXPORT
coprocess
();
38
39
#ifdef __cplusplus
40
}
/* extern "C" */
41
#endif
42
43
#endif
needtocreategrid
void VTKPVCATALYST_EXPORT needtocreategrid(int *needGrid)
coprocess
void VTKPVCATALYST_EXPORT coprocess()
coprocessorfinalize
void VTKPVCATALYST_EXPORT coprocessorfinalize()
requestdatadescription
void VTKPVCATALYST_EXPORT requestdatadescription(int *timeStep, double *time, int *coprocessThisTimeStep)
coprocessorinitialize
void VTKPVCATALYST_EXPORT coprocessorinitialize()
Generated by
1.8.17 on Wed Mar 27 2024