summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2018-05-02 14:04:48 +0200
committerAnton Khirnov <anton@khirnov.net>2018-05-02 14:04:48 +0200
commitc528242a98091617cf14018b695c313c578c7a1a (patch)
treebd3ca708747b3e34c38c037519b702cf11d10b0f /src
parente22991f57bdd33e90f668b24e39ad091f9f036df (diff)
Add an option to use the maximal lapse from libteukolskydata
Diffstat (limited to 'src')
-rw-r--r--src/teukolsky.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/teukolsky.c b/src/teukolsky.c
index 60cef99..234fedb 100644
--- a/src/teukolsky.c
+++ b/src/teukolsky.c
@@ -144,6 +144,13 @@ void teukolsky_data(CCTK_ARGUMENTS)
}
}
+ if (!strcmp(initial_lapse, "teukolsky_max")) {
+ ret = td_eval_lapse(td, cctk_lsh[2] * cctk_lsh[0], r_val, theta_val,
+ (const unsigned int [2]){ 0, 0}, alp);
+ if (ret)
+ CCTK_WARN(0, "Error evaluating the lapse\n");
+ }
+
free(r_val);
free(theta_val);
free(psi_val);