|
| 1 | +// Apply NewRadX boundary conditions to Z4c variables |
| 2 | +//============================================================================= |
| 3 | + |
| 4 | +#include <cctk.h> |
| 5 | +#include <cctk_Arguments.h> |
| 6 | +#include <cctk_Parameters.h> |
| 7 | +#include <newradx.hxx> |
| 8 | + |
| 9 | +using namespace NewRadX; |
| 10 | + |
| 11 | +namespace Z4c { |
| 12 | + |
| 13 | +extern "C" void Z4c_apply_newradx_boundary_conditions(CCTK_ARGUMENTS) { |
| 14 | + DECLARE_CCTK_ARGUMENTSX_Z4c_apply_newradx_boundary_conditions; |
| 15 | + DECLARE_CCTK_PARAMETERS; |
| 16 | + |
| 17 | + NewRadX_Apply(cctkGH, chi, chi_rhs, 1, 1, n_chi); |
| 18 | + NewRadX_Apply(cctkGH, gammatxx, gammatxx_rhs, 1, 1, n_gammat); |
| 19 | + NewRadX_Apply(cctkGH, gammatxy, gammatxy_rhs, 0, 1, n_gammat); |
| 20 | + NewRadX_Apply(cctkGH, gammatxz, gammatxz_rhs, 0, 1, n_gammat); |
| 21 | + NewRadX_Apply(cctkGH, gammatyy, gammatyy_rhs, 1, 1, n_gammat); |
| 22 | + NewRadX_Apply(cctkGH, gammatyz, gammatyz_rhs, 0, 1, n_gammat); |
| 23 | + NewRadX_Apply(cctkGH, gammatzz, gammatzz_rhs, 1, 1, n_gammat); |
| 24 | + NewRadX_Apply(cctkGH, Kh, Kh_rhs, 0, 1, n_Kh); |
| 25 | + NewRadX_Apply(cctkGH, Atxx, Atxx_rhs, 0, 1, n_At); |
| 26 | + NewRadX_Apply(cctkGH, Atxy, Atxy_rhs, 0, 1, n_At); |
| 27 | + NewRadX_Apply(cctkGH, Atxz, Atxz_rhs, 0, 1, n_At); |
| 28 | + NewRadX_Apply(cctkGH, Atyy, Atyy_rhs, 0, 1, n_At); |
| 29 | + NewRadX_Apply(cctkGH, Atyz, Atyz_rhs, 0, 1, n_At); |
| 30 | + NewRadX_Apply(cctkGH, Atzz, Atzz_rhs, 0, 1, n_At); |
| 31 | + NewRadX_Apply(cctkGH, Gamtx, Gamtx_rhs, 0, 1, n_Gamt); |
| 32 | + NewRadX_Apply(cctkGH, Gamty, Gamty_rhs, 0, 1, n_Gamt); |
| 33 | + NewRadX_Apply(cctkGH, Gamtz, Gamtz_rhs, 0, 1, n_Gamt); |
| 34 | + NewRadX_Apply(cctkGH, Theta, Theta_rhs, 0, 1, n_Theta); |
| 35 | + NewRadX_Apply(cctkGH, alphaG, alphaG_rhs, 1, 1, n_alphaG); |
| 36 | + NewRadX_Apply(cctkGH, betaGx, betaGx_rhs, 0, 1, n_betaG); |
| 37 | + NewRadX_Apply(cctkGH, betaGy, betaGy_rhs, 0, 1, n_betaG); |
| 38 | + NewRadX_Apply(cctkGH, betaGz, betaGz_rhs, 0, 1, n_betaG); |
| 39 | +} |
| 40 | + |
| 41 | +} // namespace Z4c |
0 commit comments