aboutsummaryrefslogtreecommitdiff
path: root/src/Startup.c
blob: 39fe81fc4c7db437167b9a3937cd875a1d18173e (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
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "cctk.h"
#include "cctk_parameters.h"

/* At Startup, EllBase registers the elliptic equation classes for which 
   it provides solvers. Other routines, which may come up with new classes, 
   can registers the classes in their own thorns. */

void Ell_RegisterBaseEqTypes(cGH *GH) {
  void Ell_RegisterEq(void (*function),const char *);
  void Ell_LinConfMetricRegistry(void (*function),const char *);
  void Ell_LinMetricRegistry(void (*function),const char *);
  void Ell_LinFlatRegistry(void (*function),const char *);

  printf("Registering Ell_LinConfMetric....");
  Ell_RegisterEq(Ell_LinConfMetricRegistry,"Ell_LinConfMetric");
  printf("...done\n");

  printf("Registering Ell_LinMetric....");
  Ell_RegisterEq(Ell_LinMetricRegistry,"Ell_LinMetric");
  printf("...done\n");

  printf("Registering Ell_LinFlat....");
  Ell_RegisterEq(Ell_LinFlatRegistry,"Ell_LinFlat");
  printf("...done\n");

}