Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CarpetX: Interpolation with z-reflection symmetry only works for Psi4 #146

Open
acwen11 opened this issue Jun 15, 2023 · 0 comments
Open

Comments

@acwen11
Copy link

acwen11 commented Jun 15, 2023

From the function CarpetX_Interpolate in interpolate.cxx:

if (reflection_z) {
    // The code below is only valid for Psi4
    assert(nvars == 2);
    assert(varinds[0] == CCTK_VarIndex("Weyl::Psi4re"));
    assert(varinds[1] == CCTK_VarIndex("Weyl::Psi4im"));
    // l^a = et^a + er^a
    // n^a = et^a - er^a
    // m^a = etheta^a + i ephi^a
    // Psi4 = C_abcd m-bar^b n^b m-bar^c n^d
    for (int n = 0; n < npoints; ++n) {
        if (symmetry_reflected_z[n]) {
            resultptrs[0][n] = -resultptrs[0][n];
            resultptrs[1][n] = +resultptrs[1][n];
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant