diff options
author | rideout <rideout@6a38eb6e-646e-4a02-a296-d141613ad6c4> | 2003-01-06 21:32:52 +0000 |
---|---|---|
committer | rideout <rideout@6a38eb6e-646e-4a02-a296-d141613ad6c4> | 2003-01-06 21:32:52 +0000 |
commit | f83e20b34998c8529ba12a6993975b32f1251442 (patch) | |
tree | f165f39e1884a47302a8577057e7ff8ae8776c49 /src/NoneBoundary.c | |
parent | a7800642d5c843f56c0d83a81303de98cf8f5159 (diff) |
Implement dummy "None" boundary condition, which does nothing.
This is useful for selecting a variable for bcs (e.g. to ensure that
symmetry conditions are applied to it), even though some other routine
will execute the physical bcs. It is also used as a dummy local
physical bc for non-local physical bcs. (See spec).
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/Boundary/trunk@190 6a38eb6e-646e-4a02-a296-d141613ad6c4
Diffstat (limited to 'src/NoneBoundary.c')
-rw-r--r-- | src/NoneBoundary.c | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/src/NoneBoundary.c b/src/NoneBoundary.c new file mode 100644 index 0000000..b4706e5 --- /dev/null +++ b/src/NoneBoundary.c @@ -0,0 +1,86 @@ + /*@@ + @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 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 *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; + table_handles = table_handles; + + return 0; +} |