summaryrefslogtreecommitdiff
path: root/src/register.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2018-08-07 15:17:41 +0200
committerAnton Khirnov <anton@khirnov.net>2018-08-07 15:17:41 +0200
commitb497f900c2274ec120752fd0bcc455d3f4c385ac (patch)
tree35f1806a17f20eb99265bc9639da3428e84cba01 /src/register.c
Initial commit.
Diffstat (limited to 'src/register.c')
-rw-r--r--src/register.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/register.c b/src/register.c
new file mode 100644
index 0000000..9bc64cd
--- /dev/null
+++ b/src/register.c
@@ -0,0 +1,18 @@
+
+#include "cctk.h"
+#include "cctk_Arguments.h"
+#include "Slicing.h"
+
+int maximal_slicing_axi_mg_register(void)
+{
+ Einstein_RegisterSlicing("maximal_axi_mg");
+ return 0;
+}
+
+void maximal_slicing_axi_mg_register_mol(CCTK_ARGUMENTS)
+{
+ MoLRegisterConstrained(CCTK_VarIndex("ADMBase::alp"));
+
+ MoLRegisterSaveAndRestoreGroup(CCTK_GroupIndex("ADMBase::metric"));
+ MoLRegisterSaveAndRestoreGroup(CCTK_GroupIndex("ADMBase::curv"));
+}