summaryrefslogtreecommitdiff
path: root/src/main/rfrInterface.c
blob: 0e57f8f22e479edd8e41b5c6f078ea8403cc6800 (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
 /*@@
   @file      rfrInterface.c
   @date      Wed Feb  3 14:42:24 1999
   @author    Tom Goodale
   @desc 
   Routine used by cactus to talk to the rfr.
   @enddesc 
 @@*/

/*#define RFRDEBUG*/

#include <stdio.h>
#include <stdlib.h>

#include "cctk_Flesh.h"
#include "cctk_GHExtensions.h"
#include "cctk_Groups.h"
#include "CactusrfrInterface.h"
#include "rfrConstants.h"
#include "CactusCommFunctions.h"
#include "cctk_IOMethods.h"
#include "cctk_parameters.h"
#include "rfrInterface.h"

static char *rcsid = "$Header$";


 /*@@
   @routine    CCTK_rfrTraverse
   @date       Wed Feb  3 14:45:57 1999
   @author     Tom Goodale
   @desc 
   Calls the rfrTraverse, then deals with extensions.
   @enddesc 
   @calls     
   @calledby   
   @history 
 
   @endhistory 

@@*/
int CCTK_rfrTraverse(cGH *GH, int rfrpoint)
{
  
  CCTK_rfrTraverseGHExtensions(GH, rfrpoint);

  return 0;
}

#include "cctk_schedule.h"

#define SCHEDULE(x) case CCTK_ ## x : CCTK_ScheduleTraverse("CCTK_" #x, data); break

void rfrTraverse(void *rfr_top, void *data, int when) 
{
  switch(when)
  {
    SCHEDULE(PARAMCHECK);
    SCHEDULE(BASEGRID);
    SCHEDULE(RECOVER);
    SCHEDULE(INITIAL);
    SCHEDULE(POSTINITIAL);
    SCHEDULE(CPINITIAL);
    SCHEDULE(PRESTEP);
    SCHEDULE(POSTSTEP);
    SCHEDULE(EVOL);
    SCHEDULE(BOUND);
    SCHEDULE(CHECKPOINT);
    SCHEDULE(ANALYSIS);
    SCHEDULE(TERMINATE);
    SCHEDULE(CONVERGENCE);
    default :
      CCTK_WARN(0, "Unknown scheduling point"); 
  }

  return;
}