aboutsummaryrefslogtreecommitdiff
path: root/src/Boundary.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Boundary.h')
-rw-r--r--src/Boundary.h34
1 files changed, 20 insertions, 14 deletions
diff --git a/src/Boundary.h b/src/Boundary.h
index d39438f..84ea879 100644
--- a/src/Boundary.h
+++ b/src/Boundary.h
@@ -17,15 +17,21 @@ extern "C"
{
#endif
+/* data type for pointer to function which implements a physical boundary
+ condition: */
+typedef CCTK_INT (*phys_bc_fn_ptr)(CCTK_POINTER, CCTK_INT, CCTK_INT *, CCTK_INT *,
+ CCTK_INT *);
+
+
/* prototype for routine registed as providing 'None' boundary condition */
-int BndNone(const cGH *GH, int num_vars, int *var_indicies, int *faces,
- int *table_handle);
+CCTK_INT BndNone(const cGH *GH, CCTK_INT num_vars, CCTK_INT *var_indicies,
+ CCTK_INT *faces, CCTK_INT *table_handle);
/* Scalar boundaries */
/* prototype for routine registed as providing 'Scalar' boundary condition */
-int BndScalar(const cGH *GH, int num_vars, int *var_indicies, int *faces,
- int *table_handle);
+CCTK_INT BndScalar(const cGH *GH, CCTK_INT num_vars, CCTK_INT *var_indicies,
+ CCTK_INT *faces, CCTK_INT *table_handle);
int BndScalarDirGI (const cGH *GH,
int stencil_size,
@@ -69,8 +75,8 @@ int BndScalarVN (const cGH *GH,
/* Copying boundaries */
/* prototype for routine registed as providing 'Copy' boundary condition */
-int BndCopy(const cGH *GH, int num_vars, int *var_indicies, int *faces,
- int *table_handle);
+CCTK_INT BndCopy(const cGH *GH, CCTK_INT num_vars, CCTK_INT *var_indicies,
+ CCTK_INT *faces, CCTK_INT *table_handle);
int BndCopyDirGI (const cGH *GH,
int stencil_size,
@@ -113,8 +119,8 @@ int BndCopyVN (const cGH *GH,
/* Static boundaries */
/* prototype for routine registed as providing 'Static' boundary condition */
-int BndStatic(const cGH *GH, int num_vars, int *var_indicies, int *faces,
- int *table_handle);
+CCTK_INT BndStatic(const cGH *GH, CCTK_INT num_vars, CCTK_INT *var_indicies,
+ CCTK_INT *faces, CCTK_INT *table_handle);
int BndStaticDirGI (const cGH *GH,
int stencil_size,
@@ -150,8 +156,8 @@ int BndStaticVN (const cGH *GH,
/* Radiative boundaries */
/* prototype for routine registed as providing 'Radiative' boundary conditions */
-int BndRadiative(const cGH *GH, int num_vars, int *var_indicies, int *faces,
- int *table_handle);
+CCTK_INT BndRadiative(const cGH *GH, CCTK_INT num_vars, CCTK_INT *var_indicies,
+ CCTK_INT *faces, CCTK_INT *table_handle);
int BndRadiativeDirGI (const cGH *GH,
int stencil_size,
@@ -211,8 +217,8 @@ int BndRadiativeVN (const cGH *GH,
/* Robin boundaries */
/* prototype for routine registed as providing 'Robin' boundary condition */
-int BndRobin(const cGH *GH, int num_vars, int *var_indicies, int *faces,
- int *table_handle);
+CCTK_INT BndRobin(const cGH *GH, CCTK_INT num_vars, CCTK_INT *var_indicies,
+ CCTK_INT *faces, CCTK_INT *table_handle);
int BndRobinGI (const cGH *GH,
const int *stencil,
@@ -239,8 +245,8 @@ int BndRobinVN (const cGH *GH,
/* Flat boundaries */
/* prototype for routine registed as providing 'Flat' boundary condition */
-int BndFlat(const cGH *GH, int num_vars, int *var_indicies, int *faces,
- int *table_handle);
+CCTK_INT BndFlat(const cGH *GH, CCTK_INT num_vars, CCTK_INT *var_indicies,
+ CCTK_INT *faces, int *table_handle);
int BndFlatDirGI (const cGH *GH,
int stencil_size,