blob: 0a91d7c1275abf97f16ac30a92fe2b8bf46a345a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/* $Header: /home/eschnett/C/carpet/Carpet/Carpet/Carpet/src/carpet_public.h,v 1.12 2004/01/25 14:57:27 schnetter Exp $ */
#ifndef CARPET_PUBLIC_H
#define CARPET_PUBLIC_H
#include <mpi.h>
#include "cctk.h"
/* Tell thorns that the Carpet routines exist */
#define HAVE_CARPET
#ifdef __cplusplus
namespace Carpet {
extern "C" {
#endif
/* Prolongation management */
int CarpetEnableProlongating (const int flag);
/* Call a schedule group */
int CallScheduleGroup (cGH * const cgh, const char * const group);
/* Call a local function */
int CallLocalFunction (cGH * const cgh,
void (* const function) (cGH * const cgh));
int CallSinglemapFunction (cGH * const cgh,
void (* const function) (cGH * const cgh));
int CallLevelFunction (cGH * const cgh,
void (* const function) (cGH * const cgh));
int CallGlobalFunction (cGH * const cgh,
void (* const function) (cGH * const cgh));
int CallMetaFunction (cGH * const cgh,
void (* const function) (cGH * const cgh));
/* Helper functions */
MPI_Comm CarpetMPIComm (void);
MPI_Datatype CarpetMPIDatatype (int vartype);
#ifdef __cplusplus
} /* extern "C" */
} /* namespace Carpet */
#endif
#endif /* !defined(CARPET_PUBLIC_H) */
|