diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2011-06-09 15:45:02 +0200 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2011-06-11 04:54:16 +0200 |
commit | 3e00c89aa79f9f8156584a39598c6164b0cee191 (patch) | |
tree | 2febd0f57ac451c87ff5c8e35b9d79d76b6d12a2 /m/McLachlan_BSSN.m | |
parent | 9341eef232b1232ed55ed68126862e71eb68b1f2 (diff) |
McLachlan_BSSN.m: Add InitGamma calculation
This is necessary to temporarily work around a problem with multipatch (points which are both interpatch and outer boundary are not initialised in the correct order)
Diffstat (limited to 'm/McLachlan_BSSN.m')
-rw-r--r-- | m/McLachlan_BSSN.m | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/m/McLachlan_BSSN.m b/m/McLachlan_BSSN.m index a1808cd..78a2052 100644 --- a/m/McLachlan_BSSN.m +++ b/m/McLachlan_BSSN.m @@ -457,6 +457,25 @@ convertFromADMBaseGammaCalc = } }; +(* Initialise the Gamma variables to 0. This is necessary with + multipatch because convertFromADMBaseGamma does not perform the + conversion in the boundary points, and the order in which symmetry + (interpatch) and outer boundary conditions is applied means that + points which are both interpatch and symmetry points are never + initialised. *) +initGammaCalc = +{ + Name -> BSSN <> "_InitGamma", + Schedule -> {"AT initial BEFORE " <> BSSN <> "_convertFromADMBaseGamma"}, + ConditionalOnKeyword -> {"my_initial_data", "ADMBase"}, + Where -> Everywhere, + Equations -> + { + Xt[ua] -> 0 + } +}; + + (******************************************************************************) (* Convert to ADMBase *) (******************************************************************************) @@ -1254,6 +1273,7 @@ calculations = { initialCalc, convertFromADMBaseCalc, + initGammaCalc, convertFromADMBaseGammaCalc, (* evolCalc, *) evolCalc1, evolCalc2, |