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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
/*@@
@file NoneBoundary.c
@date Sat Jan 4 05:43:35 CET 2003
@author David Rideout
@desc
Implements 'no boundary condition'. This can be used to
inform the Boundary thorn that this variable should have
boundary conditions applied to it, but then not actually
apply any local physical boundary condition. This is
useful e.g. if the physical boundary is being updated in
some other manner, but the symmetry boundaries should be
updated normally.
BndNone is also used as a dummy local physical boundary
condition, when the true physical bc is non-local.
@enddesc
@history
@hdate
@hauthor
@hdesc
@endhistory
@version $Header$
@@*/
#include "cctk.h"
#include "Boundary.h"
/* the rcs ID and its dummy function to use it */
static const char *rcsid = "$Header$";
CCTK_FILEVERSION(CactusBase_Boundary_NoneBoundary_c);
/********************************************************************
******************** External Routines ************************
********************************************************************/
/*@@
@routine BndNone
@date 4 Jan 2003
@author David Rideout
@desc
Function which handles 'None' boundary condition
@enddesc
@calls
@history
@endhistory
@var GH
@vdesc Pointer to CCTK grid hierarchy
@vtype const cGH *
@vio in
@endvar
@var num_vars
@vdesc number of variables passed in through var_indices[]
@vtype int
@vio in
@endvar
@var var_indices
@vdesc array of variable indicies to which to apply this boundary
condition
@vtype int *
@vio in
@endvar
@var faces
@vdesc array of set of faces to which to apply the bc
@vtype int
@vio in
@endvar
@var table_handles
@vdesc array of table handles which hold extra arguments
@vtype int
@vio in
@endvar
@returntype int
@returndesc
0 success
@endreturndesc
@@*/
int BndNone(const cGH *GH, int num_vars, int *var_indices, int *faces,
int *table_handles)
{
#ifdef DEBUG
printf("BndNone(): got passed GH=%p, num_vars=%d, var_indices[0]=%d, table_handles[0]=%d\n", (const void *) GH, num_vars, var_indices[0], table_handles[0]);
#endif
/* Ignore all input arguments */
GH = GH;
num_vars = num_vars;
var_indices = var_indices;
faces = faces;
table_handles = table_handles;
return 0;
}
|