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
95
|
/*@@
@file Symmetry.c
@date Tue Jul 30 11:15:23 CEST 2002
@author David Rideout
@desc
Symmetry registration stuff for ADMAnalysis
@enddesc
@version $Header$
@@*/
#include <assert.h>
#include "cctk.h"
#include "cctk_Arguments.h"
#include "Symmetry.h"
static const char *rcsid = "$Header$";
CCTK_FILEVERSION(CactusEinstein_ADMAnalysis_Symmetry_c);
/********************************************************************
********************* Local Data Types ***********************
********************************************************************/
/********************************************************************
********************* Local Routine Prototypes *********************
********************************************************************/
/********************************************************************
***************** Scheduled Routine Prototypes *********************
********************************************************************/
void ADMAnalysis_RegisterSymmetry(CCTK_ARGUMENTS);
/********************************************************************
********************* Other Routine Prototypes *********************
********************************************************************/
/********************************************************************
********************* Local Data *****************************
********************************************************************/
/********************************************************************
********************* External Routines **********************
********************************************************************/
/*@@
@routine ADMAnalysis_RegisterSymmetry
@date Tue Jul 30 11:31:50 CEST 2002
@author David Rideout
@desc
Scheduled routine to register symmetry of Ricci.
@enddesc
@calls
@calledby
@history
@endhistory
@@*/
void ADMAnalysis_RegisterSymmetry(CCTK_ARGUMENTS)
{
DECLARE_CCTK_ARGUMENTS;
int sym[3];
int ierr;
/*CCTK_INFO("Registering symmetries for ricci_scalar and ricci_tensor");*/
sym[0] = 1; sym[1] = 1; sym[2] = 1;
ierr=SetCartSymVN(cctkGH, sym, "ADMAnalysis::trK");
assert(!ierr);
ierr=SetCartSymVN(cctkGH, sym, "ADMAnalysis::detg");
assert(!ierr);
ierr=SetCartSymVN(cctkGH, sym, "ADMAnalysis::Ricci");
assert(!ierr);
ierr=SetCartSymVN(cctkGH, sym, "ADMAnalysis::Ricci11");
assert(!ierr);
ierr=SetCartSymVN(cctkGH, sym, "ADMAnalysis::Ricci22");
assert(!ierr);
ierr=SetCartSymVN(cctkGH, sym, "ADMAnalysis::Ricci33");
assert(!ierr);
sym[0] = -1; sym[1] = -1; sym[2] = 1;
ierr=SetCartSymVN(cctkGH, sym, "ADMAnalysis::Ricci12");
assert(!ierr);
sym[0] = -1; sym[1] = 1; sym[2] = -1;
ierr=SetCartSymVN(cctkGH, sym, "ADMAnalysis::Ricci13");
assert(!ierr);
sym[0] = 1; sym[1] = -1; sym[2] = -1;
ierr=SetCartSymVN(cctkGH, sym, "ADMAnalysis::Ricci23");
assert(!ierr);
}
/********************************************************************
********************* Local Routines *************************
********************************************************************/
|