aboutsummaryrefslogtreecommitdiff
path: root/src/Register.c
blob: c060b7241a7b883833b31e2ebdef849fd51ed77f (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
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
94
 /*@@
   @file      Register.c
   @date      Sat Oct 26 22:39:40 CEST 2002
   @author    David Rideout
   @desc 
              Register implemented boundary conditions.
   @enddesc 
   @version   $Header$
 @@*/

#include "cctk.h"
#include "cctk_Arguments.h"
#include "util_Table.h"
#include "Boundary.h"

static const char *rcsid = "$Header$";

CCTK_FILEVERSION(CactusBase_Boundary_Register_c);

/********************************************************************
 *********************     Local Data Types   ***********************
 ********************************************************************/

/********************************************************************
 ********************* Local Routine Prototypes *********************
 ********************************************************************/

void Boundary_RegisterBCs(CCTK_ARGUMENTS);

/********************************************************************
 ***************** Aliased Routine Prototypes *********************
 ********************************************************************/

/********************************************************************
 ***************** Scheduled Routine Prototypes *********************
 ********************************************************************/

/********************************************************************
 ********************* Other Routine Prototypes *********************
 ********************************************************************/

/********************************************************************
 *********************     Local Data   *****************************
 ********************************************************************/

/********************************************************************
 *********************     Aliased Routines   **********************
 ********************************************************************/

/********************************************************************
 *********************     Scheduled Routines   **********************
 ********************************************************************/

 /*@@
   @routine    Boundary_RegisterBCs
   @date       Sun Nov  3 19:51:37 CET 2002
   @author     David Rideout
   @desc 
	       Register all boundary conditions implemented by this thorn.
   @enddesc 
   @calls      
   @history 
   @endhistory
   @var        CCTK_ARGUMENTS
   @vdesc      Cactus argument list
   @vtype      CCTK_*
   @vio        in
   @endvar
   @returntype void
@@*/

void Boundary_RegisterBCs(CCTK_ARGUMENTS) {
  int err;

  err = Boundary_RegisterPhysicalBC(cctkGH, (CCTK_FPOINTER) &BndRadiative, 
				    "Radiative");
  if (err) {
    CCTK_VWarn(1, __LINE__, __FILE__, CCTK_THORNSTRING,
	       "Boundary_RegisterPhysicalBC(cctkGH, &BndRadiative, "
	       "\"Radiative\") returned %d", err);
  }

  err = Boundary_RegisterPhysicalBC(cctkGH, (CCTK_FPOINTER) &BndNone, 
				    "None");
  if (err) {
    CCTK_VWarn(1, __LINE__, __FILE__, CCTK_THORNSTRING,
	       "Boundary_RegisterPhysicalBC(cctkGH, &BndNone, "
	       "\"None\") returned %d", err);
  }
}

/********************************************************************
 *********************     Local Routines   *************************
 ********************************************************************/