diff --git a/CTThorns_CT_Analytic.json b/CTThorns_CT_Analytic.json index c1fea969666e2795c88469b614a51ea232eb4dff..133a5bb2aa7352b29ffd87ecfbeb0c5d88b3d090 100644 --- a/CTThorns_CT_Analytic.json +++ b/CTThorns_CT_Analytic.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eloisa/ctthorns.git", "configuration": "# File produced by Kranc\n\nREQUIRES GenericFD\nOPTIONAL LoopControl\n{\n}\n", "interface": "# File produced by Kranc\n\nimplements: CT_Analytic\n\ninherits: Boundary GenericFD Grid\n\n\n\nUSES INCLUDE: loopcontrol.h\nUSES INCLUDE: Symmetry.h\nUSES INCLUDE: Boundary.h\n\nCCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex)\nUSES FUNCTION MoLRegisterEvolved\n\nSUBROUTINE Diff_coeff(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN dir, CCTK_INT IN nsize, CCTK_INT OUT ARRAY imin, CCTK_INT OUT ARRAY imax, CCTK_REAL OUT ARRAY q, CCTK_INT IN table_handle)\nUSES FUNCTION Diff_coeff\n\nCCTK_INT FUNCTION MultiPatch_GetMap(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n\nCCTK_INT FUNCTION MultiPatch_GetBbox(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN size, CCTK_INT OUT ARRAY bbox)\nUSES FUNCTION MultiPatch_GetBbox\n\nCCTK_INT FUNCTION GetBoundarySpecification(CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\nCCTK_INT FUNCTION MultiPatch_GetBoundarySpecification(CCTK_INT IN map, CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION MultiPatch_GetBoundarySpecification\n\nCCTK_INT FUNCTION SymmetryTableHandleForGrid(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION SymmetryTableHandleForGrid\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT FUNCTION Driver_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectGroupForBC\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectVarForBC\n\nCCTK_INT FUNCTION Driver_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectVarForBC\n\npublic:\nCCTK_REAL CT_testinipsi type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testinipsi\n} \"CT_testinipsi\"\n\npublic:\nCCTK_REAL CT_testinixx type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testinixx\n} \"CT_testinixx\"\n\npublic:\nCCTK_REAL CT_testinixy type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testinixy\n} \"CT_testinixy\"\n\npublic:\nCCTK_REAL CT_testinixz type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testinixz\n} \"CT_testinixz\"\n\npublic:\nCCTK_REAL CT_epsi type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n epsi\n} \"CT_epsi\"\n\npublic:\nCCTK_REAL CT_elaplacian type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n elaplacian\n} \"CT_elaplacian\"\n\npublic:\nCCTK_REAL CT_testcxx type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testcxx\n} \"CT_testcxx\"\n\npublic:\nCCTK_REAL CT_testcxy type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testcxy\n} \"CT_testcxy\"\n\npublic:\nCCTK_REAL CT_testcxz type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testcxz\n} \"CT_testcxz\"\n\npublic:\nCCTK_REAL CT_testcyy type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testcyy\n} \"CT_testcyy\"\n\npublic:\nCCTK_REAL CT_testcyz type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testcyz\n} \"CT_testcyz\"\n\npublic:\nCCTK_REAL CT_testczz type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testczz\n} \"CT_testczz\"\n\npublic:\nCCTK_REAL CT_testcx type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testcx\n} \"CT_testcx\"\n\npublic:\nCCTK_REAL CT_testcy type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testcy\n} \"CT_testcy\"\n\npublic:\nCCTK_REAL CT_testcz type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testcz\n} \"CT_testcz\"\n\npublic:\nCCTK_REAL CT_testc0 type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testc0\n} \"CT_testc0\"\n\npublic:\nCCTK_REAL CT_testc1 type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testc1\n} \"CT_testc1\"\n\npublic:\nCCTK_REAL CT_testc2 type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testc2\n} \"CT_testc2\"\n\npublic:\nCCTK_REAL CT_testc3 type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testc3\n} \"CT_testc3\"\n\npublic:\nCCTK_REAL CT_testc4 type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testc4\n} \"CT_testc4\"\n\npublic:\nCCTK_REAL CT_testa0 type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testa0\n} \"CT_testa0\"\n\npublic:\nCCTK_REAL CT_testa1 type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testa1\n} \"CT_testa1\"\n\npublic:\nCCTK_REAL CT_testa2 type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testa2\n} \"CT_testa2\"\n\npublic:\nCCTK_REAL CT_testa3 type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testa3\n} \"CT_testa3\"\n\npublic:\nCCTK_REAL CT_testa4 type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testa4\n} \"CT_testa4\"\n\npublic:\nCCTK_REAL CT_testW type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testW\n} \"CT_testW\"\n\npublic:\nCCTK_REAL CT_testK type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testK\n} \"CT_testK\"\n\npublic:\nCCTK_REAL CT_testdxK type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testdxK\n} \"CT_testdxK\"\n\npublic:\nCCTK_REAL CT_testdyK type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testdyK\n} \"CT_testdyK\"\n\npublic:\nCCTK_REAL CT_testdzK type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testdzK\n} \"CT_testdzK\"\n\npublic:\nCCTK_REAL CT_testXx type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testXx\n} \"CT_testXx\"\n\npublic:\nCCTK_REAL CT_testXy type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testXy\n} \"CT_testXy\"\n\npublic:\nCCTK_REAL CT_testXz type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testXz\n} \"CT_testXz\"\n\npublic:\nCCTK_REAL CT_testZ type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testZ\n} \"CT_testZ\"\n\npublic:\nCCTK_REAL CT_testAxx type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testAxx\n} \"CT_testAxx\"\n\npublic:\nCCTK_REAL CT_testAxy type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testAxy\n} \"CT_testAxy\"\n\npublic:\nCCTK_REAL CT_testAxz type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testAxz\n} \"CT_testAxz\"\n\npublic:\nCCTK_REAL CT_testAyy type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testAyy\n} \"CT_testAyy\"\n\npublic:\nCCTK_REAL CT_testAyz type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testAyz\n} \"CT_testAyz\"\n\npublic:\nCCTK_REAL CT_testAzz type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n testAzz\n} \"CT_testAzz\"\n", - "params": "", + "param": "# File produced by Kranc\n\n\nshares: GenericFD\n\nUSES CCTK_INT assume_stress_energy_state\n\n\nshares: MethodOfLines\n\nUSES CCTK_INT MoL_Num_Evolved_Vars\nUSES CCTK_INT MoL_Num_ArrayEvolved_Vars\n\nrestricted:\nCCTK_INT verbose \"verbose\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT other_timelevels \"Number of active timelevels for non-evolved grid functions\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL kx \"Wavelength parameter along x\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL ky \"Wavelength parameter along y\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL kz \"Wavelength parameter along z\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL ampG \"Coefficient of the gaussian term in the exact solution\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL ampS \"Coefficient of the sine term in the exact solution\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL ampC \"Constant coefficient in the exact solution\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL ampI \"Multiplication factor between initial guess and exact solution\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL ampC1 \"Initial value for testc1\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL ampSg \"Coefficient of the 1/r term in the exact solution\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL ampV \"Coefficient of the vector part in the exact solution\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL ampVG \"Coefficient of the vector part in the exact solution (gaussian term)\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL sigma \"Width of transition function in extrinsic curvature\"\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL l \"Location of transition function in extrinsic curvature\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL phasex \"Phase in the initial data for psi along x\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL phasey \"Phase in the initial data for psi along y\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL phasez \"Phase in the initial data for psi along z\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL Kc \"Coefficient of extrinsic curvature\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL Ke \"Coefficient of extrinsic curvature in exact solution\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL massa \"mass of first black hole\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL massb \"mass of second black hole\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL xa \"x-coordinate of first black hole for BY initial data\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL ya \"y-coordinate of first black hole for BY initial data\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL za \"z-coordinate of first black hole for BY initial data\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL xb \"x-coordinate of second black hole for BY initial data\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL yb \"y-coordinate of second black hole for BY initial data\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL zb \"z-coordinate of second black hole for BY initial data\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL Pax \"x-component of linear momentum of first black hole for BY initial data\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL Pay \"y-component of linear momentum of first black hole for BY initial data\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL Paz \"z-component of linear momentum of first black hole for BY initial data\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL Pbx \"x-component of linear momentum of second black hole for BY initial data\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL Pby \"y-component of linear momentum of second black hole for BY initial data\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL Pbz \"z-component of linear momentum of second black hole for BY initial data\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL eps \"Smoothing factor\"\n{\n *:* :: \"\"\n} 1.e-6\n\nrestricted:\nCCTK_REAL edgeL \"Coordinate length of cell edge\"\n{\n *:* :: \"\"\n} 10\n\nrestricted:\nCCTK_REAL rBall \"Coordinate radius of ball of density for Poisson's equation\"\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL vecA \"Coordinate center of gaussian representing the X^i vector in the CTT decomposition of the constraints\"\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL amp[5] \"Initial amplitude of peaks\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL x0[5] \"Initial x-locations of peaks\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL y0[5] \"Initial y-locations of peaks\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL z0[5] \"Initial z-locations of peaks\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL sigmax[5] \"x-spreads of initial gaussians\"\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL sigmay[5] \"y-spreads of initial gaussians\"\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL sigmaz[5] \"z-spreads of initial gaussians\"\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT imaxF \"Max number of Fourier modes to include in x direction\"\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT jmaxF \"Max number of Fourier modes to include in y direction\"\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT kmaxF \"Max number of Fourier modes to include in z direction\"\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT tile_size \"Loop tile size\"\n{\n *:* :: \"\"\n} -1\n\nprivate:\nCCTK_KEYWORD free_data \"How to set the free data for the extrinsic curvature?\"\n{\n \"exact\" :: \"\"\n \"Expanding BH lattice\" :: \"\"\n \"Bowen-York\" :: \"\"\n \"Poisson\" :: \"\"\n \"Lump\" :: \"\"\n} \"exact\"\n\nrestricted:\nCCTK_INT CT_Analytic_MaxNumEvolvedVars \"Number of evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Evolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT CT_Analytic_MaxNumArrayEvolvedVars \"Number of Array evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_ArrayEvolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of Array evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT timelevels \"Number of active timelevels\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 3\n\nrestricted:\nCCTK_INT rhs_timelevels \"Number of active RHS timelevels\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 1\n\nrestricted:\nCCTK_INT CT_Analytic_Poisson_Calc_calc_every \"CT_Analytic_Poisson_Calc_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT CT_Analytic_Exact_Calc_calc_every \"CT_Analytic_Exact_Calc_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT CT_Analytic_ExpandingLattice_Calc_calc_every \"CT_Analytic_ExpandingLattice_Calc_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT CT_Analytic_BY_Calc_calc_every \"CT_Analytic_BY_Calc_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT CT_Analytic_Lump_Calc_calc_every \"CT_Analytic_Lump_Calc_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT CT_Analytic_ExactBoundary_calc_every \"CT_Analytic_ExactBoundary_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT CT_Analytic_LumpBoundary_calc_every \"CT_Analytic_LumpBoundary_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT CT_Analytic_Poisson_Calc_calc_offset \"CT_Analytic_Poisson_Calc_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT CT_Analytic_Exact_Calc_calc_offset \"CT_Analytic_Exact_Calc_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT CT_Analytic_ExpandingLattice_Calc_calc_offset \"CT_Analytic_ExpandingLattice_Calc_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT CT_Analytic_BY_Calc_calc_offset \"CT_Analytic_BY_Calc_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT CT_Analytic_Lump_Calc_calc_offset \"CT_Analytic_Lump_Calc_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT CT_Analytic_ExactBoundary_calc_offset \"CT_Analytic_ExactBoundary_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT CT_Analytic_LumpBoundary_calc_offset \"CT_Analytic_LumpBoundary_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\n", "schedule": "# File produced by Kranc\n\nSTORAGE: CT_testinipsi[other_timelevels]\n\nSTORAGE: CT_testinixx[other_timelevels]\n\nSTORAGE: CT_testinixy[other_timelevels]\n\nSTORAGE: CT_testinixz[other_timelevels]\n\nSTORAGE: CT_epsi[other_timelevels]\n\nSTORAGE: CT_elaplacian[other_timelevels]\n\nSTORAGE: CT_testcxx[other_timelevels]\n\nSTORAGE: CT_testcxy[other_timelevels]\n\nSTORAGE: CT_testcxz[other_timelevels]\n\nSTORAGE: CT_testcyy[other_timelevels]\n\nSTORAGE: CT_testcyz[other_timelevels]\n\nSTORAGE: CT_testczz[other_timelevels]\n\nSTORAGE: CT_testcx[other_timelevels]\n\nSTORAGE: CT_testcy[other_timelevels]\n\nSTORAGE: CT_testcz[other_timelevels]\n\nSTORAGE: CT_testc0[other_timelevels]\n\nSTORAGE: CT_testc1[other_timelevels]\n\nSTORAGE: CT_testc2[other_timelevels]\n\nSTORAGE: CT_testc3[other_timelevels]\n\nSTORAGE: CT_testc4[other_timelevels]\n\nSTORAGE: CT_testa0[other_timelevels]\n\nSTORAGE: CT_testa1[other_timelevels]\n\nSTORAGE: CT_testa2[other_timelevels]\n\nSTORAGE: CT_testa3[other_timelevels]\n\nSTORAGE: CT_testa4[other_timelevels]\n\nSTORAGE: CT_testW[other_timelevels]\n\nSTORAGE: CT_testK[other_timelevels]\n\nSTORAGE: CT_testdxK[other_timelevels]\n\nSTORAGE: CT_testdyK[other_timelevels]\n\nSTORAGE: CT_testdzK[other_timelevels]\n\nSTORAGE: CT_testXx[other_timelevels]\n\nSTORAGE: CT_testXy[other_timelevels]\n\nSTORAGE: CT_testXz[other_timelevels]\n\nSTORAGE: CT_testZ[other_timelevels]\n\nSTORAGE: CT_testAxx[other_timelevels]\n\nSTORAGE: CT_testAxy[other_timelevels]\n\nSTORAGE: CT_testAxz[other_timelevels]\n\nSTORAGE: CT_testAyy[other_timelevels]\n\nSTORAGE: CT_testAyz[other_timelevels]\n\nSTORAGE: CT_testAzz[other_timelevels]\nschedule CT_Analytic_Startup at STARTUP\n{\n LANG: C\n OPTIONS: meta\n} \"create banner\"\n\nschedule CT_Analytic_RegisterSymmetries in SymmetryRegister\n{\n LANG: C\n OPTIONS: meta\n} \"register symmetries\"\n\nif (CCTK_EQUALS(free_data, \"Poisson\"))\n{\n schedule CT_Analytic_Poisson_Calc AT CCTK_INITIAL before CT_MultiLevel\n {\n LANG: C\n READS: grid::r(Everywhere)\n WRITES: CT_Analytic::epsi(Everywhere)\n WRITES: CT_Analytic::testc0(Everywhere)\n WRITES: CT_Analytic::testc1(Everywhere)\n WRITES: CT_Analytic::testc2(Everywhere)\n WRITES: CT_Analytic::testc3(Everywhere)\n WRITES: CT_Analytic::testc4(Everywhere)\n WRITES: CT_Analytic::testcx(Everywhere)\n WRITES: CT_Analytic::testcxx(Everywhere)\n WRITES: CT_Analytic::testcxy(Everywhere)\n WRITES: CT_Analytic::testcxz(Everywhere)\n WRITES: CT_Analytic::testcy(Everywhere)\n WRITES: CT_Analytic::testcyy(Everywhere)\n WRITES: CT_Analytic::testcyz(Everywhere)\n WRITES: CT_Analytic::testcz(Everywhere)\n WRITES: CT_Analytic::testczz(Everywhere)\n WRITES: CT_Analytic::testinipsi(Everywhere)\n WRITES: CT_Analytic::testK(Everywhere)\n WRITES: CT_Analytic::testW(Everywhere)\n WRITES: CT_Analytic::testXx(Everywhere)\n WRITES: CT_Analytic::testXy(Everywhere)\n WRITES: CT_Analytic::testXz(Everywhere)\n WRITES: CT_Analytic::testZ(Everywhere)\n } \"CT_Analytic_Poisson_Calc\"\n}\n\nif (CCTK_EQUALS(free_data, \"exact\"))\n{\n schedule CT_Analytic_Exact_Calc AT CCTK_INITIAL before CT_MultiLevel\n {\n LANG: C\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: CT_Analytic::elaplacian(Everywhere)\n WRITES: CT_Analytic::epsi(Everywhere)\n WRITES: CT_Analytic::testc0(Everywhere)\n WRITES: CT_Analytic::testc1(Everywhere)\n WRITES: CT_Analytic::testc2(Everywhere)\n WRITES: CT_Analytic::testc3(Everywhere)\n WRITES: CT_Analytic::testc4(Everywhere)\n WRITES: CT_Analytic::testcx(Everywhere)\n WRITES: CT_Analytic::testcxx(Everywhere)\n WRITES: CT_Analytic::testcxy(Everywhere)\n WRITES: CT_Analytic::testcxz(Everywhere)\n WRITES: CT_Analytic::testcy(Everywhere)\n WRITES: CT_Analytic::testcyy(Everywhere)\n WRITES: CT_Analytic::testcyz(Everywhere)\n WRITES: CT_Analytic::testcz(Everywhere)\n WRITES: CT_Analytic::testczz(Everywhere)\n WRITES: CT_Analytic::testinipsi(Everywhere)\n } \"CT_Analytic_Exact_Calc\"\n}\n\nif (CCTK_EQUALS(free_data, \"Expanding BH lattice\"))\n{\n schedule CT_Analytic_ExpandingLattice_Calc AT CCTK_INITIAL before CT_MultiLevel\n {\n LANG: C\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n READS: grid::r(Everywhere)\n WRITES: CT_Analytic::epsi(Everywhere)\n WRITES: CT_Analytic::testa0(Everywhere)\n WRITES: CT_Analytic::testc0(Everywhere)\n WRITES: CT_Analytic::testc1(Everywhere)\n WRITES: CT_Analytic::testc2(Everywhere)\n WRITES: CT_Analytic::testc3(Everywhere)\n WRITES: CT_Analytic::testcxx(Everywhere)\n WRITES: CT_Analytic::testcyy(Everywhere)\n WRITES: CT_Analytic::testczz(Everywhere)\n WRITES: CT_Analytic::testdxK(Everywhere)\n WRITES: CT_Analytic::testdyK(Everywhere)\n WRITES: CT_Analytic::testdzK(Everywhere)\n WRITES: CT_Analytic::testinipsi(Everywhere)\n WRITES: CT_Analytic::testK(Everywhere)\n WRITES: CT_Analytic::testW(Everywhere)\n WRITES: CT_Analytic::testXx(Everywhere)\n WRITES: CT_Analytic::testXy(Everywhere)\n WRITES: CT_Analytic::testXz(Everywhere)\n } \"CT_Analytic_ExpandingLattice_Calc\"\n}\n\nif (CCTK_EQUALS(free_data, \"Bowen-York\"))\n{\n schedule CT_Analytic_BY_Calc AT CCTK_INITIAL before CT_MultiLevel\n {\n LANG: C\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: CT_Analytic::epsi(Everywhere)\n WRITES: CT_Analytic::testa0(Everywhere)\n WRITES: CT_Analytic::testa1(Everywhere)\n WRITES: CT_Analytic::testAxx(Everywhere)\n WRITES: CT_Analytic::testAxy(Everywhere)\n WRITES: CT_Analytic::testAxz(Everywhere)\n WRITES: CT_Analytic::testAyy(Everywhere)\n WRITES: CT_Analytic::testAyz(Everywhere)\n WRITES: CT_Analytic::testAzz(Everywhere)\n WRITES: CT_Analytic::testcxx(Everywhere)\n WRITES: CT_Analytic::testcyy(Everywhere)\n WRITES: CT_Analytic::testczz(Everywhere)\n WRITES: CT_Analytic::testdxK(Everywhere)\n WRITES: CT_Analytic::testdyK(Everywhere)\n WRITES: CT_Analytic::testdzK(Everywhere)\n WRITES: CT_Analytic::testinipsi(Everywhere)\n WRITES: CT_Analytic::testK(Everywhere)\n WRITES: CT_Analytic::testXx(Everywhere)\n WRITES: CT_Analytic::testXy(Everywhere)\n WRITES: CT_Analytic::testXz(Everywhere)\n WRITES: CT_Analytic::testZ(Everywhere)\n } \"CT_Analytic_BY_Calc\"\n}\n\nif (CCTK_EQUALS(free_data, \"Lump\"))\n{\n schedule CT_Analytic_Lump_Calc AT CCTK_INITIAL before CT_MultiLevel\n {\n LANG: C\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: CT_Analytic::elaplacian(Everywhere)\n WRITES: CT_Analytic::epsi(Everywhere)\n WRITES: CT_Analytic::testa0(Everywhere)\n WRITES: CT_Analytic::testc0(Everywhere)\n WRITES: CT_Analytic::testc1(Everywhere)\n WRITES: CT_Analytic::testc2(Everywhere)\n WRITES: CT_Analytic::testc3(Everywhere)\n WRITES: CT_Analytic::testc4(Everywhere)\n WRITES: CT_Analytic::testcx(Everywhere)\n WRITES: CT_Analytic::testcxx(Everywhere)\n WRITES: CT_Analytic::testcxy(Everywhere)\n WRITES: CT_Analytic::testcxz(Everywhere)\n WRITES: CT_Analytic::testcy(Everywhere)\n WRITES: CT_Analytic::testcyy(Everywhere)\n WRITES: CT_Analytic::testcyz(Everywhere)\n WRITES: CT_Analytic::testcz(Everywhere)\n WRITES: CT_Analytic::testczz(Everywhere)\n WRITES: CT_Analytic::testdxK(Everywhere)\n WRITES: CT_Analytic::testdyK(Everywhere)\n WRITES: CT_Analytic::testdzK(Everywhere)\n WRITES: CT_Analytic::testinipsi(Everywhere)\n WRITES: CT_Analytic::testinixx(Everywhere)\n WRITES: CT_Analytic::testinixy(Everywhere)\n WRITES: CT_Analytic::testinixz(Everywhere)\n WRITES: CT_Analytic::testK(Everywhere)\n WRITES: CT_Analytic::testXx(Everywhere)\n WRITES: CT_Analytic::testXy(Everywhere)\n WRITES: CT_Analytic::testXz(Everywhere)\n } \"CT_Analytic_Lump_Calc\"\n}\n\nif (CCTK_EQUALS(free_data, \"exact\"))\n{\n schedule CT_Analytic_ExactBoundary AT CCTK_INITIAL before CT_MultiLevel after CT_Analytic_Calc\n {\n LANG: C\n SYNC: CT_testinipsi\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: CT_Analytic::testinipsi(Boundary)\n } \"CT_Analytic_ExactBoundary\"\n}\n\nif (CCTK_EQUALS(free_data, \"Lump\"))\n{\n schedule CT_Analytic_LumpBoundary AT CCTK_INITIAL before CT_MultiLevel after CT_Analytic_Calc\n {\n LANG: C\n SYNC: CT_testinipsi\n SYNC: CT_testinixx\n SYNC: CT_testinixy\n SYNC: CT_testinixz\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: CT_Analytic::testinipsi(Boundary)\n WRITES: CT_Analytic::testinixx(Boundary)\n WRITES: CT_Analytic::testinixy(Boundary)\n WRITES: CT_Analytic::testinixz(Boundary)\n } \"CT_Analytic_LumpBoundary\"\n}\n\nschedule CT_Analytic_SelectBoundConds in MoL_PostStep\n{\n LANG: C\n OPTIONS: level\n} \"select boundary conditions\"\n\nschedule CT_Analytic_CheckBoundaries at BASEGRID\n{\n LANG: C\n OPTIONS: meta\n} \"check boundaries treatment\"\n\nschedule CT_Analytic_RegisterVars in MoL_Register\n{\n LANG: C\n OPTIONS: meta\n} \"Register Variables for MoL\"\nschedule group ApplyBCs as CT_Analytic_ApplyBCs in MoL_PostStep after CT_Analytic_SelectBoundConds\n{\n} \"Apply boundary conditions controlled by thorn Boundary\"\n", "src": { "CT_Analytic_LumpBoundary.cc": "/* File produced by Kranc */\n\n#define KRANC_C\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Parameters.h\"\n#include \"Kranc.hh\"\n#include \"Differencing.h\"\n#include \"loopcontrol.h\"\n\nnamespace CT_Analytic {\n\nextern \"C\" void CT_Analytic_LumpBoundary_SelectBCs(CCTK_ARGUMENTS)\n{\n #ifdef DECLARE_CCTK_ARGUMENTS_CT_Analytic_LumpBoundary_SelectBCs\n DECLARE_CCTK_ARGUMENTS_CHECKED(CT_Analytic_LumpBoundary_SelectBCs);\n #else\n DECLARE_CCTK_ARGUMENTS;\n #endif\n DECLARE_CCTK_PARAMETERS;\n \n if (cctk_iteration % CT_Analytic_LumpBoundary_calc_every != CT_Analytic_LumpBoundary_calc_offset)\n return;\n CCTK_INT ierr CCTK_ATTRIBUTE_UNUSED = 0;\n ierr = KrancBdy_SelectGroupForBC(cctkGH, CCTK_ALL_FACES, GetBoundaryWidth(cctkGH), -1 /* no table */, \"CT_Analytic::CT_testinipsi\",\"flat\");\n if (ierr < 0)\n CCTK_WARN(CCTK_WARN_ALERT, \"Failed to register flat BC for CT_Analytic::CT_testinipsi.\");\n ierr = KrancBdy_SelectGroupForBC(cctkGH, CCTK_ALL_FACES, GetBoundaryWidth(cctkGH), -1 /* no table */, \"CT_Analytic::CT_testinixx\",\"flat\");\n if (ierr < 0)\n CCTK_WARN(CCTK_WARN_ALERT, \"Failed to register flat BC for CT_Analytic::CT_testinixx.\");\n ierr = KrancBdy_SelectGroupForBC(cctkGH, CCTK_ALL_FACES, GetBoundaryWidth(cctkGH), -1 /* no table */, \"CT_Analytic::CT_testinixy\",\"flat\");\n if (ierr < 0)\n CCTK_WARN(CCTK_WARN_ALERT, \"Failed to register flat BC for CT_Analytic::CT_testinixy.\");\n ierr = KrancBdy_SelectGroupForBC(cctkGH, CCTK_ALL_FACES, GetBoundaryWidth(cctkGH), -1 /* no table */, \"CT_Analytic::CT_testinixz\",\"flat\");\n if (ierr < 0)\n CCTK_WARN(CCTK_WARN_ALERT, \"Failed to register flat BC for CT_Analytic::CT_testinixz.\");\n return;\n}\n\nstatic void CT_Analytic_LumpBoundary_Body(const cGH* restrict const cctkGH, const int dir, const int face, const CCTK_REAL normal[3], const CCTK_REAL tangentA[3], const CCTK_REAL tangentB[3], const int imin[3], const int imax[3], const int n_subblock_gfs, CCTK_REAL* restrict const subblock_gfs[])\n{\n DECLARE_CCTK_ARGUMENTS;\n DECLARE_CCTK_PARAMETERS;\n \n /* Include user-supplied include files */\n /* Initialise finite differencing variables */\n const ptrdiff_t di CCTK_ATTRIBUTE_UNUSED = 1;\n const ptrdiff_t dj CCTK_ATTRIBUTE_UNUSED = \n CCTK_GFINDEX3D(cctkGH,0,1,0) - CCTK_GFINDEX3D(cctkGH,0,0,0);\n const ptrdiff_t dk CCTK_ATTRIBUTE_UNUSED = \n CCTK_GFINDEX3D(cctkGH,0,0,1) - CCTK_GFINDEX3D(cctkGH,0,0,0);\n const ptrdiff_t cdi CCTK_ATTRIBUTE_UNUSED = sizeof(CCTK_REAL) * di;\n const ptrdiff_t cdj CCTK_ATTRIBUTE_UNUSED = sizeof(CCTK_REAL) * dj;\n const ptrdiff_t cdk CCTK_ATTRIBUTE_UNUSED = sizeof(CCTK_REAL) * dk;\n const ptrdiff_t cctkLbnd1 CCTK_ATTRIBUTE_UNUSED = cctk_lbnd[0];\n const ptrdiff_t cctkLbnd2 CCTK_ATTRIBUTE_UNUSED = cctk_lbnd[1];\n const ptrdiff_t cctkLbnd3 CCTK_ATTRIBUTE_UNUSED = cctk_lbnd[2];\n const CCTK_REAL t CCTK_ATTRIBUTE_UNUSED = cctk_time;\n const CCTK_REAL cctkOriginSpace1 CCTK_ATTRIBUTE_UNUSED = \n CCTK_ORIGIN_SPACE(0);\n const CCTK_REAL cctkOriginSpace2 CCTK_ATTRIBUTE_UNUSED = \n CCTK_ORIGIN_SPACE(1);\n const CCTK_REAL cctkOriginSpace3 CCTK_ATTRIBUTE_UNUSED = \n CCTK_ORIGIN_SPACE(2);\n const CCTK_REAL dt CCTK_ATTRIBUTE_UNUSED = CCTK_DELTA_TIME;\n const CCTK_REAL dx CCTK_ATTRIBUTE_UNUSED = CCTK_DELTA_SPACE(0);\n const CCTK_REAL dy CCTK_ATTRIBUTE_UNUSED = CCTK_DELTA_SPACE(1);\n const CCTK_REAL dz CCTK_ATTRIBUTE_UNUSED = CCTK_DELTA_SPACE(2);\n const CCTK_REAL dxi CCTK_ATTRIBUTE_UNUSED = pow(dx,-1);\n const CCTK_REAL dyi CCTK_ATTRIBUTE_UNUSED = pow(dy,-1);\n const CCTK_REAL dzi CCTK_ATTRIBUTE_UNUSED = pow(dz,-1);\n const CCTK_REAL khalf CCTK_ATTRIBUTE_UNUSED = 0.5;\n const CCTK_REAL kthird CCTK_ATTRIBUTE_UNUSED = \n 0.333333333333333333333333333333;\n const CCTK_REAL ktwothird CCTK_ATTRIBUTE_UNUSED = \n 0.666666666666666666666666666667;\n const CCTK_REAL kfourthird CCTK_ATTRIBUTE_UNUSED = \n 1.33333333333333333333333333333;\n const CCTK_REAL hdxi CCTK_ATTRIBUTE_UNUSED = 0.5*dxi;\n const CCTK_REAL hdyi CCTK_ATTRIBUTE_UNUSED = 0.5*dyi;\n const CCTK_REAL hdzi CCTK_ATTRIBUTE_UNUSED = 0.5*dzi;\n /* Initialize predefined quantities */\n const CCTK_REAL p1o12dx CCTK_ATTRIBUTE_UNUSED = 0.0833333333333333333333333333333*pow(dx,-1);\n const CCTK_REAL p1o12dy CCTK_ATTRIBUTE_UNUSED = 0.0833333333333333333333333333333*pow(dy,-1);\n const CCTK_REAL p1o12dz CCTK_ATTRIBUTE_UNUSED = 0.0833333333333333333333333333333*pow(dz,-1);\n const CCTK_REAL p1o144dxdy CCTK_ATTRIBUTE_UNUSED = 0.00694444444444444444444444444444*pow(dx,-1)*pow(dy,-1);\n const CCTK_REAL p1o144dxdz CCTK_ATTRIBUTE_UNUSED = 0.00694444444444444444444444444444*pow(dx,-1)*pow(dz,-1);\n const CCTK_REAL p1o144dydz CCTK_ATTRIBUTE_UNUSED = 0.00694444444444444444444444444444*pow(dy,-1)*pow(dz,-1);\n const CCTK_REAL pm1o12dx2 CCTK_ATTRIBUTE_UNUSED = -0.0833333333333333333333333333333*pow(dx,-2);\n const CCTK_REAL pm1o12dy2 CCTK_ATTRIBUTE_UNUSED = -0.0833333333333333333333333333333*pow(dy,-2);\n const CCTK_REAL pm1o12dz2 CCTK_ATTRIBUTE_UNUSED = -0.0833333333333333333333333333333*pow(dz,-2);\n /* Assign local copies of arrays functions */\n \n \n /* Calculate temporaries and arrays functions */\n /* Copy local copies back to grid functions */\n /* Loop over the grid points */\n const int imin0=imin[0];\n const int imin1=imin[1];\n const int imin2=imin[2];\n const int imax0=imax[0];\n const int imax1=imax[1];\n const int imax2=imax[2];\n #pragma omp parallel\n CCTK_LOOP3(CT_Analytic_LumpBoundary,\n i,j,k, imin0,imin1,imin2, imax0,imax1,imax2,\n cctk_ash[0],cctk_ash[1],cctk_ash[2])\n {\n const ptrdiff_t index CCTK_ATTRIBUTE_UNUSED = di*i + dj*j + dk*k;\n /* Assign local copies of grid functions */\n \n CCTK_REAL xL CCTK_ATTRIBUTE_UNUSED = x[index];\n CCTK_REAL yL CCTK_ATTRIBUTE_UNUSED = y[index];\n CCTK_REAL zL CCTK_ATTRIBUTE_UNUSED = z[index];\n \n /* Include user supplied include files */\n /* Precompute derivatives */\n /* Calculate temporaries and grid functions */\n CCTK_REAL testinipsiL CCTK_ATTRIBUTE_UNUSED = ampC + \n ampG*((amp[0])*exp(-0.5*pow((sigmax[0]),-2)*pow(-(x0[0]) + xL,2) - \n 0.5*pow((sigmay[0]),-2)*pow(-(y0[0]) + yL,2) - \n 0.5*pow((sigmaz[0]),-2)*pow(-(z0[0]) + zL,2)) + \n (amp[1])*exp(-0.5*pow((sigmax[1]),-2)*pow(-(x0[1]) + xL,2) - \n 0.5*pow((sigmay[1]),-2)*pow(-(y0[1]) + yL,2) - \n 0.5*pow((sigmaz[1]),-2)*pow(-(z0[1]) + zL,2)) + \n (amp[2])*exp(-0.5*pow((sigmax[2]),-2)*pow(-(x0[2]) + xL,2) - \n 0.5*pow((sigmay[2]),-2)*pow(-(y0[2]) + yL,2) - \n 0.5*pow((sigmaz[2]),-2)*pow(-(z0[2]) + zL,2)) + \n (amp[3])*exp(-0.5*pow((sigmax[3]),-2)*pow(-(x0[3]) + xL,2) - \n 0.5*pow((sigmay[3]),-2)*pow(-(y0[3]) + yL,2) - \n 0.5*pow((sigmaz[3]),-2)*pow(-(z0[3]) + zL,2)) + \n (amp[4])*exp(-0.5*pow((sigmax[4]),-2)*pow(-(x0[4]) + xL,2) - \n 0.5*pow((sigmay[4]),-2)*pow(-(y0[4]) + yL,2) - \n 0.5*pow((sigmaz[4]),-2)*pow(-(z0[4]) + zL,2))) + \n ampS*sin(6.283185307179586476925286766559005768394*(xL*kx + \n phasex))*sin(6.283185307179586476925286766559005768394*(yL*ky + \n phasey))*sin(6.283185307179586476925286766559005768394*(zL*kz + \n phasez));\n \n CCTK_REAL testinixxL CCTK_ATTRIBUTE_UNUSED = \n ampVG*(exp(-0.5*pow(sigma,-2)*(pow(yL,2) + pow(zL,2) + pow(xL - \n vecA,2))) - exp(-0.5*pow(sigma,-2)*(pow(yL,2) + pow(zL,2) + pow(xL + \n vecA,2)))) + \n ampV*sin(6.283185307179586476925286766559005768394*xL*kx)*sin(6.283185307179586476925286766559005768394*yL*ky)*sin(6.283185307179586476925286766559005768394*zL*kz);\n \n CCTK_REAL testinixyL CCTK_ATTRIBUTE_UNUSED = \n ampVG*(exp(-0.5*pow(sigma,-2)*(pow(xL,2) + pow(zL,2) + pow(yL - \n vecA,2))) - exp(-0.5*pow(sigma,-2)*(pow(xL,2) + pow(zL,2) + pow(yL + \n vecA,2)))) + \n ampV*sin(6.283185307179586476925286766559005768394*xL*kx)*sin(6.283185307179586476925286766559005768394*yL*ky)*sin(6.283185307179586476925286766559005768394*zL*kz);\n \n CCTK_REAL testinixzL CCTK_ATTRIBUTE_UNUSED = \n ampVG*(exp(-0.5*pow(sigma,-2)*(pow(xL,2) + pow(yL,2) + pow(zL - \n vecA,2))) - exp(-0.5*pow(sigma,-2)*(pow(xL,2) + pow(yL,2) + pow(zL + \n vecA,2)))) + \n ampV*sin(6.283185307179586476925286766559005768394*xL*kx)*sin(6.283185307179586476925286766559005768394*yL*ky)*sin(6.283185307179586476925286766559005768394*zL*kz);\n /* Copy local copies back to grid functions */\n testinipsi[index] = testinipsiL;\n testinixx[index] = testinixxL;\n testinixy[index] = testinixyL;\n testinixz[index] = testinixzL;\n }\n CCTK_ENDLOOP3(CT_Analytic_LumpBoundary);\n}\nextern \"C\" void CT_Analytic_LumpBoundary(CCTK_ARGUMENTS)\n{\n #ifdef DECLARE_CCTK_ARGUMENTS_CT_Analytic_LumpBoundary\n DECLARE_CCTK_ARGUMENTS_CHECKED(CT_Analytic_LumpBoundary);\n #else\n DECLARE_CCTK_ARGUMENTS;\n #endif\n DECLARE_CCTK_PARAMETERS;\n \n if (verbose > 1)\n {\n CCTK_VInfo(CCTK_THORNSTRING,\"Entering CT_Analytic_LumpBoundary_Body\");\n }\n if (cctk_iteration % CT_Analytic_LumpBoundary_calc_every != CT_Analytic_LumpBoundary_calc_offset)\n {\n return;\n }\n \n const char* const groups[] = {\n \"CT_Analytic::CT_testinipsi\",\n \"CT_Analytic::CT_testinixx\",\n \"CT_Analytic::CT_testinixy\",\n \"CT_Analytic::CT_testinixz\",\n \"grid::coordinates\"};\n AssertGroupStorage(cctkGH, \"CT_Analytic_LumpBoundary\", 5, groups);\n \n \n LoopOverBoundary(cctkGH, CT_Analytic_LumpBoundary_Body);\n if (verbose > 1)\n {\n CCTK_VInfo(CCTK_THORNSTRING,\"Leaving CT_Analytic_LumpBoundary_Body\");\n }\n}\n\n} // namespace CT_Analytic\n", diff --git a/CTThorns_CT_MultiLevel.json b/CTThorns_CT_MultiLevel.json index b64f7709c8cb5a773354f433ade2df5664c9988a..ad63fc3f4e0c9c918a80d52ce34291da98fc9d0b 100644 --- a/CTThorns_CT_MultiLevel.json +++ b/CTThorns_CT_MultiLevel.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eloisa/ctthorns.git", "configuration": "REQUIRES Carpet MPI\n", "interface": "#\n\nIMPLEMENTS: CT_MultiLevel\n\nINHERITS: Boundary\nINHERITS: Grid\n\nUSES INCLUDE: Symmetry.h\nUSES INCLUDE: loopcontrol.h\nUSES INCLUDE: Boundary.h\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT FUNCTION GetBoundarySizesAndTypes \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY bndsize, \\\n CCTK_INT OUT ARRAY is_ghostbnd, \\\n CCTK_INT OUT ARRAY is_symbnd, \\\n CCTK_INT OUT ARRAY is_physbnd)\nREQUIRES FUNCTION GetBoundarySizesAndTypes\n\nCCTK_REAL psi[number_of_equations] type = GF Timelevels = 3 tags='tensortypealias=\"Scalar\"'\n{\n ct_psi #ct_singpsi\n} \"Conformal factor in the metric\"\n\nCCTK_REAL err[number_of_equations] type = GF Timelevels = 3 tags='tensortypealias=\"Scalar\"'\n{\n ct_err ct_terr ct_trunc\n} \"Solution error\"\n\nCCTK_REAL residual[number_of_equations] type = GF Timelevels = 3 tags='tensortypealias=\"Scalar\"'\n{\n ct_residual ct_residual_above\n} \"Residual\"\n\nCCTK_REAL coeffs[number_of_equations] type = GF Timelevels = 3 tags='tensortypealias=\"Scalar\"' # prolongation=\"None\"'\n{\n ct_cxx ct_cxy ct_cxz ct_cyy ct_cyz ct_czz\n ct_cx ct_cy ct_cz\n ct_c0 ct_c1 ct_c2 ct_c3 ct_c4\n ct_a0 ct_a1 ct_a2 ct_a3 ct_a4\n} \"Equation's coefficients\"\n\nCCTK_REAL copies[number_of_equations] type = GF Timelevels = 1 tags='tensortypealias=\"Scalar\" prolongation=\"None\"'\n{\n ct_psi_copy ct_residual_copy ct_residual_above_copy ct_err_copy ct_trunc_copy ct_psi_jacobi ct_err_jacobi\n} \"Copies of grid functions\"\n\nCCTK_REAL cell_integral[number_of_equations] type = GF Timelevels = 1 tags='tensortypealias=\"Scalar\" prolongation=\"None\"'\n{\n ct_integrand1 ct_integrand2 ct_integrand3 ct_integrand4\n} \"Integrand of the equation integral over a cell\"\n\nCCTK_REAL auxiliaries[number_of_auxiliaries] type = GF Timelevels = 1 tags='tensortypealias=\"Scalar\" prolongation=\"None\"'\n{\n ct_auxiliary\n} \"Auxiliary functions needed to set the equation coefficients in coupled systems\"\n\nCCTK_REAL rhs[number_of_equations] type = GF Timelevels = 1 tags='tensortypealias=\"Scalar\" prolongation=\"None\"'\n{\n ct_rhs\n} \"rhs\"\n\nCCTK_REAL constants type = GF Timelevels = 1 tags='tensortypealias=\"Scalar\" prolongation=\"None\"'\n{\n ct_zero\n} \"Constants\"\n\n", - "params": "", + "param": "#\n\nshares: admbase\nEXTENDS KEYWORD initial_data\n{\n \"CT_MultiLevel\" :: \"Initial data from this solver\"\n}\n\nprivate:\n# Algorithm parameters\nKEYWORD mode \"Which equation should we solve?\"\n{\n \"generic\" :: \"Generic elliptic operator, to be defined via the coefficients\"\n \"constraints\" :: \"The GR constraints\"\n} \"generic\"\n\nKEYWORD model \"Model used to populate the auxiliary functions\"\n{\n \"Bowen-York\" :: \"Bowen-York extrinsic curvature for multiple punctures\"\n \"Expanding BH lattice\" :: \"An expanding black-hole lattice\"\n \"Lump\" :: \"Generic compact source in Tmunu\"\n \"Inhomogeneous Helmholtz\" :: \"Inhomogeneous Helmholtz equation\"\n \"None\" :: \"No auxiliaries needed\"\n} \"None\"\n\nKEYWORD cycle_type \"How should be cycle over the refinement levels?\"\n{\n \"V cycle\" :: \"A V cycle\"\n \"FMG cycle\" :: \"A FMG cycle\"\n} \"V cycle\"\n\nKEYWORD verbose \"Output debugging information?\"\n{\n \"no\" :: \"no\"\n \"yes\" :: \"yes\"\n} \"no\"\n\nKEYWORD veryverbose \"Output more debugging information?\"\n{\n \"no\" :: \"no\"\n \"yes\" :: \"yes\"\n} \"no\"\n\nKEYWORD output_norms \"Output the norms of psi and residual, and those of their errors?\"\n{\n \"no\" :: \"no\"\n \"yes\" :: \"yes\"\n} \"no\"\n\nKEYWORD compare_to_exact \"Output a file with the difference between the solution at each iteration and the exact solution, if known\"\n{\n \"no\" :: \"no\"\n \"yes\" :: \"yes\"\n} \"no\"\n\nKEYWORD output_walk \"Output a file with the parameter-space walk followed by the algorithm?\"\n{\n \"no\" :: \"no\"\n \"yes\" :: \"yes\"\n} \"no\"\n\nKEYWORD fill_ADM \"Should the equation solution be used to fill the ADM variables?\"\n{\n \"no\" :: \"no\"\n \"yes\" :: \"yes\"\n} \"no\"\n\nKEYWORD boundary_conditions \"Which boundary conditions to apply to psi\"\n{\n \"Robin\" :: \"Robin\"\n \"TwoPunctures\" :: \"Dirichlet BCs from TwoPunctures\"\n \"none\" :: \"This thorn will apply no boundary conditions\"\n} \"none\"\n\nCCTK_STRING exact_solution_gfname[10] \"Grid function holding the exact solution\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\" \n\nCCTK_STRING exact_laplacian_gfname[10] \"Grid function holding the exact laplacian\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\" \n\nCCTK_REAL exact_offset \"Offset between exact solution and grid function pointed by exact_solution_gfname\" STEERABLE=ALWAYS\n{\n *:* :: \"Any real number\"\n} 0.0\n\nKEYWORD disable[10] \"Should this equation actually be solved?\"\n{\n \"no\" :: \"no\"\n \"yes\" :: \"yes\"\n} \"no\"\n\nCCTK_INT fd_order \"Order of FD\"\n{\n 2:4:2 :: \"Order of differencing\"\n} 2\n\nCCTK_INT number_of_equations \"How many equations are to be solved concurrently?\"\n{\n 1:10 :: \"A positive integer smaller than or equal to 10\"\n} 1\n\nCCTK_INT number_of_auxiliaries \"How many auxiliary functions do we need?\"\n{\n 0: :: \"A non-negative integer\"\n} 0\n\nCCTK_INT nrelsteps_up \"How many times should we relax each level inside the upward leg of a cycle?\"\n{\n 0: :: \"Any non-negative integer\"\n} 2\n\nCCTK_INT nrelsteps_down \"How many times should we relax each level inside the downward leg of a cycle?\"\n{\n 0: :: \"Any non-negative integer\"\n} 2\n\nCCTK_INT nrelsteps_bottom \"How many times should we relax each level at the bottom of a cycle?\"\n{\n 0: :: \"Any non-negative integer\"\n} 2\n\nCCTK_INT nrelsteps_top \"How many times should we relax each level at the top of a cycle?\"\n{\n 0: :: \"Any non-negative integer\"\n} 2\n\nCCTK_INT fmg_niter \"How many times should we execute the FMG cycle?\"\n{\n 1: :: \"Any non-negative integer\"\n} 1\n\nCCTK_INT integral_refinement \"How much to refine the grid via interpolation before calculating integrals\"\n{\n 1:* :: \"Any integer greater than zero\"\n} 1\n\nCCTK_REAL tol \"Maximum residual tolerated\"\n{\n 0:* :: \"Any non-negative real\"\n} 1e-06\n\nCCTK_REAL eps \"Regularization factor at the punctures\"\n{\n 0:* :: \"Any non-negative real\"\n} 1e-06\n\nCCTK_REAL omega \"Overrelaxation factor\"\n{\n 0:2 :: \"Real larger than zero and smaller than 2\"\n} 1\n\nKEYWORD reset_psi \"Reset psi after each relaxation step? How?\"\n{\n \"no\" :: \"Do not reset\"\n \"to value\" :: \"Reset to the value specified by reset_value\"\n \"through integrability\" :: \"Reset so that the integrability condition is satisfied\"\n} \"no\"\n\nCCTK_INT reset_every \"How often should we reset psi?\"\n{\n 1:* :: \"Any positive integer\"\n} 1\n\nCCTK_REAL reset_value[10] \"Value to reset psi to\"\n{\n *:* :: \"Any real number\"\n} 0\n\nCCTK_REAL reset_x \"x-coordinate of point of reference for variable resetting\"\n{\n : :: \"Any real number (contained in the domain!)\"\n} 0\n\nCCTK_REAL reset_y \"y-coordinate of point of reference for variable resetting\"\n{\n : :: \"Any real number (contained in the domain!)\"\n} 0\n\nCCTK_REAL reset_z \"z-coordinate of point of reference for variable resetting\"\n{\n : :: \"Any real number (contained in the domain!)\"\n} 0\n\nCCTK_INT enforce_int \"Enforce the integral compatibility condition?\"\n{\n 0:1:1 :: \"True or false\"\n} 0\n\nCCTK_INT topMGlevel \"Finest level that covers the entire domain\"\n{\n 0: :: \"Any non-negative integer (< Carpet::reflevels!)\"\n} 0\n\nKEYWORD gs_update \"Update solution immediately?\"\n{\n \"yes\" :: \"yes\"\n \"no\" :: \"no\"\n} \"yes\"\n\nKEYWORD use_srj \"Use SRJ relaxation factor?\"\n{\n \"no\" :: \"no\"\n \"yes\" :: \"yes\"\n} \"no\"\n\nKEYWORD use_srj_err \"Use SRJ relaxation factor in the error equation?\"\n{\n \"no\" :: \"no\"\n \"yes\" :: \"yes\"\n} \"no\"\n\nKEYWORD srj_scheme \"Which SRJ scheme should be used?\"\n{\n \"6-32\" :: \"6 levels, 32^3-point grid\"\n \"6-64\" :: \"6 levels, 64^3-point grid\"\n \"6-128\" :: \"6 levels, 128^3-point grid\"\n \"6-256\" :: \"6 levels, 256^3-point grid\"\n \"6-512\" :: \"6 levels, 512^3-point grid\"\n \"6-1024\" :: \"6 levels, 1024^3-point grid\"\n \"6-150\" :: \"6 levels, 150^3-point grid\"\n} \"6-32\"\n\nKEYWORD single_srj_scheme \"Use a single SRJ scheme for all the levels?\"\n{\n \"no\" :: \"no\"\n \"yes\" :: \"yes\"\n} \"yes\"\n\n# Equation coefficients\nCCTK_INT n0[10] \"Exponent of a power-law term\"\n{\n : :: \"Any integer\"\n} 0\n\nCCTK_INT n1[10] \"Exponent of a power-law term\"\n{\n : :: \"Any integer\"\n} 0\n\nCCTK_INT n2[10] \"Exponent of a power-law term\"\n{\n : :: \"Any integer\"\n} 0\n\nCCTK_INT n3[10] \"Exponent of a power-law term\"\n{\n : :: \"Any integer\"\n} 0\n\nCCTK_INT n4[10] \"Exponent of a power-law term\"\n{\n : :: \"Any integer\"\n} 0\n\nCCTK_STRING inipsi_gfname[10] \"Use this grid function to set the initial guess for psi\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n\nCCTK_STRING cxx_gfname[10] \"Use this grid function to set the cxx coefficient\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n\nCCTK_STRING cxy_gfname[10] \"Use this grid function to set the cxy coefficient\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n\nCCTK_STRING cxz_gfname[10] \"Use this grid function to set the cxz coefficient\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n\nCCTK_STRING cyy_gfname[10] \"Use this grid function to set the cyy coefficient\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n\nCCTK_STRING cyz_gfname[10] \"Use this grid function to set the cyz coefficient\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n\nCCTK_STRING czz_gfname[10] \"Use this grid function to set the czz coefficient\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n\nCCTK_STRING cx_gfname[10] \"Use this grid function to set the cx coefficient\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n\nCCTK_STRING cy_gfname[10] \"Use this grid function to set the cy coefficient\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n\nCCTK_STRING cz_gfname[10] \"Use this grid function to set the cz coefficient\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n\nCCTK_STRING c0_gfname[10] \"Use this grid function to set the c0 coefficient\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n\nCCTK_STRING c1_gfname[10] \"Use this grid function to set the c1 coefficient\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n\nCCTK_STRING c2_gfname[10] \"Use this grid function to set the c2 coefficient\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n\nCCTK_STRING c3_gfname[10] \"Use this grid function to set the c3 coefficient\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n\nCCTK_STRING c4_gfname[10] \"Use this grid function to set the c4 coefficient\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n\nCCTK_STRING a0_gfname[10] \"Use this grid function to set the a0 coefficient\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n\nCCTK_STRING a1_gfname[10] \"Use this grid function to set the a1 coefficient\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n\nCCTK_STRING a2_gfname[10] \"Use this grid function to set the a2 coefficient\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n\nCCTK_STRING a3_gfname[10] \"Use this grid function to set the a3 coefficient\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n\nCCTK_STRING a4_gfname[10] \"Use this grid function to set the a4 coefficient\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n\nKEYWORD fill_Aij \"Where does the final Aij come from?\"\n{\n \"Solver\" :: \"Aij is solved for as well\"\n \"Analytic Xi\" :: \"Aij comes from differentiating an analytic Xi\"\n \"Analytic Aij\" :: \"Aij comes from an exact solution\"\n} \"Analytic Aij\"\n\nCCTK_STRING other_gfname[10] \"Other gf names needed by solver\" STEERABLE=ALWAYS\n{\n \".*\" :: \"Any valid grid function\"\n} \"CT_MultiLevel::ct_zero\"\n", "schedule": "#\n\nSTORAGE: psi[3]\nSTORAGE: residual[3] err[3]\nSTORAGE: coeffs[3]\nSTORAGE: copies[1]\nSTORAGE: cell_integral[1]\nSTORAGE: auxiliaries[1]\nSTORAGE: rhs[1]\nSTORAGE: constants[1]\n\nschedule CT_MultiLevel AT CCTK_INITIAL after CT_ScalarField_setConfRho\n{\n LANG: C\n OPTIONS: GLOBAL-LATE\n} \"Main MultiLevel function\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn CT_MultiLevel\n\n# Source files in this directory\nSRCS = CT_MultiLevel.cc \\\n CT_V.cc \\\n CT_InitializePsi.cc \\\n CT_InitializeError.cc \\\n CT_InitializeCoefficients.cc \\\n CT_InitializeResidual.cc \\\n CT_InitializeConstants.cc \\\n CT_InitializeAuxiliaries.cc \\\n CT_RelaxPsi.cc \\\n CT_RelaxError.cc \\\n CT_Boundaries.cc \\\n CT_SolvePsiEquation.cc \\\n CT_SolveErrorEquation.cc \\\n CT_AddErrorToPsi.cc \\\n CT_Reset.cc \\\n CT_EnforceInt.cc \\\n CT_OutputWalk.cc \\\n CT_RestoreError.cc \\\n CT_CalcPsiResidual.cc \\\n CT_CalcErrResidual.cc \\\n CT_CompareToExact.cc \\\n CT_UpdateBoundaries.cc \\\n CT_CopyResidual.cc \\\n CT_PopulatePointerStruct.cc \\\n CT_Utils.cc \n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusBase_Boundary.json b/CactusBase_Boundary.json index a977702825d12efdbff7ee9d578aeae899e051a1..c08b0ddb43989f2a66a219749462420f2a36258a 100644 --- a/CactusBase_Boundary.json +++ b/CactusBase_Boundary.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusbase.git", "configuration": "# Configuration definition for thorn Boundary\n# $Header$\n\n# This will disappear once function aliasing has requires\n\nPROVIDES Boundary\n{\n SCRIPT\n LANG\n}\n\n", "interface": "# Interface definition for thorn Boundary\n# $Header$\n\nimplements: boundary\n\nINCLUDES HEADER: Boundary.h in Boundary.h\n\n\n\n# Implementation of new boundary spec:\n\nCCTK_INT FUNCTION Boundary_RegisterPhysicalBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN CCTK_FPOINTER function_pointer(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN num_vars, \\\n CCTK_INT ARRAY IN var_indices, \\\n CCTK_INT ARRAY IN faces, \\\n CCTK_INT ARRAY IN boundary_widths, \\\n CCTK_INT ARRAY IN table_handles),\\\n CCTK_STRING IN bc_name)\nPROVIDES FUNCTION Boundary_RegisterPhysicalBC WITH \\\n Bdry_Boundary_RegisterPhysicalBC LANGUAGE C\nUSES FUNCTION Boundary_RegisterPhysicalBC\n\nCCTK_POINTER_TO_CONST FUNCTION Boundary_QueryRegisteredPhysicalBC( \\\n CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_STRING IN bc_name)\nPROVIDES FUNCTION Boundary_QueryRegisteredPhysicalBC WITH \\\n Bdry_Boundary_QueryRegisteredPhysicalBC LANGUAGE C\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nCCTK_INT FUNCTION Boundary_SelectVarForBCI(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_INT IN var_index, CCTK_STRING IN bc_name)\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nCCTK_INT FUNCTION Boundary_SelectGroupForBCI(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_INT IN group_index, CCTK_STRING IN bc_name)\nPROVIDES FUNCTION Boundary_SelectVarForBC WITH Bdry_Boundary_SelectVarForBC \\\n LANGUAGE C\nPROVIDES FUNCTION Boundary_SelectVarForBCI WITH \\\n Bdry_Boundary_SelectVarForBCI LANGUAGE C\nPROVIDES FUNCTION Boundary_SelectGroupForBC WITH \\\n Bdry_Boundary_SelectGroupForBC LANGUAGE C\nPROVIDES FUNCTION Boundary_SelectGroupForBCI WITH \\\n Bdry_Boundary_SelectGroupForBCI LANGUAGE C\n\nCCTK_INT FUNCTION Boundary_SelectedGVs(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN array_size, CCTK_INT ARRAY OUT var_indicies, \\\n CCTK_INT ARRAY OUT faces, CCTK_INT ARRAY OUT boundary_widths, \\\n CCTK_INT ARRAY OUT table_handles, CCTK_STRING IN bc_name)\nPROVIDES FUNCTION Boundary_SelectedGVs WITH Bdry_Boundary_SelectedGVs \\\n LANGUAGE C\n\nCCTK_INT FUNCTION\n Driver_FilterOutVarForBCI\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT IN var_index)\nUSES FUNCTION Driver_FilterOutVarForBCI\n\nCCTK_INT FUNCTION Driver_NotifyDataModified\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT ARRAY IN variables,\n CCTK_INT ARRAY IN tls,\n CCTK_INT IN nvariables,\n CCTK_INT ARRAY IN where)\nUSES FUNCTION Driver_NotifyDataModified\n\nCCTK_INT FUNCTION \\\n SymmetryTableHandleForGrid (CCTK_POINTER_TO_CONST IN cctkGH)\nREQUIRES FUNCTION SymmetryTableHandleForGrid\n\n", - "params": "", + "param": "# Parameter definitions for thorn Boundary\n# $Header$\n\nshares: cactus\n\nUSES KEYWORD presync_mode\n\nrestricted:\n\nINT radpower \"Power of decay rate in extrapolation used in radiative boundaries\"\n{\n : :: \"A negative value switches off this feature\"\n} -1\n\nBOOLEAN register_scalar \"Register routine to handle the 'Scalar' boundary condition\"\n{\n} \"yes\"\n\nBOOLEAN register_flat \"Register routine to handle the 'Flat' boundary condition\"\n{\n} \"yes\"\n\nBOOLEAN register_radiation \"Register routine to handle the 'Radiation' boundary condition\"\n{\n} \"yes\"\n\nBOOLEAN register_copy \"Register routine to handle the 'Copy' boundary condition\"\n{\n} \"yes\"\n\nBOOLEAN register_robin \"Register routine to handle the 'Robin' boundary condition\"\n{\n} \"yes\"\n\nBOOLEAN register_static \"Register routine to handle the 'Static' boundary condition\"\n{\n} \"yes\"\n\nBOOLEAN register_none \"Register routine to handle the 'None' boundary condition\"\n{\n} \"yes\"\n", "schedule": "# Schedule definitions for thorn Boundary\n# $Header$\n\nschedule Boundary_Check at CCTK_PARAMCHECK\n{\n LANG: C\n} \"Check dimension of grid variables\"\n\nschedule Boundary_RegisterBCs at CCTK_WRAGH before Driver_BoundarySelect\n{\n LANG: C\n OPTIONS: global\n} \"Register boundary conditions that this thorn provides\"\n\n# New boundary infrastructure:\n\nschedule GROUP ApplyBCs\n{\n} \"Apply boundary conditions\"\n\nschedule GROUP BoundaryConditions in ApplyBCs BEFORE Boundary_ClearSelection\n{\n} \"Execute all boundary conditions\"\n\nschedule Boundary_ApplyPhysicalBCs in BoundaryConditions\n{\n LANG: C\n} \"Apply all requested local physical boundary conditions\"\n\nschedule Boundary_ClearSelection in ApplyBCs\n{\n LANG: C\n OPTIONS: level\n} \"Unselect all grid variables for boundary conditions\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Boundary\n# $Header$\n\n# Source files in this directory\nSRCS = ScalarBoundary.c\\\n StaticBoundary.c\\\n CopyBoundary.c\\\n FlatBoundary.c\\\n RadiationBoundary.c\\\n RobinBoundary.c\\\n NoneBoundary.c\\\n Boundary.c\\\n Register.c\\\n Check.c\n", diff --git a/CactusBase_CartGrid3D.json b/CactusBase_CartGrid3D.json index 86df7752db8e143635653757f54df04753eee937..85db778683aebe7947a38e190c138249df8687a9 100644 --- a/CactusBase_CartGrid3D.json +++ b/CactusBase_CartGrid3D.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusbase.git", "configuration": "# Configuration definitions for thorn CartGrid2D\n# $Header$\n\n# This will disappear once no-one calls anything from this thorn\nPROVIDES CartGrid3D\n{\n SCRIPT\n LANG\n}\n\n# This will disappear once the aliasing has a requires\n\nREQUIRES CoordBase\n", "interface": "# Interface definition for thorn CartGrid3D\n# $Header$\n\nimplements: grid\ninherits: coordbase\n\nINCLUDE HEADER: Symmetry.h in Symmetry.h\nuses include header: CoordBase.h\n\n# The overall size of the domain\nCCTK_INT FUNCTION GetDomainSpecification \\\n (CCTK_INT IN size, \\\n CCTK_REAL OUT ARRAY physical_min, \\\n CCTK_REAL OUT ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL OUT ARRAY spacing)\nUSES FUNCTION GetDomainSpecification\n\nCCTK_INT FUNCTION ConvertFromPhysicalBoundary \\\n (CCTK_INT IN size, \\\n CCTK_REAL IN ARRAY physical_min, \\\n CCTK_REAL IN ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL IN ARRAY spacing)\nUSES FUNCTION ConvertFromPhysicalBoundary\n\n\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetMap \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetDomainSpecification \\\n (CCTK_INT IN map, \\\n CCTK_INT IN size, \\\n CCTK_REAL OUT ARRAY physical_min, \\\n CCTK_REAL OUT ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL OUT ARRAY spacing)\nUSES FUNCTION MultiPatch_GetDomainSpecification\n\nCCTK_INT FUNCTION \\\n MultiPatch_ConvertFromPhysicalBoundary \\\n (CCTK_INT IN map, \\\n CCTK_INT IN size, \\\n CCTK_REAL IN ARRAY physical_min, \\\n CCTK_REAL IN ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL IN ARRAY spacing)\nUSES FUNCTION MultiPatch_ConvertFromPhysicalBoundary\n\n\n\n# Register the symmetry boundaries\nCCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name)\nUSES FUNCTION SymmetryRegister\n\nCCTK_INT FUNCTION \\\n SymmetryRegisterGrid \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT IN ARRAY which_faces, \\\n CCTK_INT IN ARRAY symmetry_zone_width) \nUSES FUNCTION SymmetryRegisterGrid\n\n\n\n# Apply the symmetry boundary conditions\nCCTK_INT FUNCTION Boundary_SelectedGVs \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN array_size, \\\n CCTK_INT ARRAY OUT var_indicies, \\\n CCTK_INT ARRAY OUT faces, \\\n CCTK_INT ARRAY OUT boundary_widths, \\\n CCTK_INT ARRAY OUT table_handles, \\\n CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectedGVs\n\npublic:\n\nREAL gridspacings type=SCALAR tags='Checkpoint=\"no\"'\n{\n coarse_dx, coarse_dy, coarse_dz\n} \"3D Cartesian grid spacings\"\n\nREAL coordinates type=GF tags='Prolongation=\"None\" Checkpoint=\"no\"'\n{\n x, y, z, r\n# will become:\n# coord_x, coord_y, coord_z\n} \"3D Cartesian grid coordinates\"\n", - "params": "", + "param": "# Parameter definitions for thorn CartGrid3D\n# $Header$\n\nshares: driver\n\nUSES BOOLEAN periodic\nUSES BOOLEAN periodic_x\nUSES BOOLEAN periodic_y\nUSES BOOLEAN periodic_z\n\n\nprivate:\n\nBOOLEAN no_origin \"DEPRECATED: Don't place grid points on the coordinate origin/axes\"\n{\n : :: \"\"\n} \"yes\"\n\nBOOLEAN no_originx \"DEPRECATED: Don't place grid points on the x-coordinate origin/axes\"\n{\n : :: \"\"\n} \"yes\"\n\nBOOLEAN no_originy \"DEPRECATED: Don't place grid points on the y-coordinate origin/axes\"\n{\n : :: \"\"\n} \"yes\"\n\nBOOLEAN no_originz \"DEPRECATED: Don't place grid points on the z-coordinate origin/axes\"\n{\n : :: \"\"\n} \"yes\"\n\nBOOLEAN avoid_originx \"Don't place grid points on the x-coordinate origin/axes\"\n{\n : :: \"\"\n} \"yes\"\n\nBOOLEAN avoid_originy \"Don't place grid points on the y-coordinate origin/axes\"\n{\n : :: \"\"\n} \"yes\"\n\nBOOLEAN avoid_originz \"Don't place grid points on the z-coordinate origin/axes\"\n{\n : :: \"\"\n} \"yes\"\n\nBOOLEAN avoid_origin \"Don't place grid points on the coordinate origin/axes\"\n{\n : :: \"\"\n} \"yes\"\n\nBOOLEAN register_default_coordinate_systems \"register cartnd as the default coordinate systems\"\n{\n} \"yes\"\n\nrestricted:\n\nREAL dx \"Coarse grid spacing in x-direction\"\n{\n 0:* :: \"Positive\"\n} 0.3\nREAL dy \"Coarse grid spacing in y-direction\"\n{\n 0:* :: \"Positive\"\n} 0.3\nREAL dz \"Coarse grid spacing in z-direction\"\n{\n 0:* :: \"Positive\"\n} 0.3\nREAL dxyz \"Coarse grid spacing in x,y,z-directions\"\n{\n 0:* :: \"Positive\"\n} 0.0\n\n\nREAL xmin \"Coordinate minimum in x-direction\"\n{\n : :: \"Anything\"\n} -1.0\nREAL ymin \"Coordinate minimum in y-direction\"\n{\n : :: \"Anything\"\n} -1.0\nREAL zmin \"Coordinate minimum in z-direction\"\n{\n : :: \"Anything\"\n} -1.0\nREAL xyzmin \"Coordinate minimum in x,y,z-directions\"\n{\n : :: \"Anything\"\n} -424242\n\n\nREAL xmax \"Coordinate maximum in x-direction\"\n{\n : :: \"Anything\"\n} 1.0\nREAL ymax \"Coordinate maximum in y-direction\"\n{\n : :: \"Anything\"\n} 1.0\nREAL zmax \"Coordinate maximum in z-direction\"\n{\n : :: \"Anything\"\n} 1.0\nREAL xyzmax \"Coordinate maximum in xyz-directions\"\n{\n : :: \"Anything\"\n} -424242\n\n\nKEYWORD type \"Grid type\"\n{\n \"box\" :: \"Box grid from -0.5 to 0.5\"\n \"byrange\" :: \"Specify min and max values\"\n \"byspacing\" :: \"Specify grid spacings\"\n \"coordbase\" :: \"Get specification from CoordBase\"\n \"multipatch\" :: \"Get specification from MultiPatch\"\n} \"box\"\n\nKEYWORD domain \"Domain type\"\n{\n \"octant\" :: \"Use an octant about the origin\"\n \"quadrant\" :: \"Use a quadrant in x-y plane\"\n \"quadrant_reflect_rotate\" :: \"Use a quadrant with rotation symmetry about an axis\"\n \"bitant\" :: \"Use a bitant about the x-y plane\"\n \"bitant_rotate\" :: \"Use a bitant with rotation symmetry about an axis\"\n \"full\" :: \"Use the full domain\"\n} \"full\"\n\nKEYWORD bitant_plane \"Plane defining bitant domain\"\n{\n \"xy\" :: \"xy-plane\"\n \"xz\" :: \"xz-plane\"\n \"yz\" :: \"yz-plane\"\n} \"xy\"\n\nKEYWORD quadrant_direction \"Direction defining quadrant domain\"\n{\n \"x\" :: \"x-direction\"\n \"y\" :: \"y-direction\"\n \"z\" :: \"z-direction\"\n} \"z\"\n\nKEYWORD rotation_axis \"Axis about which the rotation symmetry is to be applied\"\n{\n \"x\" :: \"x-axis\"\n \"y\" :: \"y-axis\"\n \"z\" :: \"z-axis\"\n} \"z\"\n\n\nBOOLEAN symmetry_xmin \"Symmetry boundary condition on lower x boundary\"\n{\n : :: \"Logical\"\n} \"no\"\n\nBOOLEAN symmetry_ymin \"Symmetry boundary condition on lower y boundary\"\n{\n : :: \"Logical\"\n} \"no\"\n\nBOOLEAN symmetry_zmin \"Symmetry boundary condition on lower z boundary\"\n{\n : :: \"Logical\"\n} \"no\"\n\nBOOLEAN symmetry_xmax \"Symmetry boundary condition on upper x boundary\"\n{\n : :: \"Logical\"\n} \"no\"\n\nBOOLEAN symmetry_ymax \"Symmetry boundary condition on upper y boundary\"\n{\n : :: \"Logical\"\n} \"no\"\n\nBOOLEAN symmetry_zmax \"Symmetry boundary condition on upper z boundary\"\n{\n : :: \"Logical\"\n} \"no\"\n\nprivate:\n\nKEYWORD set_coordinate_ranges_on \"On which grids to set the coordinate ranges\"\n{\n \"all grids\" :: \"set ranges in local mode, on the coarsest level\"\n \"all maps\" :: \"set ranges in singlemap mode, on the coarsest level\"\n \"first level\" :: \"set ranges in level mode, on the first level\"\n} \"all grids\"\n", "schedule": "# Schedule definitions for thorn CartGrid3D\n# $Header$\n\nSTORAGE: coordinates gridspacings\n\nschedule SymmetryStartup at CCTK_STARTUP\n{\n LANG: C\n} \"Register GH Extension for GridSymmetry\"\n\nschedule RegisterCartGrid3DCoords at CCTK_WRAGH\n{\n LANG:C\n OPTIONS: meta\n} \"Register coordinates for the Cartesian grid\"\n\nschedule CartGrid3D_RegisterSymmetryBoundaries in SymmetryRegister\n{\n LANG:C\n OPTIONS: meta\n} \"Register symmetry boundaries\"\n\nschedule ParamCheck_CartGrid3D at CCTK_PARAMCHECK\n{\n LANG:C\n} \"Check coordinates for CartGrid3D\"\n\nif (CCTK_EQUALS (set_coordinate_ranges_on, \"all grids\"))\n{\n schedule CartGrid3D_SetRanges at CCTK_BASEGRID as SpatialSpacings before SpatialCoordinates\n {\n LANG:C\n WRITES: GRID::gridspacings(everywhere) \n } \"Set up ranges for spatial 3D Cartesian coordinates (on all grids)\"\n}\nelse if (CCTK_EQUALS (set_coordinate_ranges_on, \"all maps\"))\n{\n schedule CartGrid3D_SetRanges at CCTK_BASEGRID as SpatialSpacings before SpatialCoordinates\n {\n LANG:C\n WRITES: GRID::gridspacings(everywhere)\n OPTIONS: singlemap\n } \"Set up ranges for spatial 3D Cartesian coordinates (on all maps)\"\n}\nelse if (CCTK_EQUALS (set_coordinate_ranges_on, \"first level\"))\n{\n schedule CartGrid3D_SetRanges at CCTK_BASEGRID as SpatialSpacings before SpatialCoordinates\n {\n LANG:C\n READS: GRID::gridspacings(everywhere)\n OPTIONS: level\n } \"Set up ranges for spatial 3D Cartesian coordinates (on first level)\"\n}\n\nschedule CartGrid3D_SetCoordinates as SpatialCoordinates at CCTK_BASEGRID\n{\n LANG:C\n WRITES: GRID::coordinates(everywhere)\n} \"Set up spatial 3D Cartesian coordinates on the GH\"\n\nschedule CartGrid3D_SetCoordinates as SpatialCoordinates at CCTK_POSTREGRIDINITIAL\n{\n LANG: C\n WRITES: GRID::coordinates(everywhere)\n} \"Set Coordinates after regridding\"\n\nschedule CartGrid3D_SetCoordinates as SpatialCoordinates at CCTK_POSTREGRID\n{\n LANG: C\n WRITES: GRID::coordinates(Everywhere)\n} \"Set Coordinates after regridding\"\n\nschedule CartGrid3D_ApplyBC in BoundaryConditions\n{\n LANG: C\n} \"Apply symmetry boundary conditions\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn CartGrid3D\n# $Header$\n\n# Source files in this directory\nSRCS = Startup.c ParamCheck.c DecodeSymParameters.c CartGrid3D.c \\\n GetSymmetry.c SetSymmetry.c Symmetry.c RegisterSymmetries.c\n\n", diff --git a/CactusBase_CoordBase.json b/CactusBase_CoordBase.json index 52cd88cfaed4b5b3fe8ef7c2266bd577f428e812..af6ef646b8fd188cc0ccac8d38be783e2abd55bc 100644 --- a/CactusBase_CoordBase.json +++ b/CactusBase_CoordBase.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusbase.git", "configuration": "# Configuration definitions for thorn CoordBase\n# $Header$\n\n# This will disappear once we have a requires for function aliasing\n\nPROVIDES CoordBase\n{\n SCRIPT\n LANG\n}\n", "interface": "# Interface definition for thorn CoordBase\n# $Header$\n\nimplements: CoordBase\n\n# Old header file - should use aliased functions\n\ninclude header: CoordBase.h in CoordBase.h\n\n\n\n# Exported functions\n\nCCTK_INT FUNCTION Coord_SystemRegister \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN dim, \\\n CCTK_STRING IN systemname)\nPROVIDES FUNCTION Coord_SystemRegister \\\n WITH CoordBase_SystemRegister \\\n LANGUAGE C\n\nCCTK_INT FUNCTION Coord_SystemHandle \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_STRING IN systemname)\nPROVIDES FUNCTION Coord_SystemHandle \\\n WITH CoordBase_SystemHandle \\\n LANGUAGE C\n\nCCTK_INT FUNCTION Coord_CoordRegister \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN systemhandle, \\\n CCTK_INT IN direction, \\\n CCTK_STRING IN coordname)\nPROVIDES FUNCTION Coord_CoordRegister \\\n WITH CoordBase_CoordRegister \\\n LANGUAGE C\n\nCCTK_INT FUNCTION Coord_CoordHandle \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_STRING IN coordname, \\\n CCTK_STRING IN systemname)\nPROVIDES FUNCTION Coord_CoordHandle \\\n WITH CoordBase_CoordHandle \\\n LANGUAGE C\n\nCCTK_INT FUNCTION Coord_GroupSystem \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_STRING IN groupname)\nPROVIDES FUNCTION Coord_GroupSystem \\\n WITH CoordBase_GroupSystem \\\n LANGUAGE C\n\nCCTK_INT FUNCTION Coord_SetDefaultSystem \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_STRING IN systemname)\nPROVIDES FUNCTION Coord_SetDefaultSystem \\\n WITH CoordBase_SetDefaultSystem \\\n LANGUAGE C\n\nCCTK_INT FUNCTION Coord_GetDefaultSystem \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN systemdim)\nPROVIDES FUNCTION Coord_GetDefaultSystem \\\n WITH CoordBase_GetDefaultSystem \\\n LANGUAGE C\n\n\n\n# The location of the boundary points\n\nCCTK_INT FUNCTION GetBoundarySpecification \\\n (CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nPROVIDES FUNCTION GetBoundarySpecification \\\n WITH CoordBase_GetBoundarySpecification \\\n LANGUAGE C\n\n\n\n# The overall extent of the domain\n\nCCTK_INT FUNCTION GetDomainSpecification \\\n (CCTK_INT IN size, \\\n CCTK_REAL OUT ARRAY physical_min, \\\n CCTK_REAL OUT ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL OUT ARRAY spacing)\nPROVIDES FUNCTION GetDomainSpecification \\\n WITH CoordBase_GetDomainSpecification \\\n LANGUAGE C\n\n\n\n# Convert between boundaries types\n\nCCTK_INT FUNCTION ConvertFromPhysicalBoundary \\\n (CCTK_INT IN size, \\\n CCTK_REAL IN ARRAY physical_min, \\\n CCTK_REAL IN ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL IN ARRAY spacing)\nPROVIDES FUNCTION ConvertFromPhysicalBoundary \\\n WITH CoordBase_ConvertFromPhysicalBoundary \\\n LANGUAGE C\n\nCCTK_INT FUNCTION ConvertFromInteriorBoundary \\\n (CCTK_INT IN size, \\\n CCTK_REAL OUT ARRAY physical_min, \\\n CCTK_REAL OUT ARRAY physical_max, \\\n CCTK_REAL IN ARRAY interior_min, \\\n CCTK_REAL IN ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL IN ARRAY spacing)\nPROVIDES FUNCTION ConvertFromInteriorBoundary \\\n WITH CoordBase_ConvertFromInteriorBoundary \\\n LANGUAGE C\n\nCCTK_INT FUNCTION ConvertFromExteriorBoundary \\\n (CCTK_INT IN size, \\\n CCTK_REAL OUT ARRAY physical_min, \\\n CCTK_REAL OUT ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL IN ARRAY exterior_min, \\\n CCTK_REAL IN ARRAY exterior_max, \\\n CCTK_REAL IN ARRAY spacing)\nPROVIDES FUNCTION ConvertFromExteriorBoundary \\\n WITH CoordBase_ConvertFromExteriorBoundary \\\n LANGUAGE C\n\n\n\n# Convenient way to determine boundary sizes\nCCTK_INT FUNCTION GetBoundarySizesAndTypes \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY bndsize, \\\n CCTK_INT OUT ARRAY is_ghostbnd, \\\n CCTK_INT OUT ARRAY is_symbnd, \\\n CCTK_INT OUT ARRAY is_physbnd)\nPROVIDES FUNCTION GetBoundarySizesAndTypes \\\n WITH CoordBase_GetBoundarySizesAndTypes \\\n LANGUAGE C\n\n\n\nCCTK_INT FUNCTION SymmetryTableHandleForGrid \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION SymmetryTableHandleForGrid\n\n# Current map\nCCTK_INT FUNCTION MultiPatch_GetMap \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n\n# Multi-patch bbox, specifying outer boundaries\nCCTK_INT FUNCTION MultiPatch_GetBbox \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY bbox)\nUSES FUNCTION MultiPatch_GetBbox\n\n# The location of the boundary points\nCCTK_INT FUNCTION MultiPatch_GetBoundarySpecification \\\n (CCTK_INT IN map, \\\n CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION MultiPatch_GetBoundarySpecification\n", - "params": "", + "param": "# Parameter definitions for thorn CoordBase\n# $Header$\n\n\n\n###############################################################################\n### Domain specification ###\n###############################################################################\n\nKEYWORD domainsize \"Domain size specification\"\n{\n \"minmax\" :: \"lower and upper boundary locations\"\n \"extent\" :: \"coordinate extent\"\n \"spacing\" :: \"grid spacing and number of grid cells\"\n} \"minmax\"\n\nKEYWORD spacing \"Grid spacing specification\"\n{\n \"gridspacing\" :: \"grid spacing\"\n \"numcells\" :: \"number of grid cells\"\n} \"gridspacing\"\n\n\n\n# Domain description in the x direction.\n# The other domain descriptions are equivalent.\n\nBOOLEAN zero_origin_x \"Is the lower boundary located at x=0?\"\n{\n} \"no\"\n\nCCTK_REAL xmin \"Location of lower x boundary\"\n{\n (*:*) :: \"\"\n} 0.0\n\nCCTK_REAL xmax \"Location of upper x boundary\"\n{\n (*:*) :: \"\"\n} 1.0\n\nCCTK_REAL xextent \"Domain extent in x direction\"\n{\n (0:*) :: \"\"\n} 1.0\n\nCCTK_REAL dx \"Grid spacing in x direction\"\n{\n (0:*) :: \"\"\n} 1.0\n\nCCTK_INT ncells_x \"Number of grid cells in x direction\"\n{\n 0:* :: \"\"\n} 1\n\n# Domain description in the y direction.\n# The other domain descriptions are equivalent.\n\nBOOLEAN zero_origin_y \"Is the lower boundary located at y=0?\"\n{\n} \"no\"\n\nCCTK_REAL ymin \"Location of lower y boundary\"\n{\n (*:*) :: \"\"\n} 0.0\n\nCCTK_REAL ymax \"Location of upper y boundary\"\n{\n (*:*) :: \"\"\n} 1.0\n\nCCTK_REAL yextent \"Domain extent in y direction\"\n{\n (0:*) :: \"\"\n} 1.0\n\nCCTK_REAL dy \"Grid spacing in y direction\"\n{\n (0:*) :: \"\"\n} 1.0\n\nCCTK_INT ncells_y \"Number of grid cells in y direction\"\n{\n 0:* :: \"\"\n} 1\n\n# Domain description in the z direction.\n# The other domain descriptions are equivalent.\n\nBOOLEAN zero_origin_z \"Is the lower boundary located at z=0?\"\n{\n} \"no\"\n\nCCTK_REAL zmin \"Location of lower z boundary\"\n{\n (*:*) :: \"\"\n} 0.0\n\nCCTK_REAL zmax \"Location of upper z boundary\"\n{\n (*:*) :: \"\"\n} 1.0\n\nCCTK_REAL zextent \"Domain extent in z direction\"\n{\n (0:*) :: \"\"\n} 1.0\n\nCCTK_REAL dz \"Grid spacing in z direction\"\n{\n (0:*) :: \"\"\n} 1.0\n\nCCTK_INT ncells_z \"Number of grid cells in z direction\"\n{\n 0:* :: \"\"\n} 1\n\n\n\n###############################################################################\n### Boundary specification ###\n###############################################################################\n\n# Boundary description for the lower x face.\n# The other boundary descriptions are equivalent.\n\nCCTK_INT boundary_size_x_lower \"Boundary zones at the lower x face\"\n{\n 0:* :: \"\"\n} 1\n\nBOOLEAN boundary_internal_x_lower \"Do the boundary points extend inwards at the lower x face?\"\n{\n} \"no\"\n\nBOOLEAN boundary_staggered_x_lower \"Is the boundary is staggered about the grid points at the lower x face?\"\n{\n} \"no\"\n\nCCTK_INT boundary_shiftout_x_lower \"Offset between the boundary location and the first boundary point at the lower x face\"\n{\n *:* :: \"when not staggered: use 0 for an open, 1 for a closed manifold\"\n} 0\n\n# Boundary description for the upper x face.\n# The other boundary descriptions are equivalent.\n\nCCTK_INT boundary_size_x_upper \"Boundary zones at the upper x face\"\n{\n 0:* :: \"\"\n} 1\n\nBOOLEAN boundary_internal_x_upper \"Do the boundary points extend inwards at the upper x face?\"\n{\n} \"no\"\n\nBOOLEAN boundary_staggered_x_upper \"Is the boundary is staggered about the grid points at the upper x face?\"\n{\n} \"no\"\n\nCCTK_INT boundary_shiftout_x_upper \"Offset between the boundary location and the first boundary point at the upper x face\"\n{\n *:* :: \"when not staggered: use 0 for an open, 1 for a closed manifold\"\n} 0\n\n# Boundary description for the lower y face.\n# The other boundary descriptions are equivalent.\n\nCCTK_INT boundary_size_y_lower \"Boundary zones at the lower y face\"\n{\n 0:* :: \"\"\n} 1\n\nBOOLEAN boundary_internal_y_lower \"Do the boundary points extend inwards at the lower y face?\"\n{\n} \"no\"\n\nBOOLEAN boundary_staggered_y_lower \"Is the boundary is staggered about the grid points at the lower y face?\"\n{\n} \"no\"\n\nCCTK_INT boundary_shiftout_y_lower \"Offset between the boundary location and the first boundary point at the lower y face\"\n{\n *:* :: \"when not staggered: use 0 for an open, 1 for a closed manifold\"\n} 0\n\n# Boundary description for the upper y face.\n# The other boundary descriptions are equivalent.\n\nCCTK_INT boundary_size_y_upper \"Boundary zones at the upper y face\"\n{\n 0:* :: \"\"\n} 1\n\nBOOLEAN boundary_internal_y_upper \"Do the boundary points extend inwards at the upper y face?\"\n{\n} \"no\"\n\nBOOLEAN boundary_staggered_y_upper \"Is the boundary is staggered about the grid points at the upper y face?\"\n{\n} \"no\"\n\nCCTK_INT boundary_shiftout_y_upper \"Offset between the boundary location and the first boundary point at the upper y face\"\n{\n *:* :: \"when not staggered: use 0 for an open, 1 for a closed manifold\"\n} 0\n\n# Boundary description for the lower z face.\n# The other boundary descriptions are equivalent.\n\nCCTK_INT boundary_size_z_lower \"Boundary zones at the lower z face\"\n{\n 0:* :: \"\"\n} 1\n\nBOOLEAN boundary_internal_z_lower \"Do the boundary points extend inwards at the lower z face?\"\n{\n} \"no\"\n\nBOOLEAN boundary_staggered_z_lower \"Is the boundary is staggered about the grid points at the lower z face?\"\n{\n} \"no\"\n\nCCTK_INT boundary_shiftout_z_lower \"Offset between the boundary location and the first boundary point at the lower z face\"\n{\n *:* :: \"when not staggered: use 0 for an open, 1 for a closed manifold\"\n} 0\n\n# Boundary description for the upper z face.\n# The other boundary descriptions are equivalent.\n\nCCTK_INT boundary_size_z_upper \"Boundary zones at the upper z face\"\n{\n 0:* :: \"\"\n} 1\n\nBOOLEAN boundary_internal_z_upper \"Do the boundary points extend inwards at the upper z face?\"\n{\n} \"no\"\n\nBOOLEAN boundary_staggered_z_upper \"Is the boundary is staggered about the grid points at the upper z face?\"\n{\n} \"no\"\n\nCCTK_INT boundary_shiftout_z_upper \"Offset between the boundary location and the first boundary point at the upper z face\"\n{\n *:* :: \"when not staggered: use 0 for an open, 1 for a closed manifold\"\n} 0\n", "schedule": "# Schedule definitions for thorn CoordBase\n# $Header$\n\nschedule CoordBase_Startup at CCTK_STARTUP\n{\n LANG: C\n} \"Register a GH extension to store the coordinate system handles\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn CoordBase\n# $Header$\n\n# Source files in this directory\nSRCS = Domain.c CoordBase.c GHExtension.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusBase_Fortran.json b/CactusBase_Fortran.json index 791269c57b3b702bccecf8ac2c6f2e64d4856c07..3355b0aee8a2dadd763a17139a0419391918e904 100644 --- a/CactusBase_Fortran.json +++ b/CactusBase_Fortran.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusbase.git", "configuration": "# Configuration definition for thorn Fortran\n\nPROVIDES Fortran\n{\n SCRIPT fortran.sh\n LANG sh\n}\n\nREQUIRES Fortran\n", "interface": "# Interface definition for thorn Fortran\n\nIMPLEMENTS: Fortran\n\nINCLUDES SOURCE: fortran.h IN fortran.h\n", - "params": "", + "param": "# Parameter definitions for thorn Fortran\n\nCCTK_INT one \"This parameter has the value one\"\n{\n 1:1 :: \"1\"\n} 1\n", "schedule": "# Schedule definitions for thorn Fortran\n\nSCHEDULE CheckFortranParameters AT paramcheck\n{\n LANG: Fortran\n} \"Test whether Fortran parameters work correctly\"\n", "src": { "cctk_Banner.F90": "#include \"cctk.h\"\n\nmodule cctk_Banner\n implicit none\n\n interface\n \n subroutine CCTK_RegisterBanner (ierr, banner)\n implicit none\n integer ierr\n character(*) banner\n end subroutine CCTK_RegisterBanner\n\n end interface\n\nend module cctk_Banner\n", diff --git a/CactusBase_IOASCII.json b/CactusBase_IOASCII.json index d2729e1c609533d3094e15b779a017119681b713..ef1c06214311030e2642cf41fd5877a42782eaca 100644 --- a/CactusBase_IOASCII.json +++ b/CactusBase_IOASCII.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusbase.git", "configuration": "# Configuration definition for thorn IOASCII\n# $Header$\n\nREQUIRES IOUtil\n\nREQUIRES THORNS: IOUtil\n", "interface": "# Interface definition for thorn IOASCII\n# $Header$\n\nimplements: IOASCII\n### FIXME: need private inheritance in order to be implementation-compatible\n### with CarpetIOASCII\n#inherits: IO\n\nCCTK_INT FUNCTION \\\n Hyperslab_GetList (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN mapping_handle, \\\n CCTK_INT IN num_arrays, \\\n CCTK_INT ARRAY IN procs, \\\n CCTK_INT ARRAY IN vindices, \\\n CCTK_INT ARRAY IN timelevels, \\\n CCTK_INT ARRAY IN hdatatypes, \\\n CCTK_POINTER ARRAY IN hdata, \\\n CCTK_INT ARRAY OUT retvals)\n\nCCTK_INT FUNCTION \\\n Hyperslab_GlobalMappingByIndex (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN vindex, \\\n CCTK_INT IN hdim, \\\n CCTK_INT ARRAY IN direction, \\\n CCTK_INT ARRAY IN origin, \\\n CCTK_INT ARRAY IN extent, \\\n CCTK_INT ARRAY IN downsample, \\\n CCTK_INT IN table_handle, \\\n CCTK_INT CCTK_FPOINTER IN \\\n conversion_fn (CCTK_INT IN nelems, \\\n CCTK_INT IN src_stride, \\\n CCTK_INT IN dst_stride, \\\n CCTK_INT IN src_type, \\\n CCTK_INT IN dst_type, \\\n CCTK_POINTER_TO_CONST IN from, \\\n CCTK_POINTER IN to), \\\n CCTK_INT ARRAY OUT hsize)\n\nCCTK_INT FUNCTION Hyperslab_FreeMapping (CCTK_INT IN mapping_handle)\n\n\nREQUIRES FUNCTION Hyperslab_GetList\nREQUIRES FUNCTION Hyperslab_GlobalMappingByIndex\nREQUIRES FUNCTION Hyperslab_FreeMapping\n\nCCTK_INT FUNCTION IO_TruncateOutputFiles \\\n (CCTK_POINTER_TO_CONST IN GH)\n\nREQUIRES FUNCTION IO_TruncateOutputFiles\n\nCCTK_INT FUNCTION Coord_GroupSystem \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_STRING IN groupname)\n\nUSES FUNCTION Coord_GroupSystem\n", - "params": "", + "param": "# Parameter definitions for thorn IOASCII\n# $Header$\n\n\n#############################################################################\n### declare IOASCII parameters\n#############################################################################\nprivate:\n\n##########################\n# Directories to output to\n##########################\nSTRING out1D_dir \"Output directory for 1D IOASCII files, overrides IO::out_dir\" STEERABLE = RECOVER\n{\n \".+\" :: \"A valid directory name\"\n \"^$\" :: \"An empty string to choose the default from IO::out_dir\"\n} \"\"\nSTRING out2D_dir \"Output directory for 2D IOASCII files, overrides out_dir\" STEERABLE = RECOVER\n{\n \".+\" :: \"A valid directory name\"\n \"^$\" :: \"An empty string to choose the default from IO::out_dir\"\n} \"\"\nSTRING out3D_dir \"Output directory for 3D IOASCII files, overrides IO::out_dir\" STEERABLE = RECOVER\n{\n \".+\" :: \"A valid directory name\"\n \"^$\" :: \"An empty string to choose the default from IO::out_dir\"\n} \"\"\n\n\n##########################\n# What variables to output\n##########################\nSTRING out1D_vars \"Variables to output in 1D IOASCII file format\" STEERABLE = ALWAYS\n{\n \".+\" :: \"Space-separated list of fully qualified variable/group names\"\n \"^$\" :: \"An empty string to output nothing\"\n} \"\"\nSTRING out2D_vars \"Variables to output in 2D IOASCII file format\" STEERABLE = ALWAYS\n{\n \".+\" :: \"Space-separated list of fully qualified variable/group names\"\n \"^$\" :: \"An empty string to output nothing\"\n} \"\"\nSTRING out3D_vars \"Variables to output in 3D IOASCII file format\" STEERABLE = ALWAYS\n{\n \".+\" :: \"Space-separated list of fully qualified variable/group names\"\n \"^$\" :: \"An empty string to output nothing\"\n} \"\"\n\n\n########################\n# How often to do output\n########################\nINT out1D_every \"How often to do 1D IOASCII output, overrides IO::out_every\" STEERABLE = ALWAYS\n{\n 1:* :: \"Every so many iterations\"\n 0: :: \"Disable 1D IOASCII output\"\n -1: :: \"Default to IO::out_every\"\n} -1\nINT out2D_every \"How often to do 2D IOASCII output, overrides IO::out_every\" STEERABLE = ALWAYS\n{\n 1:* :: \"Every so many iterations\"\n 0: :: \"Disable 2D IOASCII output\"\n -1: :: \"Default to IO::out_every\"\n} -1\nINT out3D_every \"How often to do 3D IOASCII output, overrides IO::out_every\" STEERABLE = ALWAYS\n{\n 1:* :: \"Every so many iterations\"\n 0: :: \"Disable 3D IOASCII output\"\n -1: :: \"Default to IO::out_every\"\n} -1\n\n\n#################\n# output style\n#################\nKEYWORD out1D_style \"Which style for 1D lines IOASCII output\"\n{\n \"xgraph\" :: \"f over x plots suitable for xgraph\"\n \"gnuplot f(x)\" :: \"f over x plots suitable for gnuplot\"\n \"gnuplot f(t,x)\" :: \"f over t,x plots suitable for gnuplot\"\n} \"xgraph\"\n\nKEYWORD out2D_style \"Which style for 2D slices IOASCII output\"\n{\n \"gnuplot f(x,y)\" :: \"f over x,y plots suitable for gnuplot\"\n \"gnuplot f(t,x,y)\" :: \"f over t,x,y plots suitable for gnuplot\"\n} \"gnuplot f(x,y)\"\n\nKEYWORD out3D_style \"Which style for 3D volume IOASCII output\"\n{\n \"gnuplot f(x,y,z)\" :: \"f over x,y,z plots suitable for gnuplot\"\n \"gnuplot f(t,x,y,z)\" :: \"f over t,x,y,z plots suitable for gnuplot\"\n} \"gnuplot f(x,y,z)\"\n\nSTRING out_format \"Which format for IOASCII floating-point number output\" STEERABLE = ALWAYS\n{\n \"^(\\.[1]?[0-9])?[EGefg]$\" :: \"output with given precision in exponential / floating point notation\"\n} \".13f\"\n\n\n############################\n# Specific to 1D output\n# Choosing what output to do\n############################\nBOOLEAN out1D_x \"Do 1D IOASCII output in the x-direction\" STEERABLE = ALWAYS\n{\n} \"yes\"\nBOOLEAN out1D_y \"Do 1D IOASCII output in the y-direction\" STEERABLE = ALWAYS\n{\n} \"yes\"\nBOOLEAN out1D_z \"Do 1D IOASCII output in the z-direction\" STEERABLE = ALWAYS\n{\n} \"yes\"\nBOOLEAN out1D_d \"Do 1D IOASCII output in the diagonal-direction\" STEERABLE = ALWAYS\n{\n} \"yes\"\n\n################################\n# Choosing what slices to output\n################################\nREAL out1D_xline_y \"y-coord for 1D lines in x-direction\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [ymin, ymax]\"\n -424242: :: \"Default to IO::out_xline_y\"\n} -424242\nREAL out1D_xline_z \"z-coord for 1D lines in x-direction\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [zmin, zmax]\"\n -424242: :: \"Default to IO::out_xline_z\"\n} -424242\nREAL out1D_yline_x \"x-coord for 1D lines in y-direction\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [xmin, xmax]\"\n -424242: :: \"Default to IO::out_yline_x\"\n} -424242\nREAL out1D_yline_z \"z-coord for 1D lines in y-direction\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [zmin, zmax]\"\n -424242: :: \"Default to IO::out_yline_z\"\n} -424242\nREAL out1D_zline_x \"x-coord for 1D lines in z-direction\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [xmin, xmax]\"\n -424242: :: \"Default to IO::out_zline_x\"\n} -424242\nREAL out1D_zline_y \"y-coord for 1D lines in z-direction\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [ymin, ymax]\"\n -424242: :: \"Default to IO::out_zline_y\"\n} -424242\n\nINT out1D_xline_yi \"y-index (from 0) for 1D lines in x-direction\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, ny)\"\n -1: :: \"Choose the default from IO::out_xline_yi\"\n} -1\nINT out1D_xline_zi \"z-index (from 0) for 1D lines in x-direction\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, nz)\"\n -1: :: \"Choose the default from IO::out_xline_zi\"\n} -1\n\nINT out1D_yline_xi \"x-index (from 0) for 1D lines in y-direction\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, nx)\"\n -1: :: \"Choose the default from IO::out_yline_xi\"\n} -1\nINT out1D_yline_zi \"z-index (from 0) for 1D lines in y-direction\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, nz)\"\n -1: :: \"Choose the default from IO::out_yline_zi\"\n} -1\n\nINT out1D_zline_xi \"x-index (from 0) for 1D lines in z-direction\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, nx)\"\n -1: :: \"Choose the default from IO::out_zline_xi\"\n} -1\nINT out1D_zline_yi \"y-index (from 0) for 1D lines in z-direction\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, ny)\"\n -1: :: \"Choose the default from IO::out_zline_yi\"\n} -1\n\n\n################################\n# Specific to 2D output\n# Choosing what planes to output\n################################\nREAL out2D_yzplane_x \"x-coord for 2D planes in yz\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [xmin, xmax]\"\n -424242: :: \"Default to IO::out_yzplane_x\"\n} -424242\nREAL out2D_xzplane_y \"y-coord for 2D planes in xz\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [ymin, ymax]\"\n -424242: :: \"Default to IO::out_xzplane_y\"\n} -424242\nREAL out2D_xyplane_z \"z-coord for 2D planes in xy\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [zmin, zmax]\"\n -424242: :: \"Default to IO::out_xyplane_z\"\n} -424242\n\nINT out2D_yzplane_xi \"x-index (from 0) for 2D planes in yz\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, nx)\"\n -1: :: \"Choose the default from IO::out_yzplane_xi\"\n} -1\nINT out2D_xzplane_yi \"y-index (from 0) for 2D planes in xz\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, ny)\"\n -1: :: \"Choose the default from IO::out_xzplane_yi\"\n} -1\nINT out2D_xyplane_zi \"z-index (from 0) for 2D planes in xy\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, nz)\"\n -1: :: \"Choose the default from IO::out_xyplane_zi\"\n} -1\n\n\n#############################################################################\n### import IOUtil parameters\n#############################################################################\nshares: IO\n\nUSES STRING out_dir\nUSES INT out_every\nUSES REAL out_xline_y\nUSES REAL out_xline_z\nUSES REAL out_yline_x\nUSES REAL out_yline_z\nUSES REAL out_zline_x\nUSES REAL out_zline_y\nUSES INT out_xline_yi\nUSES INT out_xline_zi\nUSES INT out_yline_xi\nUSES INT out_yline_zi\nUSES INT out_zline_xi\nUSES INT out_zline_yi\nUSES REAL out_yzplane_x\nUSES REAL out_xzplane_y\nUSES REAL out_xyplane_z\nUSES INT out_yzplane_xi\nUSES INT out_xzplane_yi\nUSES INT out_xyplane_zi\nUSES INT out_downsample_x\nUSES INT out_downsample_y\nUSES INT out_downsample_z\nUSES KEYWORD verbose\nUSES KEYWORD out_fileinfo\nUSES BOOLEAN new_filename_scheme\nUSES BOOLEAN strict_io_parameter_check\n", "schedule": "# Schedule definitions for thorn IOASCII\n# $Header$\n\n########################################################################\n### register IOASCII routines\n########################################################################\nschedule IOASCII_Startup at STARTUP after IOUtil_Startup\n{\n LANG:C\n} \"Startup routine\"\n\nschedule IOASCII_Choose1D at BASEGRID after SpatialCoordinates\n{\n LANG:C\n} \"Choose 1D output lines\"\n\nschedule IOASCII_Choose2D at BASEGRID after SpatialCoordinates\n{\n LANG:C\n} \"Choose 2D output planes\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn IOASCII\n# $Header$\n\n# Source files in this directory\nSRCS = Startup.c ChooseOutput.c Output1D.c Write1D.c Output2D.c Write2D.c \\\n Output3D.c Write3D.c\n", diff --git a/CactusBase_IOBasic.json b/CactusBase_IOBasic.json index cf6b831e147bd4aceaca5b482a7b1d91970d94ae..46ac0d0600bf18f05378fcd32fabcc4961dc610b 100644 --- a/CactusBase_IOBasic.json +++ b/CactusBase_IOBasic.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusbase.git", "configuration": "# Configuration definition for thorn IOBasic\n# $Header$\n\nREQUIRES IOUtil\n\nREQUIRES THORNS: IOUtil\n", "interface": "# Interface definition for thorn IOBasic\n# $Header$\n\nimplements: IOBasic\ninherits: IO\n\nreal next_info_output_time type=scalar\nreal next_scalar_output_time type=scalar\n\n\nCCTK_INT FUNCTION IO_TruncateOutputFiles \\\n (CCTK_POINTER_TO_CONST IN GH)\n\nREQUIRES FUNCTION IO_TruncateOutputFiles\n", - "params": "", + "param": "# Parameter definitions for thorn IOBasic\n# $Header$\n\n\n#############################################################################\n### declare IOBasic parameters\n#############################################################################\nprivate:\n\n##########################\n# Directory to output to\n##########################\nSTRING out_dir \"Output directory for IOBasic's scalar files, overrides IO::out_dir\" STEERABLE = RECOVER\n{\n \".+\" :: \"A valid directory name\"\n \"^$\" :: \"An empty string to choose the default from IO::out_dir\"\n} \"\"\n\n##########################\n# What variables to output\n##########################\nSTRING outInfo_vars \"Variables to output as Info to screen\" STEERABLE = ALWAYS\n{\n \".+\" :: \"Space-separated list of fully qualified variable/group names\"\n \"^$\" :: \"An empty string to output nothing\"\n} \"\"\nSTRING outScalar_vars \"Variables to output into files\" STEERABLE = ALWAYS\n{\n \".+\" :: \"Space-separated list of fully qualified variable/group names\"\n \"^$\" :: \"An empty string to output nothing\"\n} \"\"\n\n\n##########################\n# What reductions to output\n##########################\nSTRING outInfo_reductions \"List of reductions to output as Info to screen\" STEERABLE = ALWAYS\n{\n \".+\" :: \"Space-separated list of reduction operators\"\n} \"minimum maximum\"\nSTRING outScalar_reductions \"List of reductions to output into files\" STEERABLE = ALWAYS\n{\n \".+\" :: \"Space-separated list of reduction operators\"\n} \"minimum maximum norm1 norm2\"\n\n\n########################\n# How often to do output\n########################\nKEYWORD outInfo_criterion \"Criterion to select Info output intervals\"\n{\n \"never\" :: \"Never output\"\n \"iteration\" :: \"Output every so many iterations\"\n \"time\" :: \"Output every that much coordinate time\"\n} \"iteration\"\nINT outInfo_every \"How often to do Info output\" STEERABLE = ALWAYS\n{\n 1:* :: \"Every so many iterations\"\n 0: :: \"Disable Info output\"\n -1: :: \"Default to IO::out_every\"\n} -1\nREAL outInfo_dt \"How often to do Info output\" STEERABLE = ALWAYS\n{\n (0:* :: \"In intervals of that much coordinate time\"\n 0 :: \"As often as possible\"\n -1 :: \"Disable output\"\n -2 :: \"Default to IO::out_dt\"\n} -2\n\nKEYWORD outScalar_criterion \"Criterion to select Scalar output intervals\"\n{\n \"never\" :: \"Never output\"\n \"iteration\" :: \"Output every so many iterations\"\n \"time\" :: \"Output every that much coordinate time\"\n} \"iteration\"\nINT outScalar_every \"How often to do Scalar output\" STEERABLE = ALWAYS\n{\n 1:* :: \"Every so many iterations\"\n 0: :: \"Disable Scalar output\"\n -1: :: \"Default to IO::out_every\"\n} -1\nREAL outScalar_dt \"How often to do Scalar output\" STEERABLE = ALWAYS\n{\n (0:* :: \"In intervals of that much coordinate time\"\n 0 :: \"As often as possible\"\n -1 :: \"Disable output\"\n -2 :: \"Default to IO::out_dt\"\n} -2\n\n\n#####################\n# Scalar output style\n#####################\nKEYWORD outScalar_style \"Which style for Scalar output\" STEERABLE = RECOVER\n{\n \"gnuplot\" :: \"1D output readable by gnuplot\"\n \"xgraph\" :: \"1D output readable by xgraph\"\n} \"xgraph\"\n\nSTRING out_format \"Which format for Scalar floating-point number output\" STEERABLE = ALWAYS\n{\n \"^(\\.[1]?[0-9])?[EGefg]$\" :: \"output with given precision in exponential / floating point notation\"\n} \".13f\"\n\n\n#############################################################################\n### import IOUtil parameters\n#############################################################################\nshares: IO\n\nUSES STRING out_dir AS io_out_dir\nUSES KEYWORD out_criterion\nUSES INT out_every\nUSES REAL out_dt\nUSES KEYWORD verbose\nUSES KEYWORD out_fileinfo\nUSES BOOLEAN new_filename_scheme\nUSES BOOLEAN strict_io_parameter_check\n", "schedule": "# Schedule definitions for thorn IOBasic\n# $Header$\n\n########################################################################\n### register IOBasic routines\n########################################################################\nschedule IOBasic_Startup at STARTUP after IOUtil_Startup\n{\n LANG:C\n} \"Startup routine\"\n\n\n########################################################################\n### register IOBasic routines\n########################################################################\nstorage: next_info_output_time next_scalar_output_time\nschedule IOBasic_Init at INITIAL\n{\n LANG:C\n WRITES: IOBasic::next_info_output_time(everywhere)\n WRITES: IOBasic::next_scalar_output_time(everywhere)\n} \"Initialisation routine\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn IOBasic\n# $Header$\n\n# Source files in this directory\nSRCS = Startup.c \\\n OutputScalar.c \\\n OutputInfo.c \\\n WriteScalar.c \\\n WriteInfo.c \n", diff --git a/CactusBase_IOUtil.json b/CactusBase_IOUtil.json index f6403fe078c49bcce2b4f41ee2887d44661b87dc..d09da033ec03f04c462db9a98aa8fb23ed1cad84 100644 --- a/CactusBase_IOUtil.json +++ b/CactusBase_IOUtil.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusbase.git", "configuration": "# Configuration definitions for thorn IOUTIL\n# $Header$\n\n# In future we can hopefully use function aliasing instead.\n\nPROVIDES IOUTIL\n{\n SCRIPT\n LANG\n}\n", "interface": "# Interface definitions for thorn IOUtil\n# $Header$\n\nimplements: IO\n\n\n# aliased functions required from Coordinate base thorn\n\nCCTK_INT FUNCTION Coord_GetDefaultSystem \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN systemdim)\n\nUSES FUNCTION Coord_GetDefaultSystem\n\n\nCCTK_INT FUNCTION IO_TruncateOutputFiles \\\n (CCTK_POINTER_TO_CONST IN GH)\n\nPROVIDES FUNCTION IO_TruncateOutputFiles \\\n WITH IOUtil_TruncateOutputFiles \\\n LANGUAGE C\n", - "params": "", + "param": "# Parameter definitione for thorn IOUtil\n# $Header$\n\n#############################################################################\n### declare IOUtil parameters\n### These are declared protected so that they can be seen by other I/O thorns.\n#############################################################################\nrestricted:\n\n####################\n# Output directories\n####################\nSTRING out_dir \"Default output directory\" STEERABLE = RECOVER\n{\n \".+\" :: \"A valid directory name\"\n} \".\"\n\nCCTK_INT max_entries_per_subdir \"Number of processes that can access the same directory\"\n{\n 0 :: \"unlimited\"\n 2:* :: \"at most that many processes\"\n} 0\n\n########################\n# How often to do output\n########################\nKEYWORD out_criterion \"Criterion to select output intervals\"\n{\n \"never\" :: \"Never output\"\n \"iteration\" :: \"Output every so many iterations\"\n \"time\" :: \"Output every that much coordinate time\"\n} \"iteration\"\nINT out_every \"How often to do output by default\" STEERABLE = ALWAYS\n{\n 1:* :: \"Every so many iterations\"\n -1:0 :: \"Disable output\"\n} -1\nREAL out_dt \"How often to do output by default\" STEERABLE = ALWAYS\n{\n (0:* :: \"In intervals of that much coordinate time\"\n 0 :: \"As often as possible\"\n -1 :: \"Disable output\"\n -2 :: \"Disable output\"\n} -2\n\n################\n# various things\n################\nKEYWORD verbose \"Level of screen output for I/O\" STEERABLE = ALWAYS\n{\n \"none\" :: \"No output\"\n \"standard\" :: \"Initial description for each I/O method\"\n \"full\" :: \"Maximal output\"\n} \"standard\"\nBOOLEAN print_timing_info \"Print timing information on I/O operations.\" STEERABLE = RECOVER\n{\n} \"no\"\nBOOLEAN new_filename_scheme \"Use the new filename scheme for output files ?\" STEERABLE = RECOVER\n{\n} \"yes\"\nBOOLEAN require_empty_output_directory \"Require that IO::out_dir is empty at startup ?\" STEERABLE = RECOVER\n{\n} \"no\"\nBOOLEAN strict_io_parameter_check \"Stop on errors while parsing I/O parameters from parameter file ?\" STEERABLE = RECOVER\n{\n} \"yes\"\nBOOLEAN abort_on_io_errors \"Abort on I/O errors (rather than just print a warning) ?\" STEERABLE = ALWAYS\n{\n} \"no\"\nKEYWORD out_fileinfo \"Add some useful file information to output files ?\" STEERABLE = RECOVER\n{\n \"none\" :: \"no file information\"\n \"creation date\" :: \"add creation date\"\n \"parameter filename\" :: \"add parameter filename\"\n \"axis labels\" :: \"add axis labels information to output files\"\n \"all\" :: \"add all available file information\"\n} \"all\"\nSTRING out_group_separator \"String to separate group name from variable name in file name\" STEERABLE = ALWAYS\n{\n \"\" :: \"Note: The old default was'::'\"\n} \"-\"\n\n#######################\n# Specific to 3D output\n#######################\nKEYWORD out_mode \"Which mode to use for output\" STEERABLE = RECOVER\n{\n \"proc\" :: \"Every processor writes its share of data into a separate file\"\n \"np\" :: \"Data is collected and written by every N'th processor into a separate file, where N is specified by the parameter IO::out_proc_every\"\n \"onefile\" :: \"All output is written into a single file by processor 0\"\n} \"proc\"\n\nINT out_proc_every \"Do output on every N processors\" STEERABLE = RECOVER\n{\n 1:* :: \"A number between [1, nprocs)\"\n} 8\nINT out_timesteps_per_file \"How many timesteps to write to a single file\" STEERABLE = RECOVER\n{\n# 1:* :: \"Number of timesteps per file\"\n 1:1 :: \"Number of timesteps per file (can only be 1 so far)\"\n -1: :: \"All timesteps in a single file\"\n} -1\nBOOLEAN out3D_septimefiles \"Write one file per time slice, as opposed to all data in one file\" STEERABLE = RECOVER\n{\n} \"no\"\nBOOLEAN out_unchunked \"Don't write data in chunks. This parameter is ignored for single-processor runs where output is always done in unchunked mode.\" STEERABLE = RECOVER\n{\n} \"no\"\nKEYWORD out_save_parameters \"Save current parameter settings in output files ?\" STEERABLE = RECOVER\n{\n \"all\" :: \"Save all parameter settings\"\n \"only set\" :: \"Only save parameters which have been set before\"\n \"no\" :: \"Don't save parameter settings\"\n} \"only set\"\n\n\n##############################################\n# Downsampling parameters (only for 3D output)\n##############################################\nINT out_downsample_x \"Factor by which to downsample output in x direction. Point (0,0,0) is always included.\" STEERABLE = ALWAYS\n{\n 1:* :: \"A positive integer\"\n} 1\nINT out_downsample_y \"Factor by which to downsample output in y direction. Point (0,0,0) is always included.\" STEERABLE = ALWAYS\n{\n 1:* :: \"A positive integer\"\n} 1\nINT out_downsample_z \"Factor by which to downsample output in z direction. Point (0,0,0) is always included.\" STEERABLE = ALWAYS\n{\n 1:* :: \"A positive integer\"\n} 1\nBOOLEAN out_single_precision \"Output data in single precision ?\" STEERABLE = ALWAYS\n{\n} \"no\"\n\n\n###################################\n# Checkpointing/recovery parameters\n###################################\nBOOLEAN checkpoint_ID \"Checkpoint initial data ?\" STEERABLE = RECOVER\n{\n} \"no\"\nKEYWORD recover \"Recover from a checkpoint file ?\" STEERABLE = RECOVER\n{\n \"no\" :: \"Don't recover\"\n \"manual\" :: \"Recover from the checkpoint file as given in IO::recover_dir and IO::recover_file\"\n \"auto\" :: \"Automatically recover from the latest checkpoint file found in \"\n \"autoprobe\" :: \"Probe for checkpoint files and automatically recover, continue as usual if nothing was found\"\n} \"no\"\nINT checkpoint_every \"How often to checkpoint\" STEERABLE = ALWAYS\n{\n 1:* :: \"Every so many iterations\"\n -1:0 :: \"Disable periodic checkpointing\"\n} -1\nREAL checkpoint_every_walltime_hours \"How often to checkpoint\" STEERABLE = ALWAYS\n{\n (0:* :: \"After so much walltime has passed\"\n -1 :: \"Disable periodic walltime checkpointing\"\n} -1\nBOOLEAN checkpoint_on_terminate \"Checkpoint after last iteration\" STEERABLE = ALWAYS\n{\n} \"no\"\nINT checkpoint_keep \"How many checkpoint files to keep\" STEERABLE = ALWAYS\n{\n 1:* :: \"1 overwrites the latest checkpoint file\"\n -1: :: \"Keep all checkpoint files\"\n} 1\nSTRING checkpoint_file \"File name for regular checkpoint\" STEERABLE = ALWAYS\n{\n \".+\" :: \"A valid filename\"\n} \"checkpoint.chkpt\"\nSTRING checkpoint_ID_file \"File name for initial data checkpoint\" STEERABLE = ALWAYS\n{\n \".+\" :: \"A valid filename\"\n} \"checkpoint.chkpt\"\nSTRING recover_file \"Basename of recovery file\" STEERABLE = ALWAYS\n{\n \".+\" :: \"A valid filename\"\n} \"checkpoint.chkpt\"\nSTRING checkpoint_dir \"Output directory for checkpoint files\" STEERABLE = ALWAYS\n{\n \".+\" :: \"A valid directory name\"\n} \".\"\nSTRING recover_dir \"Directory to look for recovery files\" STEERABLE = RECOVER\n{\n \".+\" :: \"A valid directory name\"\n} \".\"\nSTRING filereader_ID_dir \"Directory to look for input files\" STEERABLE = RECOVER\n{\n \".+\" :: \"A valid directory name\"\n} \".\"\nSTRING filereader_ID_files \"List of basenames of files to read in as initial data (e.g. omit the filename extention here)\" STEERABLE = RECOVER\n{\n \".+\" :: \"Space-separated list of initial data filenames (basenames, e.g. excluding the file name extention)\"\n \"^$\" :: \"An empty string for not recovering initial data\"\n} \"\"\nSTRING filereader_ID_vars \"List of variables to read in from the given initial data files\" STEERABLE = RECOVER\n{\n \"all\" :: \"Read all variables contained in the initial data files\"\n \".+\" :: \"Space-separated list of fully qualified variable/group names\"\n \"^$\" :: \"An empty string for not recovering initial data\"\n} \"all\"\nBOOLEAN recover_and_remove \"Remove checkpoint file after successful recovery ?\" STEERABLE = RECOVER\n{\n} \"no\"\n\n\n###################################\n# Parameter file writing parameters\n###################################\nKEYWORD parfile_write \"Write a parameter file to 'IO::out_dir'\" STEERABLE = RECOVER\n{\n \"no\" :: \"Do not write a parameter file\"\n \"copy\" :: \"Copy the original parameter file\"\n \"generate\" :: \"Generate a parameter file from the current settings\"\n# \"verbose generate\" :: \"Like \\\"generate\\\" but describe all parameters in detail\"\n} \"copy\"\nSTRING parfile_name \"Filename for the parameter file to be written\" STEERABLE = RECOVER\n{\n \".+\" :: \"A valid filename\"\n \"^$\" :: \"An empty string to choose the original parameter filename\"\n} \"\"\nINT parfile_update_every \"How often to update the parameter file for steered parameters\" STEERABLE = ALWAYS\n{\n 1:* :: \"Every so many iterations\"\n 0: :: \"Disable updating\"\n} 0\n\n\n#######################################\n# 1D line slice center setup parameters\n#######################################\nREAL out_xline_y \"y-coord for 1D lines in x-direction\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [ymin, ymax]\"\n} 0.0\nREAL out_xline_z \"z-coord for 1D lines in x-direction\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [zmin, zmax]\"\n} 0.0\nREAL out_yline_x \"x-coord for 1D lines in y-direction\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [xmin, xmax]\"\n} 0.0\nREAL out_yline_z \"z-coord for 1D lines in y-direction\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [zmin, zmax]\"\n} 0.0\nREAL out_zline_x \"x-coord for 1D lines in z-direction\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [xmin, xmax]\"\n} 0.0\nREAL out_zline_y \"y-coord for 1D lines in z-direction\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [ymin, ymax]\"\n} 0.0\n\nINT out_xline_yi \"y-index (from 0) for 1D lines in x-direction, overrides IO::out_xline_y\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, ny)\"\n -1: :: \"Default to physical coordinate IO::out_xline_y if it is within grid bounds, otherwise revert to using 0\"\n -2: :: \"Default to physical coordinate IO::out_xline_y if it is within grid bounds, otherwise revert to using the y-center of the box\"\n} -2\nINT out_xline_zi \"z-index (from 0) for 1D lines in x-direction, overrides IO::out_xline_z\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, nz)\"\n -1: :: \"Default to physical coordinate IO::out_xline_z if it is within grid bounds, otherwise revert to using 0\"\n -2: :: \"Default to physical coordinate IO::out_xline_z if it is within grid bounds, otherwise revert to using the z-center of the box\"\n} -2\nINT out_yline_xi \"x-index (from 0) for 1D lines in y-direction, overrides IO::out_yline_x\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, nx)\"\n -1: :: \"Default to physical coordinate IO::out_yline_x if it is within grid bounds, otherwise revert to using 0\"\n -2: :: \"Default to physical coordinate IO::out_yline_x if it is within grid bounds, otherwise revert to using the x-center of the box\"\n} -2\nINT out_yline_zi \"z-index (from 0) for 1D lines in y-direction, overrides IO::out_yline_z\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, nz)\"\n -1: :: \"Default to physical coordinate IO::out_yline_z if it is within grid bounds, otherwise revert to using 0\"\n -2: :: \"Default to physical coordinate IO::out_yline_z if it is within grid bounds, otherwise revert to using the z-center of the box\"\n} -2\nINT out_zline_xi \"x-index (from 0) for 1D lines in z-direction, overrides IO::out_zline_x\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, nx)\"\n -1: :: \"Default to physical coordinate IO::out_zline_x if it is within grid bounds, otherwise revert to using 0\"\n -2: :: \"Default to physical coordinate IO::out_zline_x if it is within grid bounds, otherwise revert to using the x-center of the box\"\n} -2\nINT out_zline_yi \"y-index (from 0) for 1D lines in z-direction, overrides IO::out_zline_y\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, ny)\"\n -1: :: \"Default to physical coordinate IO::out_zline_y if it is within grid bounds, otherwise revert to using 0\"\n -2: :: \"Default to physical coordinate IO::out_zline_y if it is within grid bounds, otherwise revert to using the y-center of the box\"\n} -2\n\n\n##################################\n# 2D plane center setup parameters\n##################################\nREAL out_yzplane_x \"x-coord for 2D planes in yz\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [xmin, xmax]\"\n} 0.0\nREAL out_xzplane_y \"y-coord for 2D planes in xz\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [ymin, ymax]\"\n} 0.0\nREAL out_xyplane_z \"z-coord for 2D planes in xy\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [zmin, zmax]\"\n} 0.0\n\nINT out_yzplane_xi \"x-index (from 0) for 2D planes in yz, overrrides IO::out_yzplane_x\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, nx)\"\n -1: :: \"Default to physical coordinate IO::out_yzplane_x if it is within grid bounds, otherwise revert to using 0\"\n -2: :: \"Default to physical coordinate IO::out_yzplane_x if it is within grid bounds, otherwise revert to using the x-center of the box\"\n} -2\nINT out_xzplane_yi \"y-index (from 0) for 2D planes in xz, overrrides IO::out_xzplane_y\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, ny)\"\n -1: :: \"Default to physical coordinate IO::out_xzplane_y if it is within grid bounds, otherwise revert to using 0\"\n -2: :: \"Default to physical coordinate IO::out_xzplane_y if it is within grid bounds, otherwise revert to using the y-center of the box\"\n} -2\nINT out_xyplane_zi \"z-index (from 0) for 2D planes in xy, overrrides IO::out_xyplane_z\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, nz)\"\n -1: :: \"Default to physical coordinate IO::out_xyplane_z if it is within grid bounds, otherwise revert to using 0\"\n -2: :: \"Default to physical coordinate IO::out_xyplane_z if it is within grid bounds, otherwise revert to using the z-center of the box\"\n} -2\n\n\nprivate:\n\nBOOLEAN truncate_files \"Truncate existing output files from previous runs (except when recovering) ?\" STEERABLE = ALWAYS\n{\n} \"yes\"\n\nBOOLEAN truncate_files_after_recovering \"Truncate existing output files after recovering ?\" STEERABLE = RECOVER\n{\n} \"no\"\n", "schedule": "# Schedule definitions for thorn IOUtil\n# $Header$\n\nschedule IOUtil_Startup at STARTUP after Driver_Startup\n{\n LANG:C\n} \"Startup routine\"\n\nif (! CCTK_Equals (recover, \"no\"))\n{\n schedule IOUtil_RecoverGH at RECOVER_VARIABLES\n {\n LANG:C\n OPTIONS: level\n } \"Checkpoint recovery routine\"\n}\n\nif (*filereader_ID_files && *filereader_ID_vars)\n{\n schedule IOUtil_RecoverIDFromDatafiles at INITIAL\n {\n LANG:C\n OPTIONS: level\n } \"Initial data recovery routine\"\n}\n\nif (! CCTK_Equals (parfile_write, \"no\") && parfile_update_every)\n{\n schedule IOUtil_UpdateParFile at POSTSTEP\n {\n LANG:C\n OPTIONS: meta\n } \"Append steered parameters to parameter file\"\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn IOUtil\n# $Header$\n\n# Source files in this directory\nSRCS = Startup.c CheckpointRecovery.cc AdvertisedFiles.c Utils.c\n", diff --git a/CactusBase_InitBase.json b/CactusBase_InitBase.json index 8c7b28d4cc7e005b6c246c77943e5bd6fcdbe0f9..5f8e718a99ef33ca880ab939eeb0a41e535052b0 100644 --- a/CactusBase_InitBase.json +++ b/CactusBase_InitBase.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusbase.git", "configuration": "", "interface": "# Interface definition for thorn InitBase\n\nIMPLEMENTS: InitBase\n", - "params": "", + "param": "# Parameter definitions for thorn InitBase\n\nRESTRICTED:\n\nKEYWORD initial_data_setup_method \"Procedure for setting up initial data\"\n{\n \"init_some_levels\" :: \"Set up at least one time level; other time levels are scratch space\"\n \"init_single_level\" :: \"Set up exactly one time level; other time levels are not accessed\"\n \"init_two_levels\" :: \"Set up exactly two time levels; other time levels are not accessed\"\n \"init_all_levels\" :: \"Set up all active time levels\"\n} \"init_some_levels\"\n", "schedule": "# Schedule definitions for thorn InitBase\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn InitBase\n\n# Source files in this directory\nSRCS = \n\n# Subdirectories containing source files\nSUBDIRS = \n" diff --git a/CactusBase_SymBase.json b/CactusBase_SymBase.json index d9ac9585fdae223d9a6ae6f2f3a1d6ea5dcfecd5..87d08cc52e4ea30aa3faeb319a2833a2809d4f66 100644 --- a/CactusBase_SymBase.json +++ b/CactusBase_SymBase.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusbase.git", "configuration": "", "interface": "# Interface definition for thorn SymBase\n# $Header$\n\nIMPLEMENTS: SymBase\n\n\n\n# Register a symmetry, and query the symmetry name/handle mapping:\n\nCCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name)\nPROVIDES FUNCTION SymmetryRegister \\\n WITH SymBase_SymmetryRegister \\\n LANGUAGE C\n\nCCTK_INT FUNCTION SymmetryHandleOfName (CCTK_STRING IN sym_name)\nPROVIDES FUNCTION SymmetryHandleOfName \\\n WITH SymBase_SymmetryHandleOfName \\\n LANGUAGE C\n\nCCTK_POINTER_TO_CONST FUNCTION SymmetryNameOfHandle (CCTK_INT IN sym_handle)\nPROVIDES FUNCTION SymmetryNameOfHandle \\\n WITH SymBase_SymmetryNameOfHandle \\\n LANGUAGE C\n\n\n\n# Register a symmetry condition for a face:\n\nCCTK_INT FUNCTION \\\n SymmetryRegisterGrid \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT IN ARRAY which_faces, \\\n CCTK_INT IN ARRAY symmetry_zone_width) \nPROVIDES FUNCTION SymmetryRegisterGrid \\\n WITH SymBase_SymmetryRegisterGrid \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n SymmetryRegisterGI \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT IN ARRAY which_faces, \\\n CCTK_INT IN ARRAY symmetry_zone_width, \\\n CCTK_INT IN group_index)\nPROVIDES FUNCTION SymmetryRegisterGI \\\n WITH SymBase_SymmetryRegisterGI \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n SymmetryRegisterGN \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT IN ARRAY which_faces, \\\n CCTK_INT IN ARRAY symmetry_zone_width, \\\n CCTK_STRING IN group_name)\nPROVIDES FUNCTION SymmetryRegisterGN \\\n WITH SymBase_SymmetryRegisterGN \\\n LANGUAGE C\n\n\n\n# Register a symmetry interpolator:\n\nCCTK_INT FUNCTION \\\n SymmetryRegisterGridInterpolator \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT CCTK_FPOINTER IN symmetry_interpolate \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays, \\\n CCTK_INT IN faces))\nPROVIDES FUNCTION SymmetryRegisterGridInterpolator \\\n WITH SymBase_SymmetryRegisterGridInterpolator \\\n LANGUAGE C\n\n\n\n# Get the symmetry table handle for a grid or grid array:\n\nCCTK_INT FUNCTION \\\n SymmetryTableHandleForGrid (CCTK_POINTER_TO_CONST IN cctkGH)\nPROVIDES FUNCTION SymmetryTableHandleForGrid \\\n WITH SymBase_SymmetryTableHandleForGrid \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n SymmetryTableHandleForGI \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN group_index)\nPROVIDES FUNCTION SymmetryTableHandleForGI \\\n WITH SymBase_SymmetryTableHandleForGI \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n SymmetryTableHandleForGN \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_STRING IN group_name)\nPROVIDES FUNCTION SymmetryTableHandleForGN \\\n WITH SymBase_SymmetryTableHandleForGN \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n GetSymmetryBoundaries \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY symbnd)\nPROVIDES FUNCTION GetSymmetryBoundaries \\\n WITH SymBase_GetSymmetryBoundaries \\\n LANGUAGE C\n\n\n\n# Interpolation\n\nCCTK_INT FUNCTION \\\n SymmetryInterpolate \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays)\nPROVIDES FUNCTION SymmetryInterpolate \\\n WITH SymBase_SymmetryInterpolate \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n SymmetryInterpolateFaces \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays, \\\n CCTK_INT IN faces)\nPROVIDES FUNCTION SymmetryInterpolateFaces \\\n WITH SymBase_SymmetryInterpolateFaces \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n DriverInterpolate \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays)\nUSES FUNCTION DriverInterpolate\n", - "params": "", + "param": "# Parameter definitions for thorn SymBase\n# $Header$\n\nBOOLEAN verbose \"Output symmetry boundary face descriptions after registration\"\n{\n} \"yes\"\n", "schedule": "# Schedule definitions for thorn SymBase\n# $Header$\n\nSCHEDULE SymBase_Startup AT CCTK_STARTUP\n{\n LANG: C\n} \"Register GH Extension for SymBase\"\n\nSCHEDULE GROUP SymBase_Wrapper AT CCTK_WRAGH\n{\n} \"Wrapper group for SymBase\"\n\nSCHEDULE GROUP SymmetryRegister IN SymBase_Wrapper\n{\n} \"Register your symmetries here\"\n\nSCHEDULE SymBase_Statistics IN SymBase_Wrapper AFTER SymmetryRegister\n{\n LANG: C\n} \"Print symmetry boundary face descriptions\"\n\nSCHEDULE SymBase_Check AT CCTK_BASEGRID\n{\n LANG: C\n} \"Check whether the driver set up the grid consistently\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn SymBase\n# $Header$\n\n# Source files in this directory\nSRCS = Check.c Faces.c Handles.c Interpolation.c Startup.c Statistics.c Table.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusBase_Time.json b/CactusBase_Time.json index a766d749c06e36536202127ad1fe578a57b6d3df..6681bdd660d3d1cb1536336e8674b62d0364eb72 100644 --- a/CactusBase_Time.json +++ b/CactusBase_Time.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusbase.git", "configuration": "", "interface": "# Interface definition for thorn Time\n\nimplements: time\n\npublic:\n\nREAL speedvars type=SCALAR\n{\n courant_wave_speed\n courant_min_time\n} \"Speed to use for Courant condition\"\n\nprivate:\n\nREAL couranttemps type=SCALAR\n{\n courant_dt\n} \"Variable just for output\"\n", - "params": "", + "param": "# Parameter definitions for thorn Time\n\nshares: cactus\n \nUSES REAL cctk_final_time\nUSES KEYWORD terminate\n\nrestricted:\n\nKEYWORD timestep_method \"Method for calculating timestep\"\n{\n \"given\" :: \"Use given timestep\"\n \"courant_static\" :: \"Courant condition at BASEGRID (using dtfac)\"\n \"courant_speed\" :: \"Courant condition at POSTSTEP (using wavespeed and courant_fac)\"\n \"courant_time\" :: \"Courant condition at POSTSTEP (using min time and courant_fac)\"\n} \"courant_static\"\n\nBOOLEAN timestep_outonly \"Don't set a dynamic timestep, just output what it would be\"\n{\n} \"no\"\n\nprivate:\n\nREAL timestep \"Absolute value for timestep\"\n{\n *:* :: \"Could be anything\"\n} 0.0\n\nREAL dtfac \"The standard timestep condition dt = dtfac*max(delta_space)\"\n{\n 0:* :: \"For positive timestep\"\n *:0 :: \"For negative timestep\"\n} 0.5 \n\nREAL courant_fac \"The courant timestep condition dt = courant_fac*max(delta_space)/speed/sqrt(dim)\"\n{\n 0:* :: \"For positive timestep\"\n *:0 :: \"For negative timestep\"\n} 0.9\n\nINT timestep_outevery \"How often to output courant timestep\"\n{\n 1:* :: \"Zero means no output\"\n} 1\n\nBOOLEAN verbose \"Give selective information about timestep setting\"\n{\n} \"no\"\n", "schedule": "# Schedule definitions for thorn Time\n\nSTORAGE: speedvars, couranttemps\n\nschedule Time_Initialise at CCTK_BASEGRID before Time_Simple\n{\n LANG: C\n OPTIONS: global\n WRITES: Time::speedvars\n WRITES: Time::courant_dt(everywhere)\n} \"Initialise Time variables\"\n\nif (CCTK_Equals (timestep_method, \"courant_static\"))\n{\n schedule Time_Simple at CCTK_BASEGRID as TemporalSpacings after SpatialSpacings\n {\n LANG: C\n OPTIONS: singlemap\n } \"Set timestep based on Courant condition (courant_static)\"\n}\nelse if (CCTK_Equals (timestep_method, \"courant_speed\"))\n{\n schedule Time_Courant at CCTK_BASEGRID as TemporalSpacings after SpatialSpacings\n {\n LANG: C\n OPTIONS: singlemap\n READS: Time::speedvars\n WRITES: Time::courant_dt(everywhere)\n } \"Set timestep based on Courant condition (courant_speed)\"\n\n schedule Time_Courant at CCTK_POSTSTEP as TemporalSpacings after SpatialSpacings\n {\n LANG: C\n OPTIONS: singlemap\n READS: Time::speedvars\n WRITES: Time::courant_dt(everywhere)\n } \"Reset timestep each iteration\"\n}\nelse if (CCTK_Equals (timestep_method, \"courant_time\"))\n{\n schedule Time_Simple at CCTK_BASEGRID as TemporalSpacings after SpatialSpacings\n {\n LANG: C\n OPTIONS: singlemap\n } \"Set timestep based on Courant condition (courant_time)\"\n\n schedule Time_Courant at CCTK_POSTSTEP as TemporalSpacings after SpatialSpacings\n {\n LANG: C\n OPTIONS: singlemap\n READS: Time::speedvars\n WRITES: Time::courant_dt(everywhere)\n } \"Reset timestep each iteration\"\n}\nelse if (CCTK_Equals (timestep_method, \"given\"))\n{\n schedule Time_Given at CCTK_BASEGRID as TemporalSpacings after SpatialSpacings\n {\n LANG: C\n OPTIONS: singlemap\n } \"Set fixed timestep\"\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Time\n\n# Source files in this directory\nSRCS = Courant.c Given.c Initialise.c Simple.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusConnect_HTTPD.json b/CactusConnect_HTTPD.json index f5cb7321495aa36c5f01b1debdf68e591beb6ed9..b22bef9083d222b12a6258a7768dbf9910abd768 100644 --- a/CactusConnect_HTTPD.json +++ b/CactusConnect_HTTPD.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusconnect.git", "configuration": "# Configuration definitions for thorn HTTPD\n# $Header$\n\nREQUIRES SOCKET\n\n# This will disappear if we can function alias the stuff\nPROVIDES HTTPD\n{\n SCRIPT\n LANG\n}\n\nOPTIONAL MPI\n{\n}\n\nOPTIONAL PTHREADS\n{\n}\n", "interface": "# Interface definition for thorn HTTPD\n# $Header$\n\nImplements: HTTPD\nInherits: Socket\n\nUSES INCLUDE HEADER: SocketUtils.h\n\nINCLUDE HEADER: Auth.h in http_Auth.h\nINCLUDE HEADER: Cookies.h in http_Cookies.h\nINCLUDE HEADER: Steer.h in http_Steer.h\nINCLUDE HEADER: Content.h in http_Content.h\n\nCCTK_INT FUNCTION Send_Twitter_Msg(CCTK_STRING IN msg)\nUSES FUNCTION Send_Twitter_Msg\n\n", - "params": "", + "param": "# Parameter definitions for thorn HTTPD\n# $Header$\n\nshares: Cactus\n\nUSES REAL cctk_final_time \n\nUSES REAL cctk_initial_time \n\nUSES INT cctk_itlast \n\nprivate:\n\n# Probably the most useful parameter\n\nINT port \"HTTP port number to use (can be overridden by shell variable HTTPD_PORT)\"\n{\n 1:65535 :: \"Any valid port\"\n} 5555\n\n# If you desperately need to set the port number by hand, turn hunting off.\nBOOLEAN hunt \"Should the server hunt for a port if the specified one is taken ?\"\n{\n} \"yes\"\n\n# This allows you to control the number of times all procs need to synchronise parameters\nINT steering_frequency \"How many iterations between steering events\" STEERABLE = ALWAYS\n{\n 0: :: \"Any number, 0 means don't steer\"\n} 1\n\n# Switching this off means all pages must be provided by other thorns.\nBOOLEAN provide_pages \"Should the server provide any pages ?\"\n{\n} \"yes\"\n\n# Setting this to true in the parameter file will start the simulation paused.\nBOOLEAN pause \"Pause ?\" STEERABLE = ALWAYS\n{\n} \"no\"\n\n# Username and password for controlling cactus\nSTRING user \"The username for Cactus Control \"\n{\n \".+\" :: \"Any name of one or more characters\"\n} \"anon\"\n\nSTRING password \"The password for Cactus Control\"\n{\n \".*\" :: \"Any password\"\n} \"anon\"\n\nKEYWORD encryption_scheme \"How the password is encrypted\"\n{\n \"none\" :: \"Not encrypted\"\n \"crypt\" :: \"crypt(3) (standard UNIX passwd format)\"\n} \"none\"\n\nBOOLEAN use_pthreads \"Use a threaded implementation if possible ?\"\n{\n} \"yes\"\n\nBOOLEAN verbose \"Print information about HTTP requests\" STEERABLE = ALWAYS\n{\n} \"no\"\n\n##################################################################\n# Tuning parameters\n\nINT timeout_seconds \"Polling timeout seconds\" STEERABLE = ALWAYS\n{\n 0: :: \"Any whole number\"\n} 0\n\nINT timeout_useconds \"Polling timeout micro-seconds\" STEERABLE = ALWAYS\n{\n 0: :: \"Any whole number\"\n} 0\n\nINT queue_length \"Listen queue length\"\n{\n 1: :: \"Any positive number\"\n} 4\n\nINT refresh_seconds \"Page refresh time seconds\" STEERABLE = ALWAYS\n{\n -1: :: \"-1 for no refresh, 0 for immediate refresh\"\n} -1\n\n###################################################################\n# You probably don't want to set this in a parameter file \n\nBOOLEAN terminate \"Kill the simulation ?\" STEERABLE = ALWAYS\n{\n} \"no\"\n\n###################################################################\n# Dynamic control\n\n\nBOOLEAN single_step \"Do one step then pause ?\" STEERABLE = ALWAYS\n{\n} \"no\"\n\n# Iterate until\n\nBOOLEAN until_it_active \"Use until_it parameter ?\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nINT until_it \"Pause at this iteration\" STEERABLE = ALWAYS\n{\n : :: \"Any iteration\"\n} 0 \n\n# Run until\n\nBOOLEAN until_time_active \"Use until_time parameter ?\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nREAL until_time \"Pause after this simulation time\" STEERABLE = ALWAYS\n{\n : :: \"Any time\"\n} 0\n\n# Run until expression\n\nBOOLEAN until_expression_active \"Use until_expression parameter ?\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nSTRING until_expression \"Pause if this expression evaluates to true.\" STEERABLE = ALWAYS\n{\n \".*\" :: \"Any expression\"\n} \"iteration+40 < time*100\"\n", "schedule": "# Schedule definitions for thorn HTTPD\n# $Header$\n\nSCHEDULE GROUP HTTP_Startup AT startup\n{\n OPTIONS: GLOBAL\n} \"HTTP daemon startup group\"\n\nSCHEDULE HTTP_StartServer in HTTP_Startup\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Start HTTP server\"\n\nSCHEDULE GROUP HTTP_SetupPages in HTTP_Startup AFTER HTTP_StartServer\n{\n} \"Group to setup stuff which needs to be done between starting the server and the first time it serves pages\"\n\nSCHEDULE HTTP_FirstServ in HTTP_Startup AFTER HTTP_SetupPages\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Serve first pages at startup\"\n\nSCHEDULE HTTP_Work AT poststep BEFORE IOUtil_UpdateParFile\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Working routine\"\n\nif(provide_pages)\n{\n SCHEDULE HTTP_ContentWork AT poststep\n {\n LANG: C\n OPTIONS: GLOBAL\n } \"Content Working routine\"\n}\n\nSCHEDULE HTTP_Shutdown AT shutdown\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"HTTP daemon shutdown\"\n", "src": { "SStringHTML_Namespace.h": " /*@@\n @file SStringHTMLNamespace.h\n @date 02.04.2004\n @author Steve White\n @desc Extension to Strings module with function specific to HTML\n @enddesc\n @version $Header$\n @@*/\n#ifndef _SSTRINGHTML_NAMESPACE_H\n#define _SSTRINGHTML_NAMESPACE_H\n\n#include \"SStringHTML.h\"\n\n\n#define EncodeHTML( s ) \\\n\t\tStringEncodeHTML( s )\n#define SetToEncodedHTMLCString( s, c ) \\\n\t\tStringSetToEncodedHTMLCString( s, c )\n\n#endif\n", diff --git a/CactusConnect_HTTPDExtra.json b/CactusConnect_HTTPDExtra.json index 23e335b4ba14893595c8fcf1003bd799ae37ea96..f2bba7faf49b4527bae3d186c01afd94321efe60 100644 --- a/CactusConnect_HTTPDExtra.json +++ b/CactusConnect_HTTPDExtra.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusconnect.git", "configuration": "# Configuration definition for thorn http_utils\n# $Header$\n\nREQUIRES HTTPD IOUTIL\n\nOPTIONAL MPI\n{\n}\n", "interface": "# Interface definition for thorn httpd_utils\n# $Header$\n\nimplements: http_utils\n\nUSES INCLUDE HEADER: http_Auth.h\nUSES INCLUDE HEADER: http_Content.h\n\n", - "params": "", + "param": "# Parameter definitions for thorn httpd_utils\n# $Header$\n\nprivate:\n\nINT viewport_refresh_seconds \"Viewport web page refresh time seconds\" STEERABLE = ALWAYS\n{\n -1: :: \"-1 for no refresh, 0 for immediate refresh\"\n} -1\n\n", "schedule": "# Schedule definitions for thorn httpd_utils\n# $Header$\n\nSCHEDULE HTTPUTILS_Startup AT startup AFTER HTTP_Startup BEFORE IOUtil_Startup\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Utils for httpd startup\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn httpd_utils\n# $Header$\n\n# Source files in this directory\nSRCS = Groups.c Startup.c IO.c Processors.c HostNames.c PtrList.c HTTPD_FileList.c TimerInfo.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusConnect_Socket.json b/CactusConnect_Socket.json index 10dee7113bfffcca7568c68cb65b187f3c9c8e73..a89e1c575699766de5b74a05c335cfea193428df 100644 --- a/CactusConnect_Socket.json +++ b/CactusConnect_Socket.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusconnect.git", "configuration": "# Configuration definitions for thorn SOCKET\n# $Header$\n\n# This may disappear if we can function alias the calls\nPROVIDES SOCKET\n{\n SCRIPT\n LANG\n}\n\n\n", "interface": "# Interface definition for thorn Socket\n# $Header$\n\nimplements: Socket\n\nINCLUDE HEADER: SocketUtils.h in SocketUtils.h\n", - "params": "", + "param": "# Parameter definitions for thorn Socket\n# $Header$\n", "schedule": "# Schedule definitions for thorn Socket\n# $Header$\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Socket\n# $Header$\n\n# Source files in this directory\nSRCS = Utils.c\n", diff --git a/CactusElliptic_EllBase.json b/CactusElliptic_EllBase.json index 813829637a563a6ea5359ffef83730396f7affc9..6143c2e7d06a87d299f1a12ca1bd59f1b56a7faa 100644 --- a/CactusElliptic_EllBase.json +++ b/CactusElliptic_EllBase.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactuselliptic.git", "configuration": "PROVIDES EllBase\n{\n SCRIPT\n LANG\n}\n\n", "interface": "# Interface definition for thorn EllBase\n# $Header$\nimplements: ellbase\n\nINCLUDES HEADER: EllBase.h in EllBase.h\nINCLUDES HEADER: Ell_DBstructure.h in Ell_DBstructure.h\n", - "params": "", + "param": "# Parameter definitions for thorn EllBase\n# $Header$\n\nrestricted:\n\nKEYWORD elliptic_verbose \"elliptic verbosity\"\n{\n \"yes\" :: \"be verbose in elliptic\"\n \"no\" :: \"silence in elliptic\"\n \"debug\":: \"even more verbose in elliptic\"\n} \"no\"\n", "schedule": "# Schedule definitions for thorn EllBase\n# $Header$\n\nschedule Ell_RegisterBaseEqTypes at STARTUP\n{\n LANG:C\n} \"Register the standard elliptic classes\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn EllBase\n# $Header$\n\n# Source files in this directory\nSRCS = Ell_Interface.c Ell_Register.c Startup.c Ell_DBstructure.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusElliptic_EllSOR.json b/CactusElliptic_EllSOR.json index 9b69fac0f32b3a3c735b5a7408c5806f54e4eda1..70cba7ac3bef4a67e7b9d6c9ec65033de50f6ade 100644 --- a/CactusElliptic_EllSOR.json +++ b/CactusElliptic_EllSOR.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactuselliptic.git", "configuration": "# Configuration definition for thorn EllSOR\n# $Header$\n\nREQUIRES Boundary CartGrid3D\n", "interface": "# Interface definition for thorn EllSOR\n# $Header$\n\nimplements: ellsor\ninherits: ellbase, boundary\n\nUSES INCLUDE HEADER: EllBase.h\nUSES INCLUDE HEADER: Ell_DBstructure.h\nUSES INCLUDE HEADER: Boundary.h\nUSES INCLUDE HEADER: Symmetry.h\n", - "params": "", + "param": "# Parameter definitions for thorn EllSOR\n# $Header$\n\nshares:ellbase\n\nUSES KEYWORD elliptic_verbose \n", "schedule": "# Schedule definitions for thorn EllSOR\n# $Header$\n\nschedule EllSOR_Register at CCTK_BASEGRID\n{\n LANG:C\n} \"Register the SOR solvers\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn EllSOR\n# $Header$\n\n# Source files in this directory\nSRCS = Startup.c Wrapper.c ConfMetric.c Flat.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusElliptic_TATelliptic.json b/CactusElliptic_TATelliptic.json index ab611513e8357389f0d64d5dfd72a155e1cd7526..4e9c01cab154b0982307d6194ad1bd3b74c898c7 100644 --- a/CactusElliptic_TATelliptic.json +++ b/CactusElliptic_TATelliptic.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactuselliptic.git", "configuration": "# Configuration definition for thorn TATelliptic\n\nPROVIDES TATelliptic\n{\n SCRIPT\n LANG\n}\n", "interface": "# Interface definition for thorn TATelliptic\n\nIMPLEMENTS: TATelliptic\n\nINCLUDE HEADER: TATelliptic.h IN TATelliptic.h\n", - "params": "", + "param": "# Parameter definitions for thorn TATelliptic\n", "schedule": "# Schedule definitions for thorn TATelliptic\n\nSCHEDULE TATelliptic_register_monitor AT startup\n{\n LANG: C\n} \"Register the pseudo solver\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TATelliptic\n\n# Source files in this directory\nSRCS = TATelliptic.c TATmonitor.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusExamples_DemoInterp.json b/CactusExamples_DemoInterp.json index 593e9c28a267a1ec8212ac64c89c95b766aa3024..bade0a7adef2783a3360298b1ebf25abcae056bc 100644 --- a/CactusExamples_DemoInterp.json +++ b/CactusExamples_DemoInterp.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusexamples.git", "configuration": "", "interface": "# Interface definition for thorn DemoInterp\n# $Header$\n\nimplements: DemoInterp\n\nprivate:\n\nreal coordarrays type=array dim=1 size=arrsize DISTRIB=CONSTANT\n{\n xcoord,\n ycoord,\n zcoord\n} \"Coordinates for interpolating\"\n\nreal realinterps type=array dim=1 size=arrsize DISTRIB=CONSTANT\n{\n realinterp1,\n realinterp2,\n realinterp3\n} \"Array of real interpolated points\"\n\ncomplex compinterps type=array dim=1 size=arrsize DISTRIB=CONSTANT\n{\n compinterp1,\n compinterp2,\n compinterp3\n} \"Array of complex interpolated points\"\n\n\n# 3D Stuff\n# --------\n\nreal real3dvars type=GF dim=3\n{\n realgf3\n} \"Real 3D grid function\"\n\ncomplex comp3dvars type=GF dim=3\n{\n compgf3\n} \"Complex 3D grid function\"\n\n\n# 2D Stuff\n# --------\n\nreal real2dvars type=GF dim=2\n{\n realgf2\n} \"Real 2D grid function\"\n\ncomplex comp2dvars type=GF dim=2\n{\n compgf2\n} \"Complex 2D grid function\"\n\n\n# 1D Stuff\n# --------\n\nreal real1dvars type=GF dim=1\n{\n realgf1\n} \"Real 1D grid function\"\n\ncomplex comp1dvars type=GF dim=1\n{\n compgf1\n} \"Complex 1D grid function\"\n\n", - "params": "", + "param": "# Parameter definitions for thorn DemoInterp\n# $Header$\n\nprivate:\n\nreal interp_radius \"Radius at which to interpolate points\"\n{\n 0:* :: \"Non-negative\"\n} 0.5\n\nint arrsize \"Size of interpolating arrays\"\n{\n 1:* :: \"Positive\"\n} 10\n\nINT interpolation_order \"Order for interpolation\" STEERABLE = ALWAYS\n{\n 1:3 :: \"Choose between first, second, and third-order\"\n} 1\n", "schedule": "# Schedule definitions for thorn DemoInterp\n# $Header$\n\n#storage: coords3d, coords2d, coords1d\nstorage: real3dvars,comp3dvars\nstorage: real2dvars,comp2dvars\nstorage: real1dvars,comp1dvars\nstorage: coordarrays,realinterps,compinterps\n\nschedule SetUp3DGFs at INITIAL\n{\n LANG: Fortran\n} \"Set up 3D GFs to be interpolated\"\n\nschedule SetUp2DGFs at INITIAL after Setup3DGFs\n{\n LANG: Fortran\n} \"Set up 2D GFs to be interpolated\"\n\nschedule SetUp1DGFs at INITIAL after Setup3DGFs\n{\n LANG: Fortran\n} \"Set up 1D GFs to be interpolated\"\n\nschedule DemoInterp_Interp3D at INITIAL after SetUp3DGFs\n{\n LANG: Fortran\n} \"Interpolate 3D test arrays at given coordinates\"\n\nschedule DemoInterp_Interp2D at INITIAL after SetUp2DGFs\n{\n LANG: Fortran\n} \"Interpolate 2D test arrays at given coordinates\"\n\nschedule DemoInterp_Interp1D at INITIAL after SetUp1DGFs\n{\n LANG: Fortran\n} \"Interpolate 1D test arrays at given coordinates\"\n\n", "src": { "Initial2D.F": "#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n\n subroutine SetUp2DGFs(CCTK_ARGUMENTS)\n\n implicit none\n\n DECLARE_CCTK_ARGUMENTS\n\n integer nx,ny\n integer i,j\n CCTK_REAL xp,yp,rp\n CCTK_REAL dx,dy\n\n nx = cctk_lsh(1)\n ny = cctk_lsh(2)\n\n dx = cctk_delta_space(1)\n dy = cctk_delta_space(2)\n\n do j=1,ny\n do i=1,nx\n xp = (cctk_lbnd(1)+i-1)*dx-0.5d0\n yp = (cctk_lbnd(2)+j-1)*dy-0.5d0\n rp = sqrt( xp**2+yp**2 )\n realgf2(i,j) = rp\n compgf2(i,j) = cmplx(rp,cos(rp))\n end do\n end do\n\n return\n end\n", diff --git a/CactusExamples_FleshInfo.json b/CactusExamples_FleshInfo.json index 419e58b7be71aa215e588251dfa1c44db1b5e2d0..444c16cd53c5e834bdcbc290b6db664872df55fd 100644 --- a/CactusExamples_FleshInfo.json +++ b/CactusExamples_FleshInfo.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusexamples.git", "configuration": "", "interface": "# Interface definition for thorn FleshInfo\n# $Header$\n\nimplements: FleshInfo", - "params": "", + "param": "# Parameter definitions for thorn FleshInfo\n# $Header$\n", "schedule": "# Schedule definitions for thorn FleshInfo\n# $Header$\n\nschedule InterpInfo at CCTK_INITIAL\n{\n LANG: C\n} \"Information about Interpolation Operators\"\n\nschedule ReduceInfo at CCTK_INITIAL\n{\n LANG: C\n} \"Information about Reduction Operators\"\n\nschedule IOInfo at CCTK_INITIAL\n{\n LANG: C\n} \"Information about IO Methods\"\n\nschedule CoordInfo at CCTK_INITIAL\n{\n LANG: C\n} \"Information about Coordinate Systems\"", "src": { "Reduce.c": "/*@@\n @file Reduce.c\n @date Thu Dec 27 2001\n @author Gabrielle Allen\n @desc\n Write information about reduction operators\n @enddesc\n @version $Id$\n@@*/\n\n#include \n\n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n\nstatic const char *rcsid = \"$Header$\";\n\nCCTK_FILEVERSION(CactusExamples_FleshInfo_Reduce_c)\n\nvoid ReduceInfo(CCTK_ARGUMENTS);\n\n /*@@\n @routine ReduceInfo\n @date Thu Dec 27 2001\n @author Gabrielle Allen\n @desc \n Write information about reduction operators\n @enddesc \n @calls \n @calledby \n @history \n \n @endhistory \n@@*/\n\nvoid ReduceInfo(CCTK_ARGUMENTS)\n{\n DECLARE_CCTK_ARGUMENTS\n\n const char *name;\n const char *imp;\n const char *thorn;\n int number;\n int handle;\n\n number = CCTK_NumReduceOperators();\n\n printf(\"Reduction Operators\\n\");\n printf(\"-------------------\\n\\n\");\n printf(\" There are %d registered reduction operators\\n\\n\",number);\n \n if (number > 0)\n {\n printf(\" Handle | Name | Thorn | Implementation\\n\");\n printf(\" ---------------------------------------------------------------------------\\n\");\n\n for (handle = 0; handle < number; handle++)\n {\n name = CCTK_LocalArrayReduceOperator(handle);\n if (name)\n {\n imp = CCTK_LocalArrayReduceOperatorImplementation(handle);\n thorn = CCTK_ImplementationThorn(imp);\n printf(\" %7d | %-30.30s | %-15.15s | %-15.15s \\n\",handle,name,thorn, imp);\n }\n }\n }\n\n printf(\"\\n\");\n\n return;\n\n printf(\"\\n\");\n\n}\n", diff --git a/CactusExamples_HelloWorld.json b/CactusExamples_HelloWorld.json index c31d9f91866831b79d9cac6c3ef724aa9add7046..ca7dc7a5ae87e103d7687c9440dc7296f7764af2 100644 --- a/CactusExamples_HelloWorld.json +++ b/CactusExamples_HelloWorld.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusexamples.git", "configuration": "", "interface": "# Interface definition for thorn HelloWorld\n# $Header$\n\nimplements: helloworld", - "params": "", + "param": "# Parameter definitions for thorn HelloWorld\n# $Header$\n", "schedule": "# Schedule definitions for thorn HelloWorld\n# $Header$\n\nschedule HelloWorld at CCTK_EVOL\n{\n LANG: C\n} \"Print message to screen\"", "src": { "make.code.defn": "# Main make.code.defn file for thorn HelloWorld\n# $Header$\n\n# Source files in this directory\nSRCS = HelloWorld.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusExamples_IDWaveMoL.json b/CactusExamples_IDWaveMoL.json index 47fe06c0ebeeb7cff694bf7bf8e3a1de3e1040ec..18e576931884749666ffa2cd81e5e593718edeeb 100644 --- a/CactusExamples_IDWaveMoL.json +++ b/CactusExamples_IDWaveMoL.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusexamples.git", "configuration": "", "interface": "# Interface definition for thorn IDScalarWaveMoLC\n# $Header$\n\nimplements: idwavemol\ninherits: wavemol grid\n\n", - "params": "", + "param": "# Parameter definitions for thorn IDScalarWaveMoLC\n# $Header$\n\nrestricted:\n\nKEYWORD initial_data \"Type of initial data\"\n{\n \"gaussian\" :: \"Gaussian wave\"\n \"plane\" :: \"plane wave\"\n} \"gaussian\"\n\nprivate:\n\nREAL amplitude \"The amplitude of the waves\"\n{\n *:* :: \"No restriction\"\n} 1.0\n\n\n\nREAL radius \"The radius of the gaussian wave\"\n{\n 0:* :: \"Positive\"\n} 0.0\n\nREAL sigma \"The sigma for the gaussian wave\"\n{\n 0:* :: \"Positive\"\n} 0.1\n\nREAL centrex \"The centre of the gaussian wave, x-direction\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nREAL centrey \"The centre of the gaussian wave, y-direction\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nREAL centrez \"The centre of the gaussian wave, z-direction\"\n{\n *:* :: \"Anything\"\n} 0.0\n\n\n\nREAL kx \"Wave number in the x-direction\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nREAL ky \"Wave number in the y-direction\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nREAL kz \"Wave number in the z-direction\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nREAL offsett \"Wave offset in the time-direction\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nREAL offsetx \"Wave offset in the x-direction\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nREAL offsety \"Wave offset in the y-direction\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nREAL offsetz \"Wave offset in the z-direction\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nREAL slopet \"Wave slope in the time-direction\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nREAL slopex \"Wave slope in the x-direction\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nREAL slopey \"Wave slope in the y-direction\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nREAL slopez \"Wave slope in the z-direction\"\n{\n *:* :: \"Anything\"\n} 0.0\n", "schedule": "# Schedule definitions for thorn IDScalarWaveMoLC\n# $Header$\n\nschedule IDWaveMoL_CheckParameters at CCTK_PARAMCHECK\n{\n LANG: C\n} \"Check parameters\"\n\nschedule IDWaveMoL_InitialData at CCTK_INITIAL\n{\n STORAGE: wavemol::scalarevolvemol_scalar[2]\n STORAGE: wavemol::scalarevolvemol_vector[2]\n LANG: C\n READS: grid::x, grid::y, grid::z\n WRITES: wavemol::scalarevolvemol_scalar(everywhere),\n wavemol::scalarevolvemol_vector(everywhere)\n} \"Initial data for 3D wave equation\"\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn IDScalarWaveMoLC\n# $Header$\n\n# Source files in this directory\nSRCS = InitialData.c CheckParameters.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusExamples_Poisson.json b/CactusExamples_Poisson.json index 911633d795ba8980f71167fb7a0c7faeffbcd5b3..4b8520fa45c33226231a5a6ab077adbe2e43aa25 100644 --- a/CactusExamples_Poisson.json +++ b/CactusExamples_Poisson.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusexamples.git", "configuration": "# Configuration definition for thorn Poisson\n\nREQUIRES Boundary Carpet CartGrid3D TATelliptic\n", "interface": "# Interface definition for thorn Poisson\n\nIMPLEMENTS: Poisson\n\nINHERITS: boundary grid\n\nUSES INCLUDE HEADER: carpet.h\nUSES INCLUDE HEADER: TATelliptic.h\n\n\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN faces, \\\n CCTK_INT IN boundary_width, \\\n CCTK_INT IN table_handle, \\\n CCTK_STRING IN group_name, \\\n CCTK_STRING IN bc_name)\nREQUIRES FUNCTION Boundary_SelectGroupForBC\n\n\n\nCCTK_REAL potential TYPE=gf\n{\n phi\n} \"Potential for elliptic equation\"\n\nCCTK_REAL residual TYPE=gf\n{\n res\n} \"Residual for elliptic equation\"\n", - "params": "", + "param": "# Parameter definitions for thorn Poisson\n\nSTRING solver \"Name of TATelliptic solver that should be used\"\n{\n .* :: \"must be an activated TATelliptic solver\"\n} \"TATJacobi\"\n\nSTRING options \"Options for the solver\"\n{\n .* :: \"no restriction\"\n} \"\"\n\n\n\nREAL radius \"Radius of uniformly charged sphere\"\n{\n 0:* :: \"\"\n} 1.0\n\nREAL charge \"Charge of uniformly charged sphere\"\n{\n *:* :: \"\"\n} 1.0\n", "schedule": "# Schedule definitions for thorn Poisson\n\nSTORAGE: potential residual\n\nSCHEDULE Poisson_prepare AT initial\n{\n LANG: C\n WRITES: Poisson::phi(Everywhere)\n} \"Set up initial guess for initial data\"\n\nSCHEDULE Poisson_solve AT postinitial\n{\n LANG: C\n WRITES: Poisson::res(Interior)\n READS: Poisson::phi(Everywhere)\n READS: Grid::coordinates(Interior)\n # OPTIONS: global\n} \"Calculate uniform charge initial data\"\n\nSCHEDULE GROUP Poisson_boundaries\n{\n} \"Apply boundary conditions to initial data\"\n\nSCHEDULE Poisson_boundaries_select IN Poisson_boundaries\n{\n LANG: C\n OPTIONS: level\n SYNC: potential\n} \"Select boundary conditions for initial data\"\n\nSCHEDULE GROUP ApplyBCs AS Poisson_boundaries_apply IN Poisson_boundaries AFTER Poisson_boundaries_select\n{\n} \"Apply boundary conditions to initial data\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Poisson\n\n# Source files in this directory\nSRCS = uniform_charge.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusExamples_SampleBoundary.json b/CactusExamples_SampleBoundary.json index 5a4735fa314cc7c5ff616f442a8137e0078589de..fe46bae5cf6431b551c880d4a998c388c0c16193 100644 --- a/CactusExamples_SampleBoundary.json +++ b/CactusExamples_SampleBoundary.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusexamples.git", "configuration": "", "interface": "# Interface definition for thorn SampleBoundary\n# $Header$\n\nimplements: LinExtrapBnd\n\nCCTK_INT FUNCTION Boundary_RegisterPhysicalBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN CCTK_FPOINTER function_pointer(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN num_vars, \\\n CCTK_INT ARRAY IN var_indices, \\\n CCTK_INT ARRAY IN faces, \\\n CCTK_INT ARRAY IN boundary_widths, \\\n CCTK_INT ARRAY IN table_handles),\\\n CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_RegisterPhysicalBC\n\n\n\nCCTK_INT FUNCTION \\\n SymmetryTableHandleForGrid (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION SymmetryTableHandleForGrid\n", - "params": "", + "param": "# Parameter definitions for thorn SampleBoundary\n# $Header$\n\n", "schedule": "# Schedule definitions for thorn SampleBoundary\n# $Header$\n\nschedule SampleBoundary_RegisterBCs at CCTK_BASEGRID\n{\n lang: C\n} \"Register boundary conditions that this thorn provides\"\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn SampleBoundary\n# $Header$\n\n# Source files in this directory\nSRCS = Register.c LinearExtrapBnd.c LinearExtrapBnd.F\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusExamples_SampleIO.json b/CactusExamples_SampleIO.json index f115cf3ac9b2050eb4fb9f0faf2b5b3d8e1b7fcc..d621bcdef79f619ff89124ad541dfb9b85e786b1 100644 --- a/CactusExamples_SampleIO.json +++ b/CactusExamples_SampleIO.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusexamples.git", "configuration": "# Configuration definition for thorn SampleIO\n# $Header$\n\n# names of the capabilities that this thorn requires\nRequires IOUtil\n", "interface": "# Interface definition for thorn SampleIO\n# $Header$\n\n# name of implementation this thorn provides\nImplements: SampleIO\nInherits: IO\n\n\n# names of alias functions this thorn is using\nCCTK_INT FUNCTION \\\n Hyperslab_Get (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN mapping_handle, \\\n CCTK_INT IN proc, \\\n CCTK_INT IN vindex, \\\n CCTK_INT IN timelevel, \\\n CCTK_INT IN hdatatype, \\\n CCTK_POINTER IN hdata)\n\nCCTK_INT FUNCTION \\\n Hyperslab_GlobalMappingByIndex (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN vindex, \\\n CCTK_INT IN hdim, \\\n CCTK_INT ARRAY IN direction, \\\n CCTK_INT ARRAY IN origin, \\\n CCTK_INT ARRAY IN extent, \\\n CCTK_INT ARRAY IN downsample, \\\n CCTK_INT IN table_handle, \\\n CCTK_INT IN CCTK_FPOINTER \\\n conversion_fn (CCTK_INT IN nelems, \\\n CCTK_INT IN src_stride,\\\n CCTK_INT IN dst_stride,\\\n CCTK_INT IN src_type, \\\n CCTK_INT IN dst_type, \\\n CCTK_POINTER_TO_CONST IN from, \\\n CCTK_POINTER IN to), \\\n CCTK_INT ARRAY OUT hsize)\n\nCCTK_INT FUNCTION Hyperslab_FreeMapping (CCTK_INT IN mapping_handle)\n\n\nREQUIRES FUNCTION Hyperslab_Get\nREQUIRES FUNCTION Hyperslab_GlobalMappingByIndex\nREQUIRES FUNCTION Hyperslab_FreeMapping\n", - "params": "", + "param": "# Parameter definitions for thorn SampleIO\n# $Header$\n\n##############################################\n### Declare all SampleIO parameters as private\n### (not shared by other thorns)\n##############################################\nprivate:\n\nINT out_every \"How often to do SampleIO output, overrides IO::out_every\" STEERABLE = ALWAYS\n{\n 1:* :: \"Every so many iterations\"\n 0: :: \"Disable SampleIO output\"\n -1: :: \"Choose the default from IO::out_every\"\n} -1\n\nSTRING out_vars \"Variables to output by SampleIO\" STEERABLE = ALWAYS\n{\n \".+\" :: \"Space-separated list of fully qualified variable/group names\"\n \"^$\" :: \"An empty string to output nothing\"\n} \"\"\n\nINT point_x \"x-index (starting from 0) locating the array element to output\" STEERABLE = ALWAYS\n{\n 0:* :: \"An index between [0, nx)\"\n} 0\nINT point_y \"y-index (starting from 0) locating the array element to output\" STEERABLE = ALWAYS\n{\n 0:* :: \"An index between [0, ny)\"\n} 0\nINT point_z \"z-index (starting from 0) locating the array element to output\" STEERABLE = ALWAYS\n{\n 0:* :: \"An index between [0, nz)\"\n} 0\n\n\n####################################################\n### Import generic parameters from implementation IO\n####################################################\nshares: IO\n\nUSES INT out_every AS io_out_every\nUSES KEYWORD verbose\nUSES BOOLEAN strict_io_parameter_check\n", "schedule": "# Schedule definitions for thorn SampleIO\n# $Header$\n\n##############################\n### Register SampleIO routines\n##############################\nschedule SampleIO_Startup at STARTUP after IOUtil_Startup\n{\n LANG:C\n} \"Startup routine\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn SampleIO\n# $Header$\n\n# Source files in this directory\nSRCS = Startup.c Output.c Write.c\n", diff --git a/CactusExamples_TimerInfo.json b/CactusExamples_TimerInfo.json index 953c9ffd28894788249c244a1cfb0ff06d570bed..10ef61831ecd343644b2dcc3540fef54027a8a03 100644 --- a/CactusExamples_TimerInfo.json +++ b/CactusExamples_TimerInfo.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusexamples.git", "configuration": "", "interface": "# Interface definition for thorn TimerInfo\n# $Header$\n\nimplements: timerinfo", - "params": "", + "param": "# Parameter definitions for thorn TimerInfo\n# $Header$\n\nprivate:\n\nINT every \"How often to print information\" STEERABLE=always\n{\n 0:* :: \"Positive\"\n} 0\n\nSTRING clock \"Which clock to use\" STEERABLE=always\n{\n .* :: \"Anything\"\n} \"all\"\n\nSTRING timer \"Which timer to use\" STEERABLE=always\n{\n .* :: \"Anything\"\n} \"all\"", "schedule": "# Schedule definitions for thorn TimerInfo\n# $Header$\n\nschedule TimerInfo at CCTK_POSTSTEP\n{\n LANG: C\n} \"Print Information from Cactus Timers\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TestTimers\n# $Header$\n\n# Source files in this directory\nSRCS = TimerInfo.c Custom.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusExamples_WaveMoL.json b/CactusExamples_WaveMoL.json index 274d3e73ebb1a3d29588e534146117049d9f9c95..d6a3c84b423d88df99246c95a697a8ca87850bdb 100644 --- a/CactusExamples_WaveMoL.json +++ b/CactusExamples_WaveMoL.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusexamples.git", "configuration": "# Configuration definition for thorn WaveMoL\n# $Header$\n\nREQUIRES CartGrid3D\n", "interface": "# Interface definition for thorn WaveMoL\n# $Header$\n\nimplements: wavemol\n\nUSES INCLUDE: Symmetry.h\n\nCCTK_INT FUNCTION MoLRegisterEvolvedGroup(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\nCCTK_INT FUNCTION MoLRegisterConstrained(CCTK_INT IN ConstrainedIndex)\n\nREQUIRES FUNCTION MoLRegisterEvolvedGroup\nREQUIRES FUNCTION MoLRegisterConstrained\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT IN faces, CCTK_INT IN width, CCTK_INT IN table_handle,\n CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT FUNCTION Driver_SelectGroupForBC(CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT IN faces, CCTK_INT IN width, CCTK_INT IN table_handle,\n CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectGroupForBC\n\npublic:\n\ncctk_real scalarevolvemol_scalar type = GF Timelevels = 3 tags='tensortypealias=\"Scalar\"'\n{\n phi\n phit\n} \"The scalar field and time derivative\"\n\ncctk_real scalarevolvemol_vector type = GF Timelevels = 3 tags='tensortypealias=\"U\"'\n{\n phix\n phiy\n phiz\n} \"The scalar field spatial derivatives\"\n\ncctk_real scalarrhsmol_scalar type = GF Timelevels = 1\n{\n phirhs\n phitrhs\n} \"The right hand side for the scalar field\"\n\ncctk_real scalarrhsmol_vector type = GF Timelevels = 1\n{\n phixrhs\n phiyrhs\n phizrhs\n} \"The right hand side for the scalar field derivatives\"\n\ncctk_real energy type = GF Timelevels = 1 \"The energy of the field\"\n\n", - "params": "", + "param": "# Parameter definitions for thorn WaveMoL\n# $Header$\n\nshares: MethodOfLines\n\nUSES CCTK_INT MoL_Num_Evolved_Vars\nUSES CCTK_INT MoL_Num_Constrained_Vars\nUSES CCTK_INT MoL_Num_SaveAndRestore_Vars\n\nrestricted:\n\nCCTK_INT WaveMoL_MaxNumEvolvedVars \"The maximum number of evolved variables used by WaveMoL\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Evolved_Vars\n{\n 5:5\t\t:: \"Just 5: phi and the four derivatives\"\n} 5\n\nCCTK_INT WaveMoL_MaxNumConstrainedVars \"The maximum number of constrained variables used by WaveMoL\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Constrained_Vars\n{\n 1:1\t\t:: \"The energy\"\n} 1\n\nprivate:\n\nKEYWORD bound \"Type of boundary condition to use\"\n{\n \"none\" :: \"No boundary condition\"\n \"flat\" :: \"Flat boundary condition\"\n \"radiation\" :: \"Radiation boundary condition\"\n} \"none\"\n", "schedule": "# Schedule definitions for thorn WaveMoL\n# $Header$\n\nSTORAGE: scalarevolvemol_scalar[3], scalarevolvemol_vector[3]\nSTORAGE: scalarrhsmol_scalar, scalarrhsmol_vector\nSTORAGE: energy\n\nschedule WaveMoL_Startup at STARTUP\n{\n LANG: C\n} \"Register Banner\"\n\nschedule WaveMoL_InitSymBound at BASEGRID\n{\n LANG: C\n OPTIONS: META\n} \"Schedule symmetries\"\n\nschedule WaveMoL_RegisterVars in MoL_Register\n{\n LANG: C\n OPTIONS: META\n} \"Register variables for MoL\"\n\nschedule WaveMoL_SelectDriverBC in Driver_BoundarySelect\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Choose boundary condtion for driver to apply\"\n\nschedule WaveMoL_CalcRHS in MoL_CalcRHS\n{\n LANG: C\n READS: wavemol::phit(everywhere), scalarevolvemol_vector\n WRITES: wavemol::scalarrhsmol_scalar(interior), scalarrhsmol_vector\n} \"Register RHS calculation for MoL\"\n\nschedule WaveMoL_Energy in MoL_PostStep\n{\n LANG: C\n READS: wavemol::phit(everywhere), scalarevolvemol_vector\n WRITES: wavemol::energy(everywhere)\n} \"Calculate the energy\"\n\nschedule WaveMoL_Energy at POSTINITIAL\n{\n LANG: C\n} \"Calculate the energy\"\n\nschedule WaveMoL_Boundaries in MoL_PostStep\n{\n LANG: C\n OPTIONS: LEVEL\n SYNC: scalarevolvemol_scalar\n SYNC: scalarevolvemol_vector\n} \"Register boundary enforcement in MoL\"\n\nschedule GROUP ApplyBCs as WaveMoL_ApplyBCs in MoL_PostStep after WaveMoL_Boundaries\n{\n} \"Apply boundary conditions for WaveMoL\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn WaveMoL\n# $Header$\n\n# Source files in this directory\nSRCS = WaveMoL.c InitSymBound.c Startup.c WaveMoLRegister.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusExamples_WaveToy1DF77.json b/CactusExamples_WaveToy1DF77.json index bcda5ab9abdf302f3afb17acac2a6ee69f6ac8ed..9fa79f68cc20601ccb08929841af45c26a4663db 100644 --- a/CactusExamples_WaveToy1DF77.json +++ b/CactusExamples_WaveToy1DF77.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusexamples.git", "configuration": "# Configuration definition for thorn WaveToy1DF77\n# $Header$\n\nREQUIRES Boundary\n", "interface": "# Interface definition for thorn WaveToy1DF77\n# $Header$\n\nimplements: wavetoy1d\n\ninherits: boundary\n\nprivate:\n\ncctk_real evolve1d dim=1 type=GF Timelevels=3\n{\n phi\n} \"The evolved scalar field\"\n\ncctk_real initial dim=1 type=GF\n{\n timederiv\n} \"For initial data\"\n\ncctk_real dummy dim=1 type=GF\n{\n phi_temp\n} \"Just for creating initial data\"\n\ncctk_real coords1d dim=1 type=GF\n{\n x\n} \"The 1D x-coordinate\"\n\nCCTK_INT FUNCTION Coord_SystemRegister \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN dim, \\\n CCTK_STRING IN systemname)\n\nREQUIRES FUNCTION Coord_SystemRegister\n\nCCTK_INT FUNCTION Coord_SystemHandle \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_STRING IN systemname)\n\nREQUIRES FUNCTION Coord_SystemHandle\n\nCCTK_INT FUNCTION Coord_CoordRegister \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN systemhandle, \\\n CCTK_INT IN direction, \\\n CCTK_STRING IN coordname)\n\nREQUIRES FUNCTION Coord_CoordRegister\n\nCCTK_INT FUNCTION Coord_CoordHandle \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_STRING IN coordname, \\\n CCTK_STRING IN systemname)\n\nREQUIRES FUNCTION Coord_CoordHandle\n\nCCTK_INT FUNCTION Coord_GroupSystem \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_STRING IN groupname)\n\nREQUIRES FUNCTION Coord_GroupSystem\n\nCCTK_INT FUNCTION Coord_SetDefaultSystem \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_STRING IN systemname)\n\nREQUIRES FUNCTION Coord_SetDefaultSystem\n\n", - "params": "", + "param": "# Parameter definitions for thorn WaveToy1DF77\n# $Header$\n\nprivate:\n\n# Initial data\n\nreal amplitude \"Amplitude of initial Gaussian wave\"\n{\n 0:* :: \"\"\n} 1.0\n\nreal center \"x-position of center of Gaussian wave\"\n{\n *:* :: \"Anywhere\"\n} 0.5\n\nreal sigma \"Width of Gaussian wave\"\n{\n *:* :: \"Anything\"\n} 0.02\n\n\n# Boundary\n\nkeyword bound \"Which boundary condition to apply\"\n{\n \"zero\" :: \"Set boundary values to zero\"\n \"radiation\" :: \"Radiation/wave boundary conditions\"\n \"none\" :: \"Don't apply any condition\" \n} \"zero\"", "schedule": "# Schedule definitions for thorn WaveToy1DF77\n# $Header$\n\nSTORAGE: evolve1d[3],coords1d\n\nschedule WaveToy1DF77_Startup at STARTUP\n{\n LANG: Fortran\n} \"Register WaveToy1DF77 banner\"\n\nschedule WaveToy1DF77_RegisterCoords at WRAGH\n{\n LANG: Fortran\n} \"Register WaveToy1DF77 coordinates\"\n\nschedule WaveToy1DF77_Coord as SpatialCoordinates at BASEGRID\n{\n LANG: Fortran\n} \"Set up 1D coordinates\"\n\nschedule WaveToy1DF77_Initial at INITIAL\n{\n STORAGE: initial,dummy\n LANG: Fortran\n} \"Initial data for 1D wave equation\"\n\nschedule WaveToy1DF77_Evolve at EVOL\n{\n LANG: Fortran\n SYNC: evolve1d\n} \"Evolution of 1D wave equation\"\n\nschedule WaveToy1DF77_Boundary at EVOL after WaveToy1DF77_Evolve\n{\n LANG: Fortran\n} \"Apply boundary conditions\"\n\n \n", "src": { "make.code.defn": "# Main make.code.defn file for thorn WaveToy1DF77\n# $Header$\n\n# Source files in this directory\nSRCS = Evolve.F77\\\n Startup.F77\\\n Initial.F77\\\n Coord.F77\\\n Boundary.F77\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusExamples_WaveToy2DF77.json b/CactusExamples_WaveToy2DF77.json index bf739110d6f660fcc68f53c6cef04b75edfa0f3b..75771b6a510fae16024c2454f637e85d224b9565 100644 --- a/CactusExamples_WaveToy2DF77.json +++ b/CactusExamples_WaveToy2DF77.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusexamples.git", "configuration": "# Configuration definition for thorn WaveToy2DF77\n# $Header$\n\nREQUIRES Boundary\n", "interface": "# Interface definition for thorn WaveToy2DF77\n# $Header$\n\nimplements: wavetoy2d\ninherits: boundary \n\nprivate:\n\ncctk_real evolve2d dim=2 type=GF Timelevels=3\n{\n phi\n} \"The evolved scalar field\"\n\ncctk_real initial dim=2 type=GF\n{\n timederiv\n} \"For initial data\"\n\ncctk_real coords2d dim=2 type=GF\n{\n x,\n y\n} \"The 2D x and y coordinates\"\n\ncctk_real dummy dim=2 type=GF\n{\n phi_temp\n} \"Just for creating initial data\"\n\nCCTK_INT FUNCTION Coord_SystemRegister \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN dim, \\\n CCTK_STRING IN systemname)\n\nREQUIRES FUNCTION Coord_SystemRegister\n\nCCTK_INT FUNCTION Coord_SystemHandle \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_STRING IN systemname)\n\nREQUIRES FUNCTION Coord_SystemHandle\n\nCCTK_INT FUNCTION Coord_CoordRegister \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN systemhandle, \\\n CCTK_INT IN direction, \\\n CCTK_STRING IN coordname)\n\nREQUIRES FUNCTION Coord_CoordRegister\n\nCCTK_INT FUNCTION Coord_CoordHandle \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_STRING IN coordname, \\\n CCTK_STRING IN systemname)\n\nREQUIRES FUNCTION Coord_CoordHandle\n\nCCTK_INT FUNCTION Coord_GroupSystem \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_STRING IN groupname)\n\nREQUIRES FUNCTION Coord_GroupSystem\n\nCCTK_INT FUNCTION Coord_SetDefaultSystem \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_STRING IN systemname)\n\nREQUIRES FUNCTION Coord_SetDefaultSystem\n", - "params": "", + "param": "# Parameter definitions for thorn WaveToy2DF77\n# $Header$\n\nprivate:\n\n# Initial data\n\nreal amplitude \"Amplitude of initial Gaussian wave\"\n{\n 0:* :: \"\"\n} 1.0\n\nreal xcenter \"x-position of center of Gaussian wave\"\n{\n *:* :: \"Anywhere\"\n} 0.5\n\nreal ycenter \"y-position of center of Gaussian wave\"\n{\n *:* :: \"Anywhere\"\n} 0.5\n\nreal sigma \"Width of Gaussian wave\"\n{\n *:* :: \"Anything\"\n} 0.02\n\n\n# Boundary\n\nkeyword bound \"Which boundary condition to apply\"\n{\n \"zero\" :: \"Set boundary values to zero\"\n \"radiation\" :: \"Radiation/wave boundary conditions\"\n} \"zero\"", "schedule": "# Schedule definitions for thorn WaveToy2DF77\n# $Header$\n\nSTORAGE: evolve2d[3],coords2d\n\nschedule WaveToy2DF77_Startup at STARTUP\n{\n LANG: Fortran\n} \"Register WaveToy2DF77 banner\"\n\nschedule WaveToy2DF77_RegisterCoords at WRAGH\n{\n LANG: Fortran\n} \"Register WaveToy2DF77 coordinates\"\n\nschedule WaveToy2DF77_Coord as SpatialCoordinates at BASEGRID\n{\n LANG: Fortran\n} \"Set up 2D coordinates\"\n\nschedule WaveToy2DF77_Initial at INITIAL\n{\n STORAGE: initial,dummy\n LANG: Fortran\n} \"Initial data for 2D wave equation\"\n\nschedule WaveToy2DF77_Evolve at EVOL\n{\n LANG: Fortran\n SYNC: evolve2d\n} \"Evolution of 2D wave equation\"\n\nschedule WaveToy2DF77_Boundary at EVOL after WaveToy2DF77_Evolve\n{\n LANG: Fortran\n} \"Apply boundary conditions\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn WaveToy2DF77\n# $Header$\n\n# Source files in this directory\nSRCS = Evolve.F77\\\n Startup.F77\\\n Initial.F77\\\n Coord.F77\\\n Boundary.F77\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusIO_IOJpeg.json b/CactusIO_IOJpeg.json index b59b1fab7eeec0fd255115823b46d1323a17f858..a283eb2a789b907fc4d72775e73b0cb5017632a2 100644 --- a/CactusIO_IOJpeg.json +++ b/CactusIO_IOJpeg.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusio.git", "configuration": "# Configuration definitions for thorn IOJpeg\n\nREQUIRES libjpeg\n", "interface": "# Interface definition for thorn IOJpeg\n# $Header$\n\nimplements: IOJpeg\ninherits: IO\n\nCCTK_INT FUNCTION \\\n Hyperslab_Get (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN mapping_handle, \\\n CCTK_INT IN proc, \\\n CCTK_INT IN vindex, \\\n CCTK_INT IN timelevel, \\\n CCTK_INT IN hdatatype, \\\n CCTK_POINTER IN hdata)\n\nCCTK_INT FUNCTION \\\n Hyperslab_GlobalMappingByIndex (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN vindex, \\\n CCTK_INT IN hdim, \\\n CCTK_INT ARRAY IN direction, \\\n CCTK_INT ARRAY IN origin, \\\n CCTK_INT ARRAY IN extent, \\\n CCTK_INT ARRAY IN downsample, \\\n CCTK_INT IN table_handle, \\\n CCTK_INT CCTK_FPOINTER IN \\\n conversion_fn (CCTK_INT IN nelems, \\\n CCTK_INT IN src_stride,\\\n CCTK_INT IN dst_stride,\\\n CCTK_INT IN src_type, \\\n CCTK_INT IN dst_type, \\\n CCTK_POINTER_TO_CONST IN src, \\\n CCTK_POINTER IN dst), \\\n CCTK_INT ARRAY OUT hsize)\n\nCCTK_INT FUNCTION Hyperslab_FreeMapping (CCTK_INT IN mapping_handle)\n\n\nREQUIRES FUNCTION Hyperslab_Get\nREQUIRES FUNCTION Hyperslab_GlobalMappingByIndex\nREQUIRES FUNCTION Hyperslab_FreeMapping\n", - "params": "", + "param": "# Parameter definitions for thorn IOJpeg\n# $Header$\n\n#############################################################################\n### declare IOJpeg parameters\n#############################################################################\nprivate:\n\n########################\n# The basic parameters:\n# how often to do output\n# for which variables\n# into which output directory\n########################\nINT out_every \"How often to do IOJpeg output, overrides IO::out_every\" STEERABLE = ALWAYS\n{\n 1:* :: \"Every so many iterations\"\n 0: :: \"Disable IOJpeg output\"\n -1: :: \"Choose the default from IO::out_every\"\n} -1\n\nSTRING out_vars \"Variables to output by IOJpeg\" STEERABLE = ALWAYS\n{\n \".+\" :: \"Space-separated list of fully qualified variable/group names\"\n \"^$\" :: \"An empty string to output nothing\"\n} \"\"\n\nSTRING out_dir \"Output directory for IOJpeg files, overrides IO::out_dir\" STEERABLE = RECOVER\n{\n \".+\" :: \"A valid directory name\"\n \"^$\" :: \"An empty string to choose the default from IO::out_dir\"\n} \"\"\n\nKEYWORD mode \"Output mode to use\" STEERABLE = ALWAYS\n{\n \"remove\" :: \"Remove files from old timesteps\"\n \"standard\" :: \"Generate a file for each out_every timesteps\"\n} \"standard\"\n\nKEYWORD gridpoints \"How to access grid points\" STEERABLE = RECOVER\n{\n \"hyperslab\" :: \"use locations of grid points\"\n \"interpolate\" :: \"interpolate to arbitrary points\"\n} \"hyperslab\"\n\n\n########################\n# Specific to jpegs\n########################\nREAL colormap_bias \"Bias automatic colormap generation towards red (low) or blue (high)\" STEERABLE = ALWAYS\n{\n -1:1 :: \"Could be unrestricted\"\n} 0.5\n\nINT colormap_quality \"JPEG quality of level\" STEERABLE = ALWAYS\n{\n 0:100 :: \"Percentage of full quality\"\n} 75\n\nINT colormap_factor \"How to scale float values to rgb color\" STEERABLE = ALWAYS\n{\n 2:256 :: \"Positive scaling\"\n} 32\n\nKEYWORD colormap \"How to set the colormap\" STEERABLE = ALWAYS\n{\n \"auto\" :: \"Set automatically using min/max of grid variables\"\n \"auto-old\" :: \"Set automatically using min/max of grid variables, using the old reduction interface which is still used by Carpet\"\n \"custom\" :: \"Set min/max manually\"\n} \"custom\"\n\nREAL colormap_min \"minimum value to be mapped to colors\" STEERABLE = ALWAYS\n{\n *:* :: \"Only for custom colormap scale\"\n} -1.0\nREAL colormap_max \"maximum value to be mapped to colors\" STEERABLE = ALWAYS\n{\n *:* :: \"Only for custom colormap scale\"\n} +1.0\n\nINT refinement_factor \"Refine each 2D slice by a certain factor (using interpolation) ?\" STEERABLE = ALWAYS\n{\n 1:* :: \"A factor greater 0\"\n} 1\n\n\n###################################################\n# Choosing what planes to output when hyperslabbing\n###################################################\nREAL out2D_yzplane_x \"x-coord for 2D planes in yz\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [xmin, xmax]\"\n -424242: :: \"Default to IO::out_yzplane_x\"\n} -424242\nREAL out2D_xzplane_y \"y-coord for 2D planes in xz\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [ymin, ymax]\"\n -424242: :: \"Default to IO::out_xzplane_y\"\n} -424242\nREAL out2D_xyplane_z \"z-coord for 2D planes in xy\" STEERABLE = RECOVER\n{\n *:* :: \"A value between [zmin, zmax]\"\n -424242: :: \"Default to IO::out_xyplane_z\"\n} -424242\n\nINT out2D_yzplane_xi \"x-index (from 0) for 2D planes in yz\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, nx)\"\n -1: :: \"Choose the default from IO::out_yzplane_xi\"\n} -1\nINT out2D_xzplane_yi \"y-index (from 0) for 2D planes in xz\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, ny)\"\n -1: :: \"Choose the default from IO::out_xzplane_yi\"\n} -1\nINT out2D_xyplane_zi \"z-index (from 0) for 2D planes in xy\" STEERABLE = RECOVER\n{\n 0:* :: \"An index between [0, nz)\"\n -1: :: \"Choose the default from IO::out_xyplane_zi\"\n} -1\n\n\n###################################################\n# Choosing what region to output when interpolating\n###################################################\n\nSTRING interpolator_name \"Name of the interpolator\" STEERABLE=always\n{\n \".*\" :: \"must be a registered interpolator\"\n} \"Lagrange polynomial interpolation\"\n\nSTRING interpolator_options \"Options for the interpolator\" STEERABLE=always\n{\n \".*\" :: \"must be a valid option specification\"\n} \"order=2\"\n\nSTRING interpolator_coordinates \"Coordinate system\" STEERABLE=always\n{\n \".*\" :: \"must be a registered coordinate system\"\n} \"cart3d\"\n\nBOOLEAN multiply_by_radius \"Multiply valus by r\" STEERABLE=always\n{\n} \"no\"\n\n\n\nREAL array2d_x0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nREAL array2d_y0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nREAL array2d_z0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nINT array2d_npoints_i \"Number of grid points for the 2D grid arrays in the i direction\"\n{\n 0:* :: \"\"\n} 10\n\nREAL array2d_dx_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL array2d_dy_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL array2d_dz_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nINT array2d_npoints_j \"Number of grid points for the 2D grid arrays in the j direction\"\n{\n 0:* :: \"\"\n} 10\n\nREAL array2d_dx_j \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL array2d_dy_j \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL array2d_dz_j \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\n\n#############################################################################\n### import IOUtil parameters\n#############################################################################\nshares: IO\n\nUSES STRING out_dir AS io_out_dir\nUSES INT out_every AS io_out_every\nUSES KEYWORD verbose\nUSES BOOLEAN strict_io_parameter_check\nUSES REAL out_yzplane_x\nUSES REAL out_xzplane_y\nUSES REAL out_xyplane_z\nUSES INT out_yzplane_xi\nUSES INT out_xzplane_yi\nUSES INT out_xyplane_zi\n", "schedule": "# Schedule definitions for thorn IOJpeg\n# $Header$\n\n########################################################################\n### register IOJpeg routines\n########################################################################\nschedule IOJpeg_Startup at STARTUP after IOUtil_Startup\n{\n LANG:C\n} \"Startup routine\"\n\nschedule IOJpeg_ChooseOutput at BASEGRID after SpatialCoordinates\n{\n LANG:C\n} \"Choose 2D output planes\"\n", "src": { "ioJpegGH.h": " /*@@\n @header ioJpegGH.h\n @date Thu 18 April 2002\n @author Thomas Radke\n @desc\n The extensions to the GH structure from IOJpeg.\n @enddesc\n @version $Header$\n @@*/\n\n#ifndef IOJPEG_IOJPEGGH_H_\n#define IOJPEG_IOJPEGGH_H_ 1\n\n#include \n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\ntypedef struct IOJpegGH\n{\n /* default number of times to output */\n int out_every_default;\n\n /* number of times to output every variable */\n CCTK_INT *out_every;\n\n /* the last iteration output for every variable */\n int *out_last;\n\n /* list of variables to output */\n char *out_vars;\n\n /* directories in which to output */ \n char *out_dir;\n\n /* for 2D planes, we define the index where to locate the plane\n sp2xyz[maxdim][perpendicular direction] */\n int **sp2xyz;\n\n /* stop on I/O parameter parsing errors ? */\n int stop_on_parse_errors;\n\n} ioJpegGH;\n\n\n/* prototypes of functions to be registered as I/O method */\nint IOJpeg_OutputGH (const cGH *GH);\nint IOJpeg_OutputVarAs (const cGH *GH, const char *fullname, const char *alias);\nint IOJpeg_TimeFor (const cGH *GH, int vindex);\nint IOJpeg_TriggerOutput (const cGH *GH, int vindex);\n\n/* other function prototypes */\nint IOJpeg_Write (const cGH *GH, CCTK_INT vindex, const char *alias);\nvoid IOJpeg_CheckSteerableParameters (ioJpegGH *myGH);\n\n/* routines called from JPEG.c */\nint WriteJPEGToFileRGB (int nx, int ny, void *data, int Quality, FILE* outfile);\nint WriteJPEGToMemoryRGB (int nx, int ny, void *data, int Quality, char *buffer,\n int buffersize);\nvoid AutoColorDataSlice (int nx, int ny, const CCTK_REAL *datain,\n unsigned char *dataout, CCTK_REAL min, CCTK_REAL max,\n CCTK_REAL bias, int rdfac);\n\n#ifdef __cplusplus\n} // extern \"C\"\n#endif\n\n#endif /* IOJPEG_IOJPEGGH_H_ */\n", diff --git a/CactusNumerical_Cartoon2D.json b/CactusNumerical_Cartoon2D.json index 163126a85c805e726c6546d57a9f14b1d82505c9..7704599a2302e61a86d5c2863e42b6335a4b1dbe 100644 --- a/CactusNumerical_Cartoon2D.json +++ b/CactusNumerical_Cartoon2D.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusnumerical.git", "configuration": "# Configuration definition for thorn Cartoon2D\n# $Header$\n\nREQUIRES SpaceMask\n", "interface": "# Interface definition for thorn Cartoon2D\n# $Header$\n\nimplements: cartoon2d\n\nINCLUDES HEADER: Cartoon2D_tensors.h in Cartoon2D_tensors.h\nINCLUDES HEADER: Cartoon2D.h in Cartoon2D.h\n\nUSES INCLUDE: SpaceMask.h\n\n# Function aliases:\n\nCCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name)\nREQUIRES FUNCTION SymmetryRegister\n\n# which_faces : array [N_FACES] \n# symmetry_zone_width: array [N_FACES]\nCCTK_INT FUNCTION \\\n SymmetryRegisterGrid \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT IN ARRAY which_faces, \\\n CCTK_INT IN ARRAY symmetry_zone_width)\nREQUIRES FUNCTION SymmetryRegisterGrid\n\nCCTK_INT FUNCTION \\\n SymmetryRegisterGridInterpolator \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT CCTK_FPOINTER IN symmetry_interpolate \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays, \\\n CCTK_INT IN faces))\nREQUIRES FUNCTION SymmetryRegisterGridInterpolator\n\nCCTK_INT FUNCTION \\\n SymmetryInterpolateFaces \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays, \\\n CCTK_INT IN faces)\nREQUIRES FUNCTION SymmetryInterpolateFaces\n\nCCTK_INT FUNCTION \\\n GetBoundarySpecification \\\n (CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nREQUIRES FUNCTION GetBoundarySpecification\n\nprivate:\n\nint excision_variables type=SCALAR\n{\n excision_active\n old_mask_vi\n new_mask_vi\n new_excision_field\n new_excision_descriptor\n} \"Internal variables to store information about excision\"\n", - "params": "", + "param": "# Parameter definitions for thorn Cartoon2D\n# $Header$\n\nprivate:\n\nBOOLEAN cartoon_active \"Activate cartoon boundary condition\"\n{\n} \"no\"\n\nBOOLEAN verbose \"Verbose information\"\n{\n} \"no\"\n\nBOOLEAN stencil \"Use custom 2D stencil if available\"\n{\n} \"yes\"\n\nINT order \"Cartoon's interpolation order\"\n{\n 1:5 :: \"From linear to fifth order.\"\n} 4\n\nINT eno_order \"The interpolation order applied to the ENO interpolator\"\n{\n 1:5 :: \"From linear to fifth order.\"\n} 4\n\nBOOLEAN allow_grid_resize \"Allow grid to be resized in a cartoon-compatible way\"\n{\n} \"no\"\n\nBOOLEAN old_excision \"Are we doing excision based on the old style mask?\"\n{\n} \"no\"\n\nBOOLEAN new_excision \"Are we doing excision based on the new style mask?\"\n{\n} \"no\"\n\nSTRING old_style_excision_var \"The variable to be checked for old style excision\"\n{\n \".*\" :: \"Expected to be \\'Spacemask::emask\\'\"\n} \"\"\n\nSTRING new_style_excision_var \"The variable to be checked for new style excision\"\n{\n \".*\" :: \"Expected to be \\'Spacemask::space_mask\\'\"\n} \"\"\n\nSTRING new_mask_field_name \"The name of the field that describes excision for the new mask\"\n{\n \".*\" :: \"Could be anything\"\n} \"\"\n\nSTRING new_mask_excised_name \"The name of the descriptor that says the point is excised for the new mask\"\n{\n \".*\" :: \"Could be anything\"\n} \"\"\n", "schedule": "# Schedule definitions for thorn Cartoon2D\n# $Header$\n\nif (cartoon_active)\n{\n STORAGE: excision_variables\n\n schedule Cartoon2D_CheckTensorTypes at CCTK_PARAMCHECK\n {\n LANG: C\n OPTIONS: meta\n } \"Check tensor type definitions for consistency\"\n\n schedule Cartoon2D_InitExcisionVars at CCTK_BASEGRID\n {\n LANG: C\n OPTIONS: global\n } \"Initialize the excision variables\"\n\n if (allow_grid_resize)\n {\n schedule Cartoon2D_SetGrid at CCTK_RECOVER_PARAMETERS\n {\n LANG: C\n } \"Adjust grid sizes\"\n }\n\n schedule Cartoon2D_RegisterSymmetries in SymmetryRegister\n {\n LANG: C\n OPTIONS: global\n } \"Register symmetry boundaries\"\n\n schedule Cartoon2D_CheckParameters at CCTK_PARAMCHECK\n {\n LANG: C\n OPTIONS: meta\n } \"Check Cartoon2D parameters\"\n\n # Apply cartoon boundary conditions after physical boundaries:\n schedule Cartoon_ApplyBoundaries in BoundaryConditions after Boundary_ApplyPhysicalBCs\n {\n LANG: C\n } \"Apply Cartoon boundary conditions\"\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Cartoon2D\n# $Header$\n\n# Source files in this directory\nSRCS = ApplyCartoon.c CheckParameters.c Cartoon2DBC.c interpolate.c RegisterSym.c SymInterp.c SetGrid.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusNumerical_Dissipation.json b/CactusNumerical_Dissipation.json index f576962b1d71cda47aa11594d608a109a6274715..1603bf27215621fdfd88e390a458e83ae9026da0 100644 --- a/CactusNumerical_Dissipation.json +++ b/CactusNumerical_Dissipation.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusnumerical.git", "configuration": "# Configuration definition for thorn Dissipation\n# $Header$\n\nREQUIRES THORNS: SphericalSurface\n", "interface": "# Interface definition for thorn Dissipation\n# $Header$\n\nIMPLEMENTS: Dissipation\n\nINHERITS: grid SphericalSurface SpaceMask\n\nCCTK_INT FUNCTION MoLQueryEvolvedRHS (CCTK_INT IN EvolvedIndex)\nREQUIRES FUNCTION MoLQueryEvolvedRHS\n\nCCTK_INT FUNCTION \\\n SymmetryTableHandleForGrid (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION SymmetryTableHandleForGrid\n\nCCTK_INT FUNCTION HorizonRadiusInDirection \\\n (CCTK_INT IN horizon_number, \\\n CCTK_INT IN N_points, \\\n CCTK_REAL IN ARRAY x, CCTK_REAL IN ARRAY y, CCTK_REAL IN ARRAY z, \\\n CCTK_REAL OUT ARRAY radius)\nUSES FUNCTION HorizonRadiusInDirection\n\n\n\nPRIVATE:\n\nREAL epsdisA_group TYPE=gf TAGS='Checkpoint=\"no\" Prolongation=\"none\"'\n{\n epsdisA\n} \"dissipation array for spatially different dissipation\"\n", - "params": "", + "param": "# Parameter definitions for thorn Dissipation\n# $Header$\n\nrestricted:\n\nBOOLEAN verbose \"produce log output\" STEERABLE=always\n{\n} \"no\"\n\nINT order \"Dissipation order\" STEERABLE=always\n{\n 1 :: \"first order accurate dissipation (using a second derivative)\"\n 3 :: \"third order accurate dissipation (using a fourth derivative)\"\n 5 :: \"fifth order accurate dissipation (using a sixth derivative)\"\n 7 :: \"seventh order accurate dissipation (using an eighth derivative)\"\n 9 :: \"ninth order accurate dissipation (using a tenth derivative)\"\n} 3\n\nREAL epsdis \"Dissipation strength\" STEERABLE=always\n{\n *:* :: \"0 for no dissipation. Unstable for epsdis<0 and epsdis>1/3\"\n} 0.2\n\nSTRING vars \"List of evolved grid functions that should have dissipation added\" STEERABLE=always\n{\n .* :: \"must be a valid list of grid functions\"\n} \"\"\n\nREAL epsdis_for_level[32] \"Alternate epsdis for a specific refinement level\" \\\n STEERABLE=always\n{\n : :: \"Negative indicates use default\"\n} -1.0\n\n# No dissipation near excision boundary\n\nBOOLEAN use_dissipation_near_excision \"Apply excision near the excision boundary (does not work for high orders)\"\n{\n} \"yes\"\n\n\n\n# Extra dissipation in horizons\n\nBOOLEAN extra_dissipation_in_horizons \"extra dissipation in horizons\" STEERABLE=always\n{\n} \"no\"\n\nINT update_ah_every \"how often to update the AH information for dissipation\" STEERABLE=always\n{\n 0:* :: \"positive iteration number\"\n} 1\n\nREAL ah_slope \"Slope inside AH\" STEERABLE=always\n{\n *:* :: \"Slope from the outside value to the inside value in AHs\"\n} 0.2\n\nREAL ah_radius_offset \"Offset to the distance from the AH.\" STEERABLE=always\n{\n *:* :: \"negative values shift inwards, positive outwards\"\n} 0.0\n\nREAL ah_max_epsdis \"maximal epsdis\" STEERABLE=always\n{\n *:* :: \"<0 for 'off', >=0 for maximal epsdis in horizon\"\n} -1.0\n\nINT surface_number[100] \"horizon number for extra dissipation in horizons -- SphericalSurface number\" STEERABLE=always\n{\n -1 :: \"do not use a spherical surface\"\n 0:* :: \"surface number (from SphericalSurface); starts from 0\"\n} -1\n\nINT horizon_number[100] \"horizon number for extra dissipation in horizons -- AHFinderDirect number\" STEERABLE=always\n{\n -1 :: \"do not use a horizon\"\n 1:* :: \"horizon number (from AHFinderDirect); starts from 1\"\n} -1\n\nBOOLEAN respect_emask \"respect excision mask\" STEERABLE=always\n{\n} \"no\"\n\n\n\n# Extra dissipation at outer boundary\n\nBOOLEAN extra_dissipation_at_outerbound \"increase dissipation at outer boundary\" STEERABLE=always\n{\n} \"no\"\n\nINT outer_bound_npoints \"number of points in which dissipation should be increased\" STEERABLE=always\n{\n 0:* :: \"positive number\"\n} 3\n\nREAL ob_slope \"slope at outer boundary\" STEERABLE=always\n{\n 0:* :: \"increase dissipation\"\n} 5\n\nREAL outer_boundary_max_epsdis \"maximal epsdis\" STEERABLE=always\n{\n *:* :: \"<0 for 'off', >=0 for maximal epsdis at the outer boundary\"\n} -1.0\n\n\n\nshares: SpaceMask\n\nUSES BOOLEAN use_mask\n", "schedule": "# Schedule definitions for thorn Dissipation\n# $Header$\n\nSTORAGE: epsdisA_group\n\nSCHEDULE dissipation_paramcheck AT paramcheck\n{\n LANG: C\n} \"Check dissipation parameters for consistency\"\n\nSCHEDULE dissipation_basegrid AT basegrid\n{\n LANG: C\n WRITES: Dissipation::epsdisA(everywhere)\n} \"Ensure that there are enough ghost zones\"\n\nSCHEDULE setup_epsdis AT cctk_poststep after SphericalSurface_HasBeenSet\n{\n LANG: C\n SYNC: epsdisA_group\n READS: grid::x, grid::y, grid::z\n READS: SpaceMask::emask\n READS: SphericalSurface::sf_info\n READS: SphericalSurface::sf_origin\n READS: SphericalSurface::sf_valid\n WRITES: Dissipation::epsdisA(everywhere)\n} \"Setup spatially varying dissipation\"\n\nSCHEDULE setup_epsdis AT cctk_postregridinitial\n{\n LANG: C\n SYNC: epsdisA_group\n READS: grid::x, grid::y, grid::z\n READS: SpaceMask::emask\n READS: SphericalSurface::sf_info\n READS: SphericalSurface::sf_origin\n READS: SphericalSurface::sf_valid\n WRITES: Dissipation::epsdisA(everywhere)\n} \"Setup spatially varying dissipation\"\n\nSCHEDULE setup_epsdis AT cctk_postregrid\n{\n LANG: C\n SYNC: epsdisA_group\n READS: grid::x, grid::y, grid::z\n READS: SpaceMask::emask\n READS: SphericalSurface::sf_info\n READS: SphericalSurface::sf_origin\n READS: SphericalSurface::sf_valid\n WRITES: Dissipation::epsdisA(everywhere)\n} \"Setup spatially varying dissipation\"\n\nSCHEDULE dissipation_add IN MoL_PostRHS\n{\n LANG: C\n READS: epsdisA_group\n} \"Add Kreiss-Oliger dissipation to the right hand sides\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Dissipation\n# $Header$\n\n# Source files in this directory\nSRCS = apply_dissipation.F77 basegrid.c dissipation.c paramcheck.c setup_epsdis.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusNumerical_InterpToArray.json b/CactusNumerical_InterpToArray.json index 94caecf010c12c0f84751e3fcd75cdc490413e9b..d99e727871f90a78456a77fbb06126f6dce3a891 100644 --- a/CactusNumerical_InterpToArray.json +++ b/CactusNumerical_InterpToArray.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusnumerical.git", "configuration": "", "interface": "# Interface definition for thorn InterpToArray\n\nIMPLEMENTS: InterpToArray\n\nCCTK_INT FUNCTION \\\n InterpGridArrays \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN order, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_POINTER_TO_CONST IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_POINTER IN output_arrays)\nUSES FUNCTION InterpGridArrays\n\nPUBLIC:\n\nREAL scalars[nscalars] TYPE=scalar\n\nREAL arrays1d[narrays1d] TYPE=array DIM=1 DISTRIB=constant SIZE=array1d_npoints_i\nREAL arrays2d[narrays2d] TYPE=array DIM=2 DISTRIB=constant SIZE=array2d_npoints_i,array2d_npoints_j\nREAL arrays3d[narrays3d] TYPE=array DIM=3 DISTRIB=constant SIZE=array3d_npoints_i,array3d_npoints_j,array3d_npoints_k\n\nREAL parrays1d[nparrays1d] TYPE=array DIM=1 DISTRIB=default SIZE=parray1d_npoints_i GHOSTSIZE=nghosts\nREAL parrays2d[nparrays2d] TYPE=array DIM=2 DISTRIB=default SIZE=parray2d_npoints_i,parray2d_npoints_j GHOSTSIZE=nghosts,nghosts\nREAL parrays3d[nparrays3d] TYPE=array DIM=3 DISTRIB=default SIZE=parray3d_npoints_i,parray3d_npoints_j,parray3d_npoints_k GHOSTSIZE=nghosts,nghosts,nghosts\n", - "params": "", + "param": "# Parameter definitions for thorn InterpToArray\n\nRESTRICTED:\n\n# CCTK_InterpGridArrays parameters\n\nSTRING interpolator_name \"Name of the interpolator\" STEERABLE=always\n{\n \".*\" :: \"must be a registered interpolator\"\n} \"Lagrange polynomial interpolation\"\n\nSTRING interpolator_options \"Options for the interpolator\" STEERABLE=always\n{\n \".*\" :: \"must be a valid option specification\"\n} \"order=2\"\n\nSTRING interpolator_coordinates \"Coordinate system\" STEERABLE=always\n{\n \".*\" :: \"must be a registered coordinate system\"\n} \"cart3d\"\n\n# InterpGridArrays ie. CarpetInterp2 parameters\n\nBOOLEAN use_carpetinterp2 \"Use InterpGridArrays rather than CCTK_InterpGridArrays\" STEERABLE=always\n{\n} \"no\"\n\nINT carpetinterp2_interpolator_order \"Order of interpolation for CarpetInterp2\" STEERABLE=always\n{\n 0:* :: \"any order supported by CarpetInterp2\"\n} 2\n\n\n# Common parameters\n\nINT nghosts \"Number of ghost zones\"\n{\n 0:* :: \"\"\n} 0\n\n\n\nINT nscalars \"Number of grid scalars\"\n{\n 0:100 :: \"\"\n} 0\n\nSTRING scalar_vars[100] \"Names of the grid functions that should be interpolated on a point\" STEERABLE=always\n{\n \"^$\" :: \"do not interpolate\"\n \"^[A-Za-z][A-Za-z0-9_]*[:][:][A-Za-z][A-Za-z0-9_]*$\" :: \"grid function name\"\n} \"\"\n\nREAL scalar_x0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nREAL scalar_y0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nREAL scalar_z0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\n\n\nINT narrays1d \"Number of 1D grid arrays\"\n{\n 0:100 :: \"\"\n} 0\n\nSTRING array1d_vars[100] \"Names of the grid functions that should be interpolated on a line\" STEERABLE=always\n{\n \"^$\" :: \"do not interpolate\"\n \"^[A-Za-z][A-Za-z0-9_]*[:][:][A-Za-z][A-Za-z0-9_]*$\" :: \"grid function name\"\n} \"\"\n\nINT array1d_spacederivs[100] \"Space derivative orders for each grid function\"\n{\n 0:* :: \"\"\n} 0\n\nINT array1d_timederivs[100] \"Time derivative order for each grid function\"\n{\n 0:* :: \"\"\n} 0\n\nREAL array1d_x0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nREAL array1d_y0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nREAL array1d_z0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nINT array1d_npoints_i \"Number of grid points for the 1D grid arrays in the i direction\"\n{\n 0:* :: \"\"\n} 0\n\nREAL array1d_dx_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL array1d_dy_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL array1d_dz_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\n\n\nINT narrays2d \"Number of 2D grid arrays\"\n{\n 0:100 :: \"\"\n} 0\n\nSTRING array2d_vars[100] \"Names of the grid functions that should be interpolated on a 2D grid\" STEERABLE=always\n{\n \"^$\" :: \"do not interpolate\"\n \"^[A-Za-z][A-Za-z0-9_]*[:][:][A-Za-z][A-Za-z0-9_]*$\" :: \"grid function name\"\n} \"\"\n\nREAL array2d_x0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nREAL array2d_y0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nREAL array2d_z0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nINT array2d_npoints_i \"Number of grid points for the 2D grid arrays in the i direction\"\n{\n 0:* :: \"\"\n} 0\n\nREAL array2d_dx_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL array2d_dy_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL array2d_dz_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nINT array2d_npoints_j \"Number of grid points for the 2D grid arrays in the j direction\"\n{\n 0:* :: \"\"\n} 0\n\nREAL array2d_dx_j \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL array2d_dy_j \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL array2d_dz_j \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\n\n\nINT narrays3d \"Number of 3D grid arrays\"\n{\n 0:100 :: \"\"\n} 0\n\nSTRING array3d_vars[100] \"Names of the grid functions that should be interpolated on a 3D grid\" STEERABLE=always\n{\n \"^$\" :: \"do not interpolate\"\n \"^[A-Za-z][A-Za-z0-9_]*[:][:][A-Za-z][A-Za-z0-9_]*$\" :: \"grid function name\"\n} \"\"\n\nREAL array3d_x0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nREAL array3d_y0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nREAL array3d_z0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nINT array3d_npoints_i \"Number of grid points for the 3D grid arrays in the i direction\"\n{\n 0:* :: \"\"\n} 0\n\nREAL array3d_dx_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL array3d_dy_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL array3d_dz_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nINT array3d_npoints_j \"Number of grid points for the 3D grid arrays in the j direction\"\n{\n 0:* :: \"\"\n} 0\n\nREAL array3d_dx_j \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL array3d_dy_j \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL array3d_dz_j \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nINT array3d_npoints_k \"Number of grid points for the 3D grid arrays in the k direction\"\n{\n 0:* :: \"\"\n} 0\n\nREAL array3d_dx_k \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL array3d_dy_k \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL array3d_dz_k \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\n\n\nINT nparrays1d \"Number of 1D parallel grid arrays\"\n{\n 0:100 :: \"\"\n} 0\n\nSTRING parray1d_vars[100] \"Names of the grid functions that should be interpolated on a line\" STEERABLE=always\n{\n \"^$\" :: \"do not interpolate\"\n \"^[A-Za-z][A-Za-z0-9_]*[:][:][A-Za-z][A-Za-z0-9_]*$\" :: \"grid function name\"\n} \"\"\n\nINT parray1d_spacederivs[100] \"Space derivative orders for each grid function\"\n{\n 0:* :: \"\"\n} 0\n\nINT parray1d_timederivs[100] \"Time derivative order for each grid function\"\n{\n 0:* :: \"\"\n} 0\n\nREAL parray1d_x0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nREAL parray1d_y0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nREAL parray1d_z0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nINT parray1d_npoints_i \"Number of grid points for the 1D grid parrays in the i direction\"\n{\n 0:* :: \"\"\n} 0\n\nREAL parray1d_dx_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL parray1d_dy_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL parray1d_dz_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\n\n\nINT nparrays2d \"Number of 2D parallel grid arrays\"\n{\n 0:100 :: \"\"\n} 0\n\nSTRING parray2d_vars[100] \"Names of the grid functions that should be interpolated on a 2D grid\" STEERABLE=always\n{\n \"^$\" :: \"do not interpolate\"\n \"^[A-Za-z][A-Za-z0-9_]*[:][:][A-Za-z][A-Za-z0-9_]*$\" :: \"grid function name\"\n} \"\"\n\nREAL parray2d_x0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nREAL parray2d_y0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nREAL parray2d_z0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nINT parray2d_npoints_i \"Number of grid points for the 2D parallel grid arrays in the i direction\"\n{\n 0:* :: \"\"\n} 0\n\nREAL parray2d_dx_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL parray2d_dy_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL parray2d_dz_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nINT parray2d_npoints_j \"Number of grid points for the 2D parallel grid arrays in the j direction\"\n{\n 0:* :: \"\"\n} 0\n\nREAL parray2d_dx_j \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL parray2d_dy_j \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL parray2d_dz_j \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\n\n\nINT nparrays3d \"Number of 3D grid parrays\"\n{\n 0:100 :: \"\"\n} 0\n\nSTRING parray3d_vars[100] \"Names of the grid functions that should be interpolated on a 3D grid\" STEERABLE=always\n{\n \"^$\" :: \"do not interpolate\"\n \"^[A-Za-z][A-Za-z0-9_]*[:][:][A-Za-z][A-Za-z0-9_]*$\" :: \"grid function name\"\n} \"\"\n\nREAL parray3d_x0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nREAL parray3d_y0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nREAL parray3d_z0 \"Origin\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nINT parray3d_npoints_i \"Number of grid points for the 3D parallel grid arrays in the i direction\"\n{\n 0:* :: \"\"\n} 0\n\nREAL parray3d_dx_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL parray3d_dy_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL parray3d_dz_i \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nINT parray3d_npoints_j \"Number of grid points for the 3D parallel grid arrays in the j direction\"\n{\n 0:* :: \"\"\n} 0\n\nREAL parray3d_dx_j \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL parray3d_dy_j \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL parray3d_dz_j \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nINT parray3d_npoints_k \"Number of grid points for the 3D parallel grid arrays in the k direction\"\n{\n 0:* :: \"\"\n} 0\n\nREAL parray3d_dx_k \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL parray3d_dy_k \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\nREAL parray3d_dz_k \"Spacing\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n", "schedule": "# Schedule definitions for thorn InterpToArray\n\nSCHEDULE InterpToArray AT analysis\n{\n LANG: C\n OPTIONS: global\n STORAGE: scalars arrays1d arrays2d arrays3d parrays1d parrays2d parrays3d\n TRIGGERS: scalars arrays1d arrays2d arrays3d parrays1d parrays2d parrays3d\n WRITES: InterpToArray::scalars(everywhere), arrays1d, arrays2d, arrays3d\n WRITES: InterpToArray::parrays1d(everywhere), parrays2d, parrays3d\n} \"Interpolate to grid arrays\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn InterpToArray\n\n# Source files in this directory\nSRCS = interp.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusNumerical_LocalInterp.json b/CactusNumerical_LocalInterp.json index 60fff6d95cd5bd9dea7bf761a6362a4d41602bf3..70fb582763ddbfab49660f64cd99aaa42d368e63 100644 --- a/CactusNumerical_LocalInterp.json +++ b/CactusNumerical_LocalInterp.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusnumerical.git", "configuration": "", "interface": "# Interface definition for thorn LocalInterp\n# $Header$\n\nimplements: LocalInterp\n\n# this thorn doesn't define or use any Cactus grid variables\n", - "params": "", + "param": "# Parameter definitions for thorn LocalInterp\n# $Header$\n\n# there are no parameters for this thorn\n", "schedule": "# Schedule definitions for thorn LocalInterp\n# $Header$\n\nSchedule LocalInterp_Startup at STARTUP after Driver_Startup\n{\nLANG:C\n} \"register LocalInterp's interpolation operators\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn LocalInterp\n# $Header$\n\n# Source files in this directory\nSRCS = Startup.c Operator.c Interpolate.c\n", diff --git a/CactusNumerical_LocalInterp2.json b/CactusNumerical_LocalInterp2.json index b600f85c1435062ba7e79565c6d45a47e2dc2de7..1804b05ba78e34103f2f2f8c22a37228166eb247 100644 --- a/CactusNumerical_LocalInterp2.json +++ b/CactusNumerical_LocalInterp2.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusnumerical.git", "configuration": "", "interface": "# Interface definition for thorn LocalInterp2\n# $Header$\n\nimplements: LocalInterp\n\nINCLUDE HEADER: LagrangeInterp.hh IN LagrangeInterp.hh\n\n# this thorn doesn't define or use any Cactus grid variables\n", - "params": "", + "param": "# Parameter definitions for thorn LocalInterp2\n# $Header$\n\n# there are no parameters for this thorn\n", "schedule": "# Schedule definitions for thorn LocalInterp2\n# $Header$\n\nSchedule LocalInterp2_Startup at STARTUP after Driver_Startup\n{\nLANG:C\n} \"register LocalInterp2's interpolation operators\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn LocalInterp\n# $Header$\n\n# Source files in this directory\nSRCS = Startup.c Operator.c Interpolate.cc\n", diff --git a/CactusNumerical_LocalReduce.json b/CactusNumerical_LocalReduce.json index 5af8f4b09bbe728d453364e7b3f275f7c67c18a3..a978143dc16d839b8e678f0425837d0a58abb4a5 100644 --- a/CactusNumerical_LocalReduce.json +++ b/CactusNumerical_LocalReduce.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusnumerical.git", "configuration": "", "interface": "# Interface definition for thorn LocalReduce\n# $Header$\n\nImplements: LocalReduce\n", - "params": "", + "param": "# Parameter definitions for thorn LocalReduce\n# $Header$\n\n", "schedule": "# Schedule definitions for thorn LocalReduce\n# $Header$\n\nschedule LocalReduce_Startup at STARTUP\n{\n LANG:C\n} \"Startup routine\"\n", "src": { "Sum_Functions.h": " /*@@\n @header Sum_Functions.h\n @date \n @author Tom Goodale, Yaakoub Y El Khamra\n @desc\n Prototypes for sum reduction operators\n @enddesc\n @version $Header$\n @@*/\n\n#ifndef _SUM_FUNCTIONS_H_\n#define _SUM_FUNCTIONS_H_\n\n#include \"cctk.h\"\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* Sum reduction functions */\nint LocalReduce_Sum_BYTE(int i, int weight_on, const void * const weight, CCTK_INT * input_array_offsets, int * indices, int max_iter, int * actual_indices, CCTK_INT * input_array_strides, CCTK_INT * input_array_min_subscripts,const CCTK_INT * input_array_dims, int num_points, int * actual_iters_per_dim, int * iters_per_dim, int N_dims, const void *const input_arrays[], const CCTK_INT output_number_type_codes[], void * const output_numbers[], int param_table_handle);\n\nint LocalReduce_Sum_INT(int i, int weight_on, const void * const weight, CCTK_INT * input_array_offsets, int * indices, int max_iter, int * actual_indices, CCTK_INT * input_array_strides, CCTK_INT * input_array_min_subscripts,const CCTK_INT * input_array_dims, int num_points, int * actual_iters_per_dim, int * iters_per_dim, int N_dims, const void *const input_arrays[], const CCTK_INT output_number_type_codes[], void * const output_numbers[], int param_table_handle);\n\n#ifdef HAVE_CCTK_INT1\nint LocalReduce_Sum_INT1(int i, int weight_on, const void * const weight, CCTK_INT * input_array_offsets, int * indices, int max_iter, int * actual_indices, CCTK_INT * input_array_strides, CCTK_INT * input_array_min_subscripts,const CCTK_INT * input_array_dims, int num_points, int * actual_iters_per_dim, int * iters_per_dim, int N_dims, const void *const input_arrays[], const CCTK_INT output_number_type_codes[], void * const output_numbers[], int param_table_handle);\n#endif \n\n#ifdef HAVE_CCTK_INT2\nint LocalReduce_Sum_INT2(int i, int weight_on, const void * const weight, CCTK_INT * input_array_offsets, int * indices, int max_iter, int * actual_indices, CCTK_INT * input_array_strides, CCTK_INT * input_array_min_subscripts,const CCTK_INT * input_array_dims, int num_points, int * actual_iters_per_dim, int * iters_per_dim, int N_dims, const void *const input_arrays[], const CCTK_INT output_number_type_codes[], void * const output_numbers[], int param_table_handle);\n#endif\n\n#ifdef HAVE_CCTK_INT4\nint LocalReduce_Sum_INT4(int i, int weight_on, const void * const weight, CCTK_INT * input_array_offsets, int * indices, int max_iter, int * actual_indices, CCTK_INT * input_array_strides, CCTK_INT * input_array_min_subscripts,const CCTK_INT * input_array_dims, int num_points, int * actual_iters_per_dim, int * iters_per_dim, int N_dims, const void *const input_arrays[], const CCTK_INT output_number_type_codes[], void * const output_numbers[], int param_table_handle);\n#endif\n\n#ifdef HAVE_CCTK_INT8\nint LocalReduce_Sum_INT8(int i, int weight_on, const void * const weight, CCTK_INT * input_array_offsets, int * indices, int max_iter, int * actual_indices, CCTK_INT * input_array_strides, CCTK_INT * input_array_min_subscripts,const CCTK_INT * input_array_dims, int num_points, int * actual_iters_per_dim, int * iters_per_dim, int N_dims, const void *const input_arrays[], const CCTK_INT output_number_type_codes[], void * const output_numbers[], int param_table_handle);\n#endif\n\nint LocalReduce_Sum_REAL(int i, int weight_on, const void * const weight, CCTK_INT * input_array_offsets, int * indices, int max_iter, int * actual_indices, CCTK_INT * input_array_strides, CCTK_INT * input_array_min_subscripts,const CCTK_INT * input_array_dims, int num_points, int * actual_iters_per_dim, int * iters_per_dim, int N_dims, const void *const input_arrays[], const CCTK_INT output_number_type_codes[], void * const output_numbers[], int param_table_handle);\n\n#ifdef HAVE_CCTK_REAL4\nint LocalReduce_Sum_REAL4(int i, int weight_on, const void * const weight, CCTK_INT * input_array_offsets, int * indices, int max_iter, int * actual_indices, CCTK_INT * input_array_strides, CCTK_INT * input_array_min_subscripts,const CCTK_INT * input_array_dims, int num_points, int * actual_iters_per_dim, int * iters_per_dim, int N_dims, const void *const input_arrays[], const CCTK_INT output_number_type_codes[], void * const output_numbers[], int param_table_handle);\n#endif\n\n#ifdef HAVE_CCTK_REAL8\nint LocalReduce_Sum_REAL8(int i, int weight_on, const void * const weight, CCTK_INT * input_array_offsets, int * indices, int max_iter, int * actual_indices, CCTK_INT * input_array_strides, CCTK_INT * input_array_min_subscripts,const CCTK_INT * input_array_dims, int num_points, int * actual_iters_per_dim, int * iters_per_dim, int N_dims, const void *const input_arrays[], const CCTK_INT output_number_type_codes[], void * const output_numbers[], int param_table_handle);\n#endif\n\n#ifdef HAVE_CCTK_REAL16\nint LocalReduce_Sum_REAL16(int i, int weight_on, const void * const weight, CCTK_INT * input_array_offsets, int * indices, int max_iter, int * actual_indices, CCTK_INT * input_array_strides, CCTK_INT * input_array_min_subscripts,const CCTK_INT * input_array_dims, int num_points, int * actual_iters_per_dim, int * iters_per_dim, int N_dims, const void *const input_arrays[], const CCTK_INT output_number_type_codes[], void * const output_numbers[], int param_table_handle);\n#endif\n\nint LocalReduce_Sum_COMPLEX(int i, int weight_on, const void * const weight, CCTK_INT * input_array_offsets, int * indices, int max_iter, int * actual_indices, CCTK_INT * input_array_strides, CCTK_INT * input_array_min_subscripts,const CCTK_INT * input_array_dims, int num_points, int * actual_iters_per_dim, int * iters_per_dim, int N_dims, const void *const input_arrays[], const CCTK_INT output_number_type_codes[], void * const output_numbers[], int param_table_handle);\n\n#ifdef HAVE_CCTK_COMPLEX8\nint LocalReduce_Sum_COMPLEX8(int i, int weight_on, const void * const weight, CCTK_INT * input_array_offsets, int * indices, int max_iter, int * actual_indices, CCTK_INT * input_array_strides, CCTK_INT * input_array_min_subscripts,const CCTK_INT * input_array_dims, int num_points, int * actual_iters_per_dim, int * iters_per_dim, int N_dims, const void *const input_arrays[], const CCTK_INT output_number_type_codes[], void * const output_numbers[], int param_table_handle);\n#endif\n\n#ifdef HAVE_CCTK_COMPLEX16\nint LocalReduce_Sum_COMPLEX16(int i, int weight_on, const void * const weight, CCTK_INT * input_array_offsets, int * indices, int max_iter, int * actual_indices, CCTK_INT * input_array_strides, CCTK_INT * input_array_min_subscripts,const CCTK_INT * input_array_dims, int num_points, int * actual_iters_per_dim, int * iters_per_dim, int N_dims, const void *const input_arrays[], const CCTK_INT output_number_type_codes[], void * const output_numbers[], int param_table_handle);\n#endif\n\n#ifdef HAVE_CCTK_COMPLEX32\nint LocalReduce_Sum_COMPLEX32(int i, int weight_on, const void * const weight, CCTK_INT * input_array_offsets, int * indices, int max_iter, int * actual_indices, CCTK_INT * input_array_strides, CCTK_INT * input_array_min_subscripts,const CCTK_INT * input_array_dims, int num_points, int * actual_iters_per_dim, int * iters_per_dim, int N_dims, const void *const input_arrays[], const CCTK_INT output_number_type_codes[], void * const output_numbers[], int param_table_handle);\n#endif\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif\n", diff --git a/CactusNumerical_MoL.json b/CactusNumerical_MoL.json index d6b36c4dda7b6817462c76f5f446df0e6145a80d..dfb2514fa5a34b9e5144d56f6c314bbd0a7a79dc 100644 --- a/CactusNumerical_MoL.json +++ b/CactusNumerical_MoL.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusnumerical.git", "configuration": "# Configuration definition for thorn MoL\n# $Header$\n", "interface": "# Interface definition for thorn MoL\n# $Header$\n\nimplements: MethodOfLines\n\n##################################################\n### Functions from NaNChecker that may be used ###\n##################################################\n\nCCTK_INT FUNCTION CheckVarsForNaN \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN report_max, \\\n CCTK_STRING IN vars, \\\n CCTK_STRING IN check_for, \\\n CCTK_STRING IN action_if_found)\nUSES FUNCTION CheckVarsForNaN\n\n##############################################\n### Functions from Carpet that may be used ###\n##############################################\n\nCCTK_INT FUNCTION EnableProlongating(CCTK_INT IN Status)\nUSES FUNCTION EnableProlongating\n\nCCTK_INT FUNCTION Driver_GetValidRegion(CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT IN vi,\n CCTK_INT IN tl)\nUSES FUNCTION Driver_GetValidRegion\n\nvoid FUNCTION Driver_SetValidRegion(CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT IN vi,\n CCTK_INT IN tl,\n CCTK_INT IN wh)\nUSES FUNCTION Driver_SetValidRegion\n################################################################\n### Aliased registration and type changing functions for the ###\n### standard (i.e., real) GFs. ###\n################################################################\n\nCCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\nCCTK_INT FUNCTION MoLRegisterEvolvedSlow(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndexSlow)\n\nCCTK_INT FUNCTION MoLRegisterConstrained(CCTK_INT IN ConstrainedIndex)\nCCTK_INT FUNCTION MoLRegisterSaveAndRestore(CCTK_INT IN SandRIndex)\nCCTK_INT FUNCTION MoLRegisterEvolvedGroup(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\nCCTK_INT FUNCTION MoLRegisterEvolvedGroupSlow(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndexSlow)\nCCTK_INT FUNCTION MoLRegisterConstrainedGroup(CCTK_INT IN ConstrainedIndex)\nCCTK_INT FUNCTION MoLRegisterSaveAndRestoreGroup(CCTK_INT IN SandRIndex)\nCCTK_INT FUNCTION MoLChangeToEvolved(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\nCCTK_INT FUNCTION MoLChangeToEvolvedSlow(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndexSlow)\nCCTK_INT FUNCTION MoLChangeToConstrained(CCTK_INT IN ConstrainedIndex)\nCCTK_INT FUNCTION MoLChangeToSaveAndRestore(CCTK_INT IN SandRIndex)\nCCTK_INT FUNCTION MoLChangeToNone(CCTK_INT IN RemoveIndex)\nCCTK_INT FUNCTION MoLQueryEvolvedRHS(CCTK_INT IN EvolvedIndex)\nCCTK_INT FUNCTION MoLNumIntegratorSubsteps()\n\nPROVIDES FUNCTION MoLRegisterEvolved WITH MoL_RegisterEvolved LANGUAGE C\nPROVIDES FUNCTION MoLRegisterEvolvedSlow WITH MoL_RegisterEvolvedSlow LANGUAGE C\nPROVIDES FUNCTION MoLRegisterConstrained WITH MoL_RegisterConstrained \\\n LANGUAGE C\nPROVIDES FUNCTION MoLRegisterSaveAndRestore WITH MoL_RegisterSaveAndRestore \\\n LANGUAGE C\nPROVIDES FUNCTION MoLRegisterEvolvedGroup WITH MoL_RegisterEvolvedGroup \\\n LANGUAGE C\nPROVIDES FUNCTION MoLRegisterEvolvedGroupSlow WITH MoL_RegisterEvolvedGroupSlow \\\n LANGUAGE C\nPROVIDES FUNCTION MoLRegisterConstrainedGroup WITH \\\n MoL_RegisterConstrainedGroup LANGUAGE C\nPROVIDES FUNCTION MoLRegisterSaveAndRestoreGroup WITH \\\n MoL_RegisterSaveAndRestoreGroup LANGUAGE C\nPROVIDES FUNCTION MoLChangeToEvolved WITH MoL_ChangeToEvolved LANGUAGE C\nPROVIDES FUNCTION MoLChangeToEvolvedSlow WITH MoL_ChangeToEvolvedSlow LANGUAGE C\nPROVIDES FUNCTION MoLChangeToConstrained WITH MoL_ChangeToConstrained \\\n LANGUAGE C\nPROVIDES FUNCTION MoLChangeToSaveAndRestore WITH MoL_ChangeToSaveAndRestore \\\n LANGUAGE C\nPROVIDES FUNCTION MoLChangeToNone WITH MoL_ChangeToNone LANGUAGE C\nPROVIDES FUNCTION MoLQueryEvolvedRHS WITH MoL_QueryEvolvedRHS LANGUAGE C\nPROVIDES FUNCTION MoLNumIntegratorSubsteps WITH MoL_NumIntegratorSubsteps \\\n LANGUAGE C\n\n##############################################################\n### Aliased functions that can be provided by other thorns ###\n### to override low-level grid variable operations. ###\n##############################################################\n\nCCTK_INT FUNCTION GetRefinementLevel \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION GetRefinementLevel\n\nCCTK_INT FUNCTION Device_GetDevice \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION Device_GetDevice\n\n# Computes:\n# var = scale * var + \\sum_i^nsrcs facts[i] * scrcs[i][tls[i]]\nCCTK_INT FUNCTION LinearCombination \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN var, \\\n CCTK_INT IN rl , \\\n CCTK_INT IN tl , \\\n CCTK_REAL IN scale, \\\n CCTK_INT ARRAY IN srcs, \\\n CCTK_INT ARRAY IN tls, \\\n CCTK_REAL ARRAY IN facts, \\\n CCTK_INT IN nsrcs)\nUSES FUNCTION LinearCombination\n\nCCTK_INT FUNCTION Accelerator_NotifyDataModified \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT ARRAY IN variables, \\\n CCTK_INT ARRAY IN rls, \\\n CCTK_INT ARRAY IN tls, \\\n CCTK_INT IN nvariables, \\\n CCTK_INT IN on_device)\nUSES FUNCTION Accelerator_NotifyDataModified\n\nprivate:\n\nCCTK_REAL RKAlphaCoefficients \\\n TYPE = ARRAY \\\n DIM = 2 \\\n SIZE = MoL_Intermediate_Steps,MoL_Num_Scratch_Levels+1 \\\n DISTRIB = CONSTANT \\\n TAGS = 'Checkpoint=\"no\"'\n#{\n#} \"The alpha coefficients used by the generic Runge-Kutta integrators\"\n\nCCTK_REAL RKBetaCoefficients \\\n TYPE = ARRAY \\\n DIM = 1 \\\n SIZE = MoL_Intermediate_Steps \\\n DISTRIB = CONSTANT \\\n TAGS = 'Checkpoint=\"no\"'\n#{\n#} \"The beta coefficients used by the generic Runge-Kutta integrators\"\n\nCCTK_INT MoL_Counters \\\n TYPE = SCALAR \\\n TAGS = 'Checkpoint=\"no\"'\n{\n MoL_Intermediate_Step\n MoL_Stepsize_Bad\n \n # A flag indicating whether it is time for slow RHS evaluation. \n # Oustide the MoL loop, it is guaranteed to be 1.\n # It is only zero for certain MoL substeps when multirate methods are used.\n MoL_SlowStep\n \n # A flag indicating whether it is time for slow post step computations (e.g. applying BCs)\n # Oustide the MoL loop, it is guaranteed to be 1.\n # It is only zero for certain MoL substeps when multirate methods are used.\n MoL_SlowPostStep\n \n} \"The counter for the time integration method\"\n\nCCTK_REAL MoL_Original_Time \\\n TYPE = SCALAR \\\n TAGS = 'Checkpoint=\"no\"'\n{\n Original_Time\n Original_Delta_Time\n} \"The original time and delta time which are reset by MoL during evolution\"\n\n# there is a hard-coded limit on the number of scratch levels of 99\n# changing it here will increase this limit\nCCTK_REAL ScratchSpaceSlow[MoL_Num_Scratch_Levels] \\\n TYPE = GF \\\n Timelevels = 99 \\\n TAGS = 'Prolongation=\"None\" Checkpoint=\"no\"'\n\nCCTK_REAL ScratchSpace[MoL_Num_Scratch_Levels] \\\n TYPE = GF \\\n Timelevels = 99 \\\n TAGS = 'Prolongation=\"None\" Checkpoint=\"no\"'\n\nCCTK_REAL SandRScratchSpace \\\n TYPE = GF \\\n Timelevels = 99 \\\n TAGS = 'Prolongation=\"None\" Checkpoint=\"no\"'\n\n# Error vector and scalars for RK45\n\nCCTK_REAL ErrorEstimate \\\n TYPE = GF \\\n Timelevels = 99 \\\n TAGS = 'Prolongation=\"None\" Checkpoint=\"no\"'\n\nCCTK_REAL ErrorScalars \\\n TYPE = SCALAR\n{\n Error\n Count\n EstimatedDt\n} \"Global error estimate\"\n", - "params": "", + "param": "# Parameter definitions for thorn MoL\n# $Header$\n\nshares: cactus\n\nUSES KEYWORD presync_mode\n\nrestricted:\n\nCCTK_INT MoL_Num_Evolved_Vars \"The maximum number of variables to be evolved by MoL (DPRECATED)\" ACCUMULATOR = (x+y)\n{\n 0:*\t\t:: \"Anything non negative. Added to by other thorns.\"\n} 0\n\nCCTK_INT MoL_Num_Evolved_Vars_Slow \"The maximum number of 'slow' variables to be evolved by MoL (DPRECATED)\" ACCUMULATOR = (x+y)\n{\n 0:*\t\t:: \"Anything non negative. Added to by other thorns.\"\n} 0\n\n\nCCTK_INT MoL_Num_Constrained_Vars \"The maximum number of constrained variables with timelevels that MoL needs to know about (DPRECATED)\" ACCUMULATOR = (x+y)\n{\n 0:*\t\t:: \"Anything non negative. Added to by other thorns.\"\n} 0\n\nCCTK_INT MoL_Num_SaveAndRestore_Vars \"The maximum number of variables to be evolved outside of MoL but that MoL needs to know about (DPRECATED)\" ACCUMULATOR = (x+y)\n{\n 0:*\t\t:: \"Anything non negative. Added to by other thorns.\"\n} 0\n\nCCTK_INT MoL_Max_Evolved_Array_Size \"The maximum total size of any grid arrays to be evolved\" ACCUMULATOR = (x+y)\n{\n 0:* :: \"Anything non negative. Accumulated by other thorns\"\n} 0\n\nCCTK_INT MoL_Num_ArrayEvolved_Vars \"The maximum number of array variables to be evolved by MoL (DPRECATED)\" ACCUMULATOR = (x+y)\n{\n 0:*\t\t:: \"Anything non negative. Added to by other thorns.\"\n} 0\n\nCCTK_INT MoL_Num_ArrayConstrained_Vars \"The maximum number of array constrained variables with timelevels that MoL needs to know about (DPRECATED)\" ACCUMULATOR = (x+y)\n{\n 0:*\t\t:: \"Anything non negative. Added to by other thorns.\"\n} 0\n\nCCTK_INT MoL_Num_ArraySaveAndRestore_Vars \"The maximum number of array variables to be evolved outside of MoL but that MoL needs to know about (DPRECATED)\" ACCUMULATOR = (x+y)\n{\n 0:*\t\t:: \"Anything non negative. Added to by other thorns.\"\n} 0\n\nCCTK_INT MoL_Num_Scratch_Levels \"Number of scratch levels required by the ODE method\"\n{\n 0:*\t\t:: \"Anything non negative\"\n} 0\n\nprivate:\n\nKEYWORD ODE_Method \"The ODE method use by MoL to do time integration\"\n{\n \"Generic\"\t:: \"Generic Shu-Osher Runge-Kutta type\"\n \"ICN\"\t\t:: \"Iterative Crank Nicholson\"\n \"ICN-avg\"\t:: \"Iterative Crank Nicholson with averaging\"\n \"Euler\"\t:: \"Euler\"\n \"RK2\"\t\t:: \"Efficient RK2\"\n \"RK2-central\"\t:: \"Central RK2\"\n \"RK3\"\t\t:: \"Efficient RK3\"\n \"RK4\"\t\t:: \"Efficient RK4\"\n \"RK45\" :: \"RK45 (Fehlberg) with error estimation\"\n \"RK45CK\" :: \"RK45CK (Cash-Karp) with error estimation\"\n \"RK65\" :: \"RK65 with error estimation\"\n \"RK87\" :: \"RK87 with error estimation\"\n \"AB\" :: \"Adams-Bashforth\"\n \"RK2-MR-2:1\" :: \"2nd order 2:1 multirate RK scheme based on RK2 due to Schlegel et al 2009. This requires init_RHS_zero='no'.\"\n \"RK4-MR-2:1\" :: \"3rd order 2:1 multirate RK scheme based on RK43 due to Schlegel et al 2009. This requires init_RHS_zero='no'.\"\n \"RK4-RK2\" :: \"RK4 as fast method and RK2 as slow method\"\n} \"ICN\"\n\nKEYWORD Generic_Type \"If using the generic method, which sort\"\n{\n \"RK\"\t\t:: \"One of the standard TVD Runge-Kutta methods\"\n \"ICN\"\t\t:: \"Iterative Crank Nicholson as a generic method\"\n \"Table\" :: \"Given from the generic method descriptor parameter\"\n \"Classic RK3\"\t:: \"Efficient RK3 - classical version\"\n} \"RK\"\n\nCCTK_REAL ICN_avg_theta \"theta of averaged ICN method, usually 0.5\"\n{\n 0:1 :: \"0 <= theta <= 1\"\n} 0.5\n\nBOOLEAN ICN_avg_swapped \"Use swapped averages in ICN method?\"\n{\n} \"no\"\n\nKEYWORD AB_Type \"If using the the AB method, which sort\"\n{\n \"1\" :: \"same as forward Euler\"\n \"2\" :: \"second order\"\n \"3\" :: \"third order\"\n \"4\" :: \"fourth order\"\n \"5\" :: \"fifth order\"\n} \"1\"\n\nBOOLEAN AB_initially_reduce_order \"Reduce order of accuracy initially so that no past timelevels of initial data are required\"\n{\n} \"yes\"\n\nCCTK_INT MoL_Intermediate_Steps \"Number of intermediate steps taken by the ODE method\"\n{\n 1:*\t\t:: \"Anything greater than 1\"\n} 3\n\nBOOLEAN MoL_Memory_Always_On \"Do we keep the scratch arrays allocated all the time?\"\n{\n} \"yes\"\n\nCCTK_REAL MoL_Tiny \"Effective local machine zero; required by generic solvers\"\n{\n 0:*\t\t:: \"Defaults to 1.e-15\"\n} 1.e-15\n\nBOOLEAN initial_data_is_crap \"If the initial data routine fails to set up the previous time levels, copy the current backwards\"\n{\n} \"no\"\n\n# If initial_data_is_crap is false, this parameter is ignored.\n# If initial_data_is_crap is true, this parameter controls *when*\n# in CCTK_POSTINITIAL we copy the initial data to previous time levels,\n# relative to our scheduling of MoL_PostStep.\n# false ==> copy *before* MoL_PostStep (default, matches old behavior)\n# true ==> copy *after* MoL_PostStep (may be preferable for new code)\nBOOLEAN copy_ID_after_MoL_PostStep \\\n \"if initial_data_is_crap is true, *when* should we copy the\t\t\\\n current time level to all previous time levels:\t\t\t\\\n false ==> copy *before* MoL_PostStep (default, matches old behavior)\\\n true ==> copy *after* MoL_PostStep (maybe preferable for new code)\"\n{\n} \"no\"\n\nBOOLEAN run_MoL_PostStep_in_Post_Recover_Variables \"Schedule the PostStep parts after recovery so that symmetries are automatically done correctly.\" STEERABLE=recover\n{\n} \"yes\"\n\n\nBOOLEAN set_ID_boundaries \"Should boundaries be overwritten (via synchronization, prolongation, boundary conditions) by MoL?\"\n{\n} \"yes\"\n\n\n\n# The default for this parameter corresponds to generic RK2\nSTRING Generic_Method_Descriptor \"A string used to create a table containing the description of the generic method\"\n{\n \".*\" :: \"Should contain the Alpha and Beta arrays, and the number of intermediate steps\"\n} \"GenericIntermediateSteps = 2 \\\n GenericAlphaCoeffs = { 1.0 0.0 0.5 0.5 } \\\n GenericBetaCoeffs = { 1.0 0.5 }\"\n \nBOOLEAN MoL_NaN_Check \"Should the RHS GFs be checked for NaNs?\"\n{\n} \"no\"\n\nBOOLEAN disable_prolongation \"If Mesh refinement is enabled should we use buffer zones in intermediate steps?\"\n{\n} \"yes\"\n\n\n\nBOOLEAN skip_initial_copy \"Skip initial copy from previous to current time level\" STEERABLE=recover\n{\n} \"no\"\n\nBOOLEAN init_RHS_zero \"Initialise the RHS to zero\" STEERABLE=recover\n{\n} \"yes\"\n\n\n\nBOOLEAN adaptive_stepsize \"Choose the time step size adaptively\"\n{\n} \"no\"\n\nREAL maximum_absolute_error \"Maximum allowed absolute error for adaptive stepsize control\"\n{\n 0.0:*) :: \"\"\n} 1.0e-6\n\nREAL maximum_relative_error \"Maximum allowed relative error for adaptive stepsize control\"\n{\n 0.0:*) :: \"\"\n} 1.0e-6\n\nREAL RHS_error_weight \"Weight of the RHS in the relative error calculation\"\n{\n 0.0:* :: \"should be between zero and one\"\n} 1.0\n\nREAL safety_factor \"Safety factor for stepsize control\"\n{\n (0.0:*) :: \"should be less than one\"\n} 0.9\n\nREAL maximum_decrease \"Maximum stepsize decrease factor\"\n{\n (1.0:*) :: \"should be larger than one\"\n} 10.0\n\nREAL maximum_increase \"Maximum stepsize increase factor\"\n{\n (1.0:*) :: \"should be larger than one\"\n} 5.0\n\n\n\nKEYWORD verbose \"How verbose should MoL be?\"\n{\n \"none\" :: \"No output at all (not implemented)\"\n \"normal\" :: \"Standard verbosity\"\n \"register\" :: \"List the variables registered as well\"\n \"extreme\" :: \"Everything you never wanted to know\"\n} \"normal\"\n\n\n\nshares: Cactus\n\nUSES CCTK_REAL cctk_initial_time\n", "schedule": "# Schedule definitions for thorn MoL\n# $Header$\n\n##########################################################\n### Always require storage for the counters and time ###\n##########################################################\n\nSTORAGE: MoL_Counters, MoL_Original_Time\n\n\n############################################################\n### If using the generic Runge-Kutta solver, switch on ###\n### storage for the coefficient arrays ###\n############################################################\n\nif (CCTK_Equals(ODE_Method,\"Generic\"))\n{\n STORAGE: RKAlphaCoefficients\n STORAGE: RKBetaCoefficients\n}\n\n#############################\n### The actual routines ###\n#############################\n\n########################\n### Startup banner ###\n########################\n\nschedule MoL_Startup AT Startup\n{\n LANG: C\n} \"Startup banner\"\n\n#####################################\n### Parameter checking routine. ###\n#####################################\n\nschedule MoL_ParamCheck AT ParamCheck\n{\n LANG: C\n} \"Basic parameter checking\"\n\n#################################################\n### Allocate the arrays for the GF indexes. ###\n#################################################\n\nschedule MoL_SetupIndexArrays AT Wragh\n{\n LANG: C\n WRITES: MoL_Original_Time\n WRITES: MoL_SlowPostStep, MoL_SlowStep\n\n} \"Set up the MoL bookkeeping index arrays\"\n\n################################################\n### Initialize the coefficients for the RK ###\n### arrays if required ###\n################################################\n\nif (CCTK_Equals(ODE_Method,\"Generic\"))\n{\n schedule MoL_SetupRKCoefficients AT Wragh\n {\n LANG: C\n OPTIONS: GLOBAL\n STORAGE: RKAlphaCoefficients\n STORAGE: RKBetaCoefficients\n WRITES: RKAlphaCoefficients, RKBetaCoefficients\n } \"Initialize the generic Runge-Kutta coefficients\"\n}\n\n#################################################\n### The group where physics thorns call the ###\n### registration functions ###\n#################################################\n\nschedule MoL_SetScheduleStatus AT Wragh AFTER MoL_SetupIndexArrays\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Set the flag so it is ok to register with MoL\"\n\nschedule GROUP MoL_Register AT Wragh AFTER MoL_SetScheduleStatus\n{\n} \"The group where physics thorns register variables with MoL\"\n\nschedule MoL_ReportNumberVariables AT Wragh AFTER MoL_Register\n{\n LANG:C\n OPTIONS:META\n} \"Report how many of each type of variable there are\"\n\nif (initial_data_is_crap)\n{\n if (copy_ID_after_MoL_PostStep)\n {\n schedule MoL_FillAllLevels AT PostInitial AFTER MoL_PostStep\n {\n LANG:C\n } \"A bad routine. Fills all previous timelevels with data copied from the current.\"\n }\n else\n {\n schedule MoL_FillAllLevels AT PostInitial BEFORE MoL_PostStep\n {\n LANG:C\n } \"A bad routine. Fills all previous timelevels with data copied from the current.\"\n }\n}\n\n##########################################\n### Initialise the step size control ###\n##########################################\n\nschedule MoL_StartLoop AT Evol BEFORE MoL_Evolution\n{\n LANG: C\n OPTIONS: LEVEL\n WRITES: MoL_Stepsize_Bad, EstimatedDt\n} \"Initialise the step size control\"\n\nschedule MoL_StartLoop AT Initial\n{\n LANG: C\n OPTIONS: LEVEL\n WRITES: MoL_Stepsize_Bad, EstimatedDt\n} \"Initialise the step size control\"\n\n######################################################\n### The evolution step. This is almost a self ###\n### contained EVOL step with PRE and POST steps ###\n### to allow changing the type of the variables, ###\n### boundary enforcement and so on. ###\n######################################################\n\nschedule GROUP MoL_Evolution AT Evol WHILE MoL::MoL_Stepsize_Bad\n{\n} \"A single Cactus evolution step using MoL\"\n \n######################################################\n### StartStep contains the routines that just do ###\n### internal MoL stuff; setting the counter, and ###\n### changing the time and timestep if required. ###\n######################################################\n\nschedule GROUP MoL_StartStep IN MoL_Evolution\n{\n} \"MoL internal setup for the evolution step\"\n\nschedule MoL_SetCounter IN MoL_StartStep \n{\n LANG: C\n OPTIONS: LEVEL\n WRITES: MoL_Intermediate_Step\n WRITES: MoL_SlowStep, MoL_SlowPostStep\n} \"Set the counter for the ODE method to loop over\"\n\n########################################################\n### Note that the option LEVEL here is to ensure ###\n### that the time is set once per refinement level ###\n### and not once overall. ###\n########################################################\n\nschedule MoL_SetTime IN MoL_StartStep \n{\n LANG: C\n OPTIONS: LEVEL\n WRITES: MoL_Original_Time\n READS: RKAlphaCoefficients, RKBetaCoefficients\n READS: MoL_Intermediate_Step\n} \"Ensure the correct time and timestep are used\"\n\nschedule MoL_AllocateScratchSpace IN MoL_StartStep \n{\n LANG: C\n OPTIONS: LEVEL\n} \"Allocate storage for scratch levels\"\n\n#################################################################\n### PreStep is where physics thorns can do their own setup. ###\n### This would include scheduling the function calls to ###\n### change the type of variable. ###\n#################################################################\n\nschedule GROUP MoL_PreStep IN MoL_Evolution AFTER MoL_StartStep BEFORE MoL_Step\n{\n} \"Physics thorns can schedule preloop setup routines in here\"\n\n#######################################################################\n### Check to see if any type changing functions have been called, ###\n### and if so do the necessary bookkeeping. ###\n### Right now, I think this is unnecessary, now that we don't ###\n### reallocate any scratch space. ###\n#######################################################################\n\n#schedule MoL_CheckVariableType IN MoL_Evolution AFTER MoL_PreStep BEFORE MoL_Step\n#{\n# LANG: C\n#} \"If a physics thorn wants to change the type of a variable, do the bookkeeping\"\n\n#################################################################\n### Copy (ouch) the data into the correct timelevel so that ###\n### the physics thorn knows where to find it. ###\n#################################################################\n\nschedule MoL_AllocateScratch IN MoL_Evolution AFTER MoL_PreStep BEFORE MoL_Step\n{\n LANG: C\n} \"Allocate sufficient space for array scratch variables\"\n\nif (!skip_initial_copy)\n{\n schedule MoL_InitialCopy IN MoL_Evolution AFTER (MoL_PreStep MoL_AllocateScratch) BEFORE MoL_Step\n {\n LANG: C\n } \"Ensure the data is in the correct timelevel\"\n}\n\nif(!CCTK_EQUALS(presync_mode, \"off\")) {\n schedule MoL_UpdateValidForInitialCopy in MoL_Evolution after MoL_InitialCopy before MoL_Step\n {\n LANG: C\n } \"Automatically update valid regions based on MoL\"\n}\n\n#################################################\n### The actual loop which updates the data. ###\n#################################################\n\nschedule GROUP MoL_Step WHILE MoL::MoL_Intermediate_Step IN MoL_Evolution AFTER MoL_PreStep\n{\n} \"The loop over the intermediate steps for the ODE integrator\"\n\n####################################################\n### The time integrator prepares the time step ###\n####################################################\n\nif (CCTK_Equals(ODE_Method,\"ICN-avg\")) \n{\n schedule MoL_ICNAverage AS MoL_Prepare IN MoL_Step BEFORE MoL_CalcRHS\n {\n LANG: C\n READS: MoL_Intermediate_Step\n } \"Averages the time levels for the averaging ICN method\"\n}\n\n##############################################\n### The time step is initialised to zero ###\n##############################################\n\nif (init_RHS_zero)\n{\n schedule MoL_InitRHS IN MoL_Step BEFORE MoL_CalcRHS\n {\n LANG: C\n } \"Initialise the RHS functions\"\n}\n\n#####################################################\n### The group where all the physics takes place ###\n#####################################################\n\nschedule GROUP MoL_CalcRHS IN MoL_Step\n{\n} \"Physics thorns schedule the calculation of the discrete spatial operator in here\"\n\n#############################################################\n### Any modification of the RHS done by external thorns ###\n### (dissipation etc.) should be done in MoL_PostRHS ###\n#############################################################\n\nschedule GROUP MoL_PostRHS IN MoL_Step AFTER MoL_CalcRHS BEFORE (MoL_NaNCheck MoL_Add) \n{\n} \"Modify RHS functions\"\n\n###############################################################\n### Certain operations, specifically boundary conditions ###\n### applied to the RHS must be performed after all other ###\n### operations. These can be scheduled in this bin, under ###\n### the assumption that things like dissipation are ###\n### scheduled in the MoL_PostRHS bin. It is the users ###\n### problem to ensure that this is really done. ###\n###############################################################\n\nschedule GROUP MoL_RHSBoundaries IN MoL_Step AFTER MoL_PostRHS BEFORE (MoL_NaNCheck MoL_Add)\n{\n} \"Any 'final' modifications to the RHS functions (boundaries etc.)\"\n\n#####################################################\n### If required, check for any NaNs in the RHSs ###\n#####################################################\n\nif (MoL_NaN_Check)\n{\n schedule MoL_NaNCheck IN MoL_Step AFTER MoL_CalcRHS BEFORE MoL_Add\n {\n LANG: C\n READS: MoL_Intermediate_Step\n } \"Check the RHS GFs for NaNs\"\n}\n\n######################################################\n### The time integrator performs the update here ###\n######################################################\n\nif (CCTK_Equals(ODE_Method,\"Generic\"))\n{\n schedule MoL_GenericRKAdd AS MoL_Add IN MoL_Step AFTER MoL_CalcRHS BEFORE (MoL_PostStep MoL_PostStepModify)\n {\n LANG: C\n READS: MoL_Intermediate_Step\n READS: Original_Delta_Time\n READS: RKAlphaCoefficients, RKBetaCoefficients\n } \"Updates calculated with a generic method\"\n}\nelse if (CCTK_Equals(ODE_Method,\"Euler\")) \n{\n schedule MoL_EulerAdd AS MoL_Add IN MoL_Step AFTER MoL_CalcRHS BEFORE MoL_PostStep\n {\n LANG: C\n READS: MoL_Intermediate_Step\n } \"Updates calculated with the Euler method\"\n}\nelse if (CCTK_Equals(ODE_Method,\"RK2\")) \n{\n schedule MoL_RK2Add AS MoL_Add IN MoL_Step AFTER MoL_CalcRHS BEFORE MoL_PostStep\n {\n LANG: C\n READS: MoL_Intermediate_Step\n } \"Updates calculated with the efficient Runge-Kutta 2 method\"\n}\nelse if (CCTK_Equals(ODE_Method,\"RK2-central\")) \n{\n schedule MoL_RK2CentralAdd AS MoL_Add IN MoL_Step AFTER MoL_CalcRHS BEFORE MoL_PostStep\n {\n LANG: C\n READS: Original_Delta_Time\n READS: MoL_Intermediate_Step\n } \"Updates calculated with the central Runge-Kutta 2 method\"\n}\nelse if (CCTK_Equals(ODE_Method,\"RK3\")) \n{\n schedule MoL_RK3Add AS MoL_Add IN MoL_Step AFTER MoL_CalcRHS BEFORE MoL_PostStep\n {\n LANG: C\n READS: MoL_Intermediate_Step\n } \"Updates calculated with the efficient Runge-Kutta 3 method\"\n}\nelse if (CCTK_Equals(ODE_Method,\"RK4\"))\n{\n schedule MoL_RK4Add AS MoL_Add IN MoL_Step AFTER MoL_CalcRHS BEFORE MoL_PostStep\n {\n LANG: C\n READS: MoL_Intermediate_Step\n READS: Original_Delta_Time\n } \"Updates calculated with the efficient Runge-Kutta 4 method\"\n}\nelse if (CCTK_Equals(ODE_Method,\"RK45\") || CCTK_Equals(ODE_Method,\"RK45CK\"))\n{\n STORAGE: ErrorScalars\n\n schedule MoL_RK45Add AS MoL_Add IN MoL_Step AFTER MoL_CalcRHS BEFORE MoL_PostStep\n {\n LANG: C\n READS: MoL_Intermediate_Step\n READS: Original_Delta_Time\n } \"Updates calculated with the Runge-Kutta 45 method\"\n}\nelse if (CCTK_Equals(ODE_Method,\"RK65\")) \n{\n STORAGE: ErrorScalars\n\n schedule MoL_RK65Add AS MoL_Add IN MoL_Step AFTER MoL_CalcRHS BEFORE MoL_PostStep\n {\n LANG: C\n READS: MoL_Intermediate_Step\n READS: Original_Delta_Time\n } \"Updates calculated with the Runge-Kutta 65 method\"\n}\nelse if (CCTK_Equals(ODE_Method,\"RK87\")) \n{\n STORAGE: ErrorScalars\n\n schedule MoL_RK87Add AS MoL_Add IN MoL_Step AFTER MoL_CalcRHS BEFORE MoL_PostStep\n {\n LANG: C\n READS: MoL_Intermediate_Step\n READS: Original_Delta_Time\n } \"Updates calculated with the Runge-Kutta 87 method\"\n}\nelse if (CCTK_Equals(ODE_Method,\"ICN\"))\n{\n schedule MoL_ICNAdd AS MoL_Add IN MoL_Step AFTER MoL_CalcRHS BEFORE MoL_PostStep\n {\n LANG: C\n READS: MoL_Intermediate_Step\n } \"Updates calculated with the efficient ICN method\"\n}\nelse if (CCTK_Equals(ODE_Method,\"ICN-avg\"))\n{\n schedule MoL_ICNAdd AS MoL_Add IN MoL_Step AFTER MoL_CalcRHS BEFORE MoL_PostStep\n {\n LANG: C\n READS: MoL_Intermediate_Step\n } \"Updates calculated with the averaging ICN method\"\n}\nelse if (CCTK_Equals(ODE_Method,\"AB\"))\n{\n schedule MoL_ABAdd AS MoL_Add IN MoL_Step AFTER MoL_CalcRHS BEFORE MoL_PostStep\n {\n LANG: C\n READS: MoL_Intermediate_Step\n } \"Updates calculated with the Adams-Bashforth\"\n}\nelse if (CCTK_Equals(ODE_Method,\"RK2-MR-2:1\")) \n{\n schedule MoL_RK2_MR_2_1_Add AS MoL_Add IN MoL_Step AFTER MoL_CalcRHS BEFORE MoL_PostStep\n {\n LANG: C\n READS: MoL_Intermediate_Step\n READS: Original_Delta_Time\n } \"Updates calculated with the multirate Runge-Kutta 2 method\"\n}\nelse if (CCTK_Equals(ODE_Method,\"RK4-MR-2:1\")) \n{\n schedule MoL_RK4_MR_2_1_Add AS MoL_Add IN MoL_Step AFTER MoL_CalcRHS BEFORE MoL_PostStep\n {\n LANG: C\n READS: MoL_Intermediate_Step\n READS: Original_Delta_Time\n } \"Updates calculated with the multirate Runge-Kutta 4 method\"\n}\nelse if (CCTK_Equals(ODE_Method,\"RK4-RK2\")) \n{\n schedule MoL_RK4_RK2_Add AS MoL_Add IN MoL_Step AFTER MoL_CalcRHS BEFORE MoL_PostStep\n {\n LANG: C\n READS: MoL_Intermediate_Step\n READS: Original_Delta_Time\n } \"Updates calculated with the multirate RK4/RK2 method\"\n}\n\nif(!CCTK_EQUALS(presync_mode, \"off\")) {\n schedule MoL_UpdateValidForAdd in MoL_Step after MoL_Add\n {\n LANG: C\n } \"Automatically update valid regions based on MoL\"\n}\n\n##################################################\n### Physics thorns can apply boundaries and ###\n### recalculate constrained variables and so ###\n### on in PostStep ###\n##################################################\n\nschedule GROUP MoL_PostStep IN MoL_Step AFTER MoL_Add\n{\n} \"The group for physics thorns to schedule boundary calls etc.\"\n\nif (set_ID_boundaries)\n{\n schedule GROUP MoL_PostStep AT PostInitial\n {\n } \"Ensure that everything is correct after the initial data have been set up\"\n}\n\n##################################################################\n### Schedule the PostStep parts in the Carpet 'PostRegrid' ###\n### bin so that symmetries are automatically done correctly. ###\n### We may want to change this later as it could be ###\n### expensive, but it's simplest for the moment. ###\n##################################################################\n\nschedule GROUP MoL_PostStep AT PostRegrid\n{\n} \"Ensure that everything is correct after regridding\"\n\n##################################################################\n### Schedule the PostStep parts in the Carpet 'PostRestrict' ###\n### bin so that symmetries are automatically done correctly. ###\n### We may want to change this later as it could be ###\n### expensive, but it's simplest for the moment. ###\n##################################################################\n\nif (set_ID_boundaries)\n{\n schedule GROUP MoL_PostStep AT PostRestrictInitial\n {\n } \"Ensure that everything is correct after restriction\"\n}\n\nschedule GROUP MoL_PostStep AT PostRestrict\n{\n} \"Ensure that everything is correct after restriction\"\n\n##############################################################\n### Schedule the PostStep parts after recovery ###\n### so that symmetries are automatically done correctly. ###\n### We may want to change this later as it could be ###\n### expensive, but it's simplest for the moment. ###\n##############################################################\n\nif (run_MoL_PostStep_in_Post_Recover_Variables) {\n schedule GROUP MoL_PostStep AT Post_Recover_Variables\n {\n } \"Ensure that everything is correct after recovery\"\n}\n\n#########################################################################\n### Physics thorns can enforce constraints in PostStepModify. ###\n### The difference between PostStep and PostStepModify is that ###\n### PostStep is scheduled at many other occasions, whereas the ###\n### PostStepModify is only scheduled during evolution. ###\n#########################################################################\n\nschedule GROUP MoL_PostStepModify IN MoL_Step AFTER MoL_Add BEFORE MoL_PostStep\n{\n} \"The group for physics thorns to schedule enforcing constraints\"\n\nschedule GROUP MoL_PostStepModify At PostInitial BEFORE MoL_PostStep\n{\n} \"The group for physics thorns to schedule enforcing constraints\"\n\n##########################################################################\n### Schedule a pseudo-evolution group to handle variables which are ###\n### not evolved, but which should be calculated at every time step. ###\n##########################################################################\n\nschedule GROUP MoL_PseudoEvolution AT PostInitial AFTER MoL_PostStep\n{\n} \"Calculate pseudo-evolved quantities\"\n\nschedule GROUP MoL_PseudoEvolution AT Evol AFTER MoL_Evolution\n{\n} \"Calculate pseudo-evolved quantities\"\n\nschedule GROUP MoL_PseudoEvolutionBoundaries AT PostRegridInitial AFTER MoL_PostStep\n{\n} \"Apply boundary conditions to pseudo-evolved quantities\"\n\nschedule GROUP MoL_PseudoEvolutionBoundaries AT PostRegrid AFTER MoL_PostStep\n{\n} \"Apply boundary conditions to pseudo-evolved quantities\"\n\nschedule GROUP MoL_PseudoEvolutionBoundaries AT PostRestrictInitial AFTER MoL_PostStep\n{\n} \"Apply boundary conditions to pseudo-evolved quantities\"\n\nschedule GROUP MoL_PseudoEvolutionBoundaries AT PostRestrict AFTER MoL_PostStep\n{\n} \"Apply boundary conditions to pseudo-evolved quantities\"\n\n#################################################\n### Final internal MoL stuff; decrement the ###\n### counter, change time and timestep ###\n#################################################\n\nschedule MoL_DecrementCounter IN MoL_Step AFTER MoL_Add BEFORE (MoL_PostStep MoL_PostStepModify)\n{\n LANG: C\n OPTIONS: LEVEL\n WRITES: MoL_Intermediate_Step\n WRITES: MoL_SlowStep, MoL_SlowPostStep\n} \"Alter the counter number\"\n\nschedule MoL_ResetTime IN MoL_Step AFTER MoL_DecrementCounter BEFORE (MoL_PostStep MoL_PostStepModify)\n{\n LANG: C\n OPTIONS: LEVEL\n READS: MoL_Original_Time\n READS: RKAlphaCoefficients, RKBetaCoefficients\n READS: MoL_Intermediate_Step\n} \"If necessary, change the time\"\n\nschedule MoL_ResetDeltaTime IN MoL_Step AFTER (MoL_PostStep MoL_PostStepModify)\n{\n LANG: C\n OPTIONS: LEVEL\n READS: Original_Delta_Time\n READS: RKAlphaCoefficients, RKBetaCoefficients\n READS: MoL_Intermediate_Step\n} \"If necessary, change the timestep\"\n\n##################################################\n### Finally, restore any SaveAndRestore type ###\n### variables to their original state. ###\n##################################################\n\nschedule MoL_RestoreSandR IN MoL_Evolution AFTER (MoL_ReduceAdaptiveError MoL_FinishLoop)\n{\n LANG: C\n} \"Restoring the Save and Restore variables to the original state\"\n\nschedule MoL_FreeScratchSpace IN MoL_Evolution AFTER MoL_RestoreSandR\n{\n LANG: C\n OPTIONS: LEVEL\n} \"Free storage for scratch levels\"\n\n\n###################################################\n### Loop until the step size was small enough ###\n###################################################\n\nif (adaptive_stepsize)\n{\n # Adaptive step size control\n schedule MoL_InitAdaptiveError IN MoL_Evolution AFTER MoL_Step\n {\n LANG: C\n OPTIONS: LEVEL\n WRITES: Error, Count\n } \"Control the step size: initialize error check variables\"\n \n schedule MoL_FindAdaptiveError IN MoL_Evolution AFTER MoL_InitAdaptiveError\n {\n LANG: C\n READS: Original_Delta_Time\n WRITES: Error, Count\n } \"Control the step size: compute error check variables\"\n \n schedule MoL_ReduceAdaptiveError IN MoL_Evolution AFTER MoL_FindAdaptiveError\n {\n LANG: C\n OPTIONS: LEVEL\n READS: Original_Delta_Time\n WRITES: Error, Count, MoL_StepSize_Bad, EstimatedDt\n } \"Control the step size: reduce error check variables\"\n\n schedule MoL_SetEstimatedDt AT POSTSTEP \n {\n LANG: C\n OPTIONS: LEVEL\n READS: EstimatedDt\n } \"Control the step size: set the new timestep\"\n}\nelse\n{\n schedule MoL_FinishLoop IN MoL_Evolution AFTER MoL_Step\n {\n LANG: C\n OPTIONS: LEVEL\n WRITES: MoL_Stepsize_Bad, MoL_SlowPostStep, MoL_SlowStep\n } \"Control the step size\"\n}\n\n################################################################\n### At the end (but before driver terminate to avoid those ###\n### irritating segfaults) free the index arrays. ###\n################################################################\n\nschedule MoL_FreeIndexArrays AT Terminate BEFORE Driver_Terminate\n{\n LANG: C\n} \"Free the MoL bookkeeping index arrays\"\n", "src": { "RKCoefficients.c": " /*@@\n @file RKCoefficients.c\n @date Tue May 21 02:46:51 2002\n @author Ian Hawke\n @desc \n The routine setting up the coefficients for the generic Runge-Kutta\n style integrator. At some point this should be extended so that\n these can be set from the parameter file.\n @version $Header$\n @enddesc \n @@*/\n\n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Parameters.h\"\n\n#include \"util_ErrorCodes.h\"\n#include \"util_Table.h\"\n\nstatic const char *rcsid = \"$Header$\";\n\nCCTK_FILEVERSION(CactusBase_MoL_RKCoefficients_c);\n\n/********************************************************************\n ********************* Local Data Types ***********************\n ********************************************************************/\n\n/********************************************************************\n ********************* Local Routine Prototypes *********************\n ********************************************************************/\n\n/********************************************************************\n ***************** Scheduled Routine Prototypes *********************\n ********************************************************************/\n\nvoid MoL_SetupRKCoefficients(CCTK_ARGUMENTS);\n\n/********************************************************************\n ********************* Other Routine Prototypes *********************\n ********************************************************************/\n\n/********************************************************************\n ********************* Local Data *****************************\n ********************************************************************/\n\n/********************************************************************\n ********************* External Routines **********************\n ********************************************************************/\n\n /*@@\n @routine MoL_SetupRKCoefficients\n @date Tue May 21 02:49:06 2002\n @author Ian Hawke\n @desc \n Sets up the coefficients of the RKAlpha and Beta arrays. These\n are currently set \"by hand\" for the Runge-Kutta and generic ICN\n methods. Should add the ability to set from a parameter file.\n @enddesc \n @calls \n @calledby \n @history \n \n @endhistory \n\n@@*/\n\nvoid MoL_SetupRKCoefficients(CCTK_ARGUMENTS)\n{\n DECLARE_CCTK_ARGUMENTS_CHECKED(MoL_SetupRKCoefficients);\n DECLARE_CCTK_PARAMETERS;\n \n CCTK_INT i, j;\n\n CCTK_INT ierr, options_table;\n\n if (CCTK_EQUALS(Generic_Type,\"Classic RK3\"))\n {\n if (MoL_Num_Scratch_Levels != 2)\n {\n CCTK_ERROR(\"For Classic RK3, MoL_Num_Scratch_Levels \"\n \"should be at least 2\");\n }\n if (MoL_Intermediate_Steps != 3)\n {\n CCTK_ERROR(\"For Classic RK3, MoL_Intermediate_Steps \"\n \"should be at least 3\");\n }\n for (i = 0; i < MoL_Intermediate_Steps; i++) \n {\n for (j = 0; j < MoL_Num_Scratch_Levels + 1; j++) \n { \n RKAlphaCoefficients[i * MoL_Intermediate_Steps + j] = 0.0;\n }\n RKBetaCoefficients[i] = 0.0;\n }\n RKAlphaCoefficients[0] = 1.0;\n RKAlphaCoefficients[3] = 1.0;\n RKAlphaCoefficients[6] = 1.0 / 9.0;\n RKAlphaCoefficients[7] = 4.0 / 9.0;\n RKAlphaCoefficients[8] = 4.0 / 9.0;\n RKBetaCoefficients[0] = 0.5;\n RKBetaCoefficients[1] = 0.75;\n RKBetaCoefficients[2] = 4.0 / 9.0; \n }\n else if (CCTK_EQUALS(Generic_Type,\"ICN\")) \n {\n for (i = 0; i < MoL_Intermediate_Steps; i++) \n {\n RKAlphaCoefficients[i * MoL_Intermediate_Steps] = 1.0;\n for (j = 1; j < MoL_Num_Scratch_Levels + 1; j++) \n {\n RKAlphaCoefficients[i * MoL_Intermediate_Steps + j] = 0.0;\n }\n if (i == MoL_Intermediate_Steps-1)\n {\n RKBetaCoefficients[i] = 1.0;\n }\n else\n {\n RKBetaCoefficients[i] = 0.5;\n } \n }\n }\n else if (CCTK_EQUALS(Generic_Type,\"RK\")) \n {\n if (MoL_Num_Scratch_Levels < MoL_Intermediate_Steps - 1)\n {\n CCTK_ERROR(\"For generic RK methods, MoL_Num_Scratch_Levels \"\n \"should be at least MoL_Intermediate_Steps - 1\");\n }\n for (i = 0; i < MoL_Intermediate_Steps; i++) \n {\n for (j = 0; j < MoL_Num_Scratch_Levels + 1; j++) \n { \n RKAlphaCoefficients[i * MoL_Intermediate_Steps + j] = 0.0;\n }\n RKBetaCoefficients[i] = 0.0;\n }\n if (MoL_Intermediate_Steps == 1)\n {\n RKAlphaCoefficients[0] = 1.0;\n RKBetaCoefficients[0] = 1.0;\n }\n else if (MoL_Intermediate_Steps == 2)\n {\n RKAlphaCoefficients[0] = 1.0;\n RKAlphaCoefficients[2] = 0.5;\n RKAlphaCoefficients[3] = 0.5;\n RKBetaCoefficients[0] = 1.0;\n RKBetaCoefficients[1] = 0.5;\n\n }\n else if (MoL_Intermediate_Steps == 3)\n {\n RKAlphaCoefficients[0] = 1.0;\n RKAlphaCoefficients[3] = 0.75;\n RKAlphaCoefficients[4] = 0.25;\n RKAlphaCoefficients[6] = 1.0 / 3.0;\n RKAlphaCoefficients[8] = 2.0 / 3.0;\n RKBetaCoefficients[0] = 1.0;\n RKBetaCoefficients[1] = 0.25;\n RKBetaCoefficients[2] = 2.0 / 3.0;\n }\n else if (MoL_Intermediate_Steps == 4)\n {\n RKAlphaCoefficients[0] = 1.0;\n RKAlphaCoefficients[4] = 1.0;\n RKAlphaCoefficients[8] = 1.0;\n RKAlphaCoefficients[12] = -1.0 / 3.0;\n RKAlphaCoefficients[13] = 1.0 / 3.0;\n RKAlphaCoefficients[14] = 2.0 / 3.0;\n RKAlphaCoefficients[15] = 1.0 / 3.0;\n RKBetaCoefficients[0] = 0.5;\n RKBetaCoefficients[1] = 0.5;\n RKBetaCoefficients[2] = 1.0;\n RKBetaCoefficients[3] = 1.0 / 6.0;\n }\n else \n {\n CCTK_ERROR(\"RKCoefficients cannot do generic RK methods \"\n \"with MoL_Intermediate_Steps greater than 4\");\n }\n }\n else if (CCTK_EQUALS(Generic_Type,\"Table\")) \n {\n if (MoL_Num_Scratch_Levels < MoL_Intermediate_Steps - 1)\n {\n CCTK_ERROR(\"For generic methods, MoL_Num_Scratch_Levels \"\n \"should be at least MoL_Intermediate_Steps - 1\");\n }\n options_table =\n Util_TableCreateFromString(Generic_Method_Descriptor);\n if (options_table < 0)\n {\n CCTK_ERROR(\"Failed to create table from \"\n \"Generic_Method_Descriptor!\");\n }\n ierr = Util_TableGetRealArray(options_table,\n (MoL_Num_Scratch_Levels + 1) * \n MoL_Intermediate_Steps,\n RKAlphaCoefficients,\n \"GenericAlphaCoeffs\");\n if (ierr < (MoL_Num_Scratch_Levels + 1) * MoL_Intermediate_Steps )\n {\n if (ierr >= 0)\n {\n CCTK_ERROR(\"Insufficient elements in the specified \"\n \"GenericAlphaCoeffs array\");\n }\n else if (ierr == UTIL_ERROR_TABLE_NO_SUCH_KEY)\n {\n CCTK_ERROR(\"When using the generic table options you \"\n \"must set \\\"GenericAlphaCoeffs\\\" in the options table\");\n }\n else\n {\n CCTK_ERROR(\"Table error - check with Ian.\");\n }\n }\n ierr = Util_TableGetRealArray(options_table,\n MoL_Intermediate_Steps,\n RKBetaCoefficients,\n \"GenericBetaCoeffs\");\n if (ierr < MoL_Intermediate_Steps)\n {\n if (ierr >= 0)\n {\n CCTK_ERROR(\"Insufficient elements in the specified \"\n \"GenericBetaCoeffs array\");\n }\n else if (ierr == UTIL_ERROR_TABLE_NO_SUCH_KEY)\n {\n CCTK_ERROR(\"When using the generic table options you \"\n \"must set \\\"GenericBetaCoeffs\\\" in the options table\");\n }\n else\n {\n CCTK_ERROR(\"Table error - check with Ian.\");\n }\n }\n ierr = Util_TableDestroy(options_table);\n }\n else\n {\n CCTK_ERROR(\"RKCoefficients does not recognize the value \"\n \"of Generic_Type\");\n }\n}\n\n/********************************************************************\n ********************* Local Routines *************************\n ********************************************************************/\n", diff --git a/CactusNumerical_Noise.json b/CactusNumerical_Noise.json index ec61422e38e69c979135bdd147d09373e1489380..ad78ad75f10f563e6e370de6a89cd75d9a64e714 100644 --- a/CactusNumerical_Noise.json +++ b/CactusNumerical_Noise.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusnumerical.git", "configuration": "", "interface": "# Interface definition for thorn Noise\n# $Header$\n\nIMPLEMENTS: Noise\n\nINHERITS: grid\n\nuses include header: Symmetry.h\n\n", - "params": "", + "param": "# Parameter definitions for thorn Noise\n# $Header$\n\n#------------------------------------------------------------------------------\n# Private:\n#------------------------------------------------------------------------------\nprivate:\n\nBOOLEAN apply_id_noise \"Add random noise to initial data\"\n{\n} \"no\"\n\nBOOLEAN apply_bc_noise \"Add random noise to initial data\"\n{\n} \"no\"\n\nSTRING id_vars \"Initial data variables to modify with noise\"\n{\n .* :: \"A regex which matches everything\"\n} \"\"\n\nSTRING bc_vars \"Variables to modify with noise at boundary\"\n{\n .* :: \"A regex which matches everything\"\n} \"\"\n\nBOOLEAN noise_boundaries[6] \"At which boundaries to apply noise\"\n{\n} \"yes\"\n\nINT noise_stencil[3] \"Number of boundary points\"\n{\n 0:* :: \"0:*\"\n} 1\n\nREAL amplitude \"Maximum absolute value of random data\"\n{\n 0: :: \"Positive number\"\n} 0.000001\n\n", "schedule": "# Schedule definitions for thorn Noise\n# $Header$\n\nif (apply_id_noise) {\n SCHEDULE id_noise AT CCTK_INITIAL AFTER (ADMBase_InitialData ADMBase_InitialGauge HydroBase_Initial) BEFORE (ADMBase_PostInitial HydroBase_Prim2ConInitial)\n {\n LANG: C\n } \"Add noise to initial data\"\n}\n\nif (apply_bc_noise) {\n SCHEDULE bc_noise AT CCTK_POSTSTEP\n {\n LANG: C\n } \"Add noise to boundary condition\"\n\n SCHEDULE bc_noise AT CCTK_POSTRESTRICT\n {\n LANG: C\n } \"Add noise to boundary condition\"\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Noise\n# $Header$\n\n# Source files in this directory\nSRCS = id_noise.c bc_noise.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusNumerical_Norms.json b/CactusNumerical_Norms.json index 38a6ffbb5f65bdd65476796d458e8e7d2d72b13a..6dbe4f69ccce8aa6915f1a9d9c0e3d0bcc626492 100644 --- a/CactusNumerical_Norms.json +++ b/CactusNumerical_Norms.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusnumerical.git", "configuration": "", "interface": "# Interface definition for thorn Norms\n# $Header$\n\nimplements: Norms\ninherits:\n\n\nprivate:\nINT handles_group TYPE=SCALAR\n{\n sum_handle\n} \"handles for reduction operators\"\n\n\nINT varinfo TYPE=ARRAY DIM=1 SIZE=max_nr_vars DISTRIB=constant\n{\n varindices_1st, varindices_2nd\n} \"variable info - which vars to compute norms for\"\n\nINT nrdecvar_gr TYPE=SCALAR\n{\n nr1stvars, nr2ndvars\n} \"number of vars to compute for 1st & 2nd order vars\"\n\nREAL bgvals_group TYPE=ARRAY DIM=1 SIZE=max_nr_vars DISTRIB=constant\n{\n bgvals_1st, bgvals_2nd\n} \"background value for variable - these get subtracted\"\n\nREAL norm_group TYPE=SCALAR\n{\n norm, norm_u, norm_v, norm_grad\n} \"computed norm\"\n\nREAL diff_term_group TYPE=GF\n{\n diff_term\n} \"diff terms for norm\"\n", - "params": "", + "param": "# Parameter definitions for thorn Norms\n# $Header$\n\n\nINT max_nr_vars \"maximum number of variables for which norms to compute\"\n{\n 0:* :: \"positive\"\n} 100\n\nINT verbose \"verbosity of output\"\n{\n 0:9 :: \"higher number means more verbose output\"\n} 0\n\nSTRING gridfunctions_1st \"Set of grid functions to compute norms for 2nd order variables\"\n{\n \".*\" :: \"List of grid function names\"\n} \"\"\n\nSTRING gridfunctions_2nd \"Set of grid functions to compute norms for 2nd order variables\"\n{\n \".*\" :: \"List of grid function names\"\n} \"\"\n", "schedule": "# Schedule definitions for thorn Norms\n# $Header$\n\nSTORAGE: varinfo nrdecvar_gr bgvals_group\n\n\n\nschedule Norms_Setup_Vars at WRAGH\n{\n LANG: C\n OPTIONS: global\n} \"check norm_type and setup the vars info\"\n\nschedule Norms_Compute_Norms at ANALYSIS\n{\n LANG: C\n STORAGE: diff_term_group norm_group\n TRIGGERS: norm_group\n} \"compute the norm\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Norms\n# $Header$\n\n# Source files in this directory\nSRCS = Setup_Vars.c Compute_Norm.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusNumerical_Periodic.json b/CactusNumerical_Periodic.json index a5a324641f098e49d800428dbe1398e6ebb9d7df..707fc9e0965037d3d573cb11405c5ccc2097387c 100644 --- a/CactusNumerical_Periodic.json +++ b/CactusNumerical_Periodic.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusnumerical.git", "configuration": "# Configuration definition for thorn Periodic\n\nREQUIRES THORNS: Slab\n", "interface": "# Interface definition for thorn Periodic\n\nIMPLEMENTS: Periodic\n\nUSES INCLUDE HEADER: Slab.h\n\n\n\nCCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name)\nREQUIRES FUNCTION SymmetryRegister\n\nCCTK_INT FUNCTION \\\n SymmetryRegisterGrid \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT IN ARRAY which_faces, \\\n CCTK_INT IN ARRAY symmetry_zone_width)\nREQUIRES FUNCTION SymmetryRegisterGrid\n\n\n\nCCTK_INT FUNCTION Boundary_SelectedGVs(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN array_size, CCTK_INT ARRAY OUT var_indicies, \\\n CCTK_INT ARRAY OUT faces, CCTK_INT ARRAY OUT boundary_widths, \\\n CCTK_INT ARRAY OUT table_handles, CCTK_STRING IN bc_name)\nREQUIRES FUNCTION Boundary_SelectedGVs\n\n\nCCTK_INT FUNCTION Periodic_ApplyVI( \\\n CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT IN ARRAY stencil, \\\n CCTK_INT IN ARRAY do_periodic, \\\n CCTK_INT IN var_index \\\n )\nPROVIDES FUNCTION Periodic_ApplyVI WITH BndPeriodicVI LANGUAGE C\n\nCCTK_INT FUNCTION Periodic_ApplyVN( \\\n CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT IN ARRAY stencil, \\\n CCTK_INT IN ARRAY do_periodic, \\\n CCTK_STRING IN var_name \\\n )\nPROVIDES FUNCTION Periodic_ApplyVN WITH BndPeriodicVN LANGUAGE C\n\nCCTK_INT FUNCTION Periodic_ApplyGI( \\\n CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT IN ARRAY stencil, \\\n CCTK_INT IN ARRAY do_periodic, \\\n CCTK_INT IN group_index \\\n )\nPROVIDES FUNCTION Periodic_ApplyGI WITH BndPeriodicGI LANGUAGE C\n\nCCTK_INT FUNCTION Periodic_ApplyGN( \\\n CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT IN ARRAY stencil, \\\n CCTK_INT IN ARRAY do_periodic, \\\n CCTK_STRING IN group_name \\\n )\nPROVIDES FUNCTION Periodic_ApplyGN WITH BndPeriodicGN LANGUAGE C\n\nCCTK_INT FUNCTION GetBoundarySpecification \\\n (CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nREQUIRES FUNCTION GetBoundarySpecification\n", - "params": "", + "param": "# Parameter definitions for thorn Periodic\n\nBOOLEAN verbose \"Produce screen output while applying boundary conditions\"\n{\n} \"no\"\n\nBOOLEAN periodic \"Periodic boundary conditions\"\n{\n} \"no\"\n\nBOOLEAN periodic_x \"Periodic boundary conditions in x-direction\"\n{\n} \"no\"\n\nBOOLEAN periodic_y \"Periodic boundary conditions in y-direction\"\n{\n} \"no\"\n\nBOOLEAN periodic_z \"Periodic boundary conditions in z-direction\"\n{\n} \"no\"\n\n\n\nBOOLEAN poison_boundaries \"Fill the symmetry boundary with a poison value before the symmetry is applied\" STEERABLE=always\n{\n} \"no\"\n\nCCTK_INT poison_value \"Integer value (0..255) used to poison new timelevels (with memset)\" STEERABLE=always\n{\n 0:255 :: \"Must fit into a byte. Use 0 for zero, 255 for nan, and e.g. 113 for a large value.\"\n} 254\n\nBOOLEAN check_boundaries \"Check the boundaries for poison\" STEERABLE=always\n{\n} \"no\"\n", "schedule": "# Schedule definitions for thorn Periodic\n\nSCHEDULE Periodic_RegisterBC IN SymmetryRegister\n{\n LANG: C\n} \"Register periodic boundary conditions\"\n\nSCHEDULE Periodic_ApplyBC IN BoundaryConditions\n{\n LANG: C\n} \"Apply periodic boundary conditions\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Periodic\n\n# Source files in this directory\nSRCS = periodic.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusNumerical_ReflectionSymmetry.json b/CactusNumerical_ReflectionSymmetry.json index 91c1b883ee5425d4083cf306374e9968680a4b81..bd3dbca7eaf5bd2fa1ea40bd8e17f8df8333651c 100644 --- a/CactusNumerical_ReflectionSymmetry.json +++ b/CactusNumerical_ReflectionSymmetry.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusnumerical.git", "configuration": "", "interface": "# Interface definition for thorn ReflectionSymmetry\n\nIMPLEMENTS: ReflectionSymmetry\n\n\n\nCCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name)\nREQUIRES FUNCTION SymmetryRegister\n\n# which_faces : array [N_FACES] \n# symmetry_zone_width: array [N_FACES]\nCCTK_INT FUNCTION \\\n SymmetryRegisterGrid \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT IN ARRAY which_faces, \\\n CCTK_INT IN ARRAY symmetry_zone_width)\nREQUIRES FUNCTION SymmetryRegisterGrid\n\nCCTK_INT FUNCTION \\\n SymmetryRegisterGridInterpolator \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT CCTK_FPOINTER IN symmetry_interpolate \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays, \\\n CCTK_INT IN faces))\nREQUIRES FUNCTION SymmetryRegisterGridInterpolator\n\nCCTK_INT FUNCTION \\\n SymmetryInterpolateFaces \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays, \\\n CCTK_INT IN faces)\nREQUIRES FUNCTION SymmetryInterpolateFaces\n\n\n\nCCTK_INT FUNCTION Boundary_SelectedGVs \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN array_size, \\\n CCTK_INT ARRAY OUT var_indicies, \\\n CCTK_INT ARRAY OUT faces, \\\n CCTK_INT ARRAY OUT boundary_widths, \\\n CCTK_INT ARRAY OUT table_handles, \\\n CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectedGVs\n\n\n\nCCTK_INT FUNCTION GetBoundarySpecification \\\n (CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nREQUIRES FUNCTION GetBoundarySpecification\n", - "params": "", + "param": "# Parameter definitions for thorn ReflectionSymmetry\n\nBOOLEAN verbose \"Produce screen output while applying boundary conditions\"\n{\n} \"no\"\n\n\n\nBOOLEAN reflection_x \"Reflection symmetry at the lower x boundary\"\n{\n} \"no\"\n\nBOOLEAN reflection_y \"Reflection symmetry at the lower y boundary\"\n{\n} \"no\"\n\nBOOLEAN reflection_z \"Reflection symmetry at the lower z boundary\"\n{\n} \"no\"\n\n\n\nBOOLEAN reflection_upper_x \"Reflection symmetry at the upper x boundary\"\n{\n} \"no\"\n\nBOOLEAN reflection_upper_y \"Reflection symmetry at the upper y boundary\"\n{\n} \"no\"\n\nBOOLEAN reflection_upper_z \"Reflection symmetry at the upper z boundary\"\n{\n} \"no\"\n\n\n\nBOOLEAN avoid_origin_x \"Stagger about the origin on the lower x boundary?\"\n{\n} \"yes\"\n\nBOOLEAN avoid_origin_y \"Stagger about the origin on the lower y boundary?\"\n{\n} \"yes\"\n\nBOOLEAN avoid_origin_z \"Stagger about the origin on the lower z boundary?\"\n{\n} \"yes\"\n\n\n\nBOOLEAN avoid_origin_upper_x \"Stagger about the origin on the upper x boundary?\"\n{\n} \"yes\"\n\nBOOLEAN avoid_origin_upper_y \"Stagger about the origin on the upper y boundary?\"\n{\n} \"yes\"\n\nBOOLEAN avoid_origin_upper_z \"Stagger about the origin on the upper z boundary?\"\n{\n} \"yes\"\n", "schedule": "# Schedule definitions for thorn ReflectionSymmetry\n\nSCHEDULE ReflectionSymmetry_Register IN SymmetryRegister\n{\n LANG: C\n} \"Register reflection symmetry boundaries\"\n\nSCHEDULE ReflectionSymmetry_Apply IN BoundaryConditions\n{\n LANG: C\n} \"Apply reflection symmetries\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn ReflectionSymmetry\n\n# Source files in this directory\nSRCS = apply.c interpolate.c register.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusNumerical_RotatingSymmetry180.json b/CactusNumerical_RotatingSymmetry180.json index 869f495791b507c93974a054606e6fc85b05c26a..204f9fa1d3cc2ce630ce8f5254975df13b075999 100644 --- a/CactusNumerical_RotatingSymmetry180.json +++ b/CactusNumerical_RotatingSymmetry180.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusnumerical.git", "configuration": "# Configuration definition for thorn RotatingSymmetry180\n\nREQUIRES THORNS: Slab\n", "interface": "# Interface definition for thorn RotatingSymmetry180\n\nIMPLEMENTS: RotatingSymmetry180\n\nUSES INCLUDE HEADER: Slab.h\n\n\n\nCCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name)\nREQUIRES FUNCTION SymmetryRegister\n\n# which_faces : array [N_FACES] \n# symmetry_zone_width: array [N_FACES]\nCCTK_INT FUNCTION \\\n SymmetryRegisterGrid \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT ARRAY IN which_faces, \\\n CCTK_INT ARRAY IN symmetry_zone_width)\nREQUIRES FUNCTION SymmetryRegisterGrid\n\nCCTK_INT FUNCTION \\\n SymmetryRegisterGridInterpolator \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT CCTK_FPOINTER IN symmetry_interpolate \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays, \\\n CCTK_INT IN faces))\nREQUIRES FUNCTION SymmetryRegisterGridInterpolator\n\nCCTK_INT FUNCTION \\\n SymmetryInterpolateFaces \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays, \\\n CCTK_INT IN faces)\nREQUIRES FUNCTION SymmetryInterpolateFaces\n\n\n\nCCTK_INT FUNCTION \\\n Boundary_SelectedGVs \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN array_size, \\\n CCTK_INT ARRAY OUT var_indicies, \\\n CCTK_INT ARRAY OUT faces, \\\n CCTK_INT ARRAY OUT boundary_widths, \\\n CCTK_INT ARRAY OUT table_handles, \\\n CCTK_STRING IN bc_name)\nREQUIRES FUNCTION Boundary_SelectedGVs\n\n\n\nCCTK_INT FUNCTION \\\n GetDomainSpecification \\\n (CCTK_INT IN size, \\\n CCTK_REAL ARRAY OUT physical_min, \\\n CCTK_REAL ARRAY OUT physical_max, \\\n CCTK_REAL ARRAY OUT interior_min, \\\n CCTK_REAL ARRAY OUT interior_max, \\\n CCTK_REAL ARRAY OUT exterior_min, \\\n CCTK_REAL ARRAY OUT exterior_max, \\\n CCTK_REAL ARRAY OUT spacing)\nUSES FUNCTION GetDomainSpecification\n\n\n\nCCTK_INT FUNCTION \\\n GetRegriddingEpoch \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION GetRegriddingEpoch\n\nCCTK_INT FUNCTION \\\n GetRefinementLevel \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION GetRefinementLevel\n\nCCTK_INT FUNCTION \\\n GetRefinementLevels \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION GetRefinementLevels\n\nCCTK_INT FUNCTION \\\n GetLocalComponents \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION GetLocalComponents\n\n\n\nCCTK_INT FUNCTION \\\n Hyperslab_GlobalMappingByIndex \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN vindex, \\\n CCTK_INT IN hdim, \\\n CCTK_INT ARRAY IN direction, \\\n CCTK_INT ARRAY IN origin, \\\n CCTK_INT ARRAY IN extent, \\\n CCTK_INT ARRAY IN downsample, \\\n CCTK_INT IN table_handle, \\\n CCTK_INT CCTK_FPOINTER IN \\\n conversion_fn \\\n (CCTK_INT IN nelems, \\\n CCTK_INT IN src_stride, \\\n CCTK_INT IN dst_stride, \\\n CCTK_INT IN src_type, \\\n CCTK_INT IN dst_type, \\\n CCTK_POINTER_TO_CONST IN from, \\\n CCTK_POINTER IN to), \\\n CCTK_INT ARRAY OUT hsize)\nUSES FUNCTION Hyperslab_GlobalMappingByIndex\n\nCCTK_INT FUNCTION \\\n Hyperslab_GetList \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN mapping_handle, \\\n CCTK_INT IN num_arrays, \\\n CCTK_INT ARRAY IN procs, \\\n CCTK_INT ARRAY IN vindices, \\\n CCTK_INT ARRAY IN timelevels, \\\n CCTK_INT ARRAY IN hdatatypes, \\\n CCTK_POINTER ARRAY IN hdata, \\\n CCTK_INT ARRAY OUT retvals)\nUSES FUNCTION Hyperslab_GetList\n\nCCTK_INT FUNCTION \\\n Hyperslab_FreeMapping \\\n (CCTK_INT IN mapping_handle)\nUSES FUNCTION Hyperslab_FreeMapping\n\n\n\nCCTK_INT FUNCTION GetBoundarySpecification \\\n (CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nREQUIRES FUNCTION GetBoundarySpecification\n", - "params": "", + "param": "# Parameter definitions for thorn RotatingSymmetry180\n\nBOOLEAN verbose \"Produce screen output while applying boundary conditions\" STEERABLE=always\n{\n} \"no\"\n\n\n\nKEYWORD hyperslabber \"Hyperslabbing mechanism\" STEERABLE=always\n{\n \"TAT/Slab\" :: \"\"\n \"GetHyperslab\" :: \"\"\n} \"TAT/Slab\"\n\n\n\nBOOLEAN use_coordbase \"Get symmetry boundary location from CoordBase (and ignore symmetry_boundary_* parameters)\"\n{\n} \"no\"\n\nCCTK_REAL symmetry_boundary_x \"x-coordinate of symmetry boundary (ignored if use_coordbase is set)\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL symmetry_boundary_y \"y-coordinate of symmetry boundary (ignored if use_coordbase is set)\"\n{\n *:* :: \"\"\n} 0.0\n\n\n\nBOOLEAN poison_boundaries \"Fill the symmetry boundary with a poison value before the symmetry is applied\" STEERABLE=always\n{\n} \"no\"\n\nCCTK_INT poison_value \"Integer value (0..255) used to poison new timelevels (with memset)\" STEERABLE=always\n{\n 0:255 :: \"Must fit into a byte. Use 0 for zero, 255 for nan, and e.g. 113 for a large value.\"\n} 254\n\nBOOLEAN check_boundaries \"Check the boundaries for poison\" STEERABLE=always\n{\n} \"no\"\n", "schedule": "# Schedule definitions for thorn RotatingSymmetry180\n\nSCHEDULE Rot180_CheckTensorTypes AT paramcheck\n{\n LANG: C\n} \"Check tensor type definitions for consistency\"\n\nSCHEDULE Rot180_RegisterSymmetry IN SymmetryRegister\n{\n LANG: C\n} \"Register symmetry boundaries\"\n\nSCHEDULE Rot180_ComputeLevelExtent IN BoundaryConditions BEFORE Rot180_ApplyBC\n{\n LANG: C\n OPTIONS: LEVEL\n} \"Compute extent of level\"\n\nSCHEDULE Rot180_ApplyBC IN BoundaryConditions\n{\n LANG: C\n} \"Apply 180 degree rotational symmetry boundary condition\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn RotatingSymmetry180\n\n# Source files in this directory\nSRCS = interpolate.c rotatingsymmetry180.c registersymmetry.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusNumerical_RotatingSymmetry90.json b/CactusNumerical_RotatingSymmetry90.json index 96a8319cff21a3816eb86a83dbdd610cfab123a4..2c3874f4f3f4fc0c441c2a7f00cc2d8c775ac765 100644 --- a/CactusNumerical_RotatingSymmetry90.json +++ b/CactusNumerical_RotatingSymmetry90.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusnumerical.git", "configuration": "# Configuration definition for thorn RotatingSymmetry90\n\nREQUIRES THORNS: Slab\n", "interface": "# Interface definition for thorn RotatingSymmetry90\n\nIMPLEMENTS: RotatingSymmetry90\n\nUSES INCLUDE HEADER: Slab.h\n\n\n\nCCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name)\nREQUIRES FUNCTION SymmetryRegister\n\n# which_faces : array [N_FACES] \n# symmetry_zone_width: array [N_FACES]\nCCTK_INT FUNCTION \\\n SymmetryRegisterGrid \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT IN ARRAY which_faces, \\\n CCTK_INT IN ARRAY symmetry_zone_width)\nREQUIRES FUNCTION SymmetryRegisterGrid\n\nCCTK_INT FUNCTION \\\n SymmetryRegisterGridInterpolator \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT CCTK_FPOINTER IN symmetry_interpolate \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays, \\\n CCTK_INT IN faces))\nREQUIRES FUNCTION SymmetryRegisterGridInterpolator\n\nCCTK_INT FUNCTION \\\n SymmetryInterpolateFaces \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays, \\\n CCTK_INT IN faces)\nREQUIRES FUNCTION SymmetryInterpolateFaces\n\n\n\nCCTK_INT FUNCTION Boundary_SelectedGVs \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN array_size, \\\n CCTK_INT ARRAY OUT var_indicies, \\\n CCTK_INT ARRAY OUT faces, \\\n CCTK_INT ARRAY OUT boundary_widths, \\\n CCTK_INT ARRAY OUT table_handles, \\\n CCTK_STRING IN bc_name)\nREQUIRES FUNCTION Boundary_SelectedGVs\n\n\n\nCCTK_INT FUNCTION \\\n GetRegriddingEpoch \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION GetRegriddingEpoch\n\nCCTK_INT FUNCTION \\\n GetRefinementLevel \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION GetRefinementLevel\n\nCCTK_INT FUNCTION \\\n GetRefinementLevels \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION GetRefinementLevels\n\nCCTK_INT FUNCTION \\\n GetLocalComponents \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION GetLocalComponents\n\n\n\nCCTK_INT FUNCTION GetBoundarySpecification \\\n (CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nREQUIRES FUNCTION GetBoundarySpecification\n", - "params": "", + "param": "# Parameter definitions for thorn RotatingSymmetry90\n\nBOOLEAN verbose \"Produce screen output while applying boundary conditions\"\n{\n} \"no\"\n\n\n\nBOOLEAN poison_boundaries \"Fill the symmetry boundary with a poison value before the symmetry is applied\" STEERABLE=always\n{\n} \"no\"\n\nCCTK_INT poison_value \"Integer value (0..255) used to poison new timelevels (with memset)\" STEERABLE=always\n{\n 0:255 :: \"Must fit into a byte. Use 0 for zero, 255 for nan, and e.g. 113 for a large value.\"\n} 254\n\nBOOLEAN check_boundaries \"Check the boundaries for poison\" STEERABLE=always\n{\n} \"no\"\n", "schedule": "# Schedule definitions for thorn RotatingSymmetry90\n\nSCHEDULE Rot90_CheckTensorTypes AT paramcheck\n{\n LANG: C\n} \"Check tensor type definitions for consistency\"\n\nSCHEDULE Rot90_RegisterSymmetry IN SymmetryRegister\n{\n LANG: C\n} \"Register symmetry boundaries\"\n\nSCHEDULE Rot90_ComputeLevelExtent IN BoundaryConditions BEFORE Rot90_ApplyBC\n{\n LANG: C\n OPTIONS: LEVEL\n} \"Compute extent of level\"\n\nSCHEDULE Rot90_ApplyBC IN BoundaryConditions\n{\n LANG: C\n} \"Apply 90 degree rotational symmetry boundary condition\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn RotatingSymmetry90\n\n# Source files in this directory\nSRCS = interpolate.c rotatingsymmetry90.c registersymmetry.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusNumerical_Slab.json b/CactusNumerical_Slab.json index dffaa52ce8ab1a656bc4923899086f960fd843e6..6a77c319a823db1be7e1ab61b817642fd87735cf 100644 --- a/CactusNumerical_Slab.json +++ b/CactusNumerical_Slab.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusnumerical.git", "configuration": "# Configuration definition for thorn Slab\n\nPROVIDES Slab\n{\n}\n\nOPTIONAL LoopControl MPI\n{\n}\n", "interface": "# Interface definition for thorn Slab\n\nIMPLEMENTS: Slab\n\nINCLUDES HEADER: slab.h IN Slab.h\nINCLUDES HEADER: slab.inc IN Slab.inc\n\nUSES INCLUDE HEADER: loopcontrol.h\n\nCCTK_POINTER_TO_CONST \\\nFUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION GetMPICommWorld\n", - "params": "", + "param": "# Parameter definitions for thorn Slab\n\nBOOLEAN timer_output \"Print slabbing timings at shutdown time\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN use_alltoallv \"Use MPI_Alltoallv for communication?\" STEERABLE=always\n{\n} \"no\"\n", "schedule": "# Schedule definitions for thorn Slab\n\nSCHEDULE Slab_InitMPIDatatypes AT startup after Driver_Startup\n{\n LANG: C\n} \"Create MPI datatypes for complex variables in C\"\n\nSCHEDULE Slab_InitTimers AT wragh\n{\n LANG: C\n} \"Initialise timers\"\n\nif (timer_output) {\n SCHEDULE Slab_PrintTimers AT shutdown\n {\n LANG: C\n } \"Print timers\"\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Slab\n\n# Source files in this directory\nSRCS = slab.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusNumerical_SlabTest.json b/CactusNumerical_SlabTest.json index f34ff2e0ec7a9996a97babdc5ebdd654f158647e..57207d458e22b7eec80e3bbe66e996fc6f1105db 100644 --- a/CactusNumerical_SlabTest.json +++ b/CactusNumerical_SlabTest.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusnumerical.git", "configuration": "", "interface": "# Interface definition for thorn SlabTest\n# $Header$\n\nIMPLEMENTS: SlabTest\n\nINHERITS: Slab\n\nUSES INCLUDE HEADER: Slab.h\n\n\n\nCCTK_REAL gfs TYPE=gf\n{\n gfx gfy gfz\n} \"grid functions\"\n\nCCTK_INT igfs TYPE=gf\n{\n igfx igfy igfz\n} \"integer grid functions\"\n\nCCTK_REAL a1s TYPE=array DIM=1 SIZE=10\n{\n a1x a1y a1z\n} \"1D grid arrays\"\n\nCCTK_REAL a2s TYPE=array DIM=2 SIZE=10,10\n{\n a2x a2y a2z\n} \"2D grid arrays\"\n\nCCTK_REAL a3s TYPE=array DIM=3 SIZE=10,10,10\n{\n a3x a3y a3z\n} \"3D grid arrays\"\n\n\n\nCCTK_INT success \"Indicate a successful test\"\n", - "params": "", + "param": "# Parameter definitions for thorn SlabTest\n# $Header$\n", "schedule": "# Schedule definitions for thorn SlabTest\n# $Header$\n\nSTORAGE: success\n\nSCHEDULE SlabTest_Test AT initial\n{\n LANG: C\n STORAGE: gfs a1s a2s a3s igfs\n} \"Test Slab transfer routines\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn SlabTest\n# $Header$\n\n# Source files in this directory\nSRCS = slabtest.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusNumerical_SpaceMask.json b/CactusNumerical_SpaceMask.json index d113ff40e3cce22d70f71889a884f47c49ecef4e..0e93b4fc7811687e53904d7fa139f7b2bacdb27b 100644 --- a/CactusNumerical_SpaceMask.json +++ b/CactusNumerical_SpaceMask.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusnumerical.git", "configuration": "# Configuration definition for thorn SpaceMask\n# $Header$\n\nPROVIDES SpaceMask\n{\n SCRIPT\n LANG\n}\n\nREQUIRES CartGrid3D\n", "interface": "# Interface definition for thorn SpaceMask\n# $Header$\n\nimplements: SpaceMask\ninherits: grid\n\nUSES INCLUDE: Symmetry.h\n\n# our header file \"SpaceMask.h\" may be #included by other thorns\nINCLUDE HEADER: SpaceMask.h in SpaceMask.h\n\npublic:\n\nCCTK_INT space_mask_group type=GF tags='tensortypealias=\"Scalar\" Prolongation=\"None\"'\n{\n space_mask\n}\n\n#\n# The following emask GF is kept for the sake of compatibility with\n# the existing excision thorns. Once these are translated to the new\n# mask, this function will disappear. Please don't use it for\n# anything.\n#\nreal mask type = GF tags='tensortypealias=\"Scalar\" Prolongation=\"None\"'\n{\n emask\n} \"Mask\"\n\n", - "params": "", + "param": "# Parameter definitions for thorn SpaceMask\n# $Header$\n\nrestricted:\n\nBOOLEAN use_mask \"Turn on storage for mask?\"\n{\n} \"no\"\n", "schedule": "# Schedule definitions for thorn SpaceMask\n# $Header$\n\nif (use_mask)\n{\n STORAGE: space_mask_group\n\n schedule MaskZero at CCTK_BASEGRID\n {\n LANG: C\n WRITES: SPACEMASK::space_mask(everywhere)\n } \"Initialise mask to zero\"\n\n schedule MaskSym at CCTK_WRAGH\n {\n LANG: C\n OPTIONS: global\n } \"Set grid symmetries for mask\"\n\n#Initialize the mask again for mesh refinement\n schedule MaskZero at CCTK_POSTREGRIDINITIAL\n {\n LANG: C\n WRITES: SPACEMASK::space_mask(everywhere)\n } \"Initialise mask to zero\"\n\n schedule MaskZero at CCTK_POSTREGRID\n {\n LANG: C\n WRITES: SPACEMASK::space_mask(everywhere)\n } \"Initialise mask to zero\"\n\n #\n # The following is for compatibility with current excision routines,\n # and will be removed once they are up-to-date with the new mask\n # scheme.\n #\n STORAGE: mask\n schedule MaskSym_emask at CCTK_WRAGH\n {\n LANG: C\n OPTIONS: global\n } \"Set grid symmetries for emask (compatibility mode)\"\n\n schedule MaskOne at CCTK_BASEGRID\n {\n LANG: C\n WRITES: SPACEMASK::emask(everywhere)\n } \"Set old style mask to one\"\n\n schedule CheckMask at CCTK_POSTSTEP\n {\n LANG: C\n READS: SPACEMASK::emask(everywhere)\n } \"Ensure that all mask values are legal\"\n\n#Initialize the mask again for mesh refinement\n schedule MaskOne at CCTK_POSTREGRIDINITIAL\n {\n LANG: C\n WRITES: SPACEMASK::emask(everywhere)\n } \"Set mask to one\"\n\n schedule MaskOne at CCTK_POSTREGRID\n {\n LANG: C\n WRITES: SPACEMASK::emask(everywhere)\n } \"Set mask to one\"\n\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn SpaceMask\n# $Header$\n\n# Source files in this directory\nSRCS = MaskInit.c MaskUtils.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusNumerical_SphericalSurface.json b/CactusNumerical_SphericalSurface.json index b47c617dc30364f2e3bf197e5bcce82706e6f471..496ea47ee95bd61db8d950175a8e9f454440ff9f 100644 --- a/CactusNumerical_SphericalSurface.json +++ b/CactusNumerical_SphericalSurface.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusnumerical.git", "configuration": "", "interface": "# Interface definition for thorn SphericalSurface\n\nIMPLEMENTS: SphericalSurface\ninherits: grid\n\n\n\n# Get current refinement level\nCCTK_INT FUNCTION GetRefinementLevel (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION GetRefinementLevel\n\n# simple translation function from user-friendly name to numerical Id\n# if name is not empty returns the matching name and -1 if no name matches\n# if name is empty returns fallbackid\nCCTK_INT \\\nFUNCTION sf_IdFromName (CCTK_INT IN fallbackid, CCTK_POINTER_TO_CONST IN name)\nPROVIDES FUNCTION sf_IdFromName WITH SphericalSurface_IdFromName LANGUAGE C\n\n\n\nPUBLIC:\n\n\n# To be defined by the setting thorn.\n# Suggested meanings:\n# zero: The surface data are invalid (garbage)\n# one: The surface data are valid in principle, although they may be outdated\nCCTK_INT sf_active[nsurfaces] TYPE=scalar\n\n# To be defined by the setting thorn.\n# Suggested meanings: \n# zero: No surface is provided at this time step\n# negative: No surface could be found at this time step\n# positive: The surface data are valid\nCCTK_INT sf_valid[nsurfaces] TYPE=scalar\n\n\n\n\n\nCCTK_REAL sf_info[nsurfaces] TYPE=scalar\n{\n # The following are covariant quantities:\n \n # proper area:\n # A := int(S) sqrt(q) dS\n # with q_ij the 2-metric on the surface\n sf_area\n \n \n \n # The following are coordinate-dependent quantities:\n \n # monopole moment (average coordinate radius):\n # M := int(S) h ds / A\n sf_mean_radius\n\n # dipole moment:\n # D^i := int(S) x^i dS / A\n sf_centroid_x sf_centroid_y sf_centroid_z\n\n # quadrupole moment:\n # Q^ij := int(S) y^i y^j dS / A with y^i := x^i - D^i\n sf_quadrupole_xx sf_quadrupole_xy sf_quadrupole_xz\n sf_quadrupole_yy sf_quadrupole_yz sf_quadrupole_zz\n \n \n \n # minimum and maximum coordinate radius\n sf_min_radius sf_max_radius\n\n # bounding box\n sf_min_x sf_min_y sf_min_z sf_max_x sf_max_y sf_max_z\n} \"Surface information\"\n\n\n\n# the finest reflevel each surface is intersecting\nCCTK_INT sf_minreflevel[nsurfaces] TYPE=scalar\n\n# the finest reflevel that contains the entire surface\nCCTK_INT sf_maxreflevel[nsurfaces] TYPE=scalar\n\n\nCCTK_REAL sf_radius[nsurfaces] TYPE=array DIM=2 SIZE=maxntheta,maxnphi DISTRIB=constant #TAGS='convergence_power=1'\n\nCCTK_REAL sf_origin[nsurfaces] TYPE=scalar\n{\n # these are to be set together with the radius grid array\n sf_origin_x sf_origin_y sf_origin_z\n}\n\n\n \nCCTK_REAL sf_coordinate_descriptors[nsurfaces] TYPE=scalar\n{\n # these are set up by this thorn, and should be treated as read-only\n sf_origin_theta sf_origin_phi\n sf_delta_theta sf_delta_phi\n} \"Surface coordinate descriptors\"\n\n\n\nCCTK_INT sf_shape_descriptors[nsurfaces] TYPE=scalar\n{\n sf_ntheta sf_nphi\n sf_nghoststheta sf_nghostsphi\n} \"Surface shape descriptors\"\n\n\nprivate:\n\n\nCCTK_REAL sf_coordinate_estimators[nsurfaces] TYPE=scalar\n{\n sf_delta_theta_estimate sf_delta_phi_estimate\n} \"Surface coordinate estimators\"\n", - "params": "", + "param": "# Parameter definitions for thorn SphericalSurface\n\nRESTRICTED:\n\n# You can enlarge the possible number of surfaces by changing the maximum\n# 42 in the parameter nsurfaces, and by changing the array sizes [42] found\n# in many of the parameters below.\n\nCCTK_INT nsurfaces \"Number of surfaces\" STEERABLE=recover\n{\n 0:42 :: \"\"\n} 0\n\n# can be queried via SphericalSurface_IdFromName()\nCCTK_STRING name[42] \"User friendly name of spherical surface\" STEERABLE=always\n{\n \"\" :: \"none set\"\n \".*\" :: \"any string\"\n} \"\"\n\n\n# Warning: this will MPI hang when the number of components per refinement\n# level differs between processors\nBOOLEAN auto_res[42] \"Automatically determine resolution according to radius and Cartesian resolution\"\n{\n} no\n\n\nCCTK_REAL auto_res_ratio[42] \"Multiplicative factor by which we want to scale the resolution with respect to Cartesian resolution\"\n{\n 0:* :: \"\"\n} 2.0\n\n\nKEYWORD auto_res_grid[42] \"Choose resolution according to how grids overlap\" \n{\n \"fully contained\" :: \"SF must be fully contained in Cartesian grid\"\n \"overlap\" :: \"SF overlaps with grid\"\n \"multipatch\" :: \"SF potentially overlaps with a spherical mutipatch grid\"\n} \"fully contained\"\n\n\n\nBOOLEAN verbose \"Shall I be verbose?\"\n{\n} no\n\n\n# Default parameter values do not trigger accumulator expressions.\n# Therefore the default values here must be large enough for the default\n# surface shape.\n\n# These parameters change the size of a checkpointed grid array. When changing them you will have to skip recovering sf_radius.\n\n#CCTK_INT maxntheta \"do not set this parameter directly\" ACCUMULATOR=((x>y)*x+!(x>y)*y)\nCCTK_INT maxntheta \"Maximum number of grid points in the theta direction\" STEERABLE=RECOVER\n{\n 0:* :: \"\"\n} 19\n\n#CCTK_INT maxnphi \"do not set this parameter directly\" ACCUMULATOR=((x>y)*x+!(x>y)*y)\nCCTK_INT maxnphi \"Maximum number of grid points in the phi direction\" STEERABLE=RECOVER\n{\n 0:* :: \"\"\n} 38\n\n\nCCTK_INT ntheta[42] \"Number of grid points in the theta direction\" STEERABLE=always #ACCUMULATOR-BASE maxntheta\n{\n 0:* :: \"must be at least 3*nghoststheta\"\n} 19\n\nCCTK_INT nphi[42] \"Number of grid points in the phi direction\" STEERABLE=always #ACCUMULATOR-BASE maxnphi\n{\n 0:* :: \"must be at least 3*nghostsphi\"\n} 38\n\n\n\nCCTK_INT nghoststheta[42] \"Number of ghost zones in the theta direction\" STEERABLE=always #ACCUMULATOR-BASE maxnghoststheta\n{\n 0:* :: \"\"\n} 2\n\nCCTK_INT nghostsphi[42] \"Number of ghost zones in the phi direction\" STEERABLE=always #ACCUMULATOR-BASE maxnghostsphi\n{\n 0:* :: \"\"\n} 2\n\n\n\nBOOLEAN symmetric_x[42] \"Reflection symmetry in the x direction\" STEERABLE=always\n{\n} no\n\nBOOLEAN symmetric_y[42] \"Reflection symmetry in the y direction\" STEERABLE=always\n{\n} no\n\nBOOLEAN symmetric_z[42] \"Reflection symmetry in the z direction\" STEERABLE=always\n{\n} no\n\n\n\nPRIVATE:\n\n\n\n\n\n# Place a surfaces at a certain location\n\nCCTK_REAL origin_x[42] \"Origin for surface\" STEERABLE=always\n{\n * :: \"origin\"\n} 0.0\n\nCCTK_REAL origin_y[42] \"Origin for surface\" STEERABLE=always\n{\n * :: \"origin\"\n} 0.0\n\nCCTK_REAL origin_z[42] \"Origin for surface\" STEERABLE=always\n{\n * :: \"origin\"\n} 0.0\n\n\n\nBOOLEAN set_spherical[42] \"Place surface at a certain radius\" STEERABLE=always\n{\n} no\n\nCCTK_REAL radius[42] \"Radius for surface\" STEERABLE=always\n{\n * :: \"radius\"\n} 0.0\n\n\n\nBOOLEAN set_elliptic[42] \"Place surface at a certain radius\" STEERABLE=always\n{\n} no\n\nCCTK_REAL radius_x[42] \"Radius for surface\" STEERABLE=always\n{\n * :: \"radius\"\n} 0.0\n\nCCTK_REAL radius_y[42] \"Radius for surface\" STEERABLE=always\n{\n * :: \"radius\"\n} 0.0\n\nCCTK_REAL radius_z[42] \"Radius for surface\" STEERABLE=always\n{\n * :: \"radius\"\n} 0.0\n", "schedule": "# Schedule definitions for thorn SphericalSurface\n\nSTORAGE: sf_active\nSTORAGE: sf_valid\nSTORAGE: sf_info\nSTORAGE: sf_radius sf_origin\nSTORAGE: sf_coordinate_descriptors\nSTORAGE: sf_coordinate_estimators\nSTORAGE: sf_shape_descriptors\nSTORAGE: sf_minreflevel\nSTORAGE: sf_maxreflevel\n\n\n\nSCHEDULE SphericalSurface_SetupRes AT basegrid BEFORE SphericalSurface_Setup AFTER SpatialCoordinates AFTER CorrectCoordinates\n{\n LANG: C\n OPTIONS: global loop-local\n WRITES: SphericalSurface::sf_coordinate_estimators(everywhere)\n WRITES: SphericalSurface::sf_minreflevel(everywhere)\n WRITES: SphericalSurface::sf_maxreflevel(everywhere)\n} \"Set surface resolution automatically\"\n\nSCHEDULE SphericalSurface_Setup AT basegrid\n{\n LANG: C\n OPTIONS: global\n READS: SphericalSurface::sf_coordinate_estimators\n READS: SphericalSurface::sf_minreflevel\n READS: SphericalSurface::sf_maxreflevel\n WRITES: SphericalSurface::sf_shape_descriptors(everywhere)\n WRITES: SphericalSurface::sf_coordinate_descriptors(everywhere)\n WRITES: SphericalSurface::sf_active(everywhere)\n WRITES: SphericalSurface::sf_valid(everywhere)\n} \"Calculate surface coordinate descriptors\"\n\nSCHEDULE SphericalSurface_Set AT basegrid BEFORE SphericalSurface_HasBeenSet\n{\n LANG: C\n OPTIONS: global\n READS: SphericalSurface::sf_shape_descriptors\n READS: SphericalSurface::sf_coordinate_descriptors\n WRITES: SphericalSurface::sf_active(everywhere)\n WRITES: SphericalSurface::sf_valid(everywhere)\n WRITES: SphericalSurface::sf_info(everywhere)\n WRITES: SphericalSurface::sf_origin(everywhere)\n WRITES: SphericalSurface::sf_radius(everywhere)\n} \"Set surface radii to be used for initial setup in other thorns\"\n\nSCHEDULE GROUP SphericalSurface_HasBeenSet AT basegrid\n{\n} \"Set the spherical surfaces before this group, and use it afterwards\"\n\n\n\nSCHEDULE SphericalSurface_Set AT poststep BEFORE SphericalSurface_HasBeenSet\n{\n LANG: C\n OPTIONS: global\n} \"Set surface radii\"\n\nSCHEDULE GROUP SphericalSurface_HasBeenSet AT poststep\n{\n} \"Set the spherical surfaces before this group, and use it afterwards\"\n\n\n\nSCHEDULE SphericalSurface_CheckState IN SphericalSurface_HasBeenSet\n{\n LANG: C\n OPTIONS: global\n READS: SphericalSurface::sf_valid\n READS: SphericalSurface::sf_active\n} \"Test the state of the spherical surfaces\"\n\n\n\nschedule SphericalSurface_ParamCheck AT ParamCheck\n{\n LANG: C\n OPTIONS: global\n} \"Check that all surface names are unique\"\n", "src": { "radius.c": "#include \n#include \n#include \n\n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Parameters.h\"\n\n\n\nstatic\nCCTK_REAL min (CCTK_REAL const x, CCTK_REAL const y)\n{\n return x < y ? x : y;\n}\n\nstatic\nCCTK_REAL max (CCTK_REAL const x, CCTK_REAL const y)\n{\n return x > y ? x : y;\n}\n\n\n\nvoid SphericalSurface_Set (CCTK_ARGUMENTS)\n{\n DECLARE_CCTK_ARGUMENTS_SphericalSurface_Set;\n DECLARE_CCTK_PARAMETERS;\n \n CCTK_REAL const pi = 3.1415926535897932384626433832795028841971693993751;\n \n int n;\n int i, j;\n \n \n \n for (n=0; n ir+1) call CCTK_WARN (0, \"domain too small\")\n dvar(il:ir,:,:) = ( a(1) * ( var(il+1:ir+1,:,:) - &\n var(il-1:ir-1,:,:) ) + &\n a(2) * ( var(il+2:ir+2,:,:) - &\n var(il-2:ir-2,:,:) ) + &\n a(3) * ( var(il+3:ir+3,:,:) - &\n var(il-3:ir-3,:,:) ) ) * idel\n case (1) direction\n if ( zero_derivs_y /= 0 ) then\n dvar = zero\n else\n if ( bb(1) == 0 ) then\n jl = 1 + gsize\n else\n ol = offset(1)\n dvar(:,1+ol,:) = ( q(1,1) * var(:,1+ol,:) + q(2,1) * var(:,2+ol,:) + &\n q(3,1) * var(:,3+ol,:) + q(4,1) * var(:,4+ol,:) + &\n q(5,1) * var(:,5+ol,:) + q(6,1) * var(:,6+ol,:) + &\n q(7,1) * var(:,7+ol,:) ) * idel\n dvar(:,2+ol,:) = ( q(1,2) * var(:,1+ol,:) + q(2,2) * var(:,2+ol,:) + &\n q(3,2) * var(:,3+ol,:) + q(4,2) * var(:,4+ol,:) + &\n q(5,2) * var(:,5+ol,:) + q(6,2) * var(:,6+ol,:) + &\n q(7,2) * var(:,7+ol,:) + q(8,2) * var(:,8+ol,:) + &\n q(9,2) * var(:,9+ol,:) + q(10,2) * var(:,10+ol,:) ) * idel\n dvar(:,3+ol,:) = ( q(1,3) * var(:,1+ol,:) + q(2,3) * var(:,2+ol,:) + &\n q(3,3) * var(:,3+ol,:) + q(4,3) * var(:,4+ol,:) + &\n q(5,3) * var(:,5+ol,:) + q(6,3) * var(:,6+ol,:) + &\n q(7,3) * var(:,7+ol,:) + q(8,3) * var(:,8+ol,:) + &\n q(9,3) * var(:,9+ol,:) + q(10,3) * var(:,10+ol,:) ) * idel\n dvar(:,4+ol,:) = ( q(1,4) * var(:,1+ol,:) + q(2,4) * var(:,2+ol,:) + &\n q(3,4) * var(:,3+ol,:) + q(4,4) * var(:,4+ol,:) + &\n q(5,4) * var(:,5+ol,:) + q(6,4) * var(:,6+ol,:) + &\n q(7,4) * var(:,7+ol,:) + q(8,4) * var(:,8+ol,:) + &\n q(9,4) * var(:,9+ol,:) + q(10,4) * var(:,10+ol,:) ) * idel\n dvar(:,5+ol,:) = ( q(1,5) * var(:,1+ol,:) + q(2,5) * var(:,2+ol,:) + &\n q(3,5) * var(:,3+ol,:) + q(4,5) * var(:,4+ol,:) + &\n q(5,5) * var(:,5+ol,:) + q(6,5) * var(:,6+ol,:) + &\n q(7,5) * var(:,7+ol,:) + q(8,5) * var(:,8+ol,:) + &\n q(9,5) * var(:,9+ol,:) + q(10,5) * var(:,10+ol,:) ) * idel\n dvar(:,6+ol,:) = ( q(1,6) * var(:,1+ol,:) + q(2,6) * var(:,2+ol,:) + &\n q(3,6) * var(:,3+ol,:) + q(4,6) * var(:,4+ol,:) + &\n q(5,6) * var(:,5+ol,:) + q(6,6) * var(:,6+ol,:) + &\n q(7,6) * var(:,7+ol,:) + q(8,6) * var(:,8+ol,:) + &\n q(9,6) * var(:,9+ol,:) + q(10,6) * var(:,10+ol,:) ) * idel\n dvar(:,7+ol,:) = ( q(1,7) * var(:,1+ol,:) + q(2,7) * var(:,2+ol,:) + &\n q(3,7) * var(:,3+ol,:) + q(4,7) * var(:,4+ol,:) + &\n q(5,7) * var(:,5+ol,:) + q(6,7) * var(:,6+ol,:) + &\n q(7,7) * var(:,7+ol,:) + q(8,7) * var(:,8+ol,:) + &\n q(9,7) * var(:,9+ol,:) + q(10,7) * var(:,10+ol,:) ) * idel\n jl = 8 + ol\n end if\n if ( bb(2) == 0 ) then\n jr = nj - gsize\n else\n or = nj - offset(2)\n dvar(:,or-6,:) = - ( q(1,7) * var(:,or,:) + q(2,7) * var(:,or-1,:) + &\n q(3,7) * var(:,or-2,:) + q(4,7) * var(:,or-3,:) + &\n q(5,7) * var(:,or-4,:) + q(6,7) * var(:,or-5,:) + &\n q(7,7) * var(:,or-6,:) + q(8,7) * var(:,or-7,:) + &\n q(9,7) * var(:,or-8,:) + &\n q(10,7) * var(:,or-9,:) ) * idel\n dvar(:,or-5,:) = - ( q(1,6) * var(:,or,:) + q(2,6) * var(:,or-1,:) + &\n q(3,6) * var(:,or-2,:) + q(4,6) * var(:,or-3,:) + &\n q(5,6) * var(:,or-4,:) + q(6,6) * var(:,or-5,:) + &\n q(7,6) * var(:,or-6,:) + q(8,6) * var(:,or-7,:) + &\n q(9,6) * var(:,or-8,:) + &\n q(10,6) * var(:,or-9,:) ) * idel\n dvar(:,or-4,:) = - ( q(1,5) * var(:,or,:) + q(2,5) * var(:,or-1,:) + &\n q(3,5) * var(:,or-2,:) + q(4,5) * var(:,or-3,:) + &\n q(5,5) * var(:,or-4,:) + q(6,5) * var(:,or-5,:) + &\n q(7,5) * var(:,or-6,:) + q(8,5) * var(:,or-7,:) + &\n q(9,5) * var(:,or-8,:) + &\n q(10,5) * var(:,or-9,:) ) * idel\n dvar(:,or-3,:) = - ( q(1,4) * var(:,or,:) + q(2,4) * var(:,or-1,:) + &\n q(3,4) * var(:,or-2,:) + q(4,4) * var(:,or-3,:) + &\n q(5,4) * var(:,or-4,:) + q(6,4) * var(:,or-5,:) + &\n q(7,4) * var(:,or-6,:) + q(8,4) * var(:,or-7,:) + &\n q(9,4) * var(:,or-8,:) + &\n q(10,4) * var(:,or-9,:) ) * idel\n dvar(:,or-2,:) = - ( q(1,3) * var(:,or,:) + q(2,3) * var(:,or-1,:) + &\n q(3,3) * var(:,or-2,:) + q(4,3) * var(:,or-3,:) + &\n q(5,3) * var(:,or-4,:) + q(6,3) * var(:,or-5,:) + &\n q(7,3) * var(:,or-6,:) + q(8,3) * var(:,or-7,:) + &\n q(9,3) * var(:,or-8,:) + &\n q(10,3) * var(:,or-9,:) ) * idel\n dvar(:,or-1,:) = - ( q(1,2) * var(:,or,:) + q(2,2) * var(:,or-1,:) + &\n q(3,2) * var(:,or-2,:) + q(4,2) * var(:,or-3,:) + &\n q(5,2) * var(:,or-4,:) + q(6,2) * var(:,or-5,:) + &\n q(7,2) * var(:,or-6,:) + q(8,2) * var(:,or-7,:) + &\n q(9,2) * var(:,or-8,:) + &\n q(10,2) * var(:,or-9,:) ) * idel\n dvar(:,or,:) = - ( q(1,1) * var(:,or,:) + q(2,1) * var(:,or-1,:) + &\n q(3,1) * var(:,or-2,:) + q(4,1) * var(:,or-3,:) + &\n q(5,1) * var(:,or-4,:) + q(6,1) * var(:,or-5,:) + &\n q(7,1) * var(:,or-6,:) ) * idel\n jr = or - 7\n end if\n if (jl > jr+1) call CCTK_WARN (0, \"domain too small\")\n dvar(:,jl:jr,:) = ( a(1) * ( var(:,jl+1:jr+1,:) - &\n var(:,jl-1:jr-1,:) ) + &\n a(2) * ( var(:,jl+2:jr+2,:) - &\n var(:,jl-2:jr-2,:) ) + &\n a(3) * ( var(:,jl+3:jr+3,:) - &\n var(:,jl-3:jr-3,:) ) ) * idel\n end if\n case (2) direction\n if ( zero_derivs_z /= 0 ) then\n dvar = zero\n else\n if ( bb(1) == 0 ) then\n kl = 1 + gsize\n else\n ol = offset(1)\n dvar(:,:,1+ol) = ( q(1,1) * var(:,:,1+ol) + q(2,1) * var(:,:,2+ol) + &\n q(3,1) * var(:,:,3+ol) + q(4,1) * var(:,:,4+ol) + &\n q(5,1) * var(:,:,5+ol) + q(6,1) * var(:,:,6+ol) + &\n q(7,1) * var(:,:,7+ol) ) * idel\n dvar(:,:,2+ol) = ( q(1,2) * var(:,:,1+ol) + q(2,2) * var(:,:,2+ol) + &\n q(3,2) * var(:,:,3+ol) + q(4,2) * var(:,:,4+ol) + &\n q(5,2) * var(:,:,5+ol) + q(6,2) * var(:,:,6+ol) + &\n q(7,2) * var(:,:,7+ol) + q(8,2) * var(:,:,8+ol) + &\n q(9,2) * var(:,:,9+ol) + q(10,2) * var(:,:,10+ol) ) * idel\n dvar(:,:,3+ol) = ( q(1,3) * var(:,:,1+ol) + q(2,3) * var(:,:,2+ol) + &\n q(3,3) * var(:,:,3+ol) + q(4,3) * var(:,:,4+ol) + &\n q(5,3) * var(:,:,5+ol) + q(6,3) * var(:,:,6+ol) + &\n q(7,3) * var(:,:,7+ol) + q(8,3) * var(:,:,8+ol) + &\n q(9,3) * var(:,:,9+ol) + q(10,3) * var(:,:,10+ol) ) * idel\n dvar(:,:,4+ol) = ( q(1,4) * var(:,:,1+ol) + q(2,4) * var(:,:,2+ol) + &\n q(3,4) * var(:,:,3+ol) + q(4,4) * var(:,:,4+ol) + &\n q(5,4) * var(:,:,5+ol) + q(6,4) * var(:,:,6+ol) + &\n q(7,4) * var(:,:,7+ol) + q(8,4) * var(:,:,8+ol) + &\n q(9,4) * var(:,:,9+ol) + q(10,4) * var(:,:,10+ol) ) * idel\n dvar(:,:,5+ol) = ( q(1,5) * var(:,:,1+ol) + q(2,5) * var(:,:,2+ol) + &\n q(3,5) * var(:,:,3+ol) + q(4,5) * var(:,:,4+ol) + &\n q(5,5) * var(:,:,5+ol) + q(6,5) * var(:,:,6+ol) + &\n q(7,5) * var(:,:,7+ol) + q(8,5) * var(:,:,8+ol) + &\n q(9,5) * var(:,:,9+ol) + q(10,5) * var(:,:,10+ol) ) * idel\n dvar(:,:,6+ol) = ( q(1,6) * var(:,:,1+ol) + q(2,6) * var(:,:,2+ol) + &\n q(3,6) * var(:,:,3+ol) + q(4,6) * var(:,:,4+ol) + &\n q(5,6) * var(:,:,5+ol) + q(6,6) * var(:,:,6+ol) + &\n q(7,6) * var(:,:,7+ol) + q(8,6) * var(:,:,8+ol) + &\n q(9,6) * var(:,:,9+ol) + q(10,6) * var(:,:,10+ol) ) * idel\n dvar(:,:,7+ol) = ( q(1,7) * var(:,:,1+ol) + q(2,7) * var(:,:,2+ol) + &\n q(3,7) * var(:,:,3+ol) + q(4,7) * var(:,:,4+ol) + &\n q(5,7) * var(:,:,5+ol) + q(6,7) * var(:,:,6+ol) + &\n q(7,7) * var(:,:,7+ol) + q(8,7) * var(:,:,8+ol) + &\n q(9,7) * var(:,:,9+ol) + q(10,7) * var(:,:,10+ol) ) * idel\n kl = 8 + ol\n end if\n if ( bb(2) == 0 ) then\n kr = nk - gsize\n else \n or = nk - offset(2)\n dvar(:,:,or-6) = - ( q(1,7) * var(:,:,or) + q(2,7) * var(:,:,or-1) + &\n q(3,7) * var(:,:,or-2) + q(4,7) * var(:,:,or-3) + &\n q(5,7) * var(:,:,or-4) + q(6,7) * var(:,:,or-5) + &\n q(7,7) * var(:,:,or-6) + q(8,7) * var(:,:,or-7) + &\n q(9,7) * var(:,:,or-8) + &\n q(10,7) * var(:,:,or-9) ) * idel\n dvar(:,:,or-5) = - ( q(1,6) * var(:,:,or) + q(2,6) * var(:,:,or-1) + &\n q(3,6) * var(:,:,or-2) + q(4,6) * var(:,:,or-3) + &\n q(5,6) * var(:,:,or-4) + q(6,6) * var(:,:,or-5) + &\n q(7,6) * var(:,:,or-6) + q(8,6) * var(:,:,or-7) + &\n q(9,6) * var(:,:,or-8) + &\n q(10,6) * var(:,:,or-9) ) * idel\n dvar(:,:,or-4) = - ( q(1,5) * var(:,:,or) + q(2,5) * var(:,:,or-1) + &\n q(3,5) * var(:,:,or-2) + q(4,5) * var(:,:,or-3) + &\n q(5,5) * var(:,:,or-4) + q(6,5) * var(:,:,or-5) + &\n q(7,5) * var(:,:,or-6) + q(8,5) * var(:,:,or-7) + &\n q(9,5) * var(:,:,or-8) + &\n q(10,5) * var(:,:,or-9) ) * idel\n dvar(:,:,or-3) = - ( q(1,4) * var(:,:,or) + q(2,4) * var(:,:,or-1) + &\n q(3,4) * var(:,:,or-2) + q(4,4) * var(:,:,or-3) + &\n q(5,4) * var(:,:,or-4) + q(6,4) * var(:,:,or-5) + &\n q(7,4) * var(:,:,or-6) + q(8,4) * var(:,:,or-7) + &\n q(9,4) * var(:,:,or-8) + &\n q(10,4) * var(:,:,or-9) ) * idel\n dvar(:,:,or-2) = - ( q(1,3) * var(:,:,or) + q(2,3) * var(:,:,or-1) + &\n q(3,3) * var(:,:,or-2) + q(4,3) * var(:,:,or-3) + &\n q(5,3) * var(:,:,or-4) + q(6,3) * var(:,:,or-5) + &\n q(7,3) * var(:,:,or-6) + q(8,3) * var(:,:,or-7) + &\n q(9,3) * var(:,:,or-8) + &\n q(10,3) * var(:,:,or-9) ) * idel\n dvar(:,:,or-1) = - ( q(1,2) * var(:,:,or) + q(2,2) * var(:,:,or-1) + &\n q(3,2) * var(:,:,or-2) + q(4,2) * var(:,:,or-3) + &\n q(5,2) * var(:,:,or-4) + q(6,2) * var(:,:,or-5) + &\n q(7,2) * var(:,:,or-6) + q(8,2) * var(:,:,or-7) + &\n q(9,2) * var(:,:,or-8) + &\n q(10,2) * var(:,:,or-9) ) * idel\n dvar(:,:,or) = - ( q(1,1) * var(:,:,or) + q(2,1) * var(:,:,or-1) + &\n q(3,1) * var(:,:,or-2) + q(4,1) * var(:,:,or-3) + &\n q(5,1) * var(:,:,or-4) + q(6,1) * var(:,:,or-5) + &\n q(7,1) * var(:,:,or-6) ) * idel\n kr = or - 7\n end if\n if (kl > kr+1) call CCTK_WARN (0, \"domain too small\")\n dvar(:,:,kl:kr) = ( a(1) * ( var(:,:,kl+1:kr+1) - &\n var(:,:,kl-1:kr-1) ) + &\n a(2) * ( var(:,:,kl+2:kr+2) - &\n var(:,:,kl-2:kr-2) ) + &\n a(3) * ( var(:,:,kl+3:kr+3) - &\n var(:,:,kl-3:kr-3) ) ) * idel\n end if\n end select direction\nend subroutine deriv_gf_6_5_opt\n", diff --git a/CactusNumerical_TensorTypes.json b/CactusNumerical_TensorTypes.json index ec2bfb16288acdd29acfb2bc9dd9d1b90d546e6e..df9e7c33c1f788eedd82ff6320b46d1cb1daf09a 100644 --- a/CactusNumerical_TensorTypes.json +++ b/CactusNumerical_TensorTypes.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusnumerical.git", "configuration": "# Configuration definition for thorn TensorTypes\n# $Header$\n\nPROVIDES TensorTypes\n{\n SCRIPT\n LANG\n}\n", "interface": "# Interface definition for thorn TensorTypes\n# $Header$\n\nIMPLEMENTS: TensorTypes\n\nINCLUDES HEADER: tensortypes.h IN tensortypes.h\n", - "params": "", + "param": "# Parameter definitions for thorn TensorTypes\n# $Header$\n", "schedule": "# Schedule definitions for thorn TensorTypes\n# $Header$\n\n\n\n# Disable the check of the tensor types of all grid variables.\n# This thorn does currently not know all existing tensor types.\n\n## SCHEDULE CheckTensorTypes AT paramcheck\n## {\n## LANG: C\n## } \"Check tensor type definitions for consistency\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TensorTypes\n# $Header$\n\n# Source files in this directory\nSRCS = check.c info.c tensortypes.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusNumerical_TestLocalInterp2.json b/CactusNumerical_TestLocalInterp2.json index 929aa6829530045465d2444c96062915f140e2de..35cc0ac939d56d2286700948129c5c3ea860a85f 100644 --- a/CactusNumerical_TestLocalInterp2.json +++ b/CactusNumerical_TestLocalInterp2.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusnumerical.git", "configuration": "", "interface": "# Interface definition for thorn TestLocalInterp2\nIMPLEMENTS: TestLocalInterp2\nINHERITS: Grid\n\nUSES INCLUDE: LagrangeInterp.hh\n\nCCTK_REAL func TYPE=GF \"Test trigonometric grid function\"\nCCTK_REAL poly TYPE=GF \"Test polynomial grid function\"\n\nCCTK_INT success\n{\n lagrange_1d, lagrange_3d, symmetry\n} \"Indicate a successful test\"\n", - "params": "", + "param": "# Parameter definitions for thorn TestLocalInterp2\n\nPRIVATE:\n\nCCTK_INT warn_level \"Warn level used to advertise failures\"\n{\n 0:4 :: \"A valid error level\"\n} 1\n\nCCTK_REAL tolerance \"Test tolerance\"\n{\n (0:* :: \"Any positive value\"\n} 1.0e-15\n\nBOOLEAN test_symmetric_interpolation \"Test symmetry preserving property of interpolation\"\n{\n} \"no\"\n", "schedule": "# Schedule definitions for thorn TestLocalInterp2\n\nSTORAGE: success\n\nSCHEDULE TestLocalInterp2_Lagrange1D AT CCTK_INITIAL\n{\n LANG: C\n STORAGE: poly\n} \"Test 1D Lagrange interpolation operators\"\n\nSCHEDULE TestLocalInterp2_Lagrange3D AT CCTK_INITIAL\n{\n LANG: C\n STORAGE: poly\n} \"Test 3D Lagrange interpolation operators\"\n\nif(test_symmetric_interpolation) {\n SCHEDULE TestLocalInterp2_Symmetric AT CCTK_INITIAL\n {\n LANG: C\n STORAGE: func\n } \"Test symmetry of the interpolation operators\"\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn LocalInterpTest\n\n# Source files in this directory\nSRCS = lagrange1d.cc lagrange3d.cc symmetric.cc \n\n# Subdirectories containing source files\nSUBDIRS =\n", diff --git a/CactusNumerical_TestLocalReduce.json b/CactusNumerical_TestLocalReduce.json index 0fd0382ca610424e5589eb2cf8b452e5f156e56e..02525a6219b41f16e1d9708e8ec37929de9e691c 100644 --- a/CactusNumerical_TestLocalReduce.json +++ b/CactusNumerical_TestLocalReduce.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusnumerical.git", "configuration": "", "interface": "# Interface definition for thorn TestLocalReduce\n# $Header$\n\nimplements: TestLocalReduce\n\npublic:\nreal real_vals type=scalar\n{\n real_max_3D\n real_max_2D\n real_max_1D\n\n real_sum_3D\n real_sum_2D\n real_sum_1D\n\n real_avg_3D\n real_avg_2D\n real_avg_1D\n \n} \"results from real reduction\"\n\nint int_vals type=scalar\n{\n int_max_3D\n int_max_2D\n int_max_1D\n\n int_sum_3D\n int_sum_2D\n int_sum_1D\n\n int_avg_3D\n int_avg_2D\n int_avg_1D\n\n} \"results from int reduction\"\n", - "params": "", + "param": "# Parameter definitions for thorn TestLocalReduce\n# $Header$\n\nINT array_nx \"Size of arrays in x direction\"\n{\n 0:* :: \"\"\n} 4\n\nINT array_ny \"Size of arrays in y direction\"\n{\n 0:* :: \"\"\n} 5\n\nINT array_nz \"Size of arrays in z direction\"\n{\n 0:* :: \"\"\n} 10\n", "schedule": "# Schedule definitions for thorn TestLocalReduce\n# $Header$\n\n\nSTORAGE: real_vals int_vals\n\nschedule TestLocalReduceC_Maximum at CCTK_POSTINITIAL\n{\n LANG: C\n} \"Test out maximum reductions from C\"\n\nschedule TestLocalReduceC_Sum at CCTK_POSTINITIAL\n{\n LANG: C\n} \"Test out sum reductions from C\"\n\nschedule TestLocalReduceC_Avg at CCTK_POSTINITIAL\n{\n LANG: C\n} \"Test out avg reductions from C\"\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TestReduce\n# $Header$\n\n# Source files in this directory\nSRCS = Reduce_Maximum.c Reduce_Sum.c Reduce_Avg.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusPUGHIO_IOHDF5.json b/CactusPUGHIO_IOHDF5.json index 4b220d35bcaf1d903fdeddac713ad401af1dfe55..3e6b7a80c9e32a5bbe96fd0da74a9e771b9d473d 100644 --- a/CactusPUGHIO_IOHDF5.json +++ b/CactusPUGHIO_IOHDF5.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactuspughio.git", "configuration": "# Configuration definitions for thorn IOHDF5\n# $Header$\n\nREQUIRES IOHDF5Util HDF5 IOUtil PUGH\n\nOPTIONAL FlexIO\n{\n}\n\nOPTIONAL SDF\n{\n}\n\nOPTIONAL MPI\n{\n}\n", "interface": "# Interface definition for thorn IOHDF5\n# $Header$\n\nImplements: IOHDF5\n#Inherits: IO\n\nCCTK_INT FUNCTION IO_TruncateOutputFiles \\\n (CCTK_POINTER_TO_CONST IN GH)\n\nREQUIRES FUNCTION IO_TruncateOutputFiles\n", - "params": "", + "param": "# Parameter definitions for thorn IOHDF5\n# $Header$\n\n#############################################################################\n### declare IOHDF5 parameters\n#############################################################################\nprivate:\n\n########################\n# How often to do output\n########################\nINT out_every \"How often to do IOHDF5 output, overrides IO::out_every\" STEERABLE = ALWAYS\n{\n 1:* :: \"Every so many iterations\"\n 0: :: \"Disable IOHDF5 output\"\n -1: :: \"Default to IO::out_every\"\n} -1\n\n####################\n# Output directories\n####################\nSTRING out_dir \"Output directory for IOHDF5 files, overrides IO::out_dir\" STEERABLE = RECOVER\n{\n \".+\" :: \"A valid directory name\"\n \"^$\" :: \"An empty string to choose the default from IO::out_dir\"\n} \"\"\n\n#####################\n# Variables to output\n#####################\nSTRING out_vars \"Variables to output in HDF5 file format\" STEERABLE = ALWAYS\n{\n \".+\" :: \"Space-separated list of fully qualified variable/group names\"\n \"^$\" :: \"An empty string to output nothing\"\n} \"\"\n\n\n#########################\n# Checkpointing requested\n#########################\nBOOLEAN checkpoint \"Do checkpointing with HDF5\" STEERABLE = ALWAYS\n{\n} \"no\"\nBOOLEAN checkpoint_next \"Checkpoint at next iteration\" STEERABLE = ALWAYS\n{\n} \"no\"\n\n\n#############################################################################\n### import IOUtil parameters\n#############################################################################\nshares: IO\n\nUSES STRING out_dir AS io_out_dir\nUSES INT out_every AS io_out_every\n\nUSES KEYWORD verbose \nUSES BOOLEAN print_timing_info \nUSES BOOLEAN strict_io_parameter_check\n\nUSES KEYWORD out_mode \nUSES KEYWORD out_save_parameters \nUSES INT out_timesteps_per_file \n\nUSES INT checkpoint_every \nUSES INT checkpoint_keep \nUSES BOOLEAN checkpoint_ID \nUSES BOOLEAN recover_and_remove \nUSES BOOLEAN checkpoint_on_terminate \nUSES KEYWORD recover \nUSES STRING recover_file \n", "schedule": "# Schedule definitions for thorn IOHDF5\n# $Header$\n\n########################################################################\n### register startup/termination routines\n########################################################################\nschedule IOHDF5_Startup at STARTUP after IOHDF5Util_Startup\n{\n LANG:C\n} \"IOHDF5 startup routine\"\n\n\n########################################################################\n### register checkpointing routines\n########################################################################\nschedule IOHDF5_InitialDataCheckpoint at CPINITIAL\n{\n LANG:C\n} \"Initial data checkpoint routine\"\n\nschedule IOHDF5_EvolutionCheckpoint at CHECKPOINT\n{\n LANG:C\n} \"Evolution data checkpoint routine\"\n\nschedule IOHDF5_TerminationCheckpoint at TERMINATE before IOHDF5Util_Terminate\n{\n LANG:C\n} \"Termination checkpoint routine\"\n\nif (! CCTK_Equals (recover, \"no\") && *recover_file)\n{\n schedule IOHDF5_RecoverParameters at RECOVER_PARAMETERS\n {\n LANG:C\n } \"Parameter recovery routine\"\n}\n", "src": { "make.configuration.defn": "# make.configuration.defn for IOHDF5\n# $Header$\n\n# add the recombiner and the IEEEIO converter to the Cactus utitlity tools\nALL_UTILS += hdf5_recombiner hdf5_convert_from_carpetiohdf5\n\nifneq ($(strip $(HAVE_FLEXIO)), )\n ALL_UTILS += hdf5_convert_from_ieeeio\nendif\n\nifneq ($(strip $(HAVE_SDF)), )\n ALL_UTILS += hdf5_convert_from_sdf\nendif\n", diff --git a/CactusPUGHIO_IOHDF5Util.json b/CactusPUGHIO_IOHDF5Util.json index 76cf4146c4d2348ce2beb3560b6eb9932bd78627..1ae8d0b36390f785edddbbae80b27141e0bea15a 100644 --- a/CactusPUGHIO_IOHDF5Util.json +++ b/CactusPUGHIO_IOHDF5Util.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactuspughio.git", "configuration": "# Configuration definitions for thorn IOHDF5Util\n# $Header$\n\nPROVIDES IOHDF5Util\n{\n SCRIPT\n LANG\n}\n\nREQUIRES PUGH IOUtil HDF5\n\nOPTIONAL MPI\n{\n}\n", "interface": "# Interface definition for thorn IOHDF5Util\n# $Header$\n\nImplements: IOHDF5Util\nInherits: IO\n\n\nCCTK_INT FUNCTION \\\n Hyperslab_Get (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN mapping_handle, \\\n CCTK_INT IN proc, \\\n CCTK_INT IN vindex, \\\n CCTK_INT IN timelevel, \\\n CCTK_INT IN hdatatype, \\\n CCTK_POINTER IN hdata)\n\nCCTK_INT FUNCTION \\\n Hyperslab_LocalMappingByIndex (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN vindex, \\\n CCTK_INT IN hdim, \\\n CCTK_INT ARRAY IN direction, \\\n CCTK_INT ARRAY IN origin, \\\n CCTK_INT ARRAY IN extent, \\\n CCTK_INT ARRAY IN downsample, \\\n CCTK_INT IN table_handle, \\\n CCTK_INT CCTK_FPOINTER IN \\\n conversion_fn (CCTK_INT IN nelems, \\\n CCTK_INT IN src_stride,\\\n CCTK_INT IN dst_stride,\\\n CCTK_INT IN src_type, \\\n CCTK_INT IN dst_type, \\\n CCTK_POINTER_TO_CONST IN from, \\\n CCTK_POINTER IN to), \\\n CCTK_INT ARRAY OUT hsize_local, \\\n CCTK_INT ARRAY OUT hsize_global, \\\n CCTK_INT ARRAY OUT hoffset_global)\n\nCCTK_INT FUNCTION Hyperslab_FreeMapping (CCTK_INT IN mapping_handle)\n\nREQUIRES FUNCTION Hyperslab_Get\nREQUIRES FUNCTION Hyperslab_LocalMappingByIndex\nREQUIRES FUNCTION Hyperslab_FreeMapping\n\nCCTK_INT FUNCTION Coord_GroupSystem \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_STRING IN groupname)\n\nUSES FUNCTION Coord_GroupSystem\n", - "params": "", + "param": "# Parameter definitions for thorn IOHDF5Util\n# $Header$\n\n#############################################################################\n### declare IOHDF5 parameters\n#############################################################################\nprivate:\n\n###################\n# Compression level\n###################\nINT compression_level \"Compression level to use for writing HDF5 data\"\n{\n 0:9 :: \"Higher numbers compress better, a value of zero disables compression\"\n} 0\n\n\n#############################################################################\n### import IOUtil parameters\n#############################################################################\nshares: IO\n\nUSES KEYWORD verbose\nUSES KEYWORD out_fileinfo\n", "schedule": "# Schedule definitions for thorn IOHDF5Util\n# $Header$\n\n########################################################################\n### register IOHDF5Util routines\n########################################################################\nschedule IOHDF5Util_Startup at STARTUP after IOUtil_Startup\n{\n LANG:C\n} \"IOHDF5Util startup routine\"\n\nschedule IOHDF5Util_Terminate at TERMINATE before Driver_Terminate\n{\n LANG:C\n} \"IOHDF5Util termination routine\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn IOHDF5Util\n# $Header$\n\n# Source files in this directory\nSRCS = Startup.c DumpUtils.c DumpVar.c RecoverVar.c\n\n# Extend CFLAGS if HDF5 library was built with LFS support\nifneq ($(strip $(HDF5_LFS_FLAGS)),)\n CFLAGS += $(HDF5_LFS_FLAGS)\nendif\n", diff --git a/CactusPUGH_PUGH.json b/CactusPUGH_PUGH.json index 672cf5b578b01252700ad3c57ccbfb0b52760991..0951fc861da54d3f1e6c2666c926135caff02bce 100644 --- a/CactusPUGH_PUGH.json +++ b/CactusPUGH_PUGH.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactuspugh.git", "configuration": "# Configuration definitions for thorn PUGH\n# $Header$\n\nPROVIDES PUGH\n{\n SCRIPT\n LANG\n}\n\nOPTIONAL MPI\n{\n}\n\nOPTIONAL Vectors\n{\n}\n", "interface": "# Interface definition for thorn pugh\n# $Header$\n\nimplements: Driver\n\nINCLUDE HEADER: Register.h in pugh_Register.h\n\nUSES INCLUDE: pugh_Register.h\n\nUSES INCLUDE: vectors.h\n", - "params": "", + "param": "# Parameter definitions for thorn PUGH\n# $Header$\n\nshares: cactus\nUSES KEYWORD terminate\n\nUSES REAL cctk_initial_time \n\nUSES REAL cctk_final_time \n\nUSES INT cctk_itlast \n\nUSES REAL max_runtime \n\nUSES BOOLEAN terminate_next\n\n############################# Restricted Parameters #########################\nrestricted:\n\nBOOLEAN periodic \"Periodic boundary conditions\"\n{\n} \"no\"\n\nBOOLEAN periodic_x \"Periodic boundary conditions in x-direction\"\n{\n} \"yes\"\n\nBOOLEAN periodic_y \"Periodic boundary conditions in y-direction\"\n{\n} \"yes\"\n\nBOOLEAN periodic_z \"Periodic boundary conditions in z-direction\"\n{\n} \"yes\"\n\n############################# Private Parameters ############################\nprivate:\n\nINT global_nx \"The size of the grid in the x direction\"\n{\n 0:* :: \"Grid of this size distributed across all processors\"\n} 10\n\nINT global_ny \"The size of the grid in the y direction\"\n{\n 0:* :: \"Grid of this size distributed across all processors\"\n} 10\n\nINT global_nz \"The size of the grid in the z direction\"\n{\n 0:* :: \"Grid of this size distributed across all processors\"\n} 10\n\nINT global_nsize \"The size of the grid in each spatial direction\"\n{\n -1:* :: \"Grid of this size in each dir distributed across all processors\"\n} -1\n\nINT ghost_size_x \"The width of the ghost zone in the x direction\"\n{\n 0:* :: \"Must be a positive integer\"\n} 1\n\nINT ghost_size_y \"The width of the ghost zone in the y direction\"\n{\n 0:* :: \"Must be a positive integer\"\n} 1\n\nINT ghost_size_z \"The width of the ghost zone in the z direction\"\n{\n 0:* :: \"Must be a positive integer\"\n} 1\n\nINT ghost_size \"The width of the ghost zone in each direction\"\n{\n -1:* :: \"Any positive number to override the ghost_size_[xyz] parameters\"\n} -1\n\nKEYWORD info \"Provide additional information about what PUGH is doing\"\n{\n \"none\" :: \"No extra information\"\n \"load\" :: \"Load on each processor\"\n} \"none\"\n\nINT local_nx \"The size of the grid in the x direction\"\n{\n -1:* :: \"Grid of this size on each processor\"\n} -1\n\nINT local_ny \"The size of the grid in the y direction\"\n{\n -1:* :: \"Grid of this size on each processor\"\n} -1\n\nINT local_nz \"The size of the grid in the z direction\"\n{\n -1:* :: \"Grid of this size on each processor\"\n} -1\n\nINT local_nsize \"The size of the grid in each spatial direction\"\n{\n -1:* :: \"Grid of this size in each dir on each processor\"\n} -1\n\nBOOLEAN local_size_includes_ghosts \"Does the local grid size include the ghost zones?\"\n{\n} \"yes\"\n\nBOOLEAN enable_all_storage \"Enable storage for all GFs?\"\n{\n} \"no\"\n\n# Processor topology\n\n# Thomas Radke, 19 December 2005:\n# don't make physical2logical and processor_topology restricted parameters\n# so that PUGH and Carpet can still be compiled together\n#restricted:\n\nKEYWORD physical2logical \"Physical process to logical process mapping method to use\" STEERABLE = RECOVER\n{\n \"direct\" :: \"Maps MPI IDs directly to IJKs\"\n \"example\" :: \"Maps MPI IDs directly to IJKs using a lookup table\"\n} \"direct\"\n\nKEYWORD processor_topology \"How to determine the processor topology\" STEERABLE = RECOVER\n{\n \"manual\" :: \"Specified by proc_top_nx etc\"\n \"automatic\" :: \"Automatically generated\"\n \"automatic_old\" :: \"Automatically generated (old method)\"\n} \"automatic\"\n\nprivate:\n\nINT processor_topology_1d_x \"Number of processors in X direction\" STEERABLE = RECOVER\n{\n 0:* :: \"See proc_topology\"\n} 0\n\nINT processor_topology_2d_x \"Number of processors in X direction\" STEERABLE = RECOVER\n{\n 0:* :: \"See proc_topology\"\n} 0\n\nINT processor_topology_2d_y \"Number of processors in Y direction\" STEERABLE = RECOVER\n{\n 0:* :: \"See proc_topology\"\n} 0\n\nINT processor_topology_3d_x \"Number of processors in X direction\" STEERABLE = RECOVER\n{\n 0:* :: \"See proc_topology\"\n} 0\n\nINT processor_topology_3d_y \"Number of processors in Y direction\" STEERABLE = RECOVER\n{\n 0:* :: \"See proc_topology\"\n} 0\n\nINT processor_topology_3d_z \"Number of processors in Z direction\" STEERABLE = RECOVER\n{\n 0:* :: \"See proc_topology\"\n} 0\n\n\nKEYWORD initialize_memory \"How to initialize memory for grid variables at allocation time\" STEERABLE = ALWAYS\n{\n \"none\" :: \"Do not initialize storage for allocated grid variables (default)\"\n \"zero\" :: \"Zero out all elements of all allocated grid variables\"\n \"NaN\" :: \"Set all elements of allocated floating point grid variables to Not-a-Number values\"\n} \"none\"\n\n\nKEYWORD partition \"Is the partition manual\"\n{\n \"automatic\" :: \"even\"\n \"manual\" :: \"specified by partition_XYZ ..\"\n} \"automatic\"\n\nSTRING partition_1d_x \"Tells how to partition on direction X\"\n{\n.* :: \"A regex which matches anything\"\n} \"\"\n\nSTRING partition_2d_x \"Tells how to partition on direction X\"\n{\n.* :: \"A regex which matches anything\"\n} \"\"\n\nSTRING partition_2d_y \"Tells how to partition on direction y\"\n{\n.* :: \"A regex which matches anything\"\n} \"\"\n\nSTRING partition_3d_x \"Tells how to partition on direction X\"\n{\n.* :: \"A regex which matches anything\"\n} \"\"\n\nSTRING partition_3d_y \"Tells how to partition on direction y\"\n{\n.* :: \"A regex which matches anything\"\n} \"\"\n\nSTRING partition_3d_z \"Tells how to partition on direction z\"\n{\n.* :: \"A regex which matches anything\"\n} \"\"\n\nKEYWORD storage_verbose \"Report on memory assignment\" STEERABLE = ALWAYS\n{\n \"yes\" :: \"Standard storage information\"\n \"report\" :: \"Provide a report of storage every storage_report_every iterations and at termination\"\n \"no\" :: \"Provide no information\"\n} \"no\"\n\nINT storage_report_every \"How often to provide a report on storage information\" STEERABLE = ALWAYS\n{\n 0:0 :: \"Never report\"\n 1:* :: \"Report at intervals\"\n} 0\n\nBOOLEAN timer_output \"Print time spent in communication\"\n{\n} \"no\"\n\nINT cacheline_mult \"Multiplier for cacheline number\"\n{\n 0:* :: \"Any positive number\"\n} 4001\n\n# Provide ability to switch of overloading of individual driver functions\n\nBOOLEAN overloadevolve \"Overload Evolve driver function\"\n{\n} \"yes\"\nBOOLEAN overloadsyncgroup \"Overload SyncGroup driver function\"\n{\n} \"no\"\nBOOLEAN overloadsyncgroupsbydiri \"Overload SyncGroupsByDirI driver function\"\n{\n} \"yes\"\nBOOLEAN overloadenablegroupstorage \"Overload EnableGroupStorage driver function\"\n{\n} \"yes\"\nBOOLEAN overloaddisablegroupstorage \"Overload DisableGroupStorage driver function\"\n{\n} \"yes\"\nBOOLEAN overloadenablegroupcomm \"Overload EnableGroupComm driver function\"\n{\n} \"yes\"\nBOOLEAN overloaddisablegroupcomm \"Overload DisableGroupComm driver function\"\n{\n} \"yes\"\nBOOLEAN overloadbarrier \"Overload Barrier driver function\"\n{\n} \"yes\"\nBOOLEAN overloadparallelinit \"Overload ParallelInit driver function\"\n{\n} \"yes\"\nBOOLEAN overloadexit \"Overload Exit driver function\"\n{\n} \"yes\"\nBOOLEAN overloadabort \"Overload Abort driver function\"\n{\n} \"yes\"\nBOOLEAN overloadmyproc \"Overload MyProc driver function\"\n{\n} \"yes\"\nBOOLEAN overloadnprocs \"Overload nProcs driver function\"\n{\n} \"yes\"\nBOOLEAN overloadarraygroupsizeb \"Overload ArrayGroupSizeB driver function\"\n{\n} \"yes\"\nBOOLEAN overloadquerygroupstorageb \"Overload QueryGroupStorageB driver function\"\n{\n} \"yes\"\nBOOLEAN overloadgroupdynamicdata \"Overload GroupDynamicData driver function\"\n{\n} \"yes\"\n", "schedule": "# Schedule definitions for thorn pugh\n# $Header$\n\nschedule PUGH_Startup at STARTUP as Driver_Startup\n{\n LANG:C\n} \"Startup routine\"\n\nschedule PUGH_RegisterPUGHP2LRoutines at STARTUP\n{\n LANG:C\n} \"Register Physical to Logical process mapping routines\"\n\nschedule PUGH_RegisterPUGHTopologyRoutines at STARTUP\n{\n LANG:C\n} \"Register topology generation routines routines\"\n\nschedule PUGH_Report at BASEGRID\n{\n LANG:C\n} \"Report on PUGH set up\"\n\nif (timer_output)\n{\n schedule PUGH_PrintTimingInfo at TERMINATE\n {\n LANG:C\n } \"Print time spent in communication\"\n}\n\nif (CCTK_Equals(storage_verbose,\"yes\") || CCTK_Equals(storage_verbose,\"report\") )\n{\n schedule PUGH_PrintFinalStorageReport at TERMINATE\n {\n LANG:C\n } \"Print storage information\"\n}\n\nif (CCTK_Equals(storage_verbose,\"yes\") || CCTK_Equals(storage_verbose,\"report\"))\n{\n schedule PUGH_PrintStorageReport at POSTSTEP\n {\n LANG:C\n } \"Print storage information\"\n}\n\nschedule PUGH_Terminate at TERMINATE as Driver_Terminate\n{\n LANG:C\n} \"Termination routine\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn pugh\n# : /usr/users/cactus/CCTK/lib/make/new_thorn.pl,v 1.1 1999/02/03 17:00:50 goodale Exp n\n# Source files in this directory\nSRCS = Startup.c GHExtension.c Overloadables.c PughUtils.c LoadAware.c \\\n Evolve.c Comm.c Storage.c SetupPGH.c SetupGroup.c SetupPGV.c \\\n PostSendGA.c PostReceiveGA.c FinishReceiveGA.c Registration.c \\\n P2LMappings.c Topology.c Vectors.cc\n", diff --git a/CactusPUGH_PUGHInterp.json b/CactusPUGH_PUGHInterp.json index a376376a70dd2b7928706afbbabdb606e08f2704..7057f0a1d461ab4558be8717ba347b4e8ceac76f 100644 --- a/CactusPUGH_PUGHInterp.json +++ b/CactusPUGH_PUGHInterp.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactuspugh.git", "configuration": "# Configuration definitions for thorn PUGHInterp\n# $Header$\n\nREQUIRES PUGH\n\nOPTIONAL MPI\n{\n}\n", "interface": "# Interface definition for thorn PUGHInterp\n# $Header$\n\nImplements: Interp\n\n\n\n# Interpolation\nCCTK_INT FUNCTION \\\n SymmetryInterpolate \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays)\nUSES FUNCTION SymmetryInterpolate\n\n\n\nCCTK_INT FUNCTION \\\n DriverInterpolate \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays)\nPROVIDES FUNCTION DriverInterpolate \\\n WITH PUGHInterp_DriverInterpolate \\\n LANGUAGE C\n", - "params": "", + "param": "# Parameter definitions for thorn PUGHInterp\n# $Header$\n", "schedule": "# Schedule definitions for thorn PUGHInterp\n# $Header$\n\nschedule PUGHInterp_Startup at STARTUP after Driver_Startup\n{\n LANG:C\n} \"PUGHInterp startup routine\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn PUGHInterp\n# $Header$\n\n# Source files in this directory\nSRCS = Startup.c InterpGridArrays.c\n", diff --git a/CactusPUGH_PUGHReduce.json b/CactusPUGH_PUGHReduce.json index 82210f7cef847be65833f78bcd4b22bd80bffcc9..8f895d29bd92184f64b03dc19e631b62445320e5 100644 --- a/CactusPUGH_PUGHReduce.json +++ b/CactusPUGH_PUGHReduce.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactuspugh.git", "configuration": "# Configuration definitions for thorn PUGHReduce\n# $Header$\n\nREQUIRES PUGH\n\nOPTIONAL MPI\n{\n}\n", "interface": "# Interface definition for thorn PUGHReduce\n# $Header$\n\nImplements: Reduce\n", - "params": "", + "param": "# Parameter definitions for thorn PUGHReduce\n# $Header$\n\n", "schedule": "# Schedule definitions for thorn PUGHReduce\n# $Header$\n\nschedule PUGHReduce_Startup at STARTUP\n{\n LANG:C\n} \"Startup routine\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn PUGHReduce\n# $Header$\n\n# Source files in this directory\nSRCS = ReductionAvg.c ReductionCount.c ReductionMax.c ReductionMin.c \\\n ReductionNorm1.c ReductionNorm2.c ReductionNorm3.c ReductionNorm4.c \\\n ReductionNormInf.c ReductionSum.c Startup.c Reduction.c ReduceGA.c \\\n ReduceArraysGlobally.c\n", diff --git a/CactusPUGH_PUGHSlab.json b/CactusPUGH_PUGHSlab.json index 940f71dcd3bdd49b9b83049a1dfdc3590c563e4b..0a008092fb0496cb5cd36b07bb3079c90b996c97 100644 --- a/CactusPUGH_PUGHSlab.json +++ b/CactusPUGH_PUGHSlab.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactuspugh.git", "configuration": "# Configuration definitions for thorn PUGHSlab\n# $Header$\n\nREQUIRES PUGH\n\nOPTIONAL MPI\n{\n}\n", "interface": "# Interface definition for thorn PUGHSlab\n# $Header$\n\nImplements: Hyperslab\n\n\nCCTK_INT FUNCTION \\\n Hyperslab_Get (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN mapping_handle, \\\n CCTK_INT IN proc, \\\n CCTK_INT IN vindex, \\\n CCTK_INT IN timelevel, \\\n CCTK_INT IN hdatatype, \\\n CCTK_POINTER IN hdata)\n\nCCTK_INT FUNCTION \\\n Hyperslab_GetList (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN mapping_handle, \\\n CCTK_INT IN num_arrays, \\\n CCTK_INT ARRAY IN procs, \\\n CCTK_INT ARRAY IN vindices, \\\n CCTK_INT ARRAY IN timelevels, \\\n CCTK_INT ARRAY IN hdatatypes, \\\n CCTK_POINTER ARRAY IN hdata, \\\n CCTK_INT ARRAY OUT retvals)\n\nCCTK_INT FUNCTION \\\n Hyperslab_LocalMappingByIndex (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN vindex, \\\n CCTK_INT IN hdim, \\\n CCTK_INT ARRAY IN direction, \\\n CCTK_INT ARRAY IN origin, \\\n CCTK_INT ARRAY IN extent, \\\n CCTK_INT ARRAY IN downsample, \\\n CCTK_INT IN table_handle, \\\n CCTK_INT CCTK_FPOINTER IN \\\n conversion_fn (CCTK_INT IN nelems, \\\n CCTK_INT IN src_stride, \\\n CCTK_INT IN dst_stride, \\\n CCTK_INT IN src_type, \\\n CCTK_INT IN dst_type, \\\n CCTK_POINTER_TO_CONST IN from, \\\n CCTK_POINTER IN to), \\\n CCTK_INT ARRAY OUT hsize_local, \\\n CCTK_INT ARRAY OUT hsize_global, \\\n CCTK_INT ARRAY OUT hoffset_global)\n\nCCTK_INT FUNCTION \\\n Hyperslab_GlobalMappingByIndex (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN vindex, \\\n CCTK_INT IN hdim, \\\n CCTK_INT ARRAY IN direction, \\\n CCTK_INT ARRAY IN origin, \\\n CCTK_INT ARRAY IN extent, \\\n CCTK_INT ARRAY IN downsample, \\\n CCTK_INT IN table_handle, \\\n CCTK_INT CCTK_FPOINTER IN \\\n conversion_fn (CCTK_INT IN nelems, \\\n CCTK_INT IN src_stride, \\\n CCTK_INT IN dst_stride, \\\n CCTK_INT IN src_type, \\\n CCTK_INT IN dst_type, \\\n CCTK_POINTER_TO_CONST IN from, \\\n CCTK_POINTER IN to), \\\n CCTK_INT ARRAY OUT hsize)\n\nCCTK_INT FUNCTION Hyperslab_FreeMapping (CCTK_INT IN mapping_handle)\n\n\nPROVIDES FUNCTION Hyperslab_Get \\\n WITH PUGHSlab_Get LANGUAGE C\nPROVIDES FUNCTION Hyperslab_GetList \\\n WITH PUGHSlab_GetList LANGUAGE C\nPROVIDES FUNCTION Hyperslab_GlobalMappingByIndex \\\n WITH PUGHSlab_GlobalMappingByIndex LANGUAGE C\nPROVIDES FUNCTION Hyperslab_LocalMappingByIndex \\\n WITH PUGHSlab_LocalMappingByIndex LANGUAGE C\nPROVIDES FUNCTION Hyperslab_FreeMapping \\\n WITH PUGHSlab_FreeMapping LANGUAGE C\n\nINCLUDES HEADER: PUGHSlab.h in Hyperslab.h\n", - "params": "", + "param": "# Parameter definitions for thorn Hyperslab\n# $Header$\n", "schedule": "# Schedule definitions for thorn Hyperslab\n# $Header$\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Hyperslab\n# $Header$\n\n# Source files in this directory\nSRCS = Mapping.c GetHyperslab.c DatatypeConversion.c\n", diff --git a/CactusTest_TestArrays.json b/CactusTest_TestArrays.json index cb32753886a395461ebb826e3a4db7df4c37c8fc..4810b734efa2a2db4d5a27e301402b426a53163a 100644 --- a/CactusTest_TestArrays.json +++ b/CactusTest_TestArrays.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "", "interface": "# Interface definition for thorn Arrays\n# $Header$\n\nimplements: Arrays\n\nREAL foo1d TYPE=ARRAY DIM=1 SIZE=xsize1d GHOSTSIZE=xghost1d\n{\n gf1d\n}\n\nREAL foo2d TYPE=ARRAY DIM=2 SIZE=xsize2d,ysize2d GHOSTSIZE=xghost2d,yghost2d\n{\n gf2d\n}\n\nREAL foo3d TYPE=ARRAY DIM=3 SIZE=xsize3d,ysize3d,zsize3d GHOSTSIZE=xghost3d,yghost3d,zghost3d\n{\n gf3d\n}\n\nREAL foo4d TYPE=ARRAY DIM=4 SIZE=xsize4d,ysize4d,zsize4d,tsize4d GHOSTSIZE=xghost4d,yghost4d,zghost4d,tghost4d\n{\n gf4d\n}\n\n\n\nREAL bar_a_0d TYPE=SCALAR\n\nREAL bar_a_1d TYPE=ARRAY DIM=1 SIZE=1 GHOSTSIZE=0\nREAL bar_b_1d TYPE=ARRAY DIM=1 SIZE=0 GHOSTSIZE=0\nREAL bar_c_1d[1] TYPE=ARRAY DIM=1 SIZE=1 GHOSTSIZE=0\nREAL bar_d_1d[1] TYPE=ARRAY DIM=1 SIZE=0 GHOSTSIZE=0\nREAL bar_e_1d[0] TYPE=ARRAY DIM=1 SIZE=1 GHOSTSIZE=0\nREAL bar_f_1d[0] TYPE=ARRAY DIM=1 SIZE=0 GHOSTSIZE=0\n\nREAL bar_a_2d TYPE=ARRAY DIM=2 SIZE=1,1 GHOSTSIZE=0,0\nREAL bar_b_2d TYPE=ARRAY DIM=2 SIZE=1,0 GHOSTSIZE=0,0\nREAL bar_c_2d TYPE=ARRAY DIM=2 SIZE=0,1 GHOSTSIZE=0,0\nREAL bar_d_2d TYPE=ARRAY DIM=2 SIZE=0,0 GHOSTSIZE=0,0\nREAL bar_e_2d[1] TYPE=ARRAY DIM=2 SIZE=1,1 GHOSTSIZE=0,0\nREAL bar_f_2d[1] TYPE=ARRAY DIM=2 SIZE=1,0 GHOSTSIZE=0,0\nREAL bar_g_2d[1] TYPE=ARRAY DIM=2 SIZE=0,1 GHOSTSIZE=0,0\nREAL bar_h_2d[1] TYPE=ARRAY DIM=2 SIZE=0,0 GHOSTSIZE=0,0\nREAL bar_i_2d[0] TYPE=ARRAY DIM=2 SIZE=1,1 GHOSTSIZE=0,0\nREAL bar_j_2d[0] TYPE=ARRAY DIM=2 SIZE=1,0 GHOSTSIZE=0,0\nREAL bar_k_2d[0] TYPE=ARRAY DIM=2 SIZE=0,1 GHOSTSIZE=0,0\nREAL bar_l_2d[0] TYPE=ARRAY DIM=2 SIZE=0,0 GHOSTSIZE=0,0\n\nREAL bar_a_3d TYPE=ARRAY DIM=3 SIZE=1,1,1 GHOSTSIZE=0,0,0\nREAL bar_b_3d TYPE=ARRAY DIM=3 SIZE=0,0,0 GHOSTSIZE=0,0,0\nREAL bar_c_3d[1] TYPE=ARRAY DIM=3 SIZE=1,1,1 GHOSTSIZE=0,0,0\nREAL bar_d_3d[1] TYPE=ARRAY DIM=3 SIZE=0,0,0 GHOSTSIZE=0,0,0\nREAL bar_e_3d[0] TYPE=ARRAY DIM=3 SIZE=1,1,1 GHOSTSIZE=0,0,0\nREAL bar_f_3d[0] TYPE=ARRAY DIM=3 SIZE=0,0,0 GHOSTSIZE=0,0,0\n\nREAL bar_a_4d TYPE=ARRAY DIM=4 SIZE=1,1,1,1 GHOSTSIZE=0,0,0,0\nREAL bar_b_4d TYPE=ARRAY DIM=4 SIZE=0,0,0,0 GHOSTSIZE=0,0,0,0\nREAL bar_c_4d[1] TYPE=ARRAY DIM=4 SIZE=1,1,1,1 GHOSTSIZE=0,0,0,0\nREAL bar_d_4d[1] TYPE=ARRAY DIM=4 SIZE=0,0,0,0 GHOSTSIZE=0,0,0,0\nREAL bar_e_4d[0] TYPE=ARRAY DIM=4 SIZE=1,1,1,1 GHOSTSIZE=0,0,0,0\nREAL bar_f_4d[0] TYPE=ARRAY DIM=4 SIZE=0,0,0,0 GHOSTSIZE=0,0,0,0\n", - "params": "", + "param": "# Parameter definitions for thorn Arrays\n# $Header$\n\nprivate:\n\n# 4D Arrays\n\nINT xghost4d \"Ghostzone size in x direction for 4d arrays\"\n{\n 0:* :: \"\"\n} 1\n\nINT yghost4d \"Ghostzone size in y direction for 4d arrays\"\n{\n 0:* :: \"\"\n} 1\n\nINT zghost4d \"Ghostzone size in z direction for 4d arrays\"\n{\n 0:* :: \"\"\n} 1\n\nINT tghost4d \"Ghostzone size in t direction for 4d arrays\"\n{\n 0:* :: \"\"\n} 1\n\nINT xsize4d \"Size of 4d array in x direction\"\n{\n 0:* :: \"\"\n} 2\n\nINT ysize4d \"Size of 4d array in y direction\"\n{\n 0:* :: \"\"\n} 3\n\nINT zsize4d \"Size of 4d array in z direction\"\n{\n 0:* :: \"\"\n} 2\n\nINT tsize4d \"Size of 4d array in t direction\"\n{\n 0:* :: \"\"\n} 2\n\n# 3D Arrays\n\nINT xghost3d \"Ghostzone size in x direction for 3d arrays\"\n{\n 0:* :: \"\"\n} 1\n\nINT yghost3d \"Ghostzone size in y direction for 3d arrays\"\n{\n 0:* :: \"\"\n} 1\n\nINT zghost3d \"Ghostzone size in z direction for 3d arrays\"\n{\n 0:* :: \"\"\n} 1\n\nINT xsize3d \"Size of 3d array in x direction\"\n{\n 0:* :: \"\"\n} 2\n\nINT ysize3d \"Size of 3d array in y direction\"\n{\n 0:* :: \"\"\n} 3\n\nINT zsize3d \"Size of 3d array in z direction\"\n{\n 0:* :: \"\"\n} 2\n\n# 2D Arrays\n\nINT xghost2d \"Ghostzone size in x direction for 2d arrays\"\n{\n 0:* :: \"\"\n} 1\n\nINT yghost2d \"Ghostzone size in y direction for 2d arrays\"\n{\n 0:* :: \"\"\n} 1\n\nINT xsize2d \"Size of 2d array in x direction\"\n{\n 0:* :: \"\"\n} 2\n\nINT ysize2d \"Size of 2d array in y direction\"\n{\n 0:* :: \"\"\n} 3\n\n# 1D Arrays\n\nINT xghost1d \"Ghostzone size in x direction for 1d arrays\"\n{\n 0:* :: \"\"\n} 1\n\nINT xsize1d \"Size of 1d array in x direction\"\n{\n 0:* :: \"\"\n} 2\n\n", "schedule": "# Schedule definitions for thorn Arrays\n# $Header$\n\nstorage: foo1d,foo2d,foo3d,foo4d\nstorage: bar_a_0d\nstorage: bar_a_1d bar_b_1d bar_c_1d bar_d_1d bar_e_1d bar_f_1d\nstorage: bar_a_2d bar_b_2d bar_c_2d bar_d_2d bar_e_2d bar_f_2d\nstorage: bar_g_2d bar_h_2d bar_i_2d bar_j_2d bar_k_2d bar_l_2d\nstorage: bar_a_3d bar_b_3d bar_c_3d bar_d_3d bar_e_3d bar_f_3d\nstorage: bar_a_4d bar_b_4d bar_c_4d bar_d_4d bar_e_4d bar_f_4d\n\nschedule UseFortranArrays at CCTK_EVOL\n{\n LANG: Fortran\n sync: bar_a_0d\n sync: bar_a_1d bar_b_1d bar_c_1d bar_d_1d bar_e_1d bar_f_1d\n sync: bar_a_2d bar_b_2d bar_c_2d bar_d_2d bar_e_2d bar_f_2d\n sync: bar_g_2d bar_h_2d bar_i_2d bar_j_2d bar_k_2d bar_l_2d\n sync: bar_a_3d bar_b_3d bar_c_3d bar_d_3d bar_e_3d bar_f_3d\n sync: bar_a_4d bar_b_4d bar_c_4d bar_d_4d bar_e_4d bar_f_4d\n} \"Use Fortran arrays\"\n\nschedule SetUpFortranArrays at CCTK_INITIAL\n{\n LANG: Fortran\n} \"Set up Fortran arrays\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Arrays\n# $Header$\n\n# Source files in this directory\nSRCS = Array.F\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusTest_TestComplex.json b/CactusTest_TestComplex.json index 5de0453c4883b83a5d82286bab5847b281cafba7..6be306d7046293f34ebcf7d2426fd2b5366ce4ed 100644 --- a/CactusTest_TestComplex.json +++ b/CactusTest_TestComplex.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "", "interface": "# Interface definition for thorn TestComplex\n# $Header$\n\nimplements: testcomplex\n\ncomplex cvars3d dim=3 type=gf timelevels=2\n{\n comp3d\n} \"3D complex grid functions\"\n\n#complex cvars2d dim=2 type=gf\n#{\n# comp2d\n#} \"2D complex grid functions\"\n\n#complex cvars1d dim=1 type=gf\n#{\n# comp1d\n#} \"1D complex grid functions\"\n\ncomplex carrays3d dim=3 size=10,10,10 type=array\n{\n acomp3d\n} \"3D complex grid arrays\"\n\ncomplex carrays2d dim=2 size=10,10 type=array\n{\n acomp2d\n} \"2D complex grid arrays\"\n\ncomplex carrays1d dim=1 size=10 type=array\n{\n acomp1d\n} \"1D complex grid arrays\"\n\ncomplex cscalars type=scalar\n{\n scomp\n} \"complex grid scalars\"\n\nreal cmplx_output type=scalar\n{\n real_part\n imaginary_part\n}\n", - "params": "", + "param": "# Parameter definitions for thorn TestComplex\n# $Header$\n\n\nREAL power_value \"power of the complex number to take\" STEERABLE = ALWAYS\n{\n 0.0: :: \"Some positive value\"\n} 0.5\n\nREAL real_value \"power of the complex number to take\" STEERABLE = ALWAYS\n{\n *:* :: \"real part\"\n} 3\n\nREAL imaginary_value \"power of the complex number to take\" STEERABLE = ALWAYS\n{\n *:* :: \"imaginary part\"\n} -2", "schedule": "# Schedule definitions for thorn TestComplex\n# $Header$\n\nSTORAGE: cvars3d[2]\nSTORAGE: carrays3d carrays2d carrays1d cscalars\nSTORAGE: cmplx_output\n\nschedule InitComplex3D at INITIAL\n{\n LANG: Fortran\n} \"Initialise 3D complex grid functions\"\n\nschedule EvolveComplex3D at EVOL\n{\n LANG: Fortran\n SYNC: cvars3d\n} \"Evolve 3D complex grid functions\"\n\nschedule TestComplexPower at CCTK_POSTINITIAL\n{\n LANG: C\n} \"Do a simple complex power operation\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TestComplex\n# $Header$\n\n# Source files in this directory\nSRCS = Complex3D.F77 Complex.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusTest_TestCoordinates.json b/CactusTest_TestCoordinates.json index 2f251ec1ee04e5202c7f2c61fec13df93dff9cb3..ca73bc9703c242ad7e54ef27ef9ccfcf6da80125 100644 --- a/CactusTest_TestCoordinates.json +++ b/CactusTest_TestCoordinates.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "", "interface": "# Interface definition for thorn Coordinates\n# $Header$\n\nimplements: testgrid\n\nprivate:\n\ncctk_real cartesian dim=3 type=GF\n{\n x,y,z\n} \"Cartesian coordinates\"\n\ncctk_real spherical dim=3 type=GF\n{\n r\n} \"Spherical polar coordinates\"\n\n\n", - "params": "", + "param": "# Parameter definitions for thorn Coordinates\n# $Header$\n\nrestricted:\n\nKEYWORD domain \"Domain type\"\n{\n \"octant\" :: \"Use an octant about the origin\"\n \"quadrant\" :: \"Use a quadrant in x-y plane\"\n \"bitant\" :: \"Use a bitant about the x-y plane\"\n \"full\" :: \"Use the full domain\"\n} \"full\"\n\nKEYWORD bitant_plane \"Plane defining bitant domain\"\n{\n \"xy\" :: \"xy-plane\"\n \"xz\" :: \"xz-plane\"\n \"yz\" :: \"yz-plane\"\n} \"xy\"\n\n", "schedule": "# Schedule definitions for thorn Coordinates\n# $Header$\n\nSTORAGE: cartesian, spherical\n\nschedule Coordinates_Startup at STARTUP\n{\n LANG: Fortran\n} \"Register coordinates\"\n\nschedule Coordinates_Setup at BASEGRID\n{\n LANG: Fortran\n} \"Set up coordinates\"\n\nschedule Coordinates_Query at EVOL\n{\n LANG: Fortran\n} \"Query coordinates\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Coordinates\n# $Header$\n\n# Source files in this directory\nSRCS = Coords.F77\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusTest_TestFortranCrayPointers.json b/CactusTest_TestFortranCrayPointers.json index f6dd4abf0ee9026276a43cb3d0a0b6886fedc4c4..048a99719a53614142ef562d2d83f73f0b15bb77 100644 --- a/CactusTest_TestFortranCrayPointers.json +++ b/CactusTest_TestFortranCrayPointers.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "# Configuration definitions for thorn TestFortranCrayPointers\n\nREQUIRES Fortran\n", "interface": "# Interface definition for thorn TestFortranCrayPointers\n\nIMPLEMENTS: TestFortranCrayPointers\n\nCCTK_REAL gf TYPE=gf \"Grid function\"\nCCTK_REAL ga TYPE=array DIM=2 SIZE=10,10 \"Grid array\"\nCCTK_REAL gs TYPE=scalar \"Grid scalar\"\n", - "params": "", + "param": "# Parameter definitions for thorn TestFortranCrayPointers\n", "schedule": "# Schedule definitions for thorn TestFortranCrayPointers\n\nSCHEDULE TestFortranCrayPointers_main AT initial\n{\n LANG: C\n} \"Test Fortran Cray pointers\"\n\nSCHEDULE TestFortranCrayPointers_caller AT initial\n{\n LANG: Fortran\n} \"Test Fortran Cray pointers for passing cctkGH\"\n", "src": { "calling.F90": "#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n\n\n\nmodule cctk_core\n implicit none\n\n ! This definition must stay in sync with the C definition in the flesh\n type, bind(C) :: cGH\n integer cctk_dim\n integer cctk_iteration\n\n CCTK_POINTER_TO_CONST cctk_gsh_ptr\n CCTK_POINTER_TO_CONST cctk_lsh_ptr\n CCTK_POINTER_TO_CONST cctk_lbnd_ptr\n CCTK_POINTER_TO_CONST cctk_ubnd_ptr\n\n CCTK_POINTER_TO_CONST cctk_ash_ptr\n integer cctk_alignment, cctk_alignment_offset\n end type cGH\n\ncontains\n\n pure function cctki_array_index(array, idx) result(value)\n implicit none\n CCTK_POINTER_TO_CONST, intent(in) :: array\n integer, intent(in) :: idx\n integer values(idx)\n pointer (array, values)\n integer value\n value = values(idx)\n end function cctki_array_index\n\n pure function cctki_array(array, dim) result(values)\n implicit none\n CCTK_POINTER_TO_CONST, intent(in) :: array\n integer, intent(in) :: dim\n integer array_values(dim)\n pointer (array, array_values)\n integer values(dim)\n values = array_values\n end function cctki_array\n\nend module cctk_core\n\n\n\nmodule cctk_core2\n use cctk\n use cctk_core\n implicit none\n\ncontains\n\n pure function cctki_ash(cctkGH, idx) result(value)\n implicit none\n CCTK_POINTER_TO_CONST, intent(in) :: cctkGH\n type(cGH) cctkGH_value\n pointer (cctkGH, cctkGH_value)\n integer, intent(in) :: idx\n integer value\n value = cctki_array_index(cctkGH_value % cctk_ash_ptr, idx)\n end function cctki_ash\n\n ! pure function cctki_ash2(cctkGH, idx) result(ash)\n ! implicit none\n ! CCTK_POINTER_TO_CONST, intent(in) :: cctkGH\n ! type(cGH) cctkGH_value\n ! pointer (cctkGH, cctkGH_value)\n ! integer, intent(in) :: idx\n ! integer ash(3)\n ! ash = cctki_array(cctkGH_value % cctk_ash_ptr, 3)\n ! end function cctki_ash2\n\n pure function cctki_group_ash(cctkGH, groupname, dim, idx) result(value)\n implicit none\n CCTK_POINTER_TO_CONST, intent(in) :: cctkGH\n character(*), intent(in) :: groupname\n integer, intent(in) :: dim\n integer, intent(in) :: idx\n integer value\n integer ash(dim)\n integer ierr\n call CCTK_GroupashGN(ierr, cctkGH, dim, ash, groupname)\n value = ash(idx)\n end function cctki_group_ash\n\nend module cctk_core2\n\n\n\nsubroutine TestFortranCrayPointers_callee(cctkGH)\n use cctk\n use cctk_core\n use cctk_core2\n implicit none\n\n CCTK_POINTER_TO_CONST cctkGH\n type(cGH) cctkGH_value\n pointer (cctkGH, cctkGH_value)\n\n integer cctki_dim\n integer cctk_lsh\n cctk_lsh(cctki_dim) = &\n cctki_array_index(cctkGH_value % cctk_lsh_ptr, cctki_dim)\n\n integer, save :: cctki_varindex_gf = -1\n CCTK_POINTER_TO_CONST gf_ptr\n CCTK_REAL gf(cctki_ash(cctkGH, 1), cctki_ash(cctkGH, 2), cctki_ash(cctkGH, 3))\n pointer (gf_ptr, gf)\n\n integer, save :: cctki_varindex_ga = -1\n CCTK_POINTER_TO_CONST ga_ptr\n CCTK_REAL ga(cctki_group_ash(cctkGH, \"TestFortranCrayPointers::ga\", 2, 1), &\n cctki_group_ash(cctkGH, \"TestFortranCrayPointers::ga\", 2, 2))\n pointer (ga_ptr, ga)\n\n integer, save :: cctki_varindex_gs = -1\n CCTK_POINTER_TO_CONST gs_ptr\n CCTK_REAL gs\n pointer (gs_ptr, gs)\n\n integer ga_lsh(2)\n\n integer i, j, k\n integer ierr\n\n if (cctki_varindex_gf < 0) then\n call CCTK_VarIndex(cctki_varindex_gf, \"TestFortranCrayPointers::gf\")\n end if\n call CCTK_VarDataPtrI(gf_ptr, cctkGH, 0, cctki_varindex_gf)\n\n if (cctki_varindex_ga < 0) then\n call CCTK_VarIndex(cctki_varindex_ga, \"TestFortranCrayPointers::ga\")\n end if\n call CCTK_VarDataPtrI(ga_ptr, cctkGH, 0, cctki_varindex_ga)\n\n if (cctki_varindex_gs < 0) then\n call CCTK_VarIndex(cctki_varindex_gs, \"TestFortranCrayPointers::gs\")\n end if\n call CCTK_VarDataPtrI(gs_ptr, cctkGH, 0, cctki_varindex_gs)\n\n do k = 1, cctk_lsh(3)\n do j = 1, cctk_lsh(2)\n do i = 1, cctk_lsh(1)\n gf(i,j,k) = 1\n end do\n end do\n end do\n\n call CCTK_GrouplshGN(ierr, cctkGH, 2, ga_lsh, \"TestFortranCrayPointers::ga\")\n if (ierr < 0) then\n call CCTK_ERROR(\"Cannot determine ga_lsh\")\n end if\n\n do j = 1, ga_lsh(2)\n do i = 1, ga_lsh(1)\n ga(i,j) = 1\n end do\n end do\n\n gs = 1\nend subroutine TestFortranCrayPointers_callee\n\n\n\nsubroutine TestFortranCrayPointers_caller(CCTK_ARGUMENTS)\n implicit none\n DECLARE_CCTK_ARGUMENTS\n gf = 0\n ga = 0\n gs = 0\n call TestFortranCrayPointers_callee(cctkGH)\n if (any(gf /= 1) .or. any(ga /= 1) .or. gs /= 1) then\n call CCTK_ERROR(\"Grid variables are incorrect\")\n end if\nend subroutine TestFortranCrayPointers_caller\n", diff --git a/CactusTest_TestFortranDependencies1.json b/CactusTest_TestFortranDependencies1.json index 67fa07aff900fd090406727e56e6a270212b0dc4..dc3519ef550f7d4985aac3dff55576d3709fee7b 100644 --- a/CactusTest_TestFortranDependencies1.json +++ b/CactusTest_TestFortranDependencies1.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "# Configuration definition for thorn TestFortranDependencies1\n# $Header$\n\nREQUIRES TestFortranDependencies\n", "interface": "# Interface definition for thorn TestFortranDependencies1\n# $Header$\n\nimplements: TestFortranDependencies1\n", - "params": "", + "param": "# Parameter definitions for thorn TestFortranDependencies1\n# $Header$\n", "schedule": "# Schedule definitions for thorn TestFortranDependencies1\n# $Header$\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TestFortranDependencies1\n# $Header$\n\n# Source files in this directory\nSRCS = tfd_use_module_far.F90\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusTest_TestFortranDependencies2.json b/CactusTest_TestFortranDependencies2.json index b436891f588db386e0bb4e944ea64fb9e7e526b2..01128d917481baafef0a3e0c4a6f1642da33361f 100644 --- a/CactusTest_TestFortranDependencies2.json +++ b/CactusTest_TestFortranDependencies2.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "# Configuration definition for thorn TestFortranDependencies2\n# $Header$\n\nPROVIDES TestFortranDependencies\n{\n SCRIPT\n LANG\n}\n", "interface": "# Interface definition for thorn TestFortranDependencies2\n# $Header$\n\nimplements: TestFortranDependencies2\n", - "params": "", + "param": "# Parameter definitions for thorn TestFortranDependencies2\n# $Header$\n", "schedule": "# Schedule definitions for thorn TestFortranDependencies2\n# $Header$\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TestFortranDependencies2\n# $Header$\n\n# Source files in this directory\nSRCS = tfd_use_module.F90 tfd_module.F90\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusTest_TestFpointerNULL.json b/CactusTest_TestFpointerNULL.json index 91bed508c0d3ee3f4f4dc39ed56be3c8fd00224d..12c1434cd2fda12666a403e22f36a0851809b07b 100644 --- a/CactusTest_TestFpointerNULL.json +++ b/CactusTest_TestFpointerNULL.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "", "interface": "# Interface definition for thorn TestFpointerNULL\n# $Header$\n\nimplements: TestFpointerNULL\n\nprivate:\n\nREAL array_group TYPE=ARRAY DIM=2 SIZE=5,10\n{\n array\n} \"CCTK_REAL test array\"\n\nINT scalar_group TYPE=SCALAR\n{\n scalar\n} \"CCTK_INT test scalar\"\n", - "params": "", + "param": "# Parameter definitions for thorn TestFpointerNULL\n# $Header$\n", "schedule": "# Schedule definitions for thorn TestFpointerNULL\n# $Header$\n\nSTORAGE: scalar_group array_group\n\nSCHEDULE TestFpointerNULL_Caller AT INITIAL\n{\n LANG: C\n} \"Test passing a NULL pointer from a C function into Fortran routine\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn PassNULLtoFortran\n# $Header$\n\n# Source files in this directory\nSRCS = Caller.c Callee.F77\n", diff --git a/CactusTest_TestFreeF90.json b/CactusTest_TestFreeF90.json index fbca0233d41b27b9c55de497e76279edb4328a8e..5324573f5cd79b2662f0a73a54280c09c387c15c 100644 --- a/CactusTest_TestFreeF90.json +++ b/CactusTest_TestFreeF90.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "", "interface": "# Interface definition for thorn TestFreeF90\n# $Header$\n\nIMPLEMENTS: TestFreeF90\n", - "params": "", + "param": "# Parameter definitions for thorn TestFreeF90\n# $Header$\n", "schedule": "# Schedule definitions for thorn TestFreeF90\n# $Header$\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TestFreeF90\n# $Header$\n\n# Source files in this directory\nSRCS = TestFreeF90.F90\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusTest_TestGlobalReduce.json b/CactusTest_TestGlobalReduce.json index 7ea2f972db50acb3c6f002a189352711602c76aa..9ed20aa8c49d85cc1aec9f68e7d8514d5f5bf0e8 100644 --- a/CactusTest_TestGlobalReduce.json +++ b/CactusTest_TestGlobalReduce.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "", "interface": "# Interface definition for thorn TestGlobalReduce\n# $Header$\n\nimplements:testglobalreduce\ninherits: grid\n\npublic:\ncctk_real real_3d dim=3 type=ARRAY size=array_nx,array_ny,array_nz\n{\n grid_real\n} \"grid array to be reduced of type real\"\n\ncctk_int int_3d dim=3 type=ARRAY size=array_nx,array_ny,array_nz\n{\n grid_int\n} \"grid array to be reduced of type int\"\n\ncctk_real real_gf type=GF Timelevels=1\n{\n real_test_gf, real_sum_gf\n} \"a real gf to test for gaussian initial data\"\n\ncctk_real weight_group type=ARRAY size=array_nx,array_ny,array_nz\n{\n weight\n} \"a weight variable to be used in reduction\"\n\ncctk_int int_vals type=scalar\n{\n int_max_3D, int_sum_3D, int_avg_3D, int_min_3D\n} \"results from weighted int reduction\"\n\ncctk_real real_vals type=scalar\n{\n real_max_3D, real_sum_3D, real_avg_3D, real_min_3D\n} \"results from real reduction\"\n\ncctk_int weighted_int_vals type=scalar\n{\n weighted_int_max, weighted_int_sum, weighted_int_avg, weighted_int_min\n} \"results from int reduction\"\n\ncctk_real weighted_real_vals type=scalar\n{\n weighted_real_max, weighted_real_sum, weighted_real_avg, weighted_real_min\n} \"results from weighted real reduction\"\n\ncctk_real gf_vals type=scalar\n{\n gf_max, gf_sum, gf_norm1, gf_norm2, gf_norm3, gf_norm4\n} \"results from gf reduction\"\n\ncctk_real scalar_reduction type=scalar\n{\n num_to_reduce, sum_value, max_value \n} \"scalar reduction variables\"\n", - "params": "", + "param": "# Parameter definitions for thorn TestGlobalReduce\n# $Header$\nINT array_nx \"Size of arrays in x direction\"\n{\n 0:* :: \"\"\n} 5\n\nINT array_ny \"Size of arrays in y direction\"\n{\n 0:* :: \"\"\n} 4\n\nINT array_nz \"Size of arrays in z direction\"\n{\n 0:* :: \"\"\n} 10\n\nINT dest_proc \"processor to which reduction is to be made\"\n{\n *:* :: \"number can be any valid integer\"\n} 0\n\nINT map_x \"number of original points to map to in x-direction\"\n{\n 0:* :: \"has to be positive\"\n} 10\n\nINT map_y \"number of original points to map to in y-direction\"\n{\n 0:* :: \"has to be positive\"\n} 10\n\nINT map_z \"number of original points to map to in z-direction\"\n{\n 0:* :: \"has to be positive\"\n} 10\n \nREAL radius \"The radius of the gaussian wave\"\n{\n 0:* :: \"Positive\"\n} 0.1\n\nREAL sigma \"The sigma for the gaussian wave\"\n{\n 0:* :: \"Positive\"\n} 0.1\n\nREAL amplitude \"The amplitude of the waves\"\n{\n *:* :: \"No restriction\"\n} 1.0\n\nREAL uniform_weight_value \"The uniform value of the weight\"\n{\n *:* :: \"Can be anything\"\n} 0.5\n", "schedule": "# Schedule definitions for thorn TestGlobapdReduce\n# $Header$\n\nSTORAGE: real_3d int_3d real_vals int_vals weighted_real_vals weighted_int_vals real_gf[1] gf_vals[1] scalar_reduction weight_group\n\nschedule TestGlobalReduce_Initial at CCTK_INITIAL\n{\n LANG:C\n} \"Initialize the input arrays to values\"\n\nschedule TestGlobalReduceC_Avg at CCTK_POSTINITIAL\n{\n LANG: C\n} \"Test out GF reduction\"\n\nschedule TestGlobalReduceC_Maximum at CCTK_POSTINITIAL after TestGlobalReduceC_Avg\n{\n LANG: C\n} \"Test out maximum reduction\"\n\nschedule TestGlobalReduceC_Minimum at CCTK_POSTINITIAL after TestGlobalReduceC_Maximum\n{\n LANG: C\n} \"Test out minimum reduction\"\n \nschedule TestGlobalReduceC_Sum at CCTK_POSTINITIAL after TestGlobalReduceC_Minimum\n{\n LANG: C\n} \"Test out sum reduction\"\n \nschedule TestGlobalReduceC_GF at CCTK_POSTINITIAL after TestGlobalReduceC_Sum\n{\n LANG: C\n} \"Test out GF reduction\"\n\nschedule TestGlobalReduceC_Norms at CCTK_POSTINITIAL after TestGlobalReduceC_GF\n{\n LANG: C\n} \"Test out GF reduction\"\n\n\nschedule TestGlobalReduceC_Scalar at CCTK_POSTINITIAL after TestGlobalReduceC_Norms\n{\n LANG: C\n} \"Test out GF reduction\"\n\nschedule TestGlobalReduceC_Weighted_Avg at CCTK_POSTINITIAL after TestGlobalReduceC_Scalar\n{\n LANG: C\n} \"Test weighted global average reduction\"\n\nschedule TestGlobalReduceC_Weighted_Maximum at CCTK_POSTINITIAL after TestGlobalReduceC_Weighted_Avg\n{\n LANG: C\n} \"Test weighted global maximum reduction\"\n\nschedule TestGlobalReduceC_Weighted_Minimum at CCTK_POSTINITIAL after TestGlobalReduceC_Weighted_Maximum\n{\n LANG: C\n} \"Test weighted global minimum reduction\"\n \nschedule TestGlobalReduceC_Weighted_Sum at CCTK_POSTINITIAL after TestGlobalReduceC_Weighted_Minimum\n{\n LANG: C\n} \"Test weighted global Sum reduction\"\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TestGlobalReduce\n# $Header$\n\n# Source files in this directory\nSRCS = Initial.c TestGlobalReduce.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusTest_TestInclude1.json b/CactusTest_TestInclude1.json index 34e73a049efe0bef584b27ab3ff959e6d75db212..07c24c93ea32d1dda4c641d90297e368be55a54c 100644 --- a/CactusTest_TestInclude1.json +++ b/CactusTest_TestInclude1.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "", "interface": "# Interface definition for thorn Include1\n# $Header$\n\nimplements: include1\n\nINCLUDES HEADER: IncludeHeader1In1.h in IncludeHeader1.h\nINCLUDES HEADER: IncludeHeader1In2.h in IncludeHeader2.h\n\nINCLUDES SOURCE: IncludeSource1In1.h in IncludeSource1.h\nINCLUDES SOURCE: IncludeSource1In2.h in IncludeSource2.h\n\nUSES INCLUDE SOURCE: IncludeSource1.h\nUSES INCLUDE HEADER: IncludeHeader1.h\n\n", - "params": "", + "param": "# Parameter definitions for thorn Include1\n# $Header$\n", "schedule": "# Schedule definitions for thorn Include1\n# $Header$\n\nschedule PrintInclude1 at INITIAL\n{\n LANG: C\n} \"Print contents of include files\"", "src": { "IncludeHeader1In1.h": "#define ih1in1\n", diff --git a/CactusTest_TestInclude2.json b/CactusTest_TestInclude2.json index 5e74264e6c2ba359c73bda04133723af5d762d0a..245f5b0b959257880bcba092bdb737f323a88d1b 100644 --- a/CactusTest_TestInclude2.json +++ b/CactusTest_TestInclude2.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "", "interface": "# Interface definition for thorn Include2\n# $Header$\n\nimplements: include2\n\nINCLUDES HEADER: IncludeHeader2In1.h in IncludeHeader1.h\nINCLUDES HEADER: IncludeHeader2In2.h in IncludeHeader2.h\n\nINCLUDES SOURCE: IncludeSource2In1.h in IncludeSource1.h\nINCLUDES SOURCE: IncludeSource2In2.h in IncludeSource2.h\n\nUSES INCLUDE SOURCE: IncludeSource2.h\nUSES INCLUDE HEADER: IncludeHeader2.h\n\n", - "params": "", + "param": "# Parameter definitions for thorn Include2\n# $Header$\n", "schedule": "# Schedule definitions for thorn Include2\n# $Header$\n\nschedule PrintInclude2 at INITIAL\n{\n LANG: Fortran\n} \"Print contents of include files\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Include2\n# $Header$\n\n# Source files in this directory\nSRCS = PrintInclude.F77\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusTest_TestLoop.json b/CactusTest_TestLoop.json index bf96c3d2b2349db45549be464cc65356ce03b07c..8c47215cc62721aa44c444bcc509a9db9cea7dbc 100644 --- a/CactusTest_TestLoop.json +++ b/CactusTest_TestLoop.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "", "interface": "# Interface definition for thorn TestLoop\n\nIMPLEMENTS: TestLoop\n\nINHERITS: grid\n\n\n\n# Convenient way to determine boundary sizes\nCCTK_INT FUNCTION GetBoundarySizesAndTypes \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY bndsize, \\\n CCTK_INT OUT ARRAY is_ghostbnd, \\\n CCTK_INT OUT ARRAY is_symbnd, \\\n CCTK_INT OUT ARRAY is_physbnd)\nREQUIRES FUNCTION GetBoundarySizesAndTypes\n\n\n\nCCTK_REAL csums TYPE=scalar\n{\n csum_all csum_int csum_bnd csum_intbnd\n} \"Result values for C test cases\"\n\nCCTK_REAL fsums TYPE=scalar\n{\n fsum_all fsum_int fsum_bnd fsum_intbnd\n} \"Result values for Fortran test cases\"\n\nCCTK_INT pointtypes TYPE=GF \"Grid function point types\"\n", - "params": "", + "param": "# Parameter definitions for thorn TestLoop\n", "schedule": "# Schedule definitions for thorn TestLoop\n\nSTORAGE: csums fsums pointtypes\n\nSCHEDULE TestLoopPointwise AT initial\n{\n LANG: C\n} \"Test loop iterators pointwise\"\n\nSCHEDULE TestLoopC AT initial\n{\n LANG: C\n} \"Test loop iterators\"\n\nSCHEDULE TestLoopFortran AT initial\n{\n LANG: Fortran\n} \"Test loop iterators\"\n", "src": { "TestLoopC.c": "#include \n#include \n#include \n\n\n\nvoid TestLoopC(CCTK_ARGUMENTS)\n{\n DECLARE_CCTK_ARGUMENTS;\n DECLARE_CCTK_PARAMETERS;\n\n CCTK_REAL csum;\n \n switch (cctk_dim) {\n \n case 1: {\n /* 1D */\n \n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP1_ALL(loop1_all, cctkGH, i) {\n int const ind1d = CCTK_GFINDEX1D(cctkGH, i);\n csum += r[ind1d];\n } CCTK_ENDLOOP1_ALL(loop1_all);\n *csum_all = csum;\n \n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP1_INT(loop1_int, cctkGH, i) {\n int const ind1d = CCTK_GFINDEX1D(cctkGH, i);\n csum += r[ind1d];\n } CCTK_ENDLOOP1_INT(loop1_int);\n *csum_int = csum;\n \n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP1_BND(loop1_bnd, cctkGH, i, ni) {\n int const ind1d = CCTK_GFINDEX1D(cctkGH, i);\n csum += r[ind1d];\n } CCTK_ENDLOOP1_BND(loop1_bnd);\n *csum_bnd = csum;\n \n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP1_INTBND(loop1_intbnd, cctkGH, i, ni) {\n int const ind1d = CCTK_GFINDEX1D(cctkGH, i);\n csum += r[ind1d];\n } CCTK_ENDLOOP1_INTBND(loop1_intbnd);\n *csum_intbnd = csum;\n \n break;\n }\n \n \n \n case 2:{\n /* 2D */\n \n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP2_ALL(loop2_all, cctkGH, i,j) {\n int const ind2d = CCTK_GFINDEX2D(cctkGH, i,j);\n csum += r[ind2d];\n } CCTK_ENDLOOP2_ALL(loop2_all);\n *csum_all = csum;\n \n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP2_INT(loop2_int, cctkGH, i,j) {\n int const ind2d = CCTK_GFINDEX2D(cctkGH, i,j);\n csum += r[ind2d];\n } CCTK_ENDLOOP2_INT(loop2_int);\n *csum_int = csum;\n \n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP2_BND(loop2_bnd, cctkGH, i,j, ni,nj) {\n int const ind2d = CCTK_GFINDEX2D(cctkGH, i,j);\n csum += r[ind2d];\n } CCTK_ENDLOOP2_BND(loop2_bnd);\n *csum_bnd = csum;\n \n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP2_INTBND(loop2_intbnd, cctkGH, i,j, ni,nj) {\n int const ind2d = CCTK_GFINDEX2D(cctkGH, i,j);\n csum += r[ind2d];\n } CCTK_ENDLOOP2_INTBND(loop2_intbnd);\n *csum_intbnd = csum;\n \n break;\n }\n \n \n \n case 3: {\n /* 3D */\n \n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP3_ALL(loop3_all, cctkGH, i,j,k) {\n int const ind3d = CCTK_GFINDEX3D(cctkGH, i,j,k);\n csum += r[ind3d];\n } CCTK_ENDLOOP3_ALL(loop3_all);\n *csum_all = csum;\n \n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP3_INT(loop3_int, cctkGH, i,j,k) {\n int const ind3d = CCTK_GFINDEX3D(cctkGH, i,j,k);\n csum += r[ind3d];\n } CCTK_ENDLOOP3_INT(loop3_int);\n *csum_int = csum;\n \n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP3_BND(loop3_bnd, cctkGH, i,j,k, ni,nj,nk) {\n int const ind3d = CCTK_GFINDEX3D(cctkGH, i,j,k);\n csum += r[ind3d];\n } CCTK_ENDLOOP3_BND(loop3_bnd);\n *csum_bnd = csum;\n \n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP3_INTBND(loop3_intbnd, cctkGH, i,j,k, ni,nj,nk) {\n int const ind3d = CCTK_GFINDEX3D(cctkGH, i,j,k);\n csum += r[ind3d];\n } CCTK_ENDLOOP3_INTBND(loop3_intbnd);\n *csum_intbnd = csum;\n \n break;\n }\n \n \n \n case 4: {\n /* 4D */\n \n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP4_ALL(loop4_all, cctkGH, i,j,k,l) {\n int const ind4d = CCTK_GFINDEX4D(cctkGH, i,j,k,l);\n csum += r[ind4d];\n } CCTK_ENDLOOP4_ALL(loop4_all);\n *csum_all = csum;\n \n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP4_INT(loop4_int, cctkGH, i,j,k,l) {\n int const ind4d = CCTK_GFINDEX4D(cctkGH, i,j,k,l);\n csum += r[ind4d];\n } CCTK_ENDLOOP4_INT(loop4_int);\n *csum_int = csum;\n \n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP4_BND(loop4_bnd, cctkGH, i,j,k,l, ni,nj,nk,nl) {\n int const ind4d = CCTK_GFINDEX4D(cctkGH, i,j,k,l);\n csum += r[ind4d];\n } CCTK_ENDLOOP4_BND(loop4_bnd);\n *csum_bnd = csum;\n \n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP4_INTBND(loop4_intbnd, cctkGH, i,j,k,l, ni,nj,nk,nl) {\n int const ind4d = CCTK_GFINDEX4D(cctkGH, i,j,k,l);\n csum += r[ind4d];\n } CCTK_ENDLOOP4_INTBND(loop4_intbnd);\n *csum_intbnd = csum;\n \n break;\n }\n \n \n \n default:\n CCTK_ERROR(\"cctk_dim out of range\");\n \n }\n}\n", diff --git a/CactusTest_TestMath.json b/CactusTest_TestMath.json index 9d11e9ba72498932083d93e707471cd9798960e6..317220bcb656112ab45439e77d496f10e69796e8 100644 --- a/CactusTest_TestMath.json +++ b/CactusTest_TestMath.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "", "interface": "# Interface definition for thorn TestMath\n\nIMPLEMENTS: TestMath\n", - "params": "", + "param": "# Parameter definitions for thorn TestMath\n", "schedule": "# Schedule definitions for thorn TestMath\n\nSCHEDULE TestMath_C AT initial\n{\n LANG: C\n} \"Test C math functions\"\n\nSCHEDULE TestMath_CC AT initial\n{\n LANG: C\n} \"Test C++ math functions\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TestMath\n\n# Source files in this directory\nSRCS = math_c.c math_cc.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusTest_TestMoL.json b/CactusTest_TestMoL.json index 6aec5a818408903c02526f5856e3326da8f75836..aeea71b2834ea79a464dba23c276842a50dfb95e 100644 --- a/CactusTest_TestMoL.json +++ b/CactusTest_TestMoL.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "# Configuration definitions for thorn TestMoL\n", "interface": "implements: TestMoL\ninherits: MethodOfLines # not really required but useful to make sure MoL is active\n\n################################################################\n### Aliased registration and type changing functions for the ###\n### standard (i.e., real) GFs. ###\n################################################################\n\nCCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\nCCTK_INT FUNCTION MoLRegisterEvolvedSlow(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndexSlow)\n\nCCTK_INT FUNCTION MoLRegisterConstrained(CCTK_INT IN ConstrainedIndex)\nCCTK_INT FUNCTION MoLRegisterSaveAndRestore(CCTK_INT IN SandRIndex)\nCCTK_INT FUNCTION MoLRegisterEvolvedGroup(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\nCCTK_INT FUNCTION MoLRegisterEvolvedGroupSlow(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndexSlow)\nCCTK_INT FUNCTION MoLRegisterConstrainedGroup(CCTK_INT IN ConstrainedIndex)\nCCTK_INT FUNCTION MoLRegisterSaveAndRestoreGroup(CCTK_INT IN SandRIndex)\nCCTK_INT FUNCTION MoLChangeToEvolved(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\nCCTK_INT FUNCTION MoLChangeToEvolvedSlow(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndexSlow)\nCCTK_INT FUNCTION MoLChangeToConstrained(CCTK_INT IN ConstrainedIndex)\nCCTK_INT FUNCTION MoLChangeToSaveAndRestore(CCTK_INT IN SandRIndex)\nCCTK_INT FUNCTION MoLChangeToNone(CCTK_INT IN RemoveIndex)\nCCTK_INT FUNCTION MoLQueryEvolvedRHS(CCTK_INT IN EvolvedIndex)\nCCTK_INT FUNCTION MoLNumIntegratorSubsteps()\n\nUSES FUNCTION MoLRegisterEvolved\nUSES FUNCTION MoLRegisterEvolvedSlow\nUSES FUNCTION MoLRegisterConstrained\nUSES FUNCTION MoLRegisterSaveAndRestore\nUSES FUNCTION MoLRegisterEvolvedGroup\nUSES FUNCTION MoLRegisterEvolvedGroupSlow\nUSES FUNCTION MoLRegisterConstrainedGroup\nUSES FUNCTION MoLRegisterSaveAndRestoreGroup\nUSES FUNCTION MoLChangeToEvolved\nUSES FUNCTION MoLChangeToEvolvedSlow\nUSES FUNCTION MoLChangeToConstrained\nUSES FUNCTION MoLChangeToSaveAndRestore\nUSES FUNCTION MoLChangeToNone\nUSES FUNCTION MoLQueryEvolvedRHS\nUSES FUNCTION MoLNumIntegratorSubsteps\n\nprivate:\n\nCCTK_REAL evolved_gf TYPE = GF TIMELEVELS = 3 \\\n \"an evolved grid function\"\nCCTK_REAL rhs_gf TYPE = GF TIMELEVELS = 1 \\\n \"the rhs for the evolved grid function\"\nCCTK_REAL evolvedslow_gf TYPE = GF TIMELEVELS = 3 \\\n \"a slow evolved grid function\"\nCCTK_REAL rhsslow_gf TYPE = GF TIMELEVELS = 1 \\\n \"the rhs for the slow evolved grid function\"\nCCTK_REAL constrained_gf TYPE = GF TIMELEVELS = 3 \\\n \"a constrained grid function\"\nCCTK_REAL sandr_gf TYPE = GF TIMELEVELS = 3 \\\n \"a save-and-restore grid function\"\n\nCCTK_REAL diff_gf TYPE = GF TIMELEVELS = 1 \\\n \"difference to analytic solution in grid function\"\nCCTK_REAL analytic_gf TYPE = GF TIMELEVELS = 1 \\\n \"analytic solution in grid function\"\nCCTK_REAL diffslow_gf TYPE = GF TIMELEVELS = 1 \\\n \"difference to analytic solution in grid function\"\nCCTK_REAL analyticslow_gf TYPE = GF TIMELEVELS = 1 \\\n \"analytic solution in grid function\"\n\nCCTK_REAL evolved_ga TYPE = ARRAY DIM = 1 SIZE = 1 TIMELEVELS = 3 \\\n DISTRIB=constant \\\n \"an evolved grid array\"\nCCTK_REAL rhs_ga TYPE = ARRAY DIM = 1 SIZE = 1 TIMELEVELS = 3 \\\n DISTRIB=constant \\\n \"the rhs of the evolved grid array\"\nCCTK_REAL constrained_ga TYPE = ARRAY DIM = 1 SIZE = 1 TIMELEVELS = 3 \\\n DISTRIB=constant \\\n \"a constrained grid array\"\nCCTK_REAL sandr_ga TYPE = ARRAY DIM = 1 SIZE = 1 TIMELEVELS = 3 \\\n DISTRIB=constant \\\n \"a save-and-restore grid array\"\n\nCCTK_REAL diff_ga TYPE = ARRAY DIM = 1 SIZE = 1 TIMELEVELS = 3 \\\n DISTRIB=constant \\\n \"difference to analytic solution in grid function\"\nCCTK_REAL analytic_ga TYPE = ARRAY DIM = 1 SIZE = 1 TIMELEVELS = 3 \\\n DISTRIB=constant \\\n \"analytic solution in grid function\"\n", - "params": "", + "param": "private:\n\nKEYWORD RHSexpression \"expression to use for the right-hand-side of the ODE\"\n{\n \"1\" :: \"unit rhs\"\n \"t\" :: \"linear in time rhs\"\n \"t**2\" :: \"quadratic in time rhs\"\n \"t**3\" :: \"cubic in time rhs\"\n \"t**4\" :: \"quartic in time rhs\"\n \"t**5\" :: \"quintic in time rhs\"\n \"t**6\" :: \"sixth order in time rhs\"\n \"t**7\" :: \"seventh order in time rhs\"\n \"t**8\" :: \"eight order in time rhs\"\n \"t**9\" :: \"ninth order in time rhs\"\n \"exp(t)\" :: \"exponential in time rhs\"\n} \"1\"\n\nKEYWORD RHSSlowexpression \"expression to use for the right-hand-side of the slow ODE\"\n{\n \"1\" :: \"unit rhs\"\n \"t\" :: \"linear in time rhs\"\n \"t**2\" :: \"quadratic in time rhs\"\n \"t**3\" :: \"cubic in time rhs\"\n \"t**4\" :: \"quartic in time rhs\"\n \"t**5\" :: \"quintic in time rhs\"\n \"t**6\" :: \"sixth order in time rhs\"\n \"t**7\" :: \"seventh order in time rhs\"\n \"t**8\" :: \"eight order in time rhs\"\n \"t**9\" :: \"ninth order in time rhs\"\n \"exp(t)\" :: \"exponential in time rhs\"\n} \"1\"\n\n# whenever we evolve a particular type we also register a SandR and constrained\n# variable of the same type\nBOOLEAN evolve_grid_function \"register an evolved grid function with MoL\"\n{\n} \"yes\"\n\nBOOLEAN evolve_grid_array \"register an evolved grid array with MoL\"\n{\n} \"yes\"\n", "schedule": "STORAGE: evolved_gf[3] evolvedslow_gf[3] constrained_gf[3] sandr_gf[3]\nSTORAGE: rhs_gf[1] rhsslow_gf[1]\nSTORAGE: diff_gf[1] analytic_gf[1] diffslow_gf[1] analyticslow_gf[1]\nSTORAGE: evolved_ga[3] constrained_ga[3] sandr_ga[3]\nSTORAGE: rhs_ga[1]\nSTORAGE: diff_ga[1] analytic_ga[1]\n\nschedule TestMoL_RegisterVars in MoL_Register\n{\n LANG: C\n OPTIONS: META\n} \"Register evolved, rhs variables\"\n\nschedule TestMoL_InitVars AT INITIAL\n{\n LANG: C\n} \"provide initial data for all variables\"\n\nschedule TestMoL_RHS_GF IN MoL_CalcRHS\n{\n LANG: C\n} \"compute the RHS for the evolved grid function\"\n\nschedule TestMoL_RHSSlow_GF IN MoL_CalcRHS\n{\n LANG: C\n} \"compute the RHS for the slow evolved grid function\"\n\nschedule TestMoL_RHS_GA IN MoL_CalcRHS\n{\n LANG: C\n} \"compute the RHS for the evolved grid function\"\n\nschedule TestMoL_Compare_GF AT ANALYSIS\n{\n LANG: C\n} \"Compare analytic and numerial result in grid function\"\n\nschedule TestMoL_Compare_GA AT ANALYSIS\n{\n LANG: C\n} \"Compare analytic and numerial result in grid array\"\n", "src": { "make.code.defn": "# Source files in this directory\nSRCS = Register.c RHS.c Init.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusTest_TestPar.json b/CactusTest_TestPar.json index 61250e10cac2d72cf7c6ae0e7480a1c1240b5f5a..d7fbe9ff5aa3d4b0747d5204b3faf96e435230f6 100644 --- a/CactusTest_TestPar.json +++ b/CactusTest_TestPar.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "", "interface": "# Interface definition for thorn TestPar\n\nIMPLEMENTS: TestPar\n", - "params": "", + "param": "# Parameter definitions for thorn TestPar\n\nSTRING string1 \"\"\n{\n \".*\" :: \"Any string\"\n} \"\"\n\nSTRING string2 \"\"\n{\n \".*\" :: \"Any string\"\n} \"\"\n\nSTRING string3 \"\"\n{\n \".*\" :: \"Any string\"\n} \"\"\n\nSTRING string4 \"\"\n{\n \".*\" :: \"Any string\"\n} \"\"\n\nSTRING string5 \"\"\n{\n \".*\" :: \"Any string\"\n} \"\"\n\nSTRING string6 \"\"\n{\n \".*\" :: \"Any string\"\n} \"\"\n\nSTRING string7 \"\"\n{\n \".*\" :: \"Any string\"\n} \"\"\n\nSTRING string8 \"\"\n{\n \".*\" :: \"Any string\"\n} \"\"\n\nSTRING string9 \"\"\n{\n \".*\" :: \"Any string\"\n} \"\"\n\nSTRING out_dir \"Where to write output\"\n{\n \".*\" :: \"Any valid path\"\n} \"\"\n\nINT int1[10] \"\"\n{\n *:* :: \"Any integer\"\n} 12\n\nINT int2[10] \"\"\n{\n *:* :: \"Any integer\"\n} 1\n\nREAL real1[10] \"\"\n{\n *:* :: \"Any number\"\n} 42.d0\n\nREAL real2[10] \"\"\n{\n *:* :: \"Any number\"\n} 23\n\nBOOLEAN bool1[10] \"\"\n{\n} yes\n\nBOOLEAN bool2[10] \"\"\n{\n} 0\n", "schedule": "# Schedule definitions for thorn TestPar\n\nSCHEDULE TestPar_PrintStrings AT initial\n{\n LANG: C\n} \"Output string parameters\"\n\nSCHEDULE TestPar_SetValues AT initial\n{\n LANG: C\n} \"Set values based on parameters\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TestPar\n\n# Source files in this directory\nSRCS = PrintStrings.c SetValues.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusTest_TestReadWrite.json b/CactusTest_TestReadWrite.json index a6664938c25a84d94e2f8c31a4b9b12e7fad324e..e58a8019828956d87e1c174b4dd8f30668d5e02e 100644 --- a/CactusTest_TestReadWrite.json +++ b/CactusTest_TestReadWrite.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "", "interface": "# Interface definition for thorn TestReadWrite\n\nIMPLEMENTS: TestReadWriteImp\nINHERITS: grid\n\n# this tries to exercise as much of documentated behaviour as possible\n# - varying capitalization\n# - groups and single variables\n\nCCTK_INT FUNCTION\n Driver_GetValidRegion\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT IN vi,\n CCTK_INT IN tl)\nUSES FUNCTION Driver_GetValidRegion\n\nvoid FUNCTION\n Driver_SetValidRegion\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT IN vi,\n CCTK_INT IN tl,\n CCTK_INT IN where)\nUSES FUNCTION Driver_SetValidRegion\n\nCCTK_INT FUNCTION\n Driver_SelectGroupForBC\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT IN faces,\n CCTK_INT IN width,\n CCTK_INT IN table_handle,\n CCTK_STRING IN group_name,\n CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectGroupForBC\n\npublic:\nCCTK_REAL Var1 TYPE=GF TIMELEVELS=2 \"A real variable\"\n\nCCTK_REAL rad1[rad_param] TYPE=array DIM=1 SIZE=radx DISTRIB=constant \nCCTK_REAL rad2[rad_param] TYPE=array DIM=2 SIZE=radx,rady DISTRIB=constant \nCCTK_REAL rad3[rad_param] TYPE=array DIM=3 SIZE=radx,rady,radz DISTRIB=default\n\nprivate:\nCCTK_REAL Var2 TYPE=GF \"A real variable\"\nCCTK_REAL ScalarVar TYPE=Scalar \"A scalar variable\"\n\nprotected:\nCCTK_REAL Var3[3] TYPE=GF \"A real variable\"\n\nprotected:\nCCTK_INT TestGroup[1] TIMELEVELS=3 TYPE=GF\n{\n groupVar1,\n groupVar2\n} \"A group of variables\"\n\nCCTK_REAL UnusedVar TYPE=GF \"A variable not used by some scheduled functions\"\n\nCCTK_INT results\n{\n UnusedVarIsNullC,\n UnusedGroupIsNullC,\n\n VarCurrentLevelC,\n GroupCurrentLevelC,\n\n VarPastLevelC,\n GroupPastLevelC,\n\n ArrayCurrentLevelC,\n\n ScalarVarCurrentLevelC,\n\n ValidRegionsC,\n\n UnusedVarIsNullF,\n UnusedGroupIsNullF,\n\n VarCurrentLevelF,\n GroupCurrentLevelF,\n\n VarPastLevelF,\n GroupPastLevelF,\n\n ArrayCurrentLevelF,\n\n ScalarVarCurrentLevelF,\n\n ValidRegionsF,\n\n ArraySizeF,\n} \"Group containing results of runtime test\"\n\nCCTK_REAL gridArrayGroup DISTRIB=constant DIM=2 SIZE=12,13 TIMELEVELS=3 TYPE=array\n{\n gridArray1,\n gridArray2\n}\"Test grid array\"\n", - "params": "", + "param": "# Parameter definitions for thorn TestReadWrite\n\nCCTK_INT rad_param \"The param used for rad1, rad2, rad3\"\n{\n 0:42 :: \"\"\n} 1\n\nCCTK_INT radx \"The x size\"\n{\n 1:42 :: \"\"\n} 2\n\nCCTK_INT rady \"The y size\"\n{\n 1:42 :: \"\"\n} 3\n\nCCTK_INT radz \"The z size\"\n{\n 1:42 :: \"\"\n} 4\n", "schedule": "# Schedule definitions for thorn TestReadWrite\n\nSTORAGE: Var1[2] Var2 TestGroup[3] UnusedVar Var3\nSTORAGE: rad1, rad2, rad3, Scalarvar\nSTORAGE: gridarraygroup[2]\nSTORAGE: results\n\nSCHEDULE TestReadWrite_SelectBCs IN Driver_BoundarySelect\n{\n OPTIONS: global\n\n LANG: C\n} \"Select boundary conditons for grid functions\"\n\n# C test functions\n\nSCHEDULE TestReadWrite_TestC_A AT initial\n{\n WRITES: TestReadWriteIMP::testgroup(InteriorWithBoundary)\n WRITES: groupVar1_p_p[0](evERywhere) groupVar2_p_p[0](All)\n WRITES: TestReadWriteIMP::var3(interiorwithboundary)\n WRITES: TestReadWrite::var2(interiorwithboundary)\n WRITES: GridArray1(iN)\n WRITES: ValidRegionsC\n WRITES: testreadwriteimp::rad1[0]\n WRITES: ScalarVar(all)\n # has only 2 active time levels\n WRITES: testreadwriteimp::GridArrayGroup_p_p\n WRITES: testreadwriteimp::rad2\n WRITES: testreadwriteimp::rad3\n READS: grid::x\n\n SYNC: var3\n\n LANG: C\n} \"Test Read / Write Statements\"\n\n# check that union of variables is used when constructing macro\nSCHEDULE TestReadWrite_TestC_A AT initial AFTER TestReadWrite_TestC_A as TestReadWrite_TestC_A_2nd\n{\n WRITES: var1(everywhere), var1_p\n WRITES: ValidRegionsC\n\n LANG: C\n} \"Test Read / Write Statements 2nd schedule\"\n\nSCHEDULE TestReadWrite_TestC_B AT initial AFTER TestReadWrite_TestC_A_2nd\n{\n WRITES: TestReadWrite::var2(interiorwithboundary)\n READS: testReadWriteIMP::var3[1]\n # has only 2 active time levels\n READS: testreadwriteimp::GridArrayGroup_p_p\n\n WrITES: UnusedVarIsNullC,\n # check that comments are allowed\n UnusedGroupIsNullC, ValidRegionsC\n\n SYNC: var2\n\n LANG: C\n} \"Test Read / Write Statements\"\n\n# check that unused variables are NULL pointers\nSCHEDULE TestReadWrite_TestC_B\n{\n WRITES: testgroup\n READs: var1\n WRITES: var1_p\n\n LANG: C\n} \"Test Read / Write Statements 2nd schedule\"\n\nSCHEDULE TestReadWrite_TestC_C AT initial AFTER TestReadWrite_TestC_B\n{\n WrITES: TestReadWriteimp::varpastlevelc\n WRITES: grouppastlevelc( inTErior ) # some comment\n ReADs: Var1, TestReadWrite::ScalarVar(all)\n READS: TestReadWriteImp::Var1_p (interIOr)\n READs: var2 var3\n READs: TestReadWriteImp::groupvar1[0]\n READS: TestReadWriteImp::groupvar2[0] testreadwriteimp::testgroup_p_p\n READS: GridArray1, testreadwriteimp::rad1\n WrITES: VarCurrentLevelC, GroupCurrentLevelC(everywhere), ArrayCurrentLevelC,\n ScalarVarCurrentLevelC\n\n SYNC: TestReadWriteImp::testgroup\n SYNC: TestReadWriteImp::var1\n SYNC: TestReadWriteImp::var2\n\n LANG: C\n} \"Record results in grid scalars\"\n\n# reset valid states\nSCHEDULE TestReadWrite_Reset AT initial after TestReadWrite_TestC_C before TestReadWrite_TestF_A\n{\n LANG: C\n} \"Reset valid state of variables\"\n\n# Fortran test functions\n\nSCHEDULE TestReadWrite_TestF_A AT initial AFTER TestReadWrite_TestC_C\n{\n WRITES: TestReadWriteIMP::testgroup(InteriorWithBoundary)\n WRITES: groupVar1_p_p[0](evERywhere) groupVar2_p_p[0](All)\n WRITES: TestReadWriteIMP::var3(interiorwithboundary)\n WRITES: TestReadWrite::var2(interiorwithboundary)\n WRITES: GridArray1 (iN)\n WRITES: ValidRegionsF\n WRITES: testreadwriteimp::rad1[0]\n WRITES: ScalarVar(all)\n # has only 2 active time levels\n WRITES: testreadwriteimp::GridArrayGroup_p_p\n WRITES: testreadwriteimp::rad2\n WRITES: testreadwriteimp::rad3\n READS: grid::x\n\n WRITES: ArraySizeF\n\n SYNC: var3\n\n LANG: Fortran\n} \"Test Read / Write Statements\"\n\n# check that union of variables is used when constructing macro\nSCHEDULE TestReadWrite_TestF_A AT initial AFTER TestReadWrite_TestF_A as TestReadWrite_TestF_A_2nd\n{\n WRITES: var1(everywhere), var1_p\n WRITES: ValidRegionsF\n\n LANG: Fortran\n} \"Test Read / Write Statements 2nd schedule\"\n\nSCHEDULE TestReadWrite_TestF_B AT initial AFTER TestReadWrite_TestF_A_2nd\n{\n WRITES: TestReadWrite::var2(interiorwithboundary)\n READS: testReadWriteIMP::var3[1]\n # has only 2 active time levels\n READS: testreadwriteimp::GridArrayGroup_p_p\n\n WrITES: UnusedVarIsNullF,\n # check that comments are allowed\n UnusedGroupIsNullF, ValidRegionsF\n\n SYNC: var2\n\n LANG: Fortran\n} \"Test Read / Write Statements\"\n\n# check that unused variables are NULL pointers\nSCHEDULE TestReadWrite_TestF_B\n{\n WRITES: testgroup\n READs: var1\n WRITES: var1_p\n\n LANG: Fortran\n} \"Test Read / Write Statements 2nd schedule\"\n\nSCHEDULE TestReadWrite_TestF_C AT initial AFTER TestReadWrite_TestF_B\n{\n WrITES: TestReadWriteImp::varpastlevelf\n WRITES: grouppastlevelf( inTErior ) # some comment\n ReADs : Var1, TestReadWrite::ScalarVar(all)\n READS: TestReadWriteImp::Var1_p (interIOr)\n READs: var2 var3\n READs: TestReadWriteImp::groupvar1[0]\n READS: TestReadWriteImp::groupvar2[0] testreadwriteimp::testgroup_p_p\n READS: GridArray1, testreadwriteimp::rad1\n WrITES: VarCurrentLevelF, GroupCurrentLevelF(everywhere), ArrayCurrentLevelF,\n ScalarVarCurrentLevelF\n\n SYNC: TestReadWriteImp::testgroup\n SYNC: TestReadWriteImp::var1\n SYNC: TestReadWriteImp::var2\n\n LANG: Fortran\n} \"Record results in grid scalars\"\n\nSCHEDULE TestReadWrite_TestF_D AT POST_RECOVER_VARIABLES\n{\n ReADs: Var1\n READS: TestReadWriteImp::Var1_p\n READs: var2\n READs: TestReadWriteImp::groupvar1[0]\n READS: TestReadWriteImp::groupvar2[0]\n READs: testreadwriteimp::testgroup_p_p\n\n LANG: Fortran\n} \"Check behaviour of unused variable declarations (must never execute)\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TestReadWrite\n\n# Source files in this directory\nSRCS = TestC.cc TestF.F90\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusTest_TestReduce.json b/CactusTest_TestReduce.json index 60fc883c3f6ee44837945dd7dd5269a39aaeb9a9..9a2204ce9d6a3332fcda59d80def657d825e1ede 100644 --- a/CactusTest_TestReduce.json +++ b/CactusTest_TestReduce.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "", "interface": "# Interface definition for thorn TestReduce\n# $Header$\n\nimplements: testreduce\n\nprivate:\n\ncctk_real testreduce_3gfs type = GF dim=3\n{\n phi_gf3\n} \"Test grid function\"\n\ncctk_real testreduce_2gfs type = GF dim=2\n{\n phi_gf2\n} \"Test grid function\"\n\ncctk_real testreduce_1gfs type = GF dim=1\n{\n phi_gf1\n} \"Test grid function\"\n\ncctk_real testreduce_scalars type = SCALAR\n{\n phi_scalar\n} \"Test scalar\"\n\ncctk_int testreduce_3igfs type = GF dim=3\n{\n phi_igf3\n} \"Test grid function\"\n\ncctk_int testreduce_2igfs type = GF dim=2\n{\n phi_igf2\n} \"Test grid function\"\n\ncctk_int testreduce_1igfs type = GF dim=1\n{\n phi_igf1\n} \"Test grid function\"\n\ncctk_int testreduce_iscalars type = SCALAR\n{\n phi_iscalar\n} \"Test scalar\"\n\n\n ", - "params": "", + "param": "# Parameter definitions for thorn TestReduce\n# $Header$\n", "schedule": "# Schedule definitions for thorn TestReduce\n# $Header$\n\nSTORAGE: testreduce_3gfs\nSTORAGE: testreduce_2gfs\nSTORAGE: testreduce_1gfs\nSTORAGE: testreduce_3igfs\nSTORAGE: testreduce_2igfs\nSTORAGE: testreduce_1igfs\nSTORAGE: testreduce_scalars\nSTORAGE: testreduce_iscalars\n\nschedule TestReduce_Initial at CCTK_INITIAL\n{\n LANG: C\n} \"Initialise variables\"\n\nschedule TestReduceC_Maximum at CCTK_POSTINITIAL\n{\n LANG: C\n} \"Test out maximum reductions from C\"\n\nschedule TestReduceF_Maximum at CCTK_POSTINITIAL\n{\n LANG: Fortran\n} \"Test out maximum reductions from Fortran\"\n\nschedule TestReduceC_Sum at CCTK_POSTINITIAL\n{\n LANG: C\n} \"Test out sum reductions from C\"\n\nschedule TestReduceF_Sum at CCTK_POSTINITIAL\n{\n LANG: Fortran\n} \"Test out sum reductions from Fortran\"\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TestReduce\n# $Header$\n\n# Source files in this directory\nSRCS = Reduce_Maximum.c Reduce_Sum.c Reduce_Maximum.F77 Reduce_Sum.F77 Initial.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusTest_TestSchedule.json b/CactusTest_TestSchedule.json index 83f86e1235422cf7116045b9185084e3fc67e3f3..4ca144db2401b5f7443fd4431d7a8c071fc1a902 100644 --- a/CactusTest_TestSchedule.json +++ b/CactusTest_TestSchedule.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "", "interface": "# Interface definition for thorn TestSchedule\n# $Header$\n\nimplements: TestSchedule\n", - "params": "", + "param": "# Parameter definitions for thorn TestSchedule\n# $Header$\n\nrestricted:\n\nprivate:\n", "schedule": "# Schedule definitions for thorn TestSchedule\n# $Header$\n\nschedule TestSchedule_CCTK_STARTUP at CCTK_STARTUP\n{\n LANG:C\n} \"Test to see if function is placed in schedule and run at CCTK_STARTUP\"\n\nschedule TestSchedule_CCTK_RECOVER_PARAMETERS at CCTK_RECOVER_PARAMETERS\n{\n LANG:C\n} \"Test to see if function is placed in schedule and run at CCTK_RECOVER_PARAMETERS\"\n\nschedule TestSchedule_CCTK_WRAGH at CCTK_WRAGH\n{\n LANG:C\n} \"Test to see if function is placed in schedule and run at CCTK_WRAGH\"\n\nschedule TestSchedule_CCTK_PARAMCHECK at CCTK_PARAMCHECK\n{\n LANG:C\n} \"Test to see if function is placed in schedule and run at CCTK_PARAMCHECK\"\n\nschedule TestSchedule_CCTK_BASEGRID at CCTK_BASEGRID\n{\n LANG:C\n} \"Test to see if function is placed in schedule and run at CCTK_BASEGRID\"\n\nschedule TestSchedule_CCTK_INITIAL at CCTK_INITIAL\n{\n LANG:C\n} \"Test to see if function is placed in schedule and run at CCTK_INITIAL\"\n\nschedule TestSchedule_CCTK_POSTINITIAL at CCTK_POSTINITIAL\n{\n LANG:C\n} \"Test to see if function is placed in schedule and run at CCTK_POSTINITIAL\"\n\nschedule TestSchedule_CCTK_RECOVER_VARIABLES at CCTK_RECOVER_VARIABLES\n{\n LANG:C\n} \"Test to see if function is placed in schedule and run at CCTK_RECOVER_VARIABLES\"\n\nschedule TestSchedule_CCTK_POST_RECOVER_VARIABLES at CCTK_POST_RECOVER_VARIABLES\n{\n LANG:C\n} \"Test to see if function is placed in schedule and run at CCTK_POST_RECOVER_VARIABLES\"\n\nschedule TestSchedule_CCTK_CPINITIAL at CCTK_CPINITIAL\n{\n LANG:C\n} \"Test to see if function is placed in schedule and run at CCTK_CPINITIAL\"\n\nschedule TestSchedule_CCTK_CHECKPOINT at CCTK_CHECKPOINT\n{\n LANG:C\n} \"Test to see if function is placed in schedule and run at CCTK_CHECKPOINT\"\n\nschedule TestSchedule_CCTK_PRESTEP at CCTK_PRESTEP\n{\n LANG:C\n} \"Test to see if function is placed in schedule and run at CCTK_PRESTEP\"\n\nschedule TestSchedule_CCTK_EVOL at CCTK_EVOL\n{\n LANG:C\n} \"Test to see if function is placed in schedule and run at CCTK_EVOL\"\n\nschedule TestSchedule_CCTK_POSTSTEP at CCTK_POSTSTEP\n{\n LANG:C\n} \"Test to see if function is placed in schedule and run at CCTK_POSTSTEP\"\n\nschedule TestSchedule_CCTK_POSTRESTRICT at CCTK_POSTRESTRICT\n{\n LANG:C\n} \"Test to see if function is placed in schedule and run at CCTK_POSTRESTRICT\"\n\nschedule TestSchedule_CCTK_POSTREGRID at CCTK_POSTREGRID\n{\n LANG:C\n} \"Test to see if function is placed in schedule and run at CCTK_POSTREGRID\"\n\nschedule TestSchedule_CCTK_ANALYSIS at CCTK_ANALYSIS\n{\n LANG:C\n} \"Test to see if function is placed in schedule and run at CCTK_ANALYSIS\"\n\nschedule TestSchedule_CCTK_TERMINATE at CCTK_TERMINATE\n{\n LANG:C\n} \"Test to see if function is placed in schedule and run at CCTK_TERMINATE\"\n\nschedule TestSchedule_CCTK_SHUTDOWN at CCTK_SHUTDOWN\n{\n LANG:C\n} \"Test to see if function is placed in schedule and run at CCTK_SHUTDOWN\"\n", "src": { "TestSchedule.h": "int TestSchedule_CCTK_STARTUP(void);\nvoid TestSchedule_CCTK_RECOVER_PARAMETERS(CCTK_ARGUMENTS);\nvoid TestSchedule_CCTK_WRAGH(CCTK_ARGUMENTS);\nvoid TestSchedule_CCTK_PARAMCHECK(CCTK_ARGUMENTS);\nvoid TestSchedule_CCTK_BASEGRID(CCTK_ARGUMENTS);\nvoid TestSchedule_CCTK_INITIAL(CCTK_ARGUMENTS);\nvoid TestSchedule_CCTK_POSTINITIAL(CCTK_ARGUMENTS);\nvoid TestSchedule_CCTK_RECOVER_VARIABLES(CCTK_ARGUMENTS);\nvoid TestSchedule_CCTK_POST_RECOVER_VARIABLES(CCTK_ARGUMENTS);\nvoid TestSchedule_CCTK_CPINITIAL(CCTK_ARGUMENTS);\nvoid TestSchedule_CCTK_CHECKPOINT(CCTK_ARGUMENTS);\nvoid TestSchedule_CCTK_PRESTEP(CCTK_ARGUMENTS);\nvoid TestSchedule_CCTK_EVOL(CCTK_ARGUMENTS);\nvoid TestSchedule_CCTK_POSTSTEP(CCTK_ARGUMENTS);\nvoid TestSchedule_CCTK_POSTRESTRICT(CCTK_ARGUMENTS);\nvoid TestSchedule_CCTK_POSTREGRID(CCTK_ARGUMENTS);\nvoid TestSchedule_CCTK_ANALYSIS(CCTK_ARGUMENTS);\nvoid TestSchedule_CCTK_TERMINATE(CCTK_ARGUMENTS);\nint TestSchedule_CCTK_SHUTDOWN(void);\n", diff --git a/CactusTest_TestStrings.json b/CactusTest_TestStrings.json index c6d7b32184d1bb2c9dcb6473a65852442da7c53f..1db54b502f2ee1d698501d868d8ab590bff630f6 100644 --- a/CactusTest_TestStrings.json +++ b/CactusTest_TestStrings.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "", "interface": "# Interface definition for thorn TestStrings\n# $Header$\n\nimplements: teststrings", - "params": "", + "param": "# Parameter definitions for thorn TestStrings\n# $Header$\n", "schedule": "# Schedule definitions for thorn TestStrings\n# $Header$\n\nschedule PrintThoseFortranStrings at INITIAL\n{\n LANG: Fortran\n} \"Print 1,2 and 3 strings from Fortran source code\"", "src": { "make.code.defn": "# Main make.code.defn file for thorn TestStrings\n# $Header$\n\n# Source files in this directory\nSRCS = CRoutines.c FCalls.F\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusTest_TestTable.json b/CactusTest_TestTable.json index 7a2fa55db25f07c8a0c661381c408e702d7b394e..77a61a9123cb2c9cccf72f64dfead86420e14327 100644 --- a/CactusTest_TestTable.json +++ b/CactusTest_TestTable.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "", "interface": "# Interface definition for thorn TestTable\n# $Header$\n\nimplements: TestTable\ninherits:\n", - "params": "", + "param": "# Parameter definitions for thorn TestTable\n# $Header$\n\n# there are no parameters\n", "schedule": "# Schedule definitions for thorn TestTable\n# $Header$\n\nschedule TestTable_driver in CCTK_STARTUP\n\t{\n\tLANG: C\n\t} \"test key/value tables API\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TestTable\n# $Header$\n\n# Source files in this directory\nSRCS = test_table.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusTest_TestTimers.json b/CactusTest_TestTimers.json index 4e72f17d49c64756814bc6474ceb8d4da332961b..6487c39ec14d03d09f5f501c19a0e34c05d15b06 100644 --- a/CactusTest_TestTimers.json +++ b/CactusTest_TestTimers.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "", "interface": "# Interface definition for thorn TestTimers\n# $Header$\n\nimplements: testtimers", - "params": "", + "param": "# Parameter definitions for thorn TestTimers\n# $Header$\n\nprivate:\n\nKEYWORD TestParameter \"Parameter for measuring CCTK_Equals times\"\n{\n \"yes\" :: \"yes\"\n \"no\" :: \"no\"\n \"maybe\" :: \"maybe\"\n} \"no\"", "schedule": "# Schedule definitions for thorn TestTimers\n# $Header$\n\nschedule TimeIt_Startup at CCTK_STARTUP\n{\n LANG: C\n} \"Set up Timers\"\n\nschedule TimeIt_ShutDown at CCTK_TERMINATE\n{\n LANG: C\n} \"Shut down Timers\"\n\nschedule TimeIt at CCTK_EVOL\n{\n LANG: C\n} \"Test out Cactus Timers\"", "src": { "make.code.defn": "# Main make.code.defn file for thorn TestTimers\n# $Header$\n\n# Source files in this directory\nSRCS = TimeIt.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusTest_TestTypes.json b/CactusTest_TestTypes.json index 7d2e2f6d0bf6cf609e564d164a3e964c15a6322e..0fae3de3f7b11379928c6f9ee13d5068c34b2512 100644 --- a/CactusTest_TestTypes.json +++ b/CactusTest_TestTypes.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactustest.git", "configuration": "", "interface": "# Interface definition for thorn TestTypes\n# $Header$\n\nIMPLEMENTS: TestTypes\n\nCCTK_INT vint\nCCTK_INT1 vint1\nCCTK_INT2 vint2\nCCTK_INT4 vint4\nCCTK_INT8 vint8\n\nCCTK_REAL vreal\nCCTK_REAL4 vreal4\nCCTK_REAL8 vreal8\n#CCTK_REAL16 vreal16\n\nCCTK_COMPLEX vcomplex\nCCTK_COMPLEX8 vcomplex8\nCCTK_COMPLEX16 vcomplex16\n#CCTK_COMPLEX32 vcomplex32\n", - "params": "", + "param": "# Parameter definitions for thorn TestTypes\n# $Header$\n\nCCTK_INT pint \"int parameter\"\n{\n *:* :: \"\"\n} 1\n\nCCTK_REAL preal \"real parameter\"\n{\n *:* :: \"\"\n} 1.0\n\nBOOLEAN pboolean \"boolean parameter\"\n{\n} yes\n\nSTRING pstring \"string parameter\"\n{\n .* :: \"\"\n} \"a\"\n", "schedule": "# Schedule definitions for thorn TestTypes\n# $Header$\n\nSTORAGE: vint vint1 vint2 vint4 vint8\nSTORAGE: vreal vreal4 vreal8 #vreal16\nSTORAGE: vcomplex vcomplex8 vcomplex16 #vcomplex32\n\nSCHEDULE TestTypes_C AT initial\n{\n LANG: C\n} \"Test types in C\"\n\nSCHEDULE TestTypes_Fortran AT initial\n{\n LANG: Fortran\n} \"Test types in Fortran\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TestTypes\n# $Header$\n\n# Source files in this directory\nSRCS = initial.c initial.F77\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusUtils_Formaline.json b/CactusUtils_Formaline.json index f29e4f9317b3531c9e94aafbc0cca8f0be4034c1..8d9475695112524fe3eb30db03554347631fabe6 100644 --- a/CactusUtils_Formaline.json +++ b/CactusUtils_Formaline.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusutils.git", "configuration": "# Configuration definition for thorn Formaline\n\nOPTIONAL MPI\n{\n}\n\nOPTIONAL PTHREADS\n{\n}\n", "interface": "# Interface definition for thorn Formaline\n\nIMPLEMENTS: Formaline\n\n# for HTTP_Port()\nUSES INCLUDE HEADER: http_Content.h\n\nUSES INCLUDE HEADER: Publish.h\n\n\n\n# Return a pointer to an unmodifiable C string\n# which contains a unique ID for this configuration\nCCTK_POINTER_TO_CONST \\\nFUNCTION UniqueConfigID (CCTK_POINTER_TO_CONST IN cctkGH)\n\nPROVIDES FUNCTION UniqueConfigID \\\n WITH Formaline_UniqueConfigID \\\n LANGUAGE C\nUSES FUNCTION UniqueConfigID\n\n\n\n# Return a pointer to an unmodifiable C string\n# which contains a unique ID for this build\nCCTK_POINTER_TO_CONST \\\nFUNCTION UniqueBuildID (CCTK_POINTER_TO_CONST IN cctkGH)\n\nPROVIDES FUNCTION UniqueBuildID \\\n WITH Formaline_UniqueBuildID \\\n LANGUAGE C\nUSES FUNCTION UniqueBuildID\n\n\n\n# Return a pointer to an unmodifiable C string\n# which contains a unique ID for this simulation\nCCTK_POINTER_TO_CONST \\\nFUNCTION UniqueSimulationID (CCTK_POINTER_TO_CONST IN cctkGH)\n\nPROVIDES FUNCTION UniqueSimulationID \\\n WITH Formaline_UniqueSimulationID \\\n LANGUAGE C\nUSES FUNCTION UniqueSimulationID\n\n\n\n# Return a pointer to an unmodifiable C string\n# which contains a unique ID for this run\nCCTK_POINTER_TO_CONST \\\nFUNCTION UniqueRunID (CCTK_POINTER_TO_CONST IN cctkGH)\n\nPROVIDES FUNCTION UniqueRunID \\\n WITH Formaline_UniqueRunID \\\n LANGUAGE C\nUSES FUNCTION UniqueRunID\n\n\n\n#############\n# Publish API\n#############\nCCTK_INT FUNCTION PublishBoolean (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN level, \\\n CCTK_INT IN value, \\\n CCTK_STRING IN key, \\\n CCTK_STRING IN name)\nCCTK_INT FUNCTION PublishInt (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN level, \\\n CCTK_INT IN value, \\\n CCTK_STRING IN key, \\\n CCTK_STRING IN name)\nCCTK_INT FUNCTION PublishReal (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN level, \\\n CCTK_REAL IN value, \\\n CCTK_STRING IN key, \\\n CCTK_STRING IN name)\nCCTK_INT FUNCTION PublishString (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN level, \\\n CCTK_STRING IN value, \\\n CCTK_STRING IN key, \\\n CCTK_STRING IN name)\nCCTK_INT FUNCTION PublishTable (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN level, \\\n CCTK_INT IN table, \\\n CCTK_STRING IN key, \\\n CCTK_STRING IN name)\nUSES FUNCTION PublishBoolean\nUSES FUNCTION PublishInt\nUSES FUNCTION PublishReal\nUSES FUNCTION PublishString\nUSES FUNCTION PublishTable\n\n##########################\n# Publish registration API\n##########################\nCCTK_INT FUNCTION PublishBoolean_Register( \\\n CCTK_INT CCTK_FPOINTER IN publish_cb (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_POINTER IN cb_data, \\\n CCTK_INT IN level, \\\n CCTK_INT IN value, \\\n CCTK_STRING IN key, \\\n CCTK_STRING IN thorn), \\\n CCTK_POINTER IN cb_data, \\\n CCTK_STRING IN name)\nCCTK_INT FUNCTION PublishInt_Register( \\\n CCTK_INT CCTK_FPOINTER IN publish_cb (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_POINTER IN cb_data, \\\n CCTK_INT IN level, \\\n CCTK_INT IN value, \\\n CCTK_STRING IN key, \\\n CCTK_STRING IN thorn), \\\n CCTK_POINTER IN cb_data, \\\n CCTK_STRING IN name)\nCCTK_INT FUNCTION PublishReal_Register( \\\n CCTK_INT CCTK_FPOINTER IN publish_cb (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_POINTER IN cb_data, \\\n CCTK_INT IN level, \\\n CCTK_REAL IN value, \\\n CCTK_STRING IN key, \\\n CCTK_STRING IN thorn), \\\n CCTK_POINTER IN cb_data, \\\n CCTK_STRING IN name)\nCCTK_INT FUNCTION PublishString_Register( \\\n CCTK_INT CCTK_FPOINTER IN publish_cb (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_POINTER IN cb_data, \\\n CCTK_INT IN level, \\\n CCTK_STRING IN value, \\\n CCTK_STRING IN key, \\\n CCTK_STRING IN thorn), \\\n CCTK_POINTER IN cb_data, \\\n CCTK_STRING IN name)\nCCTK_INT FUNCTION PublishTable_Register( \\\n CCTK_INT CCTK_FPOINTER IN publish_cb (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_POINTER IN cb_data, \\\n CCTK_INT IN level, \\\n CCTK_INT IN table, \\\n CCTK_STRING IN key, \\\n CCTK_STRING IN thorn), \\\n CCTK_POINTER IN cb_data, \\\n CCTK_STRING IN name)\n\nUSES FUNCTION PublishBoolean_Register\nUSES FUNCTION PublishInt_Register\nUSES FUNCTION PublishReal_Register\nUSES FUNCTION PublishString_Register\nUSES FUNCTION PublishTable_Register\n\nCCTK_INT FUNCTION PublishBoolean_Unregister (CCTK_STRING IN name)\nCCTK_INT FUNCTION PublishInt_Unregister (CCTK_STRING IN name)\nCCTK_INT FUNCTION PublishReal_Unregister (CCTK_STRING IN name)\nCCTK_INT FUNCTION PublishString_Unregister (CCTK_STRING IN name)\nCCTK_INT FUNCTION PublishTable_Unregister (CCTK_STRING IN name)\n\nUSES FUNCTION PublishBoolean_Unregister\nUSES FUNCTION PublishInt_Unregister\nUSES FUNCTION PublishReal_Unregister\nUSES FUNCTION PublishString_Unregister\nUSES FUNCTION PublishTable_Unregister\n", - "params": "", + "param": "# Parameter definitions for thorn Formaline\n\n\n\n# Global parameters\n\nBOOLEAN verbose \"Produce screen output\" STEERABLE=always\n{\n} no\n\n\n\n# Parameters for collecting metadata\n\nBOOLEAN collect_metadata \"Collect metadata and output it in various ways\" STEERABLE=always\n{\n} yes\n\nREAL update_interval \"Update interval for the meta information (in seconds)\" STEERABLE=always\n{\n 0:* :: \"\"\n} 3600.0\n\nINT publish_level \"Importance level for meta data to be published via the Publish API\" STEERABLE=always\n{\n 0:10 :: \"the lower the level the more important the meta data to be published\"\n} 1\n\nINT timeout \"Timeout for sending meta information to a server (in seconds)\" STEERABLE=always\n{\n 1:* :: \"a positive value\"\n} 10\n\nINT metadata_lifetime \"Lifetime of meta information sent to a server (in hours)\" STEERABLE=always\n{\n 0 :: \"zero to store the metadata forever\"\n 1:* :: \"a positive value to limit the lifetime to so many hours\"\n} 100\n\nSTRING steered_parameters_log_exclusion_list \"Parameters for which runtime changes should not be logged\" STEERABLE=always\n{\n \"\" :: \"whitespace-separated list of parameter names\"\n} \"CarpetRegrid::coordinates\"\n\nINT nr_of_parameter_changes_to_be_logged \"number of parameter changes to be logged\" STEERABLE=always\n{\n -1: :: \"log all changes\"\n 0: :: \"no logs please\"\n 1:*:: \"log this many changes for a given parameter, then stop logging\"\n} -1\n\n\n\n# Parameters for creating files containing the build and job ids\n\nBOOLEAN create_id_files \"Create files from the build and job ids\"\n{\n} yes\n\n\n\n# Parameters for announcing meta information to the portal\n\nBOOLEAN announce_to_portal \"Announce meta information to the portal\" STEERABLE=always\n{\n} no\n\nSTRING portal_hostname[5] \"Portal host name\" STEERABLE=always\n{\n \"\" :: \"\"\n} \"\"\n\nINT portal_port[5] \"Portal port\" STEERABLE=always\n{\n 1:65535 :: \"\"\n} 9296\n\nSTRING portal_username \"User name on the portal\" STEERABLE=always\n{\n \"\" :: \"\"\n} \"\"\n\n\n\n# Parameters for storing as RDF\n\nBOOLEAN send_as_rdf \"Send meta as RDF to a server\" STEERABLE=always\n{\n} no\n\nSTRING rdf_hostname[5] \"RDF server host name\" STEERABLE=always\n{\n \"\" :: \"\"\n} \"\"\n\nINT rdf_port[5] \"RDF server port\" STEERABLE=always\n{\n 1:65535 :: \"\"\n} 9296\n\n\n\n# Parameters for storing meta information in a file\n\nBOOLEAN store_into_file \"Store meta information in a file\" STEERABLE=always\n{\n} yes\n\nBOOLEAN store_into_json_file \"Store meta information in a file in JSON format\" STEERABLE=always\n{\n} yes\n\nSTRING storage_filename \"File name for meta information\" STEERABLE=always\n{\n \"\" :: \"\"\n} \"formaline-jar.txt\"\n\nSTRING storage_json_filename \"File name for meta information in JSON format\" STEERABLE=always\n{\n \"\" :: \"\"\n} \"formaline-jar.json\"\n\n\n\n# Parameters for relaying to remote servers\n\nBOOLEAN use_relay_host \"Use a relay host for connecting to the portal\" STEERABLE=always\n{\n} yes\n\nSTRING relay_host \"Relay host for connecting to the portal\" STEERABLE=always\n{\n \".+\" :: \"host name\"\n \"\" :: \"try to determine a relay host automatically\"\n} \"\"\n\n\n\n# Parameters for storing the source tree in the executable\n\nBOOLEAN output_source \"Output a tarball with the cactus source tree\" STEERABLE=recover\n{\n} yes\n\nSTRING output_source_subdirectory \"Subdirectory, relative to IO::out_dir, for the Cactus source tarballs\" STEERABLE=recover\n{\n \"\" :: \"\"\n} \"cactus-source\"\n\n\n\n# Parameters for outputting Cactus variables\n\nSTRING out_vars \"Cactus variables that should be output\" STEERABLE=always\n{\n \"\" :: \"space separated list of groups or variables\"\n} \"\"\n\nSTRING out_reductions \"Reduction operators that should be applied to the output variables\" STEERABLE=always\n{\n \"\" :: \"space separated list of reduction operators\"\n} \"minimum maximum norm1 norm2 norm_inf sum\"\n\n\n\n# Parameters for outputting Cactus warnings and info messages\n\nINT max_warn_level \"Only output warnings with at most this level of severity\"\n{\n -1:* :: \"\"\n} -1\n\nBOOLEAN output_info \"Output info messages?\"\n{\n} \"no\"\n\n\n\nSHARES: IO\n\nUSES STRING out_dir\nUSES KEYWORD out_save_parameters\n", "schedule": "# Schedule definitions for thorn Formaline\n\nif (output_source)\n{\n SCHEDULE Formaline_OutputSource AT wragh\n {\n LANG: C\n OPTIONS: meta\n } \"Output Cactus source tree\"\n}\n\n\n\nif (collect_metadata)\n{\n SCHEDULE Formaline_PrintIDs AT startup\n {\n LANG: C\n OPTIONS: meta\n } \"Print the build and simulation ids\"\n \n SCHEDULE GROUP RegisterPublishCallbacks\n {\n } \"Tell Cactus that this group exists, but is not scheduled from here\"\n \n SCHEDULE Formaline_RegisterPublishRDF_Callbacks IN RegisterPublishCallbacks\n {\n LANG: C\n OPTIONS: meta\n } \"Register RDF callbacks for the Publish API\" \n\n SCHEDULE Formaline_RegisterWarnings AT wragh\n {\n LANG: C\n OPTIONS: meta\n } \"Register to receive warnings and info messages from the flesh\"\n \n SCHEDULE Formaline_AnnounceInitial AT wragh\n {\n LANG: C\n OPTIONS: global\n } \"Put some meta information about the current run into permanent storage\"\n \n SCHEDULE Formaline_AnnounceUpdate AT analysis\n {\n LANG: C\n OPTIONS: global\n } \"Put some meta information about the current run into permanent storage\"\n \n SCHEDULE Formaline_AnnounceFinal AT terminate\n {\n LANG: C\n OPTIONS: global\n } \"Put some meta information about the current run into permanent storage\"\n \n SCHEDULE GROUP UnregisterPublishCallbacks\n {\n } \"Tell Cactus that this group exists, but is not scheduled from here\"\n \n SCHEDULE Formaline_UnregisterPublishRDF_Callbacks IN UnregisterPublishCallbacks\n {\n LANG: C\n OPTIONS: meta\n } \"Unregister RDF callbacks for the Publish API\"\n\n}\n", "src": { "json_file.cc": "#include \n#include \n#include \n#include \n#include \n#include \n\n#include \"cctk_Parameters.h\"\n\n#include \"json_file.hh\"\n\nusing namespace std;\n\nnamespace Formaline {\n\njson_file::json_file(char const *const id, enum state const st,\n json_file *const par)\n : storage(st), parent(par), need_comma(false), indent_level(0) {\n DECLARE_CCTK_PARAMETERS;\n\n if (parent)\n return;\n\n ostringstream filenamebuf;\n filenamebuf << out_dir << \"/\" << storage_json_filename;\n string const filenamestring = filenamebuf.str();\n\n ios::openmode const mode = get_state() == initial ? ios::trunc : ios::app;\n fil.open(filenamestring.c_str(), mode);\n fil << \"{\";\n increase_indent_level();\n\n if (get_state() == initial) {\n store(\"jobid\", id);\n }\n}\n\njson_file::~json_file() {\n if (parent)\n return;\n\n if (get_state()) {\n store(\"simulation\", \"done\");\n }\n\n decrease_indent_level();\n set_need_comma(false);\n write(\"}\");\n\n fil << \"\\n\";\n fil.close();\n assert(indent_level == 0);\n}\n\njson_file *json_file::open_group(char const *const name) {\n assert(name);\n ostringstream buf;\n buf << stringify(name) << \": {\";\n write(buf.str());\n increase_indent_level();\n set_need_comma(false);\n return new json_file(0, get_state(), this);\n}\n\nvoid json_file::close_group(storage *group) {\n delete group;\n decrease_indent_level();\n set_need_comma(false);\n write(\"}\");\n}\n\nvoid json_file::store(char const *const key, bool const value) {\n assert(key);\n\n ostringstream buf;\n buf << stringify(key) << \": \" << boolalpha << value << noboolalpha;\n\n write(buf.str());\n}\n\nvoid json_file::store(char const *const key, CCTK_INT const value) {\n assert(key);\n\n ostringstream buf;\n buf << stringify(key) << \": \" << value;\n\n write(buf.str());\n}\n\nvoid json_file::store(char const *const key, CCTK_REAL const value) {\n assert(key);\n\n int const prec = numeric_limits::digits10;\n\n // TODO: ensure that there is always a decimal dot\n ostringstream buf;\n buf << stringify(key) << \": \" << setprecision(prec) << value;\n\n write(buf.str());\n}\n\nvoid json_file::store(char const *const key, char const *const value) {\n assert(key);\n\n ostringstream buf;\n buf << stringify(key) << \": \" << stringify(value);\n\n write(buf.str());\n}\n\nvoid json_file::set_need_comma(bool flag) { need_comma = flag; }\n\nvoid json_file::increase_indent_level() { ++indent_level; }\n\nvoid json_file::decrease_indent_level() {\n assert(indent_level > 0);\n --indent_level;\n}\n\nvoid json_file::write(string const &msg) {\n if (parent) {\n parent->write(msg);\n return;\n }\n if (need_comma) {\n fil << \",\";\n }\n fil << \"\\n\";\n for (int i = 0; i < indent_level; ++i) {\n fil << \" \";\n }\n fil << msg;\n need_comma = true;\n}\n\nstring json_file::stringify(string const &txt) const {\n ostringstream buf;\n\n buf << \"\\\"\";\n for (string::const_iterator p = txt.begin(); p != txt.end(); ++p) {\n switch (*p) {\n case '\"':\n buf << \"\\\\\\\"\";\n break;\n case '\\\\':\n buf << \"\\\\\\\\\";\n break;\n case '\\b':\n buf << \"\\\\b\";\n break;\n case '\\f':\n buf << \"\\\\f\";\n break;\n case '\\n':\n buf << \"\\\\n\";\n break;\n case '\\r':\n buf << \"\\\\r\";\n break;\n case '\\t':\n buf << \"\\\\t\";\n break;\n default:\n if (!isprint(*p)) {\n buf << \"\\\\u\" << hex << setw(4) << setfill('0') << int(*p) << dec\n << setw(0) << setfill(' ');\n } else {\n buf << *p;\n }\n }\n }\n buf << \"\\\"\";\n\n return buf.str();\n}\n\n} // namespace Formaline\n", diff --git a/CactusUtils_MemSpeed.json b/CactusUtils_MemSpeed.json index 3ea77c8585a98c6aabdc447f736f02ef3cde322e..70b2163a40c5af40100b143caadd60554dcd4f75 100644 --- a/CactusUtils_MemSpeed.json +++ b/CactusUtils_MemSpeed.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusutils.git", "configuration": "# Configuration definitions for thorn MemSpeed\n\nOPTIONAL MPI\n{\n}\n\n# Floating point benchmarks use explicit vectorization\nREQUIRES Vectors\n", "interface": "# Interface definition for thorn MemSpeed\n\nIMPLEMENTS: MemSpeed\n\nUSES INCLUDE HEADER: vectors.h\n\n\n\nCCTK_INT FUNCTION GetNumSMTThreads()\nREQUIRES FUNCTION GetNumSMTThreads\nCCTK_INT FUNCTION GetMaxSMTThreads()\nREQUIRES FUNCTION GetMaxSMTThreads\n\n# Obtain information about caches and memory sizes from thorn hwloc\nCCTK_INT FUNCTION GetCacheInfo1 \\\n (CCTK_POINTER_TO_CONST ARRAY OUT names, \\\n CCTK_INT ARRAY OUT types, \\\n CCTK_POINTER_TO_CONST ARRAY OUT sizes, \\\n CCTK_INT ARRAY OUT linesizes, \\\n CCTK_INT ARRAY OUT strides, \\\n CCTK_INT ARRAY OUT num_puss, \\\n CCTK_INT IN max_num_cache_levels)\nREQUIRES FUNCTION GetCacheInfo1\n\n# Obtain information about MPI processes and hosts from thorn hwloc\nCCTK_INT FUNCTION GetMPIProcessInfo \\\n (CCTK_INT OUT mpi_num_procs, \\\n CCTK_INT OUT mpi_proc_num, \\\n CCTK_INT OUT mpi_num_hosts, \\\n CCTK_INT OUT mpi_host_num, \\\n CCTK_INT OUT mpi_num_procs_on_host, \\\n CCTK_INT OUT mpi_proc_num_on_host)\nREQUIRES FUNCTION GetMPIProcessInfo\n", - "params": "", + "param": "# Parameter definitions for thorn MemSpeed\n\nBOOLEAN verbose \"Verbose output\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN skip_largemem_benchmarks \"Skip benchmarks that require much memory\" STEERABLE=always\n{\n} \"no\"\n", "schedule": "# Schedule definitions for thorn MemSpeed\n\nSCHEDULE MemSpeed_MeasureSpeed AT wragh\n{\n LANG: C\n OPTIONS: meta\n} \"Measure CPU, memory, cache speeds\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn MemSpeed\n\n# Source files in this directory\nSRCS = memspeed.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusUtils_NaNCatcher.json b/CactusUtils_NaNCatcher.json index a274d4288a460edc39cdf1bc01f74eaca78ceb78..38664d9e1bf4aa688163945b2f3758c1cea64864 100644 --- a/CactusUtils_NaNCatcher.json +++ b/CactusUtils_NaNCatcher.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusutils.git", "configuration": "", "interface": "# Interface definition for thorn NaNCatcher\n\nIMPLEMENTS: NaNCatcher\n", - "params": "", + "param": "# Parameter definitions for thorn NaNCatcher\n", "schedule": "# Schedule definitions for thorn NaNCatcher\n\nSCHEDULE catch_nans AT startup\n{\n LANG: C\n} \"Disallow nans and infinities\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn NaNCatcher\n# $Header$\n\n# Source files in this directory\nSRCS = catch_nans.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusUtils_NaNChecker.json b/CactusUtils_NaNChecker.json index cc828fc828449d3f2b5a8419ec37bf72bc494484..dc1755c2d75aeafab4bcccf09734021f174410af 100644 --- a/CactusUtils_NaNChecker.json +++ b/CactusUtils_NaNChecker.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusutils.git", "configuration": "# Configuration definitions for thorn NaNChecker\n# $Header$\n\nPROVIDES NaNChecker\n{\n SCRIPT\n LANG\n}\n", "interface": "# Interface definition for thorn NaNChecker\n# $Header$\n\nimplements: NaNChecker\n\ninherits: Reduce\n\n\n\nINCLUDES HEADER: NaNCheck.h in NaNChecker.h\n\n\n\nCCTK_INT FUNCTION CheckVarsForNaN \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN report_max, \\\n CCTK_STRING IN vars, \\\n CCTK_STRING IN check_for, \\\n CCTK_STRING IN action_if_found)\nPROVIDES FUNCTION CheckVarsForNaN \\\n WITH NaNChecker_CheckVarsForNaN_Wrapper \\\n LANGUAGE C\n\nCCTK_INT FUNCTION SetVarsToNaN \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_STRING IN vars)\nPROVIDES FUNCTION SetVarsToNaN \\\n WITH NaNChecker_SetVarsToNaN_Wrapper \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n GetMap \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION GetMap\n\nCCTK_INT FUNCTION \\\n GetRefinementLevel \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION GetRefinementLevel\n\n\n\n\nprivate:\n\nINT NaNmask TYPE=GF TAGS='Prolongation=\"None\" checkpoint=\"no\"' \"Grid function mask for NaN locations\"\n\nINT NaNsFound TYPE=SCALAR TAGS='checkpoint=\"no\"' \"Scalar variable counting the number of NaNs found\"\n\nREAL TestGF TYPE=GF TAGS='Prolongation=\"None\" checkpoint=\"no\"' \"Grid function to hold NaNs for testsuite\"\n", - "params": "", + "param": "# Parameter definitions for thorn NaNChecker\n# $Header$\n\n#############################################################################\n### declare NaNChecker parameters\n#############################################################################\nprivate:\n\nINT check_every \"How often to check for NaNs\" STEERABLE = ALWAYS\n{\n 0 :: \"Never (default)\"\n 1:* :: \"Every so many iterations\"\n} 0\n\nINT check_after \"Start checking for NaNs after so many iterations\" STEERABLE = ALWAYS\n{\n 0:* :: \"Any valid iteration number\"\n} 0\n\nINT report_max \"How many NaNs to report for a single variable\" STEERABLE = ALWAYS\n{\n -1 :: \"Report all (default)\"\n 0:* :: \"Do not report more than report_max number of NaNs\"\n} -1\n\nSTRING check_vars \"Groups and/or variables to check for NaNs\" STEERABLE = ALWAYS\n{\n .* :: \"List of full group and/or variable names, or 'all' for everything\"\n} \"\"\n\nKEYWORD check_for \"Check for NaNs and/or infinite numbers (only evaluated if finite(3) is available)\" STEERABLE = ALWAYS\n{\n \"NaN\" :: \"Check only for NaNs\"\n \"Inf\" :: \"Check only for infinite numbers\"\n \"both\" :: \"Check for both NaNs and infinite numbers\"\n} \"both\"\n\nBOOLEAN out_NaNmask \"Dump the NaN grid function mask into an HDF5 file\" STEERABLE = ALWAYS\n{\n} \"yes\"\n\nKEYWORD action_if_found \"What to do if a NaN was found\" STEERABLE = ALWAYS\n{\n \"just warn\" :: \"Just print a level 1 warning\"\n \"terminate\" :: \"Warn and terminate Cactus gracefully as soon as possible\"\n \"abort\" :: \"Warn and abort Cactus immediately\"\n} \"just warn\"\n\nKEYWORD verbose \"How much information to give\" STEERABLE = ALWAYS\n{\n \"all\" :: \"All information\"\n \"standard\" :: \"Standard information\"\n} \"standard\"\n\nBOOLEAN ignore_restricted_points \"do not check grid points whose values will be restricted away\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nSTRING restriction_mask \"grid function to use to decide which points are restricted away, points where the mask is zero are ignored\" STEERABLE = ALWAYS\n{\n \"CarpetReduce[:][:]weight\" :: \"Carpet's reduction mask\"\n \"CarpetEvolutionMask[:][:]evolution_mask\" :: \"takes prolongation stencil into account\"\n \".*[:][:].*\" :: \"any grid function with points masked out set to zero\"\n} \"CarpetReduce::weight\"\n\nBOOLEAN setup_test \"set up grid function with NaNs\"\n{\n} \"no\"\n", "schedule": "# Schedule definitions for thorn NaNChecker\n# $Header$\n\nSTORAGE: NaNmask NaNsFound\n\nschedule NaNChecker_ResetCounter at BASEGRID\n{\n LANG: C\n OPTIONS: global\n WRITES: NaNChecker::NaNsFound(everywhere)\n} \"Reset the NaNChecker::NaNsFound counter\"\n\nschedule NaNChecker_ResetCounter at PRESTEP\n{\n LANG: C\n OPTIONS: global\n WRITES: NaNChecker::NaNsFound(everywhere)\n} \"Reset the NaNChecker::NaNsFound counter\"\n\nschedule NaNChecker_NaNCheck_Prepare IN NaNChecker_NaNCheck\n{\n LANG: C\n OPTIONS: level\n WRITES: NaNChecker::NaNmask(everywhere)\n} \"Prepare data structures to check for NaNs\"\n\nschedule GROUP NaNChecker_NaNCheck as zzz_NaNChecker_NaNCheck at POSTSTEP\n{\n} \"Check for NaNs and count them in NaNChecker::NaNsFound\"\n\nschedule NaNChecker_NaNCheck_Check IN NaNChecker_NaNCheck AFTER NaNChecker_NaNCheck_Prepare\n{\n LANG: C\n OPTIONS: local\n} \"Check for NaNs\"\n\nschedule NaNChecker_NaNCheck_Finish IN NaNChecker_NaNCheck AFTER NaNChecker_NaNCheck_Check\n{\n LANG: C\n OPTIONS: level\n WRITES: NaNChecker::NaNsFound(everywhere)\n} \"Count NaNs in NaNChecker::NaNsFound\"\n\nschedule NaNChecker_TakeAction at POSTSTEP after zzz_NaNChecker_NaNCheck\n{\n LANG: C\n OPTIONS: global loop-level\n READS: NaNChecker::NaNsFound(everywhere)\n} \"Output NaNChecker::NaNmask and take action according to NaNChecker::action_if_found\"\n\nschedule GROUP NaNChecker_NaNCheck as zzz_NaNChecker_NaNCheck at POST_RECOVER_VARIABLES\n{\n} \"Check for NaNs and count them in NaNChecker::NaNsFound\"\n\nschedule NaNChecker_TakeAction at POST_RECOVER_VARIABLES after zzz_NaNChecker_NaNCheck\n{\n LANG: C\n OPTIONS: global loop-level\n READS: NaNChecker::NaNsFound(everywhere)\n} \"Output NaNChecker::NaNmask and take action according to NaNChecker::action_if_found\"\n\nif (setup_test) {\n STORAGE: TestGF\n\n schedule NaNChecker_SetupTest at INITIAL\n {\n LANG: C\n } \"Set test grid function to NaN\"\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn NaNChecker\n# $Header$\n\n# Source files in this directory\nSRCS = NaNCheck.cc\n", diff --git a/CactusUtils_Nice.json b/CactusUtils_Nice.json index 924534adbb18a9bc67fabbfe9ca9c9475f36b7bc..b0a8fd2d6ed726fe3c8e94d3a339782f1d0e4f77 100644 --- a/CactusUtils_Nice.json +++ b/CactusUtils_Nice.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusutils.git", "configuration": "", "interface": "# Interface definition for thorn Nice\n\nimplements: nice\n\n", - "params": "", + "param": "# Parameter definitions for thorn Nice\n\nCCTK_INT Nice_nice \"Nice level\"\n{\n-20:19 :: \"The range for the nice is from -20 to 19, but only root can use negative values, default is 19.\"\n} 19\n\n", "schedule": "# Schedule definitions for thorn Nice\nschedule Nice_Renice at CCTK_STARTUP\n{\n LANG: C\n} \"Renice the process\"\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Nice\n# Source files in this directory\nSRCS = nice.c\n", diff --git a/CactusUtils_NoMPI.json b/CactusUtils_NoMPI.json index 8f3441b2528032fcaf7efd8a80b20a4a1f1c8a31..c5a4c64326bd537ce6353c6981db73b7decf9994 100644 --- a/CactusUtils_NoMPI.json +++ b/CactusUtils_NoMPI.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusutils.git", "configuration": "# Configuration definition for thorn NoMPI\n\nOPTIONAL MPI\n{\n}\n", "interface": "# Interface definition for thorn NoMPI\n\nIMPLEMENTS: NoMPI\n\nINCLUDES HEADER: nompi.h IN nompi.h\n", - "params": "", + "param": "# Parameter definitions for thorn NoMPI\n", "schedule": "# Schedule definitions for thorn NoMPI\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn NoMPI\n\n# Source files in this directory\nSRCS = nompi.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusUtils_SystemStatistics.json b/CactusUtils_SystemStatistics.json index 9111ade98d8df74d1abf624131f9ab03e3aca890..83bf21285288874c88718528154a701171541af9 100644 --- a/CactusUtils_SystemStatistics.json +++ b/CactusUtils_SystemStatistics.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusutils.git", "configuration": "", "interface": "\nimplements: SystemStatistics\n\n# Use REAL to prevent overflow\nREAL process_memory TYPE=array DIM=1 SIZE=1 DISTRIB=constant TAGS='Checkpoint=\"no\"'\n{\n maxrss, majflt, arena, ordblks, hblks, hblkhd, uordblks, fordblks, keepcost, swap_used\n} \"Process memory statistics\"\n\nINT process_memory_mb TYPE=array DIM=1 SIZE=1 DISTRIB=constant TAGS='Checkpoint=\"no\"'\n{\n maxrss_mb, majflt_mb, arena_mb, ordblks_mb, hblks_mb, hblkhd_mb, uordblks_mb, fordblks_mb, keepcost_mb, swap_used_mb\n} \"Run memory statistics in MB\"\n\nINT process_memory_kb TYPE=array DIM=1 SIZE=1 DISTRIB=constant TAGS='Checkpoint=\"no\"'\n{\n maxrss_kb, majflt_kb, arena_kb, ordblks_kb, hblks_kb, hblkhd_kb, uordblks_kb, fordblks_kb, keepcost_kb, swap_used_kb\n} \"Run memory statistics in KB\"\n", - "params": "", + "param": "", "schedule": "STORAGE: process_memory, process_memory_mb, process_memory_kb\n\nschedule SystemStatistics_Collect at CCTK_ANALYSIS\n{\n LANG: C\n OPTIONS: GLOBAL\n WRITES: SystemStatistics::process_memory(everywhere), process_memory_mb, process_memory_kb\n} \"Collect system statistics\"\n", "src": { "make.code.defn": "\n# Source files in this directory\nSRCS = systemstatistics.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusUtils_SystemTopology.json b/CactusUtils_SystemTopology.json index 30e70f073e0bee529f67258dae9e6e2105c9617c..8df6230a600c90bea211bc50eb7cac4a69cb87e9 100644 --- a/CactusUtils_SystemTopology.json +++ b/CactusUtils_SystemTopology.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusutils.git", "configuration": "# Configuration definitions for thorn SystemTopology\n\nREQUIRES hwloc MPI\n", "interface": "# Interface definition for thorn SystemTopology\n\nIMPLEMENTS: SystemTopology\n\nCCTK_INT FUNCTION GetNumSMTThreads()\nPROVIDES FUNCTION GetNumSMTThreads WITH ST_GetNumSMTThreads LANGUAGE C\nCCTK_INT FUNCTION GetMaxSMTThreads()\nPROVIDES FUNCTION GetMaxSMTThreads WITH ST_GetMaxSMTThreads LANGUAGE C\n\n# The ACML library on Kraken already defines a GetCacheInfo\n# The \"sizes\" argument is passed as pointer, although it is an integer,\n# since we can't use the type CCTK_INT8 in aliased functions.\n# The \"types\" are: 0=cache, 1=local memory, 2=NUMA memory.\nCCTK_INT FUNCTION GetCacheInfo1 \\\n (CCTK_POINTER_TO_CONST ARRAY OUT names, \\\n CCTK_INT ARRAY OUT types, \\\n CCTK_POINTER_TO_CONST ARRAY OUT sizes, \\\n CCTK_INT ARRAY OUT linesizes, \\\n CCTK_INT ARRAY OUT strides, \\\n CCTK_INT ARRAY OUT num_puss, \\\n CCTK_INT IN max_num_cache_levels)\nPROVIDES FUNCTION GetCacheInfo1 WITH ST_GetCacheInfo LANGUAGE C\n\nCCTK_INT FUNCTION GetMPIProcessInfo \\\n (CCTK_INT OUT mpi_num_procs, \\\n CCTK_INT OUT mpi_proc_num, \\\n CCTK_INT OUT mpi_num_hosts, \\\n CCTK_INT OUT mpi_host_num, \\\n CCTK_INT OUT mpi_num_procs_on_host, \\\n CCTK_INT OUT mpi_proc_num_on_host)\nPROVIDES FUNCTION GetMPIProcessInfo WITH ST_GetMPIProcessInfo LANGUAGE C\n", - "params": "", + "param": "# Parameter definitions for thorn SystemTopology\n\nKEYWORD set_thread_bindings \"Set thread bindings (aka thread-CPU affinity)\" STEERABLE=recover\n{\n \"yes\" :: \"set bindings\"\n \"no\" :: \"no not modify bindings\"\n \"auto\" :: \"depends on system architecture\"\n} \"auto\"\n\nKEYWORD thread_layout \"How to lay out threads over cores\" STEERABLE=recover\n{\n \"dense\" :: \"Pack threads on as few NUMA nodes/cores as possible\"\n \"loose\" :: \"Spread threads over all NUMA nodes/cores\"\n} \"dense\"\n", "schedule": "# Schedule definitions for thorn SystemTopology\n\nSCHEDULE ST_system_topology AT startup AFTER hwloc_startup BEFORE Driver_Startup\n{\n LANG: C\n} \"Output and/or modify system topology and hardware locality\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn SystemTopology\n\n# Source files in this directory\nSRCS = system_topology.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusUtils_TerminationTrigger.json b/CactusUtils_TerminationTrigger.json index 0e2cea8ff40046f6f5c8fb60fd1766929340ec0c..277ce98f574d819efbd1acfeda5d798b409e1944 100644 --- a/CactusUtils_TerminationTrigger.json +++ b/CactusUtils_TerminationTrigger.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusutils.git", "configuration": "", "interface": "# Interface definition for thorn TerminationTrigger\n\nIMPLEMENTS: TerminationTrigger\n\nCCTK_REAL watchminutes TYPE=scalar\n\nCCTK_INT triggered TYPE=scalar\n", - "params": "", + "param": "# Parameter definitions for thorn TerminationTrigger\n\nPRIVATE:\n\n# on remaining_walltime will be ignored if it is less than max_walltime at\n# simulation start. This avoids a common issue where a short debug simulation\n# is terminated right away because max_walltime ends up being less than\n# on_remaining_walltime.\nREAL on_remaining_walltime \"When to trigger termination in MINUTES\" STEERABLE = ALWAYS\n{\n 0.0 :: \"Don't trigger termination\"\n (0.0:* :: \"So many minutes before your job walltime is over\"\n} 0.0\n\nREAL max_walltime \"Walltime in HOURS allocated for this job\" STEERABLE = ALWAYS\n{\n 0.0 :: \"Don't trigger termination\"\n (0.0:* :: \"Should be positive, right\"\n} 0.0\n\nBOOLEAN termination_from_file \"Use termination file; specified by termination_filename\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nBOOLEAN create_termination_file \"Create an empty termination file at startup\" STEERABLE = RECOVER\n{\n} \"no\"\n\nSTRING termination_file \"Termination file name (either full path or relative to IO::out_dir)\" STEERABLE = ALWAYS\n{\n \"\" :: \"Termination file\"\n} \"/tmp/cactus_terminate\"\n\nINT check_file_every \"Check termination file every n timesteps\" STEERABLE = ALWAYS\n{\n 1:* :: \"\"\n} 1\n\nKEYWORD signal_names[10] \"which signal to trigger on\" STEERABLE = ALWAYS\n{\n \"SIGHUP\" :: \"hangup on controlling terminal\"\n \"SIGINT\" :: \"interrupt from keyboard\"\n \"SIGTERM\" :: \"termination signals, often used by queueing systems to request shutdown\"\n \"SIGUSR1\" :: \"user signal 1\"\n \"SIGUSR2\" :: \"user signal 2\"\n \"\" :: \"do not listen to signals\"\n} \"\"\n\nINT signal_numbers[10] \"which signal to trigger on, used only if signal_namees is empty\" STEERABLE = ALWAYS\n{\n 1:* :: \"any signal number understood by the OS\"\n 0 :: \"ignore this slot\"\n} 0\n\n\nREAL output_remtime_every_minutes \"Output remaining wall time every n minutes\" STEERABLE = ALWAYS\n{\n 0.0 :: \"No output\"\n (0.0:* :: \"Output\"\n} 60.0\n\nBOOLEAN testsuite \"manually trigger termination\"\n{\n} \"no\"\n\nSHARES: IO\n\nUSES STRING out_dir\n", "schedule": "# Schedule definitions for thorn TerminationTrigger\n\nSTORAGE: watchminutes triggered\n\nSCHEDULE TerminationTrigger_ParamCheck AT PARAMCHECK\n{\n LANG: C\n} \"Check consitency of parameters\"\n\nSCHEDULE TerminationTrigger_ResetTrigger AT BaseGrid\n{\n LANG: C\n} \"Clear trigger state\"\n\nSCHEDULE TerminationTrigger_StartTimer AT BaseGrid\n{\n LANG: C\n WRITES: TerminationTrigger::watchminutes(everywhere)\n} \"Start timer\"\n\nSCHEDULE TerminationTrigger_ResetMinutes AT post_recover_variables\n{\n LANG: C\n OPTIONS: global\n WRITES: TerminationTrigger::watchminutes(everywhere)\n} \"Reset Watchtime\"\n\nSCHEDULE TerminationTrigger_CheckWalltime AT analysis\n{\n LANG: C\n READS: TerminationTrigger::watchminutes(everywhere)\n WRITES: TerminationTrigger::watchminutes(everywhere)\n} \"Check elapsed job walltime\"\n\nSCHEDULE TerminationTrigger_StartSignalHandler AT startup\n{\n LANG: C\n} \"Start signal handler\"\n\nSCHEDULE TerminationTrigger_CheckSignal AT analysis\n{\n LANG: C\n} \"Check if we received a termination signal\"\n\n\nif (create_termination_file)\n{\n SCHEDULE TerminationTrigger_CreateFile AT BaseGrid\n {\n LANG: C\n } \"Create termination file\"\n}\n\nSCHEDULE TerminationTrigger_CheckFile AT analysis\n{\n LANG: C\n} \"Check termination file\"\n", "src": { "walltime.c": "#include \n#include \n#include \n\n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Parameters.h\"\n#include \"cctk_Termination.h\"\n#include \"cctk_Timers.h\"\n\n#include \"terminationtrigger.h\"\n\nvoid TerminationTrigger_StartTimer(CCTK_ARGUMENTS) {\n DECLARE_CCTK_ARGUMENTS_TerminationTrigger_StartTimer;\n DECLARE_CCTK_PARAMETERS;\n\n /* only one processor needs to query the elapsed runtime */\n if (CCTK_MyProc(cctkGH) != 0) {\n return;\n }\n\n *watchminutes = output_remtime_every_minutes;\n\n CCTK_VInfo(CCTK_THORNSTRING,\n \"Reminding you every %g minutes about remaining walltime\",\n (double)output_remtime_every_minutes);\n}\n\nvoid TerminationTrigger_ResetMinutes(CCTK_ARGUMENTS) {\n DECLARE_CCTK_ARGUMENTS_TerminationTrigger_ResetMinutes;\n DECLARE_CCTK_PARAMETERS;\n\n /* only one processor needs to query the elapsed runtime */\n if (CCTK_MyProc(cctkGH) != 0) {\n return;\n }\n\n *watchminutes = output_remtime_every_minutes;\n}\n\nvoid TerminationTrigger_CheckWalltime(CCTK_ARGUMENTS) {\n DECLARE_CCTK_ARGUMENTS_TerminationTrigger_CheckWalltime;\n DECLARE_CCTK_PARAMETERS;\n\n CCTK_REAL time;\n\n /* if the maximum wall time or the remaining wall time have not been\n set, then don't terminate */\n if (max_walltime == 0.0 || on_remaining_walltime == 0.0) {\n return;\n }\n\n /* only one processor needs to query the elapsed runtime */\n if (CCTK_MyProc(cctkGH) != 0) {\n return;\n }\n\n /* get walltime in seconds */\n time = CCTK_RunTime();\n\n if (testsuite && cctk_iteration == 1) {\n time = max_walltime * 3600. - on_remaining_walltime*60. + 1.;\n }\n\n if ((time / 60.0 > *watchminutes) && *watchminutes != 0) {\n *watchminutes += output_remtime_every_minutes;\n CCTK_INFO(\"***********************************************************\");\n CCTK_VInfo(CCTK_THORNSTRING,\n \"Remaining wallclock time for your job is %g minutes\",\n (double)(max_walltime * 60.0 - time / 60.0));\n CCTK_INFO(\"***********************************************************\");\n }\n\n if (time / 60.0 >= (max_walltime * 60.0 - on_remaining_walltime)) {\n CCTK_VInfo(CCTK_THORNSTRING,\n \"Remaining wallclock time for your job is %g minutes. \"\n \"Triggering termination...\",\n (double)(max_walltime * 60.0 - time / 60.0));\n TerminationTrigger_TriggerTermination(CCTK_PASS_CTOC);\n }\n}\n", diff --git a/CactusUtils_TimerReport.json b/CactusUtils_TimerReport.json index 46ad3f655de7422fc29801ee41dfefd4f9b1cdd6..922dcf30888e5fe27c2e8f9c5d362bf2acbec1be 100644 --- a/CactusUtils_TimerReport.json +++ b/CactusUtils_TimerReport.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusutils.git", "configuration": "# Configuration definition for thorn TimerReport\n# $Header$\n\nOPTIONAL MPI\n{\n}\n", "interface": "# Interface definition for thorn TimerReport\n# $Header$\n\nimplements: timerreport\n\n\n\nCCTK_INT FUNCTION IO_TruncateOutputFiles (CCTK_POINTER_TO_CONST IN cctkGH)\n\nREQUIRES FUNCTION IO_TruncateOutputFiles\n", - "params": "", + "param": "# Parameter definitions for thorn TimerReport\n# $Header$\n\nprivate:\n\n# These parameters control output frequency based on iteration. Output still\n# happens before the run terminates and, if enabled, before checkpoints.\nINT out_every \"How often to output timer report to screen\" STEERABLE=ALWAYS\n{\n 0 :: \"No periodic output (default)\"\n 1:* :: \"Every so many iterations\"\n} 0\n\nINT out_at \"Output timer information at a given iteration\" STEERABLE=ALWAYS\n{\n -1 :: \"Do not output at specific iteration (default)\"\n 0:* :: \"At this iteration\"\n} -1\n\nSTRING out_filename \"File name for timer reports\" STEERABLE=ALWAYS\n{\n \"^$\" :: \"empty filename: print to stdout\"\n \"^.+$\" :: \"otherwise: print to that file\"\n} \"\"\n\nBOOLEAN before_checkpoint \"Before a checkpoint\" STEERABLE=ALWAYS\n{\n} \"no\"\n\nBOOLEAN next \"On next iteration\" STEERABLE=ALWAYS\n{\n} \"no\"\n\nBOOLEAN output_schedule_timers \"Output the schedule timers in a formatted tabular format\" STEERABLE=ALWAYS\n{\n} \"yes\"\n\nBOOLEAN output_all_timers \"Output one file per processor containing all the Cactus timers\" STEERABLE=ALWAYS\n{\n} \"no\"\n\nBOOLEAN output_all_timers_together \"Output three files (formats .txt, .csv, and .tsv), containing information about all the Cactus timers (average, minimum, and maximum over all processors)\" STEERABLE=ALWAYS\n{\n} \"no\"\n\nBOOLEAN output_all_timers_readable \"Output one file containing information about all the Cactus timers (average, minimum, and maximum over all processors), in a format that is readable by humans\" STEERABLE=ALWAYS\n{\n} \"no\"\n\nSTRING all_timers_clock \"Which clock to use for the all timers output\" STEERABLE=ALWAYS\n{\n \".*\" :: \"any clock name allowed\"\n} \"gettimeofday\"\n\nINT n_top_timers \"How many timers to include in the top timer report\" STEERABLE=ALWAYS\n{\n 0 :: \"Do not print the report\"\n 1:* :: \"Any number of timers\"\n} 0\n\nshares: IO\n\nUSES STRING out_dir\n\nUSES INT checkpoint_every\n", "schedule": "# Schedule definitions for thorn TimerReport\n# $Header$\n\nSCHEDULE TimerReport_OutputEvery AS zzz_TimerReport_Output AT CCTK_ANALYSIS\n{\n LANG: C\n OPTIONS: global\n} \"Print the timer report\"\n\nSCHEDULE TimerReport_OutputTerminate AS zzz_TimerReport_Output AT CCTK_TERMINATE BEFORE Driver_Terminate\n{\n LANG: C\n OPTIONS: global\n} \"Print the timer report\"\n\nSCHEDULE TimerReport_Checkpoint AS zzz_TimerReport_Checkpoint AT CCTK_CHECKPOINT\n{\n LANG: C\n OPTIONS: global\n} \"Print the timer report\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TimerReport\n# $Header$\n\n# Source files in this directory\nSRCS = Output.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusUtils_Trigger.json b/CactusUtils_Trigger.json index eced2675b08bf528ab2f39e63bc2c20dc3b9dcee..a86e1bfe17c141d0453fa324a1249a2632e18fb6 100644 --- a/CactusUtils_Trigger.json +++ b/CactusUtils_Trigger.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusutils.git", "configuration": "", "interface": "# Interface definition for thorn Trigger\n\ninherits: IO\nimplements: trigger\n\nCCTK_REAL Trigger_Vars DISTRIB=CONSTANT tags='checkpoint=\"no\"'\n{\n trigger_cctk_iteration\n trigger_cctk_time\n} \"Scalars for the triggers\"\n\n", - "params": "", + "param": "# Parameter definitions for thorn Nice\n\n# parameter values are parsed into a GH extension at startup so cannot be\n# (meaningfully) steered at runtime\nCCTK_INT Trigger_Number \"Number of triggers\" STEERABLE=RECOVER\n{\n 0:10 :: \"The number of triggers that are defined\"\n} 0\n\nSTRING Trigger_Checked_Variable[10] \"variable to be checked for\" STEERABLE=RECOVER\n{\n \".+\" :: \"fully qualified variable name, 'param' for a parameter\"\n \"^$\" :: \"An empty string to trigger nothing\"\n} \"\"\n\nSTRING Trigger_Checked_Parameter_Thorn[10] \"thorn of parameter to be checked for\" STEERABLE=RECOVER\n{\n \".+\" :: \"thorn name\"\n \"^$\" :: \"An empty string to trigger nothing\"\n} \"\"\n\nSTRING Trigger_Checked_Parameter_Name[10] \"parameter name to be checked for\" STEERABLE=RECOVER\n{\n \".+\" :: \"parameter name\"\n \"^$\" :: \"An empty string to trigger nothing\"\n} \"\"\n\nSTRING Trigger_Relation[10] \"relation operator for checked variable\" STEERABLE=RECOVER\n{\n \"^<|>|==|!=$\" :: \"some relations\"\n} \">\"\n\nCCTK_REAL Trigger_Checked_Value[10] \"triggered value for checked variable\" STEERABLE=RECOVER\n{\n *:* :: \"value to be triggered for\"\n} 1.0\n\nSTRING Trigger_Reduction[10] \"valid reduction method\" STEERABLE=RECOVER\n{\n \".+\" :: \"some relations e.g. 'norm2'\"\n \"^$\" :: \"An empty string for no reduction (for scalars)\"\n} \"\"\n\nKEYWORD Trigger_Reaction[10] \"how to react on a positive trigger\" STEERABLE=RECOVER\n{\n \"output\" :: \"enable output\"\n \"steerparam\" :: \"steer parameter\"\n \"steerscalar\":: \"steer grid scalar\"\n} \"output\"\n\nSTRING Trigger_Output_Method[10] \"IO-output method for this trigger\" STEERABLE=RECOVER\n{\n \".+\" :: \"an enabled IO-method\"\n \"^$\" :: \"An empty string for no output\"\n} \"1D\"\n\nSTRING Trigger_Output_Variables[10] \"variable to be put out 'param' for parameter\" STEERABLE=RECOVER\n{\n \".+\" :: \"Space-separated list of fully qualified variable name\"\n \"^$\" :: \"An empty string to trigger nothing\" \n} \"\"\n\nSTRING Trigger_Steered_Parameter_Thorn[10] \"thorn of parameter to be changed\" STEERABLE=ALWAYS\n{\n \".+\" :: \"thorn name\"\n \"^$\" :: \"An empty string to change nothing\"\n} \"\"\n\nSTRING Trigger_Steered_Parameter_Name[10] \"parameter name to be changed\" STEERABLE=ALWAYS\n{\n \".+\" :: \"parameter name\"\n \"^$\" :: \"An empty string to change nothing\"\n} \"\"\n\nSTRING Trigger_Steered_Parameter_Value[10] \"parameter value to be changed to\" STEERABLE=ALWAYS\n{\n \".+\" :: \"parameter value\"\n \"^$\" :: \"can be empty\"\n} \"\"\n\nSTRING Trigger_Steered_Scalar[10] \"Scalar to be changed\" STEERABLE=ALWAYS\n{\n \".+\" :: \"scalar name\"\n \"^$\" :: \"can be empty\"\n} \"\"\n\nINT Trigger_Steered_Scalar_Index[10] \"Scalar index to be changed\" STEERABLE=ALWAYS\n{\n 0:* :: \">=0\"\n} 0\n\nSTRING Trigger_Steered_Scalar_Value[10] \"Scalar value to be changed to\" STEERABLE=ALWAYS\n{\n \".+\" :: \"scalar value\"\n \"^$\" :: \"can be empty\"\n} \"\"\n\nINT Trigger_Once[10] \"Should this trigger only be triggered (and checked) once?\" STEERABLE=ALWAYS\n{\n 0:1 :: \"0 (no), 1 (yes)\"\n} 0\n\nCCTK_INT Trigger_Debug \"turnes on debug messages\" STEERABLE=RECOVER\n{\n 0:1 :: \"Only 0 (off, default) or 1 (on)\"\n} 0\n\n", "schedule": "# Schedule definitions for thorn Trigger\nschedule Trigger_Startup at STARTUP\n{\n LANG: C\n} \"Startup Routine\"\n\nschedule Trigger_ParamCheck AT PARAMCHECK\n{\n LANG: C\n} \"Parameter checking\"\n\nschedule Trigger_Check at ANALYSIS before AHFinderDirect_setupupdate\n{\n LANG: C\n # schedule global-early so that eg. output frequency parameters are taken\n # into account for all grid functions\n OPTIONS: global-early\n # only used for reductions in this routine, not checkpointed\n STORAGE: Trigger_Vars\n} \"test\"\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Nice\n# Source files in this directory\nSRCS = trigger.c\n", diff --git a/CactusUtils_Vectors.json b/CactusUtils_Vectors.json index 50fe1cdbdf9007a4694f937ad74172a867afb0b6..2674b719330681b499088b857a783a507eac8272 100644 --- a/CactusUtils_Vectors.json +++ b/CactusUtils_Vectors.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusutils.git", "configuration": "# Configuration definitions for thorn Vectors\n\nPROVIDES Vectors\n{\n SCRIPT configure.sh\n LANG bash\n OPTIONS \\\n VECTORISE \\\n VECTORISE_ALIGNED_ARRAYS \\\n VECTORISE_ALIGN_FOR_CACHE \\\n VECTORISE_ALIGN_INTERIOR \\\n VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \\\n VECTORISE_ALWAYS_USE_ALIGNED_LOADS \\\n VECTORISE_INLINE \\\n VECTORISE_STREAMING_STORES\n}\n\nREQUIRES Vectors\n", "interface": "# Interface definition for thorn Vectors\n\nIMPLEMENTS: Vectors\n\nINCLUDE HEADER: vectors.h IN vectors.h\n\nCCTK_INT all_passed TYPE=SCALAR tags='checkpoint=\"no\"' \"all engines passed their tests\"\n", - "params": "", + "param": "# Parameter definitions for thorn Vectors\n\nBOOLEAN verbose \"Verbose output during vector tests\"\n{\n} \"no\"\n\nBOOLEAN test_all \"test all available vector engines\"\n{\n \"yes\" :: \"test all engines supported by the current CPU\"\n \"no\" :: \"test only default engine for current CPU\"\n} \"no\"\n", "schedule": "# Schedule definitions for thorn Vectors\n\nSTORAGE: all_passed\n\nschedule Vectors_Startup at CCTK_STARTUP\n{\n LANG: C\n} \"Print startup message\"\n\nschedule Vectors_Test at CCTK_PARAMCHECK\n{\n LANG: C\n\n WRITES: all_passed\n} \"Run correctness tests.\"\n", "src": { "test-vectors-8-SSE2_SSE41.cc": "#undef __AVX__\n#undef __knl__\n#undef __MIC__\n#undef __AVX512F__\n#undef __AVX512ER__\n//#undef __SSE2__\n//#undef __SSE4_1__\n#undef __SSE4A__\n#undef __FMA4__\n#undef __SSE__\n#undef __bgq__\n#undef __VECTOR4DOUBLE__\n#undef __ALTIVEC__\n#undef _ARCH_PWR7\n#undef _ARCH_450D\n\n#define VECTOR_REAL_PRECISION 8\n\n// includes cctk.h of correct type\n#include \"test.hcc\"\n\n#include \"test-vectors.h\"\n\nnamespace Vectors {\n\nbool Test_8_SSE2_SSE41(CCTK_ARGUMENTS) {\n DECLARE_CCTK_ARGUMENTS;\n DECLARE_CCTK_PARAMETERS;\n\n#if defined __SSE2__ && defined __SSE4_1__ // Intel SSE2\n return Test(CCTK_PASS_CTOC, vec_architecture);\n#else\n return true;\n#endif\n}\n\n}\n", diff --git a/CactusUtils_WatchDog.json b/CactusUtils_WatchDog.json index 4cdd7069f497d320a13a0690ebfa602264f9d255..96ef744c94e525ec31733817fcf99e061234e4d0 100644 --- a/CactusUtils_WatchDog.json +++ b/CactusUtils_WatchDog.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactusutils.git", "configuration": "# Configuration definitions for thorn WatchDog\n\nREQUIRES PTHREADS\n\n\n", "interface": "# Interface definition for thorn WatchDog\nIMPLEMENTS: WatchDog\n", - "params": "", + "param": "# Parameter definitions for thorn WatchDog\n\nPRIVATE:\n\nCCTK_INT check_every \"Check that the run is progressing every so many seconds\" STEERABLE=RECOVER\n{\n 1:* :: \"Any positive integer\"\n} 3600\n", "schedule": "# Schedule definitions for thorn WatchDog\n\nSCHEDULE WatchDog AT CCTK_ANALYSIS\n{\n LANG: C\n} \"Make sure that the run is progressing\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn WatchDog\n\n# Source files in this directory\nSRCS = watchdog.c \n\n# Subdirectories containing source files\nSUBDIRS =\n", diff --git a/CactusWave_IDScalarWave.json b/CactusWave_IDScalarWave.json index c90cb87139a559bec00c210d46d86ba108a4a14f..3c1ef577ec08eb0feb367daefcfaf0b7338dcdf5 100644 --- a/CactusWave_IDScalarWave.json +++ b/CactusWave_IDScalarWave.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactuswave.git", "configuration": "", "interface": "# Interface definition for thorn IDScalarWave\n# $Header$\n\nimplements: idscalarwave\ninherits: wavetoy grid\n\n", - "params": "", + "param": "# Parameter definitions for thorn IDScalarWave\n# $Header$\n\nshares: grid\n\nUSES KEYWORD type \n\nrestricted:\n\nKEYWORD initial_data \"Type of initial data\"\n{\n \"plane\" :: \"Plane wave\"\n \"gaussian\" :: \"Gaussian wave\"\n \"box\" :: \"Box wave\"\n \"none\" :: \"No initial data, zero phi\"\n} \"gaussian\"\n\nprivate:\n\n## Parameter for initial wavepulses\n\nREAL radius \"The radius of the gaussian wave\"\n{\n 0:* :: \"Positive\"\n} 0.0\n\nREAL sigma \"The sigma for the gaussian wave\"\n{\n 0:* :: \"Positive\"\n} 0.1\n\nREAL kx \"The wave number in the x-direction\"\n{\n *:* :: \"No restriction\"\n} 4.0\n\nREAL ky \"The wave number in the y-direction\"\n{\n *:* :: \"No restriction\"\n} 0.0\n\nREAL kz \"The wave number in the z-direction\"\n{\n *:* :: \"No restriction\"\n} 0.0\n\nREAL amplitude \"The amplitude of the waves\"\n{\n *:* :: \"No restriction\"\n} 1.0\n\n", "schedule": "# Schedule definitions for thorn IDScalarWave\n# $Header$\n\nschedule IDScalarWave_CheckParameters at CCTK_PARAMCHECK\n{\n LANG: Fortran\n} \"Check parameters\"\n\nschedule group WaveToy_InitialData at CCTK_INITIAL\n{\n} \"Execute initial data for wavetoy\"\n\nschedule IDScalarWave_InitialData in WaveToy_InitialData\n{\n STORAGE: wavetoy::scalarevolve[3]\n LANG: Fortran\n} \"Initial data for 3D wave equation\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn IDScalarWave\n# $Header$\n\n# Source files in this directory\nSRCS = InitialData.F77 CheckParameters.F77 \n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusWave_IDScalarWaveC.json b/CactusWave_IDScalarWaveC.json index eae93ddfbd68c841ca2725f2a0b9fe3d7b32cbd2..bcb52ee8881e049b025190b8baaa008ba006c609 100644 --- a/CactusWave_IDScalarWaveC.json +++ b/CactusWave_IDScalarWaveC.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactuswave.git", "configuration": "", "interface": "# Interface definition for thorn IDScalarWave\n# $Header$\n\nimplements: idscalarwave\ninherits: wavetoy grid\n", - "params": "", + "param": "# Parameter definitions for thorn IDScalarWave\n# $Header$\n\nshares: grid\n\nUSES KEYWORD type \n\nrestricted:\n\nKEYWORD initial_data \"Type of initial data\"\n{\n \"plane\" :: \"Plane wave\"\n \"gaussian\" :: \"Gaussian wave\"\n \"box\" :: \"Box wave\"\n \"none\" :: \"No initial data, zero phi\"\n} \"gaussian\"\n\nprivate:\n\n## Parameter for initial wavepulses\n\nREAL radius \"The radius of the gaussian wave\"\n{\n 0:* :: \"Positive\"\n} 0.0\n\nREAL sigma \"The sigma for the gaussian wave\"\n{\n 0:* :: \"Positive\"\n} 0.1\n\nREAL kx \"The wave number in the x-direction\"\n{\n *:* :: \"No restriction\"\n} 4.0\n\nREAL ky \"The wave number in the y-direction\"\n{\n *:* :: \"No restriction\"\n} 0.0\n\nREAL kz \"The wave number in the z-direction\"\n{\n *:* :: \"No restriction\"\n} 0.0\n\nREAL amplitude \"The amplitude of the waves\"\n{\n *:* :: \"No restriction\"\n} 1.0\n", "schedule": "# Schedule definitions for thorn IDScalarWaveC\n# $Header$\n\nschedule IDScalarWaveC_CheckParameters at CCTK_PARAMCHECK\n{\n LANG: C\n} \"Check parameters\"\n\nschedule IDScalarWaveC_InitialData at CCTK_INITIAL as WaveToy_InitialData\n{\n STORAGE: wavetoy::scalarevolve[3]\n LANG: C\n READS: grid::x, grid::y, grid::z\n WRITES: wavetoy::phi(everywhere), wavetoy::phi_p(everywhere)\n} \"Initial data for 3D wave equation\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn IDScalarWave\n# $Header$\n\n# Source files in this directory\nSRCS = InitialData.c CheckParameters.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/CactusWave_IDScalarWaveCXX.json b/CactusWave_IDScalarWaveCXX.json index 2b533bf7eade282458ec15e192dc0646bb1db4aa..5cfcb08456f0686ab24e2e9427b891f0aa7aa8ac 100644 --- a/CactusWave_IDScalarWaveCXX.json +++ b/CactusWave_IDScalarWaveCXX.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactuswave.git", "configuration": "", "interface": "# Interface definition for thorn IDScalarWave\n# $Header$\n\nimplements: idscalarwave\ninherits: wavetoy grid\n\n", - "params": "", + "param": "# Parameter definitions for thorn IDScalarWave\n# $Header$\n\nshares: grid\n\nUSES KEYWORD type \n\nrestricted:\n\nKEYWORD initial_data \"Type of initial data\"\n{\n \"plane\" :: \"Plane wave\"\n \"gaussian\" :: \"Gaussian wave\"\n \"box\" :: \"Box wave\"\n \"none\" :: \"No initial data, zero phi\"\n} \"gaussian\"\n\nprivate:\n\n## Parameter for initial wavepulses\n\nREAL radius \"The radius of the gaussian wave\"\n{\n 0:* :: \"Positive\"\n} 0.0\n\nREAL sigma \"The sigma for the gaussian wave\"\n{\n 0:* :: \"Positive\"\n} 0.1\n\nREAL kx \"The wave number in the x-direction\"\n{\n *:* :: \"No restriction\"\n} 4.0\n\nREAL ky \"The wave number in the y-direction\"\n{\n *:* :: \"No restriction\"\n} 0.0\n\nREAL kz \"The wave number in the z-direction\"\n{\n *:* :: \"No restriction\"\n} 0.0\n\nREAL amplitude \"The amplitude of the waves\"\n{\n *:* :: \"No restriction\"\n} 1.0\n\n", "schedule": "# Schedule definitions for thorn IDScalarWave\n# $Header$\n\nschedule IDScalarWaveCXX_CheckParameters at CCTK_PARAMCHECK\n{\n LANG: C\n} \"Check parameters\"\n\nschedule IDScalarWaveCXX_InitialData at CCTK_INITIAL as WaveToy_InitialData\n{\n STORAGE: wavetoy::scalarevolve[3]\n LANG: C\n} \"Initial data for 3D wave equation\"\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn IDScalarWave\n# $Header$\n\n# Source files in this directory\nSRCS = InitialData.cc CheckParameters.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusWave_IDScalarWaveElliptic.json b/CactusWave_IDScalarWaveElliptic.json index eba92a69b5be974effe915c2da2a9f422c3a8a7f..bb68d6f1c6bbac06cd9df77f691d5e2d2a8a7fe7 100644 --- a/CactusWave_IDScalarWaveElliptic.json +++ b/CactusWave_IDScalarWaveElliptic.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactuswave.git", "configuration": "", "interface": "# Interface definition for thorn IDScalarWaveElliptic\n# $Header$\n\nimplements: IDScalarWaveElliptic\ninherits: Grid WaveToy EllBase IDScalarWave\n\nUSES INCLUDE HEADER: EllBase.h\nprivate:\n\ncctk_real ellcoeffs type = GF\n{\n Mcoeff,Ncoeff\n} \"Coefficients of the elliptic equation\"\n\ncctk_real outvars type = GF\n{\n temp\n} \"Temporary vars\"\n", - "params": "", + "param": "# Parameter definitions for thorn IDScalarWaveElliptic\n# $Header$\n\nshares: idscalarwave\n\nEXTENDS KEYWORD initial_data \n{\n \"charge\" :: \"Uniformly charged sphere\"\n}\n\n\nprivate:\n\nREAL radius \"Radius of uniformly charged sphere\"\n{\n 0:* :: \"Anything\"\n} 1.0\n\nREAL charge \"Charge of uniformly charged sphere\"\n{\n 0:* :: \"Anything\"\n} 1.0\n\nBOOLEAN output_tmp \"Output intermediate variables\"\n{\n} \"no\"\n\nSTRING solver \"Name of elliptic solver\"\n{\n.* :: \"Anything\"\n} \"sor\"\n\nINT sor_maxit \"Maximum number of iterations for SOR solve\"\n{\n 1:* :: \"Positive\"\n} 100\n", "schedule": "# Schedule definitions for thorn IDScalarWaveElliptic\n# $Header$\n\nschedule UniformCharge in WaveToy_InitialData\n{\n STORAGE: wavetoy::scalarevolve[3],ellcoeffs,outvars\n LANG: Fortran\n} \"Initial data (Uniform Charge) for 3D wave equation\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn IDScalarWaveElliptic\n# $Header$\n\n# Source files in this directory\nSRCS = SourceData.F90\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusWave_WaveBinarySource.json b/CactusWave_WaveBinarySource.json index c19fc6964ce18eee276c9c20f057788a27871fb7..cc9a9133df92350093307f835144ba1e7b3444e5 100644 --- a/CactusWave_WaveBinarySource.json +++ b/CactusWave_WaveBinarySource.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactuswave.git", "configuration": "", "interface": "# Interface definition for thorn IDBinarySourceC\n# $Header$\n\nimplements: binarysource\ninherits: wavetoy grid\n", - "params": "", + "param": "# Parameter definitions for thorn IDBinarySourceC\n# $Header$\n\nprivate:\n\nKEYWORD binary_verbose \"Rotating binary source verbose\"\n{\n \"yes\" :: \"Info on charge location/extension on first iteration\"\n \"debug\":: \"Info on charge location/extension on all iterations\"\n \"no\" :: \"no output\"\n} \"no\"\n\nREAL binary_size \"Radial extension of the binary source\" STEERABLE = ALWAYS\n{\n 0.0: :: \"Some positive value\"\n} 0.5\n\nREAL binary_omega \"Frequency of the circular binary orbit\" STEERABLE = ALWAYS\n{\n 0.0: :: \"Some positive value\"\n} 2.0\n\nREAL binary_charge \"Charge of source\" STEERABLE = ALWAYS\n{\n : :: \"No restriction\"\n} 0.1\n\nREAL binary_radius \"Radius of the circular binary orbit\" STEERABLE = ALWAYS\n{\n 0.0: :: \"Some positive value\"\n} 2.0\n\n", "schedule": "# Schedule definitions for thorn IDBinarySourceC\n# $Header$\n\nschedule WaveBinaryC at EVOL after WaveToy_Evolution\n{ \n STORAGE: wavetoy::scalarevolve[1]\n LANG: C\n} \"Provide binary source during evolution (C)\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn IDBinarySourceC\n# $Header$\n\n# Source files in this directory\nSRCS = WaveBinary.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusWave_WaveToyC.json b/CactusWave_WaveToyC.json index 079d99c4a1486fd45f31a1a21d25385a98406834..4c38b30328a41b75fcebcfda1d42835ce1bb1412 100644 --- a/CactusWave_WaveToyC.json +++ b/CactusWave_WaveToyC.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactuswave.git", "configuration": "# Configuration definition for thorn CactusWave/WaveToyC\n# $Header$\n\nREQUIRES CartGrid3D\n", "interface": "# Interface definition for thorn WaveToyC\n# $Header$\n\nimplements: wavetoy\ninherits: grid\n\nUSES INCLUDE: Symmetry.h\n \npublic:\n\ncctk_real scalarevolve type = GF Timelevels=3 tags='tensortypealias=\"Scalar\"'\n{\n phi\n} \"The evolved scalar field\"\n\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nREQUIRES FUNCTION Boundary_SelectVarForBC\n\nCCTK_INT FUNCTION Driver_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectVarForBC\n", - "params": "", + "param": "# Parameter definitions for thorn WaveToyC\n# $Header$\n\nrestricted:\n \nKEYWORD bound \"Type of boundary condition to use\"\n{\n \"none\" :: \"Apply no boundary condition\"\n \"flat\" :: \"Flat (von Neumann, n grad phi = 0) boundary condition\"\n \"static\" :: \"Static (Dirichlet, dphi/dt=0) boundary condition\"\n \"radiation\" :: \"Radiation boundary condition\"\n \"robin\" :: \"Robin (phi(r) = C/r) boundary condition\"\n \"zero\" :: \"Zero (Dirichlet, phi=0) boundary condition\"\n} \"none\"\n\n\n ", "schedule": "# Schedule definitions for thorn WaveToyC\n# $Header$\n\nSTORAGE: scalarevolve[3]\n\nschedule WaveToyC_Startup at STARTUP\n{\n LANG: C\n} \"Register banner\"\n\nschedule WaveToyC_InitSymBound at BASEGRID\n{\n LANG: C\n OPTIONS: global\n} \"Schedule symmetries\"\n\nschedule WaveToyC_Evolution as WaveToy_Evolution at EVOL\n{\n LANG: C\n READS: wavetoy::phi_p, phi_p_p\n WRITES: wavetoy::phi(interior)\n} \"Evolution of 3D wave equation\"\n\nschedule WaveToyC_Boundaries as WaveToy_Boundaries at EVOL AFTER WaveToy_Evolution\n{\n LANG: C\n OPTIONS: level\n SYNC: scalarevolve\n} \"Boundaries of 3D wave equation\"\n \nschedule GROUP ApplyBCs as WaveToyC_ApplyBCs at EVOL after WaveToy_Boundaries\n{\n} \"Apply boundary conditions\"\n\nschedule WaveToyC_Boundaries as WaveToy_Boundaries at POSTRESTRICT\n{\n LANG: C\n OPTIONS: level\n SYNC: scalarevolve\n} \"Boundaries of 3D wave equation\"\n\nschedule GROUP ApplyBCs as WaveToyC_ApplyBCs at POSTRESTRICT after WaveToy_Boundaries\n{\n} \"Apply boundary conditions\"\n\nschedule WaveToyC_Boundaries as WaveToy_Boundaries at POSTRESTRICTINITIAL\n{\n LANG: C\n OPTIONS: level\n SYNC: scalarevolve\n} \"Boundaries of 3D wave equation\"\n\nschedule GROUP ApplyBCs as WaveToyC_ApplyBCs at POSTRESTRICTINITIAL after WaveToy_Boundaries\n{\n} \"Apply boundary conditions\"\n\nschedule WaveToyC_Boundaries as WaveToy_Boundaries at POST_RECOVER_VARIABLES\n{\n LANG: C\n OPTIONS: level\n SYNC: scalarevolve\n} \"Boundaries of 3D wave equation\"\n\nschedule GROUP ApplyBCs as WaveToyC_ApplyBCs at POST_RECOVER_VARIABLES after WaveToy_Boundaries\n{\n} \"Apply boundary conditions\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn WaveToyC\n# $Header$\n\n# Source files in this directory\nSRCS = WaveToy.c InitSymBound.c Startup.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusWave_WaveToyCXX.json b/CactusWave_WaveToyCXX.json index 92e46e1a439a8cf7509aac348cd3b9c84b052721..f1b4812a178f848775f65fffbf5083c592bf76e8 100644 --- a/CactusWave_WaveToyCXX.json +++ b/CactusWave_WaveToyCXX.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactuswave.git", "configuration": "# Configuration definition for thorn CactusWave/WaveToyCXX\n# $Header$\n\nREQUIRES CartGrid3D\n", "interface": "# Interface definition for thorn WaveToyCXX\n# $Header$\n\nimplements: wavetoy\ninherits: grid\n\nUSES INCLUDE: Symmetry.h\n \npublic:\n\ncctk_real scalarevolve type = GF Timelevels=3\n{\n phi\n} \"The evolved scalar field\"\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nREQUIRES FUNCTION Boundary_SelectVarForBC\n", - "params": "", + "param": "# Parameter definitions for thorn WaveToyCXX\n# $Header$\n\nrestricted:\n \nKEYWORD bound \"Type of boundary condition to use\"\n{\n \"none\" :: \"Apply no boundary condition\"\n \"flat\" :: \"Flat (von Neumann, n grad phi = 0) boundary condition\"\n \"static\" :: \"Static (Dirichlet, dphi/dt=0) boundary condition\"\n \"radiation\" :: \"Radiation boundary condition\"\n \"robin\" :: \"Robin (phi(r) = C/r) boundary condition\"\n \"zero\" :: \"Zero (Dirichlet, phi=0) boundary condition\"\n} \"none\"\n\n", "schedule": "# Schedule definitions for thorn WaveToyCXX\n# $Header$\n\nSTORAGE: scalarevolve[3]\n\nschedule WaveToyCXX_Startup at STARTUP\n{\n LANG: C\n} \"Register banner\"\n\nschedule WaveToyCXX_InitSymBound at BASEGRID\n{\n LANG: C\n} \"Schedule symmetries\"\n\nschedule WaveToyCXX_Evolution as WaveToy_Evolution at EVOL\n{\n LANG: C\n} \"Evolution of 3D wave equation\"\n\nschedule WaveToyCXX_Boundaries as WaveToy_Boundaries at EVOL AFTER WaveToy_Evolution\n{\n LANG: C\n OPTIONS: level\n SYNC: scalarevolve\n} \"Boundaries of 3D wave equation\"\n \nschedule GROUP ApplyBCs as WaveToyCXX_ApplyBCs at EVOL after WaveToy_Boundaries\n{\n} \"Apply boundary conditions\"\n\nschedule WaveToyCXX_Boundaries as WaveToy_Boundaries at POSTRESTRICT\n{\n LANG: C\n OPTIONS: level\n SYNC: scalarevolve\n} \"Boundaries of 3D wave equation\"\n \nschedule GROUP ApplyBCs as WaveToyCXX_ApplyBCs at POSTRESTRICT after WaveToy_Boundaries\n{\n} \"Apply boundary conditions\"\n\nschedule WaveToyCXX_Boundaries as WaveToy_Boundaries at POSTRESTRICTINITIAL\n{\n LANG: C\n OPTIONS: level\n SYNC: scalarevolve\n} \"Boundaries of 3D wave equation\"\n\nschedule GROUP ApplyBCs as WaveToyCXX_ApplyBCs at POSTRESTRICTINITIAL after WaveToy_Boundaries\n{\n} \"Apply boundary conditions\"\n\nschedule WaveToyCXX_Boundaries as WaveToy_Boundaries at POST_RECOVER_VARIABLES\n{\n LANG: C\n OPTIONS: level\n SYNC: scalarevolve\n} \"Boundaries of 3D wave equation\"\n\nschedule GROUP ApplyBCs as WaveToyCXX_ApplyBCs at POST_RECOVER_VARIABLES after WaveToy_Boundaries\n{\n} \"Apply boundary conditions\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn WaveToyC\n# $Header$\n\n# Source files in this directory\nSRCS = WaveToy.cc InitSymBound.cc Startup.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusWave_WaveToyExtra.json b/CactusWave_WaveToyExtra.json index ee398aa7a907cf338d096baf6f1d18f3eb2c4441..68ee96633a21ffebaccc968f1c59c3762b502b8e 100644 --- a/CactusWave_WaveToyExtra.json +++ b/CactusWave_WaveToyExtra.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactuswave.git", "configuration": "", "interface": "# Interface definition for thorn WaveToyExtra\n# $Header$\n\nimplements: wavetoyextra\ninherits: wavetoy\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\n\nREQUIRES FUNCTION Boundary_SelectVarForBC\n", - "params": "", + "param": "# Parameter definitions for thorn WaveToyExtra\n# $Header$\n\nSHARES: wavetoy\n\nEXTENDS KEYWORD bound\n{\n \"custom\" :: \"custom boundary condition\"\n}\n\nprivate: \n\nSTRING custom_bound \"Custom boundary condition to use\"\n{\n .* :: \"Any valid boundary condition\"\n} \"\"\n\nSTRING custom_options \"Table string for custom boundary condition\"\n{\n .* :: \"Any valid table string\"\n} \"\"\n", "schedule": "# Schedule definitions for thorn WaveToyExtra\n# $Header$\n\n\nschedule WaveToyExtra_Boundary at EVOL AFTER WaveToy_Evolution BEFORE WaveToy_Boundaries\n{\n LANG: C\n} \"Additional boundary conditions for 3D wave equation\"\n\nschedule WaveToyExtra_Boundary at POSTRESTRICT BEFORE WaveToy_Boundaries\n{\n LANG: C\n} \"Additional boundary conditions for 3D wave equation\"\n \nschedule WaveToyC_Terminate at TERMINATE\n{\n LANG: C\n} \"Tidy up\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn WaveToyExtra\n# $Header$\n\n# Source files in this directory\nSRCS = Boundary.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusWave_WaveToyF77.json b/CactusWave_WaveToyF77.json index 37e23e1ec884307549f4520b3577eb3ad531d385..dc740ab656a5e6265e610f2e26e60ac77ec9e8c6 100644 --- a/CactusWave_WaveToyF77.json +++ b/CactusWave_WaveToyF77.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactuswave.git", "configuration": "# Configuration definition for thorn WaveToyF77\n# $Header$\n\nREQUIRES CartGrid3D\n", "interface": "# Interface definition for thorn WaveToyF77\n# $Header$\n\nimplements: wavetoy\ninherits: grid\n\nUSES INCLUDE: Symmetry.h\n\npublic:\n\ncctk_real scalarevolve type = GF Timelevels=3\n{\n phi\n} \"The evolved scalar field\"\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\n\nREQUIRES FUNCTION Boundary_SelectVarForBC\n", - "params": "", + "param": "# Parameter definitions for thorn WaveToyF77\n# $Header$\n\nrestricted:\n \nKEYWORD bound \"Type of boundary condition to use\"\n{\n \"none\" :: \"Apply no boundary condition\"\n \"flat\" :: \"Flat (von Neumann, n grad phi = 0) boundary condition\"\n \"static\" :: \"Static (Dirichlet, dphi/dt=0) boundary condition\"\n \"radiation\" :: \"Radiation boundary condition\"\n \"robin\" :: \"Robin (phi(r) = C/r) boundary condition\"\n \"zero\" :: \"Zero (Dirichlet, phi=0) boundary condition\"\n} \"none\"\n\n", "schedule": "# Schedule definitions for thorn WaveToy77\n# $Header$\n\nSTORAGE: scalarevolve[3]\n\nschedule WaveToyF77_Startup at STARTUP\n{\n LANG: Fortran\n} \"Register banner\"\n\nschedule WaveToyF77_InitSymBound at BASEGRID\n{\n LANG: Fortran\n} \"Schedule symmetries\"\n\nschedule WaveToyF77_Evolution as WaveToy_Evolution at EVOL\n{\n LANG: Fortran\n} \"Evolution of 3D wave equation\"\n\nschedule WaveToyF77_Boundaries as WaveToy_Boundaries at EVOL AFTER WaveToy_Evolution\n{\n LANG: Fortran\n OPTIONS: level\n SYNC: scalarevolve\n} \"Boundaries of 3D wave equation\"\n\nschedule GROUP ApplyBCs as WaveToyF7_ApplyBCs at EVOL after WaveToy_Boundaries\n{\n} \"Apply boundary conditions\"\n\nschedule WaveToyF77_Boundaries as WaveToy_Boundaries at POSTRESTRICT\n{\n LANG: Fortran\n OPTIONS: level\n SYNC: scalarevolve\n} \"Boundaries of 3D wave equation\"\n \nschedule GROUP ApplyBCs as WaveToyF7_ApplyBCs at POSTRESTRICT after WaveToy_Boundaries\n{\n} \"Apply boundary conditions\"\n\nschedule WaveToyF77_Boundaries as WaveToy_Boundaries at POSTRESTRICTINITIAL\n{\n LANG: Fortran\n OPTIONS: level\n SYNC: scalarevolve\n} \"Boundaries of 3D wave equation\"\n\nschedule GROUP ApplyBCs as WaveToyF77_ApplyBCs at POSTRESTRICTINITIAL after WaveToy_Boundaries\n{\n} \"Apply boundary conditions\"\n\nschedule WaveToyF77_Boundaries as WaveToy_Boundaries at POST_RECOVER_VARIABLES\n{\n LANG: Fortran\n OPTIONS: level\n SYNC: scalarevolve\n} \"Boundaries of 3D wave equation\"\n\nschedule GROUP ApplyBCs as WaveToyF77_ApplyBCs at POST_RECOVER_VARIABLES after WaveToy_Boundaries\n{\n} \"Apply boundary conditions\"\n", "src": { "WaveToy.F77": " /*@@\n @file WaveToy.F77\n @date \n @author Tom Goodale\n @desc\n Evolution routines for the wave equation solver\n @enddesc \n @version $Header$\n @@*/\n \n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Functions.h\"\n#include \"cctk_Parameters.h\"\n\n\n /*@@\n @routine WaveToyF77_Evolution\n @date \n @author Tom Goodale\n @desc \n Evolution for the wave equation\n @enddesc \n @calls CCTK_SyncGroup, wavetoy_boundaries\n @calledby \n @history \n \n @endhistory \n\n@@*/\n\n subroutine WaveToyF77_Evolution(CCTK_ARGUMENTS)\n\n implicit none\n\nc Declare variables in argument list\n DECLARE_CCTK_ARGUMENTS\n\n CCTK_INT, parameter :: izero = 0\n integer, parameter :: ik = kind(izero)\n\n INTEGER i,j,k\n INTEGER istart, jstart, kstart, iend, jend, kend\n CCTK_REAL dx,dy,dz,dt\n CCTK_REAL dx2,dy2,dz2,dt2\n CCTK_REAL dx2i,dy2i,dz2i\n\n CCTK_REAL factor\n\nc Set up shorthands\nc -----------------\n dx = CCTK_DELTA_SPACE(1)\n dy = CCTK_DELTA_SPACE(2)\n dz = CCTK_DELTA_SPACE(3)\n dt = CCTK_DELTA_TIME\n\n dx2 = dx*dx\n dy2 = dy*dy\n dz2 = dz*dz\n dt2 = dt*dt\n\n dx2i = 1.0/dx2\n dy2i = 1.0/dy2\n dz2i = 1.0/dz2\n\n istart = 2\n jstart = 2\n kstart = 2\n \n iend = cctk_lsh(1)-1\n jend = cctk_lsh(2)-1\n kend = cctk_lsh(3)-1\n\n factor = 2*(1 - (dt2)*(dx2i + dy2i + dz2i))\n\nc Do the evolution\nc ----------------\n do k = kstart, kend\n do j = jstart, jend\n do i = istart, iend\n \n phi(i,j,k) = factor*phi_p(i,j,k) -\n & phi_p_p(i,j,k) + (dt2) * \n & ((phi_p(i+1,j,k)+phi_p(i-1,j,k))*dx2i\n & +(phi_p(i,j+1,k)+phi_p(i,j-1,k))*dy2i\n & +(phi_p(i,j,k+1)+phi_p(i,j,k-1))*dz2i)\n\n end do\n end do\n end do\n \n return\n end \n\n\n /*@@\n @routine WaveToyF77_Boundaries\n @date \n @author Tom Goodale\n @desc \n Boundary conditions for the wave equation\n @enddesc \n @history \n \n @endhistory \n\n@@*/\n\n subroutine WaveToyF77_Boundaries(CCTK_ARGUMENTS)\n\n implicit none\n\n DECLARE_CCTK_ARGUMENTS\n DECLARE_CCTK_PARAMETERS\n DECLARE_CCTK_FUNCTIONS\n\n CCTK_INT, parameter :: izero = 0\n integer, parameter :: ik = kind(izero)\n\nc Local declarations\n CCTK_INT ierr\n\n CHARACTER*100 boundary\n INTEGER length\n\n ierr = 0\n\nc The \"bound\" parameter needs to be converted into a Fortran string.\n call CCTK_FortranString(length,bound,boundary)\n\nc Apply the outer boundary conditions\nc -----------------------------------\nc Note: In each of the following calls to Boundary_SelectVarForBC,\nc default arguments are used, so an invalid table handle of -1 can\nc be passed\n if (CCTK_EQUALS(bound,\"flat\") .or. CCTK_EQUALS(bound,\"static\") .or.\n $ CCTK_EQUALS(bound,\"radiation\") .or. CCTK_EQUALS(bound,\"robin\") .or.\n $ CCTK_EQUALS(bound,\"none\") ) then\n ierr = Boundary_SelectVarForBC(cctkGH, int(CCTK_ALL_FACES,ik), 1_ik, -1_ik,\n $ \"wavetoy::phi\", boundary)\n else if (CCTK_EQUALS(bound,\"zero\")) then\n ierr = Boundary_SelectVarForBC(cctkGH, int(CCTK_ALL_FACES,ik), 1_ik, -1_ik,\n $ \"wavetoy::phi\", \"Scalar\")\n end if\n\n if (ierr .lt. 0) then\n call CCTK_WARN(0,\"WaveToyF77_Boundaries: Error selecting boundary condition\")\n end if\n\n return\n end \n", diff --git a/CactusWave_WaveToyF90.json b/CactusWave_WaveToyF90.json index 7d541d0b1f7cf903460e10d08046b58abd761be8..d561bd03769c28032bcec051311ea8539b9eb7e4 100644 --- a/CactusWave_WaveToyF90.json +++ b/CactusWave_WaveToyF90.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactuswave.git", "configuration": "# Configuration definition for thorn CactusWave/WaveToyF90\n# $Header$\n\nREQUIRES CartGrid3D\n", "interface": "# Interface definition for thorn WaveToy90\n# $Header$\n\nimplements: wavetoy\ninherits: grid\n\nUSES INCLUDE: Symmetry.h\n\npublic:\n\ncctk_real scalarevolve type = GF Timelevels=3\n{\n phi\n} \"The evolved scalar field\"\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\n\nREQUIRES FUNCTION Boundary_SelectVarForBC\n", - "params": "", + "param": "# Parameter definitions for thorn WaveToyF90\n# $Header$\n\nrestricted:\n \nKEYWORD bound \"Type of boundary condition to use\"\n{\n \"none\" :: \"Apply no boundary condition\"\n \"flat\" :: \"Flat (von Neumann, n grad phi = 0) boundary condition\"\n \"static\" :: \"Static (Dirichlet, dphi/dt=0) boundary condition\"\n \"radiation\" :: \"Radiation boundary condition\"\n \"robin\" :: \"Robin (phi(r) = C/r) boundary condition\"\n \"zero\" :: \"Zero (Dirichlet, phi=0) boundary condition\"\n} \"none\"\n\n\n\n ", "schedule": "# Schedule definitions for thorn WaveToyF90\n# $Header$\n\nSTORAGE: scalarevolve[3]\n\nschedule WaveToyF90_Startup at STARTUP\n{\n LANG: Fortran\n} \"Register banner\"\n\nschedule WaveToyF90_InitSymBound at BASEGRID\n{\n LANG: Fortran\n} \"Schedule symmetries\"\n\nschedule WaveToyF90_Evolution as WaveToy_Evolution at EVOL\n{\n LANG: Fortran\n} \"Evolution of 3D wave equation\"\n\nschedule WaveToyF90_Boundaries as WaveToy_Boundaries at EVOL AFTER WaveToy_Evolution\n{\n LANG: Fortran\n OPTIONS: level\n SYNC: scalarevolve\n} \"Boundaries of 3D wave equation\"\n\nschedule GROUP ApplyBCs as WaveToyF90_ApplyBCs at EVOL after WaveToy_Boundaries\n{\n} \"Apply boundary conditions\"\n\nschedule WaveToyF90_Boundaries as WaveToy_Boundaries at POSTRESTRICT\n{\n LANG: Fortran\n OPTIONS: level\n SYNC: scalarevolve\n} \"Boundaries of 3D wave equation\"\n\nschedule GROUP ApplyBCs as WaveToyF90_ApplyBCs at POSTRESTRICT after WaveToy_Boundaries\n{\n} \"Apply boundary conditions\"\n\nschedule WaveToyF90_Boundaries as WaveToy_Boundaries at POSTRESTRICTINITIAL\n{\n LANG: Fortran\n OPTIONS: level\n SYNC: scalarevolve\n} \"Boundaries of 3D wave equation\"\n\nschedule GROUP ApplyBCs as WaveToyF90_ApplyBCs at POSTRESTRICTINITIAL after WaveToy_Boundaries\n{\n} \"Apply boundary conditions\"\n\nschedule WaveToyF90_Boundaries as WaveToy_Boundaries at POST_RECOVER_VARIABLES\n{\n LANG: Fortran\n OPTIONS: level\n SYNC: scalarevolve\n} \"Boundaries of 3D wave equation\"\n\nschedule GROUP ApplyBCs as WaveToyF90_ApplyBCs at POST_RECOVER_VARIABLES after WaveToy_Boundaries\n{\n} \"Apply boundary conditions\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn WaveToy\n# $Header$\n\n# Source files in this directory\nSRCS = InitSymBound.F WaveToy.F Startup.F\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/CactusWave_WaveToyFreeF90.json b/CactusWave_WaveToyFreeF90.json index 9a1dbf6bbb86f1ca45a435610de271df76222762..e790df1a666fa519b580346d0fa2daf191434719 100644 --- a/CactusWave_WaveToyFreeF90.json +++ b/CactusWave_WaveToyFreeF90.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/cactuswave.git", "configuration": "# Configuration definition for thorn CactusWave/WaveToyFreeF90\n# $Header$\n\nREQUIRES CartGrid3D\n", "interface": "# Interface definition for thorn WaveToyFreeF90\n# $Header$\n\nimplements: wavetoy\ninherits: grid\n\nUSES INCLUDE: Symmetry.h\n\npublic:\n\ncctk_real scalarevolve type=GF Timelevels=3\n{\n phi\n} \"The evolved scalar field\"\n\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\n\nREQUIRES FUNCTION Boundary_SelectVarForBC\n", - "params": "", + "param": "# Parameter definitions for thorn WaveToyFreeF90\n# $Header$\n\nrestricted:\n \nKEYWORD bound \"Type of boundary condition to use\"\n{\n \"none\" :: \"Apply no boundary condition\"\n \"flat\" :: \"Flat (von Neumann, n grad phi = 0) boundary condition\"\n \"static\" :: \"Static (Dirichlet, dphi/dt=0) boundary condition\"\n \"radiation\" :: \"Radiation boundary condition\"\n \"robin\" :: \"Robin (phi(r) = C/r) boundary condition\"\n \"zero\" :: \"Zero (Dirichlet, phi=0) boundary condition\"\n} \"none\"\n\n", "schedule": "# Schedule definitions for thorn WaveToyFreeF90\n# $Header$\n\nSTORAGE: scalarevolve[3]\n\nschedule WaveToyFreeF90_Startup at STARTUP\n{\n LANG: Fortran\n} \"Register banner\"\n\nschedule WaveToyFreeF90_InitSymBound at BASEGRID\n{\n LANG: Fortran\n} \"Schedule symmetries\"\n\nschedule WaveToyFreeF90_Evolution as WaveToy_Evolution at EVOL\n{\n LANG: Fortran\n SYNC: scalarevolve\n} \"Evolution of 3D wave equation\"\n\nschedule WaveToyFreeF90_Boundaries as WaveToy_Boundaries at EVOL AFTER WaveToy_Evolution\n{\n LANG: Fortran\n OPTIONS: level\n} \"Boundaries of 3D wave equation\"\n\nschedule GROUP ApplyBCs as WaveToyFreeF90_ApplyBCs at EVOL after WaveToy_Boundaries\n{\n} \"Apply boundary conditions\"\n \nschedule WaveToyFreeF90_Boundaries as WaveToy_Boundaries at POSTRESTRICT\n{\n LANG: Fortran\n OPTIONS: level\n} \"Boundaries of 3D wave equation\"\n\nschedule GROUP ApplyBCs as WaveToyFreeF90_ApplyBCs at POSTRESTRICT after WaveToy_Boundaries\n{\n} \"Apply boundary conditions\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn WaveToy\n# $Header$\n\n# Source files in this directory\nSRCS = InitSymBound.F90 WaveToy.F90 Startup.F90\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/Carpet_Carpet.json b/Carpet_Carpet.json index 6abd8c1f66eb890cb560d082fae636d8af79f07a..1c8827bcaac3321f938bda260352483e5e58de77 100644 --- a/Carpet_Carpet.json +++ b/Carpet_Carpet.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "# Configuration definitions for thorn Carpet\n\nPROVIDES Carpet\n{\n}\n\nREQUIRES CarpetLib IOUtil MPI Timers\n\nOPTIONAL LoopControl\n{\n}\n", "interface": "# Interface definition for thorn Carpet\n\nIMPLEMENTS: Driver\n\ninclude header: carpet_public.hh in carpet.hh\ninclude header: carpet_public.h in carpet.h\n\nuses include header: Requirements.hh\n\nuses include header: nompi.h\n\nuses include header: loopcontrol.h\n\nuses include header: CactusTimerSet.hh\nuses include header: Timer.hh\nuses include header: TimerTree.hh\n\nuses include header: mpi_string.hh\n\nuses include header: cacheinfo.hh\nuses include header: defs.hh\nuses include header: dist.hh\nuses include header: typecase.hh\nuses include header: typeprops.hh\n\nuses include header: balance.hh\nuses include header: bbox.hh\nuses include header: bboxset.hh\nuses include header: fulltree.hh\nuses include header: region.hh\nuses include header: vect.hh\n\nuses include header: data.hh\nuses include header: gdata.hh\n\nuses include header: dh.hh\nuses include header: gf.hh\nuses include header: ggf.hh\nuses include header: gh.hh\nuses include header: th.hh\n\nuses include header: operators.hh\n\n\n\n# Get access to communicators\nCCTK_POINTER_TO_CONST \\\nFUNCTION GetMPICommUniverse (CCTK_POINTER_TO_CONST IN cctkGH)\nPROVIDES FUNCTION GetMPICommUniverse WITH Carpet_GetMPICommUniverse LANGUAGE C\n\nCCTK_POINTER_TO_CONST \\\nFUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH)\nPROVIDES FUNCTION GetMPICommWorld WITH Carpet_GetMPICommWorld LANGUAGE C\n\n\n# Get access to process->host mapping\nCCTK_INT FUNCTION CCTK_MyHost(CCTK_POINTER_TO_CONST IN cctkGH)\nCCTK_INT FUNCTION CCTK_nHosts(CCTK_POINTER_TO_CONST IN cctkGH)\nCCTK_INT FUNCTION CCTK_nProcsOnHost(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN host)\nCCTK_INT FUNCTION CCTK_ProcsOnHost(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN host, CCTK_INT ARRAY OUT procs, CCTK_INT IN nprocs)\nPROVIDES FUNCTION CCTK_MyHost WITH Carpet_MyHost LANGUAGE C\nPROVIDES FUNCTION CCTK_nHosts WITH Carpet_nHosts LANGUAGE C\nPROVIDES FUNCTION CCTK_nProcsOnHost WITH Carpet_nProcsOnHost LANGUAGE C\nPROVIDES FUNCTION CCTK_ProcsOnHost WITH Carpet_ProcsOnHost LANGUAGE C\n\n\n\n# Register and unregister routines which are called before and after\n# every scheduled routine\nCCTK_INT \\\nFUNCTION RegisterScheduleWrapper \\\n (CCTK_INT IN CCTK_FPOINTER func_before (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_POINTER IN function, \\\n CCTK_POINTER IN attribute, \\\n CCTK_POINTER IN data), \\\n CCTK_INT IN CCTK_FPOINTER func_after (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_POINTER IN function, \\\n CCTK_POINTER IN attribute, \\\n CCTK_POINTER IN data))\nCCTK_INT \\\nFUNCTION UnRegisterScheduleWrapper \\\n (CCTK_INT IN CCTK_FPOINTER func_before (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_POINTER IN function, \\\n CCTK_POINTER IN attribute, \\\n CCTK_POINTER IN data), \\\n CCTK_INT IN CCTK_FPOINTER func_after (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_POINTER IN function, \\\n CCTK_POINTER IN attribute, \\\n CCTK_POINTER IN data))\nPROVIDES FUNCTION RegisterScheduleWrapper \\\n WITH Carpet_RegisterScheduleWrapper \\\n LANGUAGE C\nPROVIDES FUNCTION UnRegisterScheduleWrapper \\\n WITH Carpet_UnRegisterScheduleWrapper \\\n LANGUAGE C\n\n\n\n# Provide the function to en-/disable prolongation\nCCTK_INT FUNCTION EnableProlongating(CCTK_INT IN flag)\nPROVIDES FUNCTION EnableProlongating WITH CarpetEnableProlongating LANGUAGE C\n\nCCTK_INT FUNCTION QueryProlongating()\nPROVIDES FUNCTION QueryProlongating WITH CarpetQueryProlongating LANGUAGE C\n\n\n\n# The number of time integrator substeps\nCCTK_INT FUNCTION MoLNumIntegratorSubsteps ()\nUSES FUNCTION MoLNumIntegratorSubsteps\n\n\n\n\n# The symmetry boundaries\nCCTK_INT FUNCTION GetSymmetryBoundaries \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY symbnd)\nUSES FUNCTION GetSymmetryBoundaries\n\n\n\n# The location of the boundary points\nCCTK_INT FUNCTION GetBoundarySpecification \\\n (CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\n# The overall size of the domain\nCCTK_INT FUNCTION GetDomainSpecification \\\n (CCTK_INT IN size, \\\n CCTK_REAL OUT ARRAY physical_min, \\\n CCTK_REAL OUT ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL OUT ARRAY spacing)\nUSES FUNCTION GetDomainSpecification\n\n# Conversion between boundary types\nCCTK_INT FUNCTION ConvertFromPhysicalBoundary \\\n (CCTK_INT IN size, \\\n CCTK_REAL IN ARRAY physical_min, \\\n CCTK_REAL IN ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL IN ARRAY spacing)\nUSES FUNCTION ConvertFromPhysicalBoundary\n\nCCTK_INT FUNCTION ConvertFromExteriorBoundary \\\n (CCTK_INT IN size, \\\n CCTK_REAL OUT ARRAY physical_min, \\\n CCTK_REAL OUT ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL IN ARRAY exterior_min, \\\n CCTK_REAL IN ARRAY exterior_max, \\\n CCTK_REAL IN ARRAY spacing)\nUSES FUNCTION ConvertFromExteriorBoundary\n\n\n\n# The setup of the system\nCCTK_INT FUNCTION MultiPatch_GetSystemSpecification \\\n (CCTK_INT OUT maps)\nUSES FUNCTION MultiPatch_GetSystemSpecification\n\n# The location of the boundary points\nCCTK_INT FUNCTION MultiPatch_GetBoundarySpecification \\\n (CCTK_INT IN map, \\\n CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION MultiPatch_GetBoundarySpecification\n\n# The overall size of the domain\nCCTK_INT FUNCTION MultiPatch_GetDomainSpecification \\\n (CCTK_INT IN map, \\\n CCTK_INT IN size, \\\n CCTK_REAL OUT ARRAY physical_min, \\\n CCTK_REAL OUT ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL OUT ARRAY spacing)\nUSES FUNCTION MultiPatch_GetDomainSpecification\n\n# Conversion between boundary types\nCCTK_INT FUNCTION MultiPatch_ConvertFromPhysicalBoundary \\\n (CCTK_INT IN map, \\\n CCTK_INT IN size, \\\n CCTK_REAL IN ARRAY physical_min, \\\n CCTK_REAL IN ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL IN ARRAY spacing)\nUSES FUNCTION MultiPatch_ConvertFromPhysicalBoundary\n\n# Physical boundary condtitions\nCCTK_INT FUNCTION\n Boundary_SelectVarForBCI\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT IN faces,\n CCTK_INT IN width,\n CCTK_INT IN table_handle,\n CCTK_INT IN var_index,\n CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectVarForBCI\n\nCCTK_POINTER_TO_CONST FUNCTION\n Boundary_QueryRegisteredPhysicalBC\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_QueryRegisteredPhysicalBC\n\n\nCCTK_INT FUNCTION Accelerator_Cycle \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION Accelerator_Cycle\n\nCCTK_INT FUNCTION Accelerator_PreCallFunction \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_POINTER_TO_CONST IN attribute)\nUSES FUNCTION Accelerator_PreCallFunction\n\nCCTK_INT FUNCTION Accelerator_PostCallFunction \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_POINTER_TO_CONST IN attribute)\nUSES FUNCTION Accelerator_PostCallFunction\n\nCCTK_INT FUNCTION Accelerator_PreSync \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT ARRAY IN groups, \\\n CCTK_INT IN ngroups)\nUSES FUNCTION Accelerator_PreSync\n\nCCTK_INT FUNCTION Accelerator_PostSync \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT ARRAY IN groups, \\\n CCTK_INT IN ngroups)\nUSES FUNCTION Accelerator_PostSync\n\nCCTK_INT FUNCTION Accelerator_NotifyDataModified \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT ARRAY IN variables, \\\n CCTK_INT ARRAY IN rls, \\\n CCTK_INT ARRAY IN tls, \\\n CCTK_INT IN nvariables, \\\n CCTK_INT IN on_device)\nUSES FUNCTION Accelerator_NotifyDataModified\n\nCCTK_INT FUNCTION Accelerator_RequireValidData \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT ARRAY IN variables, \\\n CCTK_INT ARRAY IN rls, \\\n CCTK_INT ARRAY IN tls, \\\n CCTK_INT IN nvariables, \\\n CCTK_INT IN on_device)\nUSES FUNCTION Accelerator_RequireValidData\n\nCCTK_INT FUNCTION Accelerator_RequireInvalidData \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT ARRAY IN variables, \\\n CCTK_INT ARRAY IN rls, \\\n CCTK_INT ARRAY IN tls, \\\n CCTK_INT IN nvariables, \\\n CCTK_INT IN on_device)\nUSES FUNCTION Accelerator_RequireInvalidData\n\n\n\n# Access coordinate information (on the coarse level)\nCCTK_INT FUNCTION GetCoordRange \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN m, \\\n CCTK_INT IN ml, \\\n CCTK_INT IN size, \\\n CCTK_INT ARRAY OUT gsh, \\\n CCTK_REAL ARRAY OUT lower, \\\n CCTK_REAL ARRAY OUT upper, \\\n CCTK_REAL ARRAY OUT delta)\nPROVIDES FUNCTION GetCoordRange WITH Carpet_GetCoordRange LANGUAGE C\n\n\n\n# Get current refinement level and number of refinement levels\nCCTK_INT FUNCTION \\\n GetRegriddingEpoch \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nPROVIDES FUNCTION GetRegriddingEpoch \\\n WITH Carpet_GetRegriddingEpoch \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n GetRegriddingEpochs \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT ARRAY OUT epochs)\nPROVIDES FUNCTION GetRegriddingEpochs \\\n WITH Carpet_GetRegriddingEpochs \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n GetRefinementLevel \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nPROVIDES FUNCTION GetRefinementLevel \\\n WITH Carpet_GetRefinementLevel \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n GetRefinementLevels \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nPROVIDES FUNCTION GetRefinementLevels \\\n WITH Carpet_GetRefinementLevels \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n GetMaxRefinementLevels \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nPROVIDES FUNCTION GetMaxRefinementLevels \\\n WITH Carpet_GetMaxRefinementLevels \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n GetLocalComponent \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nPROVIDES FUNCTION GetLocalComponent \\\n WITH Carpet_GetLocalComponent \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n GetLocalComponents \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nPROVIDES FUNCTION GetLocalComponents \\\n WITH Carpet_GetLocalComponents \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n GetMap \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nPROVIDES FUNCTION GetMap \\\n WITH Carpet_GetMap \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n GetMaps \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nPROVIDES FUNCTION GetMaps \\\n WITH Carpet_GetMaps \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n GetTimeLevel \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nPROVIDES FUNCTION GetTimeLevel \\\n WITH Carpet_GetTimeLevel \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n GetTimeLevelOffset \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nPROVIDES FUNCTION GetTimeLevelOffset \\\n WITH Carpet_GetTimeLevelOffset \\\n LANGUAGE C\n\n# Presync functions for selecting boundary conditions.\n\nCCTK_INT FUNCTION\n Driver_SelectGroupForBC\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT IN faces,\n CCTK_INT IN width,\n CCTK_INT IN table_handle,\n CCTK_STRING IN group_name,\n CCTK_STRING IN bc_name)\nPROVIDES FUNCTION Driver_SelectGroupForBC WITH\n Carpet_SelectGroupForBC LANGUAGE C\n\nCCTK_INT FUNCTION\n Driver_SelectVarForBC\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT IN faces,\n CCTK_INT IN width,\n CCTK_INT IN table_handle,\n CCTK_STRING IN var_name,\n CCTK_STRING IN bc_name)\nPROVIDES FUNCTION Driver_SelectVarForBC WITH\n Carpet_SelectVarForBC LANGUAGE C\n\nCCTK_INT FUNCTION\n Driver_FilterOutVarForBCI\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT IN var_index)\nPROVIDES FUNCTION Driver_FilterOutVarForBCI WITH\n Carpet_FilterOutVarForBCI LANGUAGE C\n\n# Functions for accessing and changing valid region\nvoid FUNCTION\n Driver_SetValidRegion\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT IN vi,\n CCTK_INT IN tl,\n CCTK_INT IN wh)\nPROVIDES FUNCTION Driver_SetValidRegion WITH\n Carpet_SetValidRegion LANGUAGE C\n\nCCTK_INT FUNCTION\n Driver_GetValidRegion\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT IN vi,\n CCTK_INT IN tl)\nPROVIDES FUNCTION Driver_GetValidRegion WITH\n Carpet_GetValidRegion LANGUAGE C\n\nCCTK_INT FUNCTION Driver_RequireValidData\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT ARRAY IN variables,\n CCTK_INT ARRAY IN tls,\n CCTK_INT IN nvariables,\n CCTK_INT ARRAY IN where)\nPROVIDES FUNCTION Driver_RequireValidData WITH\n Carpet_RequireValidData LANGUAGE C\n\nCCTK_INT FUNCTION Driver_NotifyDataModified\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT ARRAY IN variables,\n CCTK_INT ARRAY IN tls,\n CCTK_INT IN nvariables,\n CCTK_INT ARRAY IN where)\nPROVIDES FUNCTION Driver_NotifyDataModified WITH\n Carpet_NotifyDataModified LANGUAGE C\n\n# Get pointer to grid variable for a specific map and refinement level\nCCTK_POINTER FUNCTION \\\n VarDataPtrI \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN map, \\\n CCTK_INT IN reflevel, \\\n CCTK_INT IN component, \\\n CCTK_INT IN timelevel, \\\n CCTK_INT IN varindex)\nPROVIDES FUNCTION VarDataPtrI \\\n WITH Carpet_VarDataPtrI \\\n LANGUAGE C\n\n\n\n# The true prototype of the routine below:\n# int Carpet_Regrid (const cGH * cctkGH,\n# gh::rregs * superregss,\n# gh::mregs * regsss,\n# int force);\nCCTK_INT FUNCTION Carpet_Regrid (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_POINTER IN superregss, \\\n CCTK_POINTER IN regsss, \\\n CCTK_INT IN force)\nUSES FUNCTION Carpet_Regrid\n\n# The true prototype of the routine below:\n# int Carpet_Regrid (const cGH * cctkGH,\n# vector * superregsss,\n# vector * regssss,\n# int force);\nCCTK_INT FUNCTION Carpet_RegridMaps (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_POINTER IN superregsss, \\\n CCTK_POINTER IN regssss, \\\n CCTK_INT IN force)\nUSES FUNCTION Carpet_RegridMaps\n\n\n\n# function to check whether existing output files should be truncated or not\nCCTK_INT FUNCTION IO_TruncateOutputFiles \\\n (CCTK_POINTER_TO_CONST IN GH)\n\nREQUIRES FUNCTION IO_TruncateOutputFiles\n\n# TODO: make this somehow public, e.g. by moving it into its own thorn\n\nCCTK_INT point_classification TYPE=gf TAGS='checkpoint=\"no\" prolongation=\"none\"'\n{\n point_class\n # negative: needs to be set explicitly (e.g. boundary)\n # zero: unused (e.g. ghost)\n # positive: needs to be evolved\n # -1: boundary point (needs to be set explicitly)\n # 0: unused (e.g. ghost point, or restriction target)\n # n=1..N: evolved, used for integrator substeps i<=n\n # (i=N..1, counting backwards; see MoL documentation) \n # i.e.: n=1: used between time steps (i.e., should be visualised)\n # n>1: used only while time stepping (e.g. buffer zones)\n} \"Grid point classification\"\n\nCCTK_INT carpet_unusedpoints_mask TYPE=GF tags='Prolongation=\"none\"' \"mask which is set !=0 for points which do not influence future evolution, assuming appropriate regridding\"\n\n\n\nCCTK_REAL timing TAGS='checkpoint=\"no\"'\n{\n physical_time_per_hour\n current_physical_time_per_hour\n \n time_total time_evolution time_computing time_communicating time_io\n \n evolution_steps_count\n \n local_grid_points_per_second total_grid_points_per_second\n local_grid_point_updates_count total_grid_point_updates_count\n local_interior_points_per_second total_interior_points_per_second\n local_interior_point_updates_count total_interior_point_updates_count\n \n io_per_second\n io_bytes_per_second io_bytes_ascii_per_second io_bytes_binary_per_second\n io_count\n io_bytes_count io_bytes_ascii_count io_bytes_binary_count\n \n comm_per_second\n comm_bytes_per_second\n comm_count\n comm_bytes_count\n \n time_levels\n\n # the number of seconds since the Unix epoch, 1970-01-01 00:00:00 +0000 (UTC)\n current_walltime\n\n syncs_count\n} \"Physical timing information\"\n\nCCTK_REAL timing_procs TYPE=array DIM=1 SIZE=1 DISTRIB=constant TAGS='checkpoint=\"no\"'\n{\n grid_points_per_second\n grid_point_updates_count\n interior_points_per_second\n interior_point_updates_count\n} \"Per-processor timing information\"\n\nCCTK_REAL timing_levels TYPE=array DIM=1 SIZE=max_refinement_levels DISTRIB=constant TAGS='checkpoint=\"no\"'\n{\n time_level time_level_count\n} \"Per-level timing information\"\n\nCCTK_REAL memory_procs TYPE=array DIM=1 SIZE=1 DISTRIB=CONSTANT TAGS='checkpoint=\"no\"'\n{\n metadata\n grid_structure\n grid_arrays\n grid_functions\n} \"Memory usage information\"\n", - "params": "", + "param": "# Parameter definitions for thorn Carpet\n\nshares: Cactus\n\nUSES BOOLEAN terminate_next\nUSES KEYWORD terminate\nUSES CCTK_INT cctk_itlast\nUSES CCTK_REAL cctk_initial_time\nUSES CCTK_REAL cctk_final_time\nUSES CCTK_REAL max_runtime \nUSES KEYWORD presync_mode\n\n\nshares: InitBase\n\nUSES KEYWORD initial_data_setup_method\n\n\nshares: IO\n\nUSES STRING out_dir\n\n\nshares: CarpetLib\n\nUSES BOOLEAN use_higher_order_restriction\nUSES INT restriction_order_space\n\n\nprivate:\n\nBOOLEAN domain_from_coordbase \"Use the domain description from CoordBase\"\n{\n} \"no\"\n\nBOOLEAN domain_from_multipatch \"Use the domain description from MultiPatch\"\n{\n} \"no\"\n\n\n\nCCTK_INT global_nx \"Grid size in x direction\" STEERABLE=recover\n{\n 0:* :: \"must be nonnegative\"\n} 10\n\nCCTK_INT global_ny \"Grid size in y direction\" STEERABLE=recover\n{\n 0:* :: \"must be nonnegative\"\n} 10\n\nCCTK_INT global_nz \"Grid size in z direction\" STEERABLE=recover\n{\n 0:* :: \"must be nonnegative\"\n} 10\n\nCCTK_INT global_nsize \"Grid size in each spatial direction\" STEERABLE=recover\n{\n 0:* :: \"must be nonnegative\"\n -1 :: \"use the per-dimension parameters\"\n} -1\n\n\n\nCCTK_INT ghost_size_x \"Ghost zones in x direction\"\n{\n 0:* :: \"must be nonnegative\"\n} 1\n\nCCTK_INT ghost_size_y \"Ghost zones in y direction\"\n{\n 0:* :: \"must be nonnegative\"\n} 1\n\nCCTK_INT ghost_size_z \"Ghost zones in z direction\"\n{\n 0:* :: \"must be nonnegative\"\n} 1\n\nCCTK_INT ghost_size \"Ghost zones in each spatial direction\"\n{\n 0:* :: \"must be nonnegative\"\n -1 :: \"use the per-dimension parameters\"\n} -1\n\nSTRING ghost_sizes \"Number of ghost zones for each refinement level\"\n{\n \"^$\" :: \"Use the value of ghost_size or ghost_size_[xyz]\"\n \"^[[:space:]]*\\[[[:space:]]*[[:digit:]]+[[:space:]]*(,[[:space:]]*[[:digit:]]+[[:space:]]*)*\\][[:space:]]*$\" :: \"[ , ... ]\"\n} \"\"\n\n\n\nrestricted:\n\n# Carpet ignores all periodic* parameters and aborts in ParamCheck if any is\n# changed to \"yes\"\nBOOLEAN periodic \"do not use this parameter\"\n{\n} \"no\"\n\nBOOLEAN periodic_x \"do not use this parameter\"\n{\n} \"yes\"\n\nBOOLEAN periodic_y \"do not use this parameter\"\n{\n} \"yes\"\n\nBOOLEAN periodic_z \"do not use this parameter\"\n{\n} \"yes\"\n\n\n\nprivate:\n\nKEYWORD refinement_centering \"Centering\"\n{\n \"vertex\" :: \"use a vertex centred grid structure\"\n \"cell\" :: \"use a cell centred grid structure\"\n} \"vertex\"\n\nKEYWORD eno_interpolation_type \"What is represented by values in cells DEPRECATED\"\n{\n \"samples\" :: \"grid values a sample values of the solution\"\n} \"samples\"\n\nCCTK_INT max_refinement_levels \"Maximum number of refinement levels (including the base level)\"\n{\n 1:* :: \"must be positive\"\n} 1\n\nCCTK_INT max_timelevels \"Maximum number of time levels (including the current time level)\"\n{\n -1 :: \"Set automatically to prolonation_order_time+1\"\n 1:* :: \"Set this explicitly\"\n} -1\n\nCCTK_INT refinement_factor \"Refinement factor\"\n{\n 1:* :: \"must be positive\"\n} 2\n\nSTRING space_refinement_factors \"Spatial refinement factors over the coarsest level\"\n{\n \"^$\" :: \"Use the value of refinement_factor\"\n # V = [SDS(,SDS)*]\n # L = [SVS(,SVS)*]\n # = [S[SDS(,SDS)*]S(,S[SDS(,SDS)*]S)*]\n \"^[[:space:]]*\\[[[:space:]]*\\[[[:space:]]*[[:digit:]]+[[:space:]]*(,[[:space:]]*[[:digit:]]+[[:space:]]*)*\\][[:space:]]*(,[[:space:]]*\\[[[:space:]]*[[:digit:]]+[[:space:]]*(,[[:space:]]*[[:digit:]]+[[:space:]]*)*\\][[:space:]]*)*\\][[:space:]]*$\" :: \"[ [,,], ... ]\"\n} \"\"\n\nSTRING time_refinement_factors \"Temporal refinement factors over the coarsest level\"\n{\n \"^$\" :: \"Use the value of refinement_factor\"\n # L = [SDS(,SDS)*]\n \"^[[:space:]]*\\[[[:space:]]*[[:digit:]]+[[:space:]]*(,[[:space:]]*[[:digit:]]+[[:space:]]*)*\\][[:space:]]*$\" :: \"[ , ... ]\"\n} \"\"\n\nBOOLEAN refine_timestep \"Correct Time::dtfac for spacings on finer grids\"\n{\n} \"no\"\n\n\n\nCCTK_INT convergence_level \"Convergence level\"\n{\n *:* :: \"negative for finer, positive for coarser resolutions\"\n} 0\n\nCCTK_INT num_convergence_levels \"Number of convergence levels (including the base level)\"\n{\n 1:* :: \"must be positive\"\n} 1\n\nCCTK_INT convergence_factor \"Multigrid factor\"\n{\n 1:* :: \"must be positive\"\n} 2\n\n\n\nCCTK_INT num_maps \"Number of maps\"\n{\n 1:* :: \"\"\n} 1\n\n\n\nSTRING model \"Model name for multi-model simulations -- the model name is used to distribute the processors onto the models\"\n{\n \".+\" :: \"\"\n} \"world\"\n\n\n\nCCTK_INT prolongation_order_space \"Order of prolongation operator in space\" STEERABLE=recover\n{\n 0:* :: \"vertex centred orders must be odd\"\n} 1\n\nSTRING prolongation_orders_space \"Order of prolongation operator in space for each refinement level\" STEERABLE=recover\n{\n \"^$\" :: \"Use the value of prolongation_order_space\"\n \"^[[:space:]]*\\[[[:space:]]*[[:digit:]]+[[:space:]]*(,[[:space:]]*[[:digit:]]+[[:space:]]*)*\\][[:space:]]*$\" :: \"[ , ... ]\"\n} \"\"\n\nCCTK_INT prolongation_order_time \"Order of prolongation operator in time\" STEERABLE=recover\n{\n 0:* :: \"\"\n} 1\n\n\n\nBOOLEAN use_buffer_zones \"Use buffer zones\"\n{\n} \"no\"\n\nCCTK_INT additional_buffer_zones \"Additional buffer zones\"\n{\n *:* :: \"\"\n} 0\n\nBOOLEAN use_overlap_zones \"Use overlap zones\"\n{\n} \"no\"\n\nCCTK_INT additional_overlap_zones \"Additional overlap zones\"\n{\n *:* :: \"\"\n} 0\n\nBOOLEAN use_tapered_grids \"Use tapered grids, avoiding time interpolation during evolution\"\n{\n} \"no\"\n\nCCTK_INT num_integrator_substeps \"Number of substeps of the time integrator\"\n{\n -1: :: \"Call MoLNumIntegratorSubsteps\"\n 0:* :: \"\"\n} -1\n\n\n\nBOOLEAN sync_during_time_integration \"Synchronise during time integration, even when prolongation is switched off\"\n{\n} \"yes\"\n\n\n\nCCTK_STRING base_extents \"Extents of base grid components, in grid point units of the finest level\"\n{\n \"^$\" :: \"leave empty for one grid component covering the whole region (default)\"\n\n# We want the string to contain a list of bboxes. Each bbox contains\n# three vectors specifying the lower bound, upper bound, and stride.\n# (The upper bound is inclusive. All values are nonnegative integers.)\n# The syntax for vectors, bboxes, and lists is described below.\n# All spaces are optional.\n\n# The () parentheses and [] brackets are literals.\n# The {} braces are used for grouping.\n# If you put everything together, you get the tapeworm below.\n# There should be a way to define abbreviations in regexps!\n# Having #defines in param.ccl files would help a lot.\n# VECT := \" [ 0 , 0 , 0 ]\"\n# BBOX := \" ( VECT : VECT : VECT )\"\n# LIST := \" [ {{ BBOX }* BBOX}? ]\"\n\n# Almost human readable explanation follows.\n# The specification is hierarchical.\n\n# The following definitions are generic:\n# VECT3(x) := \"[ x, x, x ]\"\n# three x, separated by commas, enclosed in square brackets\n# BBOX3(x) := \"( x : x : x )\"\n# three x, separated by colons, enclosed in round parentheses\n# LIST(x) := \"[ {{ x, }* x}? ]\"\n# zero or more x, separated by commas, enclosed in square brackets\n\n# A domain is built up as follows:\n# REGION := BBOX3(VECT3(double))\n# DOMAIN := LIST(REGION)\n\n \"^[[:space:]]*\\[(([[:space:]]*\\([[:space:]]*\\[[[:space:]]*[[:digit:]]+[[:space:]]*,[[:space:]]*[[:digit:]]+[[:space:]]*,[[:space:]]*[[:digit:]]+[[:space:]]*\\][[:space:]]*:[[:space:]]*\\[[[:space:]]*[[:digit:]]+[[:space:]]*,[[:space:]]*[[:digit:]]+[[:space:]]*,[[:space:]]*[[:digit:]]+[[:space:]]*\\][[:space:]]*:[[:space:]]*\\[[[:space:]]*[[:digit:]]+[[:space:]]*,[[:space:]]*[[:digit:]]+[[:space:]]*,[[:space:]]*[[:digit:]]+[[:space:]]*\\][[:space:]]*\\)[[:space:]]*,)*[[:space:]]*\\([[:space:]]*\\[[[:space:]]*[[:digit:]]+[[:space:]]*,[[:space:]]*[[:digit:]]+[[:space:]]*,[[:space:]]*[[:digit:]]+[[:space:]]*\\][[:space:]]*:[[:space:]]*\\[[[:space:]]*[[:digit:]]+[[:space:]]*,[[:space:]]*[[:digit:]]+[[:space:]]*,[[:space:]]*[[:digit:]]+[[:space:]]*\\][[:space:]]*:[[:space:]]*\\[[[:space:]]*[[:digit:]]+[[:space:]]*,[[:space:]]*[[:digit:]]+[[:space:]]*,[[:space:]]*[[:digit:]]+[[:space:]]*\\][[:space:]]*\\))?[[:space:]]*\\][[:space:]]*$\" :: \"[ ([,,]:[,,]:[,,]), ... ]\"\n} \"\"\n\nCCTK_STRING base_outerbounds \"Outer boundaries of base grid components\"\n{\n \"^$\" :: \"leave empty for using the default, which depends on cctk_gsh\"\n\n# See above for an explanation of this syntax, and of the tapeworm below.\n# Each vector element is 0 or 1,\n# where 0 is handled by synchronisation or prolongation,\n# and 1 stands for a user-supplied (\"outer\") boundary condition.\n\n# BND := \" [ 0 , 0 ]\"\n# VECT := \" [ BND , BND , BND ]\"\n# LIST := \" [{{VECT ,}*VECT}? ]\"\n\n# Almost human readable explanation follows.\n# The specification is hierarchical.\n\n# The following definitions are generic:\n# VECT2(x) := \"[ x, x ]\"\n# two x, separated by commas, enclosed in square brackets\n# VECT3(x) := \"[ x, x, x ]\"\n# three x, separated by commas, enclosed in square brackets\n# LIST(x) := \"[ {{ x, }* x}? ]\"\n# zero or more x, separated by commas, enclosed in square brackets\n\n# A domain is built up as follows:\n# REGION := VECT3(VECT2(double))\n# DOMAIN := LIST(REGION)\n\n \"^[[:space:]]*\\[(([[:space:]]*\\[[[:space:]]*\\[[[:space:]]*[[:digit:]]+[[:space:]]*,[[:space:]]*[[:digit:]]+[[:space:]]*\\][[:space:]]*,[[:space:]]*\\[[[:space:]]*[[:digit:]]+[[:space:]]*,[[:space:]]*[[:digit:]]+[[:space:]]*\\][[:space:]]*,[[:space:]]*\\[[[:space:]]*[[:digit:]]+[[:space:]]*,[[:space:]]*[[:digit:]]+[[:space:]]*\\][[:space:]]*\\][[:space:]]*,)*[[:space:]]*\\[[[:space:]]*\\[[[:space:]]*[[:digit:]]+[[:space:]]*,[[:space:]]*[[:digit:]]+[[:space:]]*\\][[:space:]]*,[[:space:]]*\\[[[:space:]]*[[:digit:]]+[[:space:]]*,[[:space:]]*[[:digit:]]+[[:space:]]*\\][[:space:]]*,[[:space:]]*\\[[[:space:]]*[[:digit:]]+[[:space:]]*,[[:space:]]*[[:digit:]]+[[:space:]]*\\][[:space:]]*\\])?[[:space:]]*\\][[:space:]]*$\" :: \"[ [ [,], [,], [,] ], ... ]\"\n} \"\"\n\n\n\nBOOLEAN enable_all_storage \"Enable storage for all grid functions\" STEERABLE=recover\n{\n} \"no\"\n\nBOOLEAN enable_no_storage \"Exit before beginning to enable storage for grid functions\" STEERABLE=recover\n{\n} \"no\"\n\n\n\nBOOLEAN poison_new_timelevels \"Try to catch uninitialised grid elements by setting new timelevels to values that will catch your attention\" STEERABLE=always\n{\n} \"yes\"\n\nBOOLEAN check_for_poison \"Explicitely check for the poison value after every time step\" STEERABLE=always\n{\n} \"no\"\n\nCCTK_INT poison_value \"UNUSED; use CarpetLib::poison_value instead\" STEERABLE=always\n{\n * :: \"\"\n} 0\n\nCCTK_INT max_poison_locations \"Maximum number of poison locations that are printed to the screen\" STEERABLE=always\n{\n -1 :: \"print all locations\"\n 0:* :: \"print only that many locations\"\n} 10\n\n\n\nBOOLEAN checksum_timelevels \"Try to catch unintentionally changed timelevels by taking checksums and comparing against these\" STEERABLE=always\n{\n} \"no\"\n\n\n\nBOOLEAN suppress_restriction \"Suppress the restriction operations. This makes the coarser refinement levels independent of the finer ones.\" STEERABLE=always\n{\n} \"no\"\n\n\n\nBOOLEAN verbose \"Display more info on the screen\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN veryverbose \"Display a lot of info on the screen\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN storage_verbose \"Display verbose storage information if veryverbose\" STEERABLE=ALWAYS\n{\n} \"no\"\n\nBOOLEAN barriers \"Insert barriers at strategic places for debugging purposes (slows down execution)\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN schedule_barriers \"Insert barriers between scheduled items, so that timer statistics become more reliable (slows down execution)\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN sync_barriers \"Insert barriers before and after syncs, so that the sync timer is more reliable (slows down execution)\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN output_internal_data \"Periodically print internal data to the screen for debugging purposes\" STEERABLE=always\n{\n} \"no\"\n\nREAL timing_average_window_minutes \"Time interval (in wall time minutes) for calculating the current physics time per hour\" STEERABLE=always\n{\n (0.0:* :: \"\"\n} 10.0\n\nINT print_timestats_every \"Print interesting timing statistics periodically\" STEERABLE=always\n{\n -1 :: \"don't report\"\n 0 :: \"don't report\"\n 1:* :: \"report every so many iterations\"\n} 0\n\nBOOLEAN print_grid_info \"Print information about the grids on regridding\" STEERABLE=always\n{\n} yes\n\nINT output_timers_every \"Print detailed statistics periodically\" STEERABLE=always\n{\n -1 :: \"don't report\"\n 0 :: \"don't report\"\n 1:* :: \"report every so many iterations\"\n} 0\n\nSTRING timer_file \"File name in which detailed timing statistics are collected\" STEERABLE=recover\n{\n \"^$\" :: \"empty filename: no file output\"\n \"^.+$\" :: \"file name\"\n} \"carpet-timing-statistics\"\n\nBOOLEAN output_initialise_timer_tree \"Output timing information in tree form to standard output for Initialise\"\n{\n} \"no\"\n\nINT output_timer_tree_every \"Output timing information in tree form to standard output for Evolve every so many iterations\" STEERABLE=always\n{\n 0 :: \"don't report\"\n 1:* :: \"report every so many iterations\"\n} 0\n\nBOOLEAN output_xml_timer_tree \"Output timing information in tree form as XML\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN include_maps_in_mode_timer_tree \"Include a breakdown of time spent on different multipatch maps in the mode timer tree\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN include_local_mode_in_mode_timer_tree \"Include a node for the time spent in local mode in the mode timer tree\" STEERABLE=always\n{\n} \"no\"\n\n\n\nBOOLEAN recompose_verbose \"Output debug information during recomposing\" STEERABLE=ALWAYS\n{\n} \"no\"\n\nKEYWORD processor_topology \"How to determine the processor topology\" STEERABLE=recover\n{\n \"manual\" :: \"Specified by processor_topology_*\"\n \"along-z\" :: \"Split the region along the z direction only\"\n \"along-dir\" :: \"Split the region along one direction only\"\n \"automatic\" :: \"Choose the topology automatically\"\n \"recursive\" :: \"Choose the topology automatically, using a different algorithm that may lead to better load balancing\"\n \"balanced\" :: \"Choose the topology automatically, ensuring a maximum load balance\"\n} \"automatic\"\n\nCCTK_INT processor_topology_3d_x \"Number of processors in x-direction\" STEERABLE=recover\n{\n 1:* :: \"must be positive\"\n} 1\n\nCCTK_INT processor_topology_3d_y \"Number of processors in y-direction\" STEERABLE=recover\n{\n 1:* :: \"must be positive\"\n} 1\n\nCCTK_INT processor_topology_3d_z \"Number of processors in z-direction\" STEERABLE=recover\n{\n 1:* :: \"must be positive\"\n} 1\n\nCCTK_INT split_direction \"Direction in which the domain should be split (for processor_topology=along-dir)\" STEERABLE=recover\n{\n 0:* :: \"0 for x, 1 for y, 2 for z, etc.\"\n} 2\n\nCCTK_INT no_split_direction \"Direction in which the domain must not be split (for processor_topology=automatic)\" STEERABLE=recover\n{\n -1 :: \"split in all directions\"\n 0:* :: \"0 for x, 1 for y, 2 for z, etc.\"\n} -1\n\nBOOLEAN constant_load_per_processor \"Keep the load per processor constant -- this is meant for benchmarks\" STEERABLE=recover\n{\n} \"no\"\n\nCCTK_REAL aspect_ratio_x \"Desired aspect ratio for each processor's domain\" STEERABLE=always\n{\n (0:* :: \"\"\n} 1.0\n\nCCTK_REAL aspect_ratio_y \"Desired aspect ratio for each processor's domain\" STEERABLE=always\n{\n (0:* :: \"\"\n} 1.0\n\nCCTK_REAL aspect_ratio_z \"Desired aspect ratio for each processor's domain\" STEERABLE=always\n{\n (0:* :: \"\"\n} 1.0\n\nCCTK_INT min_points_per_proc \"Minimum number of grid points per processor\" STEERABLE=always\n{\n 0:* :: \"that many\"\n} 0\n\nBOOLEAN split_components \"Split components onto processes; without this, one needs many components and few processes\" STEERABLE=always\n{\n} \"yes\"\n\nCCTK_INT granularity \"When splitting components, create sizes that are multiples of this granularity\" STEERABLE=always\n{\n 1:* :: \"TODO: query CoordBase or related thorns for this information\"\n} 1\n\nCCTK_INT granularity_boundary \"When splitting components, assume this many boundary points that don't count towards the granularity\" STEERABLE=always\n{\n 0:* :: \"TODO: use CoordBase's number of boundary points for this\"\n} 0\n\nCCTK_REAL ghost_zone_cost \"Relative cost of ghost zones for 'recursive' load balancing\" STEERABLE=always\n{\n 0:* :: \"\"\n} 0.025\n\nCCTK_REAL maximum_imbalance \"Maximum load imbalance\" STEERABLE=always\n{\n (0.0:* :: \"\"\n} 0.1\n\nBOOLEAN same_number_of_components_on_each_process \"Ensure that each process has the same number of components, adding empty dummy components if necessary\" STEERABLE=always\n{\n} \"yes\"\n\n\n\nCCTK_INT num_threads \"Number of threads per process\" STEERABLE=recover\n{\n -1 :: \"use system default, probably influenced by OMP_NUM_THREADS\"\n 1:* :: \"use this many threads\"\n} -1\n\nBOOLEAN set_cpu_affinity \"Set the process CPU affinity, overwriting the respective system setting\" STEERABLE=recover\n{\n} \"no\"\n\n\n\nSTRING grid_structure_filename \"File name to output grid structure to (empty = no output)\" STEERABLE=recover\n{\n \".*\" :: \"must be a legal file name\"\n} \"\"\n\nSTRING grid_coordinates_filename \"File name to output grid coordinates to (empty = no output)\" STEERABLE=recover\n{\n \".*\" :: \"must be a legal file name\"\n} \"\"\n\n\n\nprivate:\n\nBOOLEAN init_each_timelevel \"Call initial data routines once for each timelevel\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN init_fill_timelevels \"Fill past time levels from current time level after calling initial data routines\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN prolongate_initial_data \"Prolongate the refined regions during initial data generation\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN regrid_during_initialisation \"Regrid while initialising\" STEERABLE=recover\n{\n} \"no\"\n\nBOOLEAN regrid_during_recovery \"Regrid while recovering\" STEERABLE=recover\n{\n} \"no\"\n\nBOOLEAN regrid_in_level_mode \"Regrid in level mode (instead of singlemap mode), enabling more efficient processor distributions when there are multiple maps\" STEERABLE=always\n{\n} \"yes\"\n\nBOOLEAN time_interpolation_during_regridding \"Interpolate finer levels in time during regridding\" STEERABLE=recover\n{\n} \"yes\"\n\nBOOLEAN output_after_regridding \"Call OutputGH after regridding\" STEERABLE=always\n{\n} \"no\"\n\n\n\nBOOLEAN init_3_timelevels \"Set up 3 timelevels of initial data\" STEERABLE=always\n{\n} \"no\"\n\n\n\nBOOLEAN adaptive_stepsize \"Allow adaptive timestep sizes\"\n{\n} \"no\"\n\nBOOLEAN use_unusedpoints_mask \"Turn on storage and usage of 'unusedpoints_mask'\" STEERABLE=recover\n{\n} \"no\"\n", "schedule": "# Schedule definitions for thorn Carpet\n\n# This is disabled because its implementation is not complete\n#storage: point_classification\nstorage: timing timing_procs timing_levels\nstorage: memory_procs\n\nschedule CarpetMultiModelStartup at STARTUP as MultiModel_Startup before Driver_Startup\n{\n LANG: C\n} \"Multi-model Startup routine\"\n\nschedule CarpetStartup at STARTUP as Driver_Startup\n{\n LANG: C\n} \"Startup routine\"\n\nschedule CarpetParamCheck at PARAMCHECK\n{\n LANG: C\n} \"Parameter checking routine\"\n\n# Correct time step for finer levels when there are non-trivial\n# time refinement factors\n\nif (refine_timestep)\n{\n SCHEDULE CarpetRefineTimeStep AT basegrid AFTER Time_Simple\n {\n LANG: C\n OPTIONS: singlemap\n } \"Correct time step size for spacing on finer grids\"\n}\n\nif (use_unusedpoints_mask)\n{\n storage: carpet_unusedpoints_mask\n\n schedule CarpetUnusedMask AT BASEGRID\n {\n LANG: C\n WRITES: Carpet::carpet_unusedpoints_mask(everywhere)\n } \"Set mask of unused points\"\n\n schedule CarpetUnusedMask AT POSTREGRID\n {\n LANG: C\n WRITES: Carpet::carpet_unusedpoints_mask(everywhere)\n } \"Set mask of unused points\"\n}\n\nif (! CCTK_EQUALS(presync_mode, \"off\"))\n{\n schedule GROUP Driver_BoundarySelect at CCTK_WRAGH\n {\n } \"Group for functions which select BCs for variables and groups.\"\n\n schedule GROUP Driver_ApplyBCs\n {\n } \"Apply boundary conditions\"\n\n schedule GROUP ApplyBCs in Driver_ApplyBCs AS Carpet_ApplyBCs\n {\n } \"Apply boundary conditions under driver control\"\n}\n", "src": { "Initialise.cc": "#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n#include \n#include \n#include \n#include \n#include \n\n#include \n\n#include \n#include \n\n#include \n\nnamespace Carpet {\n\nusing namespace std;\n\nstatic void CallSetup(cGH *cctkGH);\nstatic void CallRecoverVariables(cGH *cctkGH);\n#if 0\n static void CallRegridRecoverMeta (cGH * cctkGH);\n#endif\nstatic void CallRegridRecoverLevel(cGH *cctkGH);\nstatic void CallRegridInitialMeta(cGH *cctkGH);\nstatic void CallRegridInitialLevel(cGH *cctkGH);\nstatic void CallPostRecoverVariables(cGH *cctkGH);\nstatic void CallInitial(cGH *cctkGH);\nstatic void CallRestrict(cGH *cctkGH);\nstatic void CallPostInitial(cGH *cctkGH);\nstatic void CallAnalysis(cGH *cctkGH, bool did_recover);\n\nstatic void Initialise3tl(cGH *cctkGH);\n\nstatic void print_internal_data();\n\nstatic void ScheduleTraverse(char const *where, char const *name, cGH *cctkGH);\nstatic void OutputGH(char const *where, cGH *cctkGH);\n\nint Initialise(tFleshConfig *const fc) {\n DECLARE_CCTK_PARAMETERS;\n\n int const convlev = 0;\n cGH *const cctkGH = CCTK_SetupGH(fc, convlev);\n CCTKi_AddGH(fc, convlev, cctkGH);\n\n do_global_mode = true;\n do_early_global_mode = true;\n do_late_global_mode = true;\n do_meta_mode = true;\n do_early_meta_mode = true;\n do_late_meta_mode = true;\n global_time = cctk_initial_time;\n delta_time = 1.0;\n for (int ml = 0; ml < mglevels; ++ml) {\n // assert (leveltimes.AT(ml).size() == 1);\n // leveltimes.AT(ml).AT(0) = global_time;\n for (int rl = 0; rl < reflevels; ++rl) {\n CCTK_REAL const dt = delta_time / timereffacts.AT(rl);\n for (int tl = 0; tl < tt->timelevels; ++tl) {\n tt->set_time(ml, rl, tl, global_time - tl * dt);\n }\n }\n }\n\n cctkGH->cctk_iteration = 0;\n cctkGH->cctk_time = global_time;\n cctkGH->cctk_delta_time = delta_time;\n\n static Timers::Timer timer(\"Initialise\");\n timer.start();\n\n // Delay checkpoint until MPI has been initialised\n Waypoint(\"Starting initialisation\");\n\n CCTKi_ScheduleGHInit(cctkGH); // Enable storage and communication\n GroupsStorageCheck(cctkGH);\n do_warn_about_storage = true;\n\n CCTKi_InitGHExtensions(cctkGH);\n\n // Write grid structure to file\n for (int m = 0; m < maps; ++m) {\n OutputGridStructure(cctkGH, m, vhh.AT(m)->regions);\n OutputGridCoordinates(cctkGH, m, vhh.AT(m)->regions);\n } // for m\n\n CallSetup(cctkGH);\n\n if (enable_no_storage) {\n CCTK_INFO(\"Carpet completed its internal setup, and would now normally go \"\n \"on to allocate memory. Since the parameter \"\n \"Carpet::enable_no_storage has been set, Carpet will exit \"\n \"instead.\");\n CCTK_Exit(const_cast(cctkGH), 0);\n }\n\n if (fc->recovered) {\n // Read data from a checkpoint file\n\n CallRecoverVariables(cctkGH);\n CallPostRecoverVariables(cctkGH);\n // TODO: We should probably restrict here.\n // CallRestrict (cctkGH);\n // TODO: Should we also execute another bin after this?\n // CallPostRestrictRecover (cctkGH);\n print_internal_data();\n\n } else {\n // Calculate initial data\n\n CallInitial(cctkGH);\n CallRestrict(cctkGH);\n CallPostInitial(cctkGH);\n print_internal_data();\n\n if (init_3_timelevels) {\n Initialise3tl(cctkGH);\n }\n }\n\n // Analyse initial data\n CallAnalysis(cctkGH, fc->recovered);\n print_internal_data();\n\n timer.stop();\n if (output_timers_every > 0) {\n Timers::CactusTimerSet::writeData(cctkGH, timer_file);\n }\n\n if (output_initialise_timer_tree) {\n Timers::Timer::outputTree(\"Initialise\");\n }\n\n Waypoint(\"Done with initialisation\");\n\n return 0;\n}\n\n//////////////////////////////////////////////////////////////////////////////\n//////////////////////////////////////////////////////////////////////////////\n//////////////////////////////////////////////////////////////////////////////\n\nvoid CallSetup(cGH *const cctkGH) {\n char const *const where = \"CallSetup\";\n static Timers::Timer timer(where);\n timer.start();\n\n BEGIN_MGLEVEL_LOOP(cctkGH) {\n do_early_global_mode = true;\n do_late_global_mode = true;\n do_global_mode = true;\n do_early_meta_mode = mglevel == mglevels - 1;\n do_late_meta_mode = mglevel == 0;\n do_meta_mode = do_early_meta_mode; // on first iteration, coarsest grid\n\n // Checking\n {\n int const rl = 0;\n ENTER_LEVEL_MODE(cctkGH, rl) {\n BeginTimingLevel(cctkGH);\n Poison(cctkGH, alltimes, CCTK_ARRAY);\n EndTimingLevel(cctkGH);\n }\n LEAVE_LEVEL_MODE;\n }\n\n // Register coordinates\n ScheduleTraverse(where, \"CCTK_WRAGH\", cctkGH);\n\n // Check parameters\n ScheduleTraverse(where, \"CCTK_PARAMCHECK\", cctkGH);\n }\n END_MGLEVEL_LOOP;\n\n#ifdef REQUIREMENTS_HH\n// TODO: Why is this disabled?\n// Requirements::CheckRequirements (cctkGH);\n#endif\n\n CCTKi_FinaliseParamWarn();\n\n timer.stop();\n}\n\nvoid CallRecoverVariables(cGH *const cctkGH) {\n char const *const where = \"CallRecoverVariables\";\n static Timers::Timer timer(where);\n timer.start();\n\n DECLARE_CCTK_PARAMETERS;\n\n for (int rl = 0; rl < reflevels; ++rl) {\n BEGIN_MGLEVEL_LOOP(cctkGH) {\n ENTER_LEVEL_MODE(cctkGH, rl) {\n BeginTimingLevel(cctkGH);\n\n do_early_global_mode = reflevel == 0;\n do_late_global_mode = reflevel == reflevels - 1;\n do_early_meta_mode = do_early_global_mode and mglevel == mglevels - 1;\n do_late_meta_mode = do_late_global_mode and mglevel == 0;\n do_global_mode =\n do_early_global_mode; // on first iteration, coarsest grid\n do_meta_mode = do_early_meta_mode; // on first iteration, coarsest grid\n\n // cctkGH->cctk_time = global_time;\n\n Waypoint(\"Recover I at iteration %d time %g%s%s\",\n cctkGH->cctk_iteration, (double)cctkGH->cctk_time,\n (do_global_mode ? \" (global)\" : \"\"),\n (do_meta_mode ? \" (meta)\" : \"\"));\n\n // Checking\n Poison(cctkGH, alltimes, CCTK_GF);\n\n // Set up the grids\n ScheduleTraverse(where, \"CCTK_BASEGRID\", cctkGH);\n\n // Recover\n ScheduleTraverse(where, \"CCTK_RECOVER_VARIABLES\", cctkGH);\n\n // Timing statistics\n // (do this here, after cctk_time has been recovered)\n if (do_early_global_mode) {\n InitTimingStats(cctkGH);\n }\n\n if (regrid_during_recovery) {\n EndTimingLevel(cctkGH);\n CallRegridRecoverLevel(cctkGH);\n BeginTimingLevel(cctkGH);\n }\n\n EndTimingLevel(cctkGH);\n }\n LEAVE_LEVEL_MODE;\n }\n END_MGLEVEL_LOOP;\n } // for rl\n\n#if 0\n // TODO: Maybe do not checkpoint (nor read back) ghost and buffer\n // zones\n CallRegridRecoverMeta (cctkGH);\n#endif\n\n timer.stop();\n}\n\nvoid CallPostRecoverVariables(cGH *const cctkGH) {\n DECLARE_CCTK_PARAMETERS;\n\n char const *const where = \"CallPostRecoverVariables\";\n static Timers::Timer timer(where);\n timer.start();\n\n for (int rl = 0; rl < reflevels; ++rl) {\n BEGIN_MGLEVEL_LOOP(cctkGH) {\n ENTER_LEVEL_MODE(cctkGH, rl) {\n BeginTimingLevel(cctkGH);\n\n do_early_global_mode = reflevel == 0;\n do_late_global_mode = reflevel == reflevels - 1;\n do_early_meta_mode = do_early_global_mode and mglevel == mglevels - 1;\n do_late_meta_mode = do_late_global_mode and mglevel == 0;\n do_global_mode =\n do_early_global_mode; // on first iteration, coarsest grid\n do_meta_mode = do_early_meta_mode; // on first iteration, coarsest grid\n\n// This has been activated and deactivated a number of times by now,\n// so I'll put down the reasoning behind deactivating it. Maybe the\n// other party in this tug of war will be able to respond. Most of\n// this is from b4429f4006e5:\n//\n// Traverse post_recover_variables in only for current timelevel (not\n// for all timelevels). Variables on past timelevels cannot have\n// their boundary conditions applied consistently, because time\n// interpolation for these may requires even older timelevels that\n// are not available. The problem is not that prolongation in time\n// on the older timelevels will fail. Prolongation will succeed and\n// is not an extrapolation in time, so Carpet does not abort. However\n// the time slices used as sources for the interpolation differ from\n// the ones that were originally used during the evolution. This\n// means that data on the old slices differs from what was present\n// during the evolution ie. checkpointing and recovery change data\n// on the grid.\n//\n// Current wisdom (ie. Erik says) is that all grid functions with\n// multiple time levels should to be checkpointed because of this. If\n// you do not checkpoint them, then you must be able to recompute\n// them exactly using a pointwise, local, algebraic method that does\n// not rely on present values of the re-computed data on the grid.\n// This exlcudes the Hydro primitives (since con2prim requires an\n// initial guess), but would in principle (I think) work with the ADM\n// variables.\n//\n// In particular one cannot call MoL_PostStep on all levels since it\n// involves prolongation.\n//\n// Roland Haas, June 21st 2012\n\n#if 0\n BEGIN_TIMELEVEL_LOOP(cctkGH) {\n \n Waypoint (\"Recovering II at iteration %d time %g timelevel %d%s%s\",\n cctkGH->cctk_iteration,\n (double)cctkGH->cctk_time,\n timelevel,\n (do_global_mode ? \" (global)\" : \"\"),\n (do_meta_mode ? \" (meta)\" : \"\"));\n \n // Post recover variables\n ScheduleTraverse (where, \"CCTK_POST_RECOVER_VARIABLES\", cctkGH);\n \n } END_TIMELEVEL_LOOP;\n#else\n Waypoint(\"Recovering II at iteration %d time %g%s%s\",\n cctkGH->cctk_iteration, (double)cctkGH->cctk_time,\n (do_global_mode ? \" (global)\" : \"\"),\n (do_meta_mode ? \" (meta)\" : \"\"));\n\n // Post recover variables\n ScheduleTraverse(where, \"CCTK_POST_RECOVER_VARIABLES\", cctkGH);\n#endif\n\n // Checking\n PoisonCheck(cctkGH, currenttime);\n\n CheckChecksums(cctkGH, allbutcurrenttime);\n\n EndTimingLevel(cctkGH);\n }\n LEAVE_LEVEL_MODE;\n }\n END_MGLEVEL_LOOP;\n } // for rl\n\n timer.stop();\n}\n\nvoid CallInitial(cGH *const cctkGH) {\n DECLARE_CCTK_PARAMETERS;\n\n char const *const where = \"CallInitial\";\n static Timers::Timer timer(where);\n timer.start();\n\n if (not regrid_during_initialisation) {\n // Regrid once in the beginning\n CallRegridInitialMeta(cctkGH);\n }\n\n // Poison early, since grid functions may be initialised in global\n // loop-local mode, ane we must not overwrite them accidentally\n for (int rl = 0; rl < reflevels; ++rl) {\n BEGIN_MGLEVEL_LOOP(cctkGH) {\n ENTER_LEVEL_MODE(cctkGH, rl) {\n BeginTimingLevel(cctkGH);\n\n // Checking\n Poison(cctkGH, alltimes, CCTK_GF);\n\n EndTimingLevel(cctkGH);\n }\n LEAVE_LEVEL_MODE;\n }\n END_MGLEVEL_LOOP;\n } // for rl\n\n for (int rl = 0; rl < reflevels; ++rl) {\n BEGIN_MGLEVEL_LOOP(cctkGH) {\n ENTER_LEVEL_MODE(cctkGH, rl) {\n BeginTimingLevel(cctkGH);\n\n do_early_global_mode = reflevel == 0;\n do_late_global_mode = reflevel == reflevels - 1;\n do_early_meta_mode = do_early_global_mode and mglevel == mglevels - 1;\n do_late_meta_mode = do_late_global_mode and mglevel == 0;\n do_global_mode =\n do_early_global_mode; // on first iteration, coarsest grid\n do_meta_mode = do_early_meta_mode; // on first iteration, coarsest grid\n\n // cctkGH->cctk_time = global_time;\n\n Waypoint(\"Initialisation I at iteration %d time %g%s%s\",\n cctkGH->cctk_iteration, (double)cctkGH->cctk_time,\n (do_global_mode ? \" (global)\" : \"\"),\n (do_meta_mode ? \" (meta)\" : \"\"));\n\n // Timing statistics\n if (do_early_global_mode) {\n InitTimingStats(cctkGH);\n }\n\n // Set up the grids\n ScheduleTraverse(where, \"CCTK_BASEGRID\", cctkGH);\n\n if (init_each_timelevel) {\n\n BEGIN_TIMELEVEL_LOOP(cctkGH) {\n\n // Set up the initial data\n ScheduleTraverse(where, \"CCTK_INITIAL\", cctkGH);\n ScheduleTraverse(where, \"CCTK_POSTINITIAL\", cctkGH);\n }\n END_TIMELEVEL_LOOP;\n\n } else { // not init_each_timelevel\n\n assert(do_allow_past_timelevels);\n do_allow_past_timelevels =\n not CCTK_EQUALS(initial_data_setup_method, \"init_single_level\");\n\n // Set up the initial data\n ScheduleTraverse(where, \"CCTK_INITIAL\", cctkGH);\n ScheduleTraverse(where, \"CCTK_POSTINITIAL\", cctkGH);\n\n do_allow_past_timelevels = true;\n\n } // not init_each_timelevel\n\n if (init_fill_timelevels) {\n FillTimeLevels(cctkGH);\n }\n\n // Checking\n PoisonCheck(cctkGH, currenttime);\n\n if (regrid_during_initialisation and mglevel == 0) {\n // Regrid after initialising each level\n EndTimingLevel(cctkGH);\n CallRegridInitialLevel(cctkGH);\n BeginTimingLevel(cctkGH);\n }\n\n EndTimingLevel(cctkGH);\n }\n LEAVE_LEVEL_MODE;\n }\n END_MGLEVEL_LOOP;\n } // for rl\n\n timer.stop();\n}\n\nvoid CallRestrict(cGH *const cctkGH) {\n DECLARE_CCTK_PARAMETERS;\n\n char const *const where = \"Initialise::CallRestrict\";\n static Timers::Timer timer(\"CallRestrict\");\n timer.start();\n\n for (int ml = mglevels - 1; ml >= 0; --ml) {\n\n for (int rl = reflevels - 2; rl >= 0; --rl) {\n ENTER_GLOBAL_MODE(cctkGH, ml) {\n ENTER_LEVEL_MODE(cctkGH, rl) {\n BeginTimingLevel(cctkGH);\n\n Waypoint(\"Initialisation/Restrict at iteration %d time %g\",\n cctkGH->cctk_iteration, (double)cctkGH->cctk_time);\n\n Restrict(cctkGH);\n\n if (use_higher_order_restriction) {\n do_early_global_mode = false;\n do_late_global_mode = false;\n do_early_meta_mode = false;\n do_late_meta_mode = false;\n do_global_mode = false;\n do_meta_mode = false;\n\n Waypoint(\"Initialisation/PostRestrict (intermediate) at iteration \"\n \"%d time %g\",\n cctkGH->cctk_iteration, (double)cctkGH->cctk_time);\n\n ScheduleTraverse(where, \"CCTK_POSTRESTRICTINITIAL\", cctkGH);\n\n if (init_fill_timelevels) {\n FillTimeLevels(cctkGH);\n }\n }\n\n EndTimingLevel(cctkGH);\n }\n LEAVE_LEVEL_MODE;\n }\n LEAVE_GLOBAL_MODE;\n } // for rl\n\n if (reflevels > 1) {\n\n bool have_done_global_mode = false;\n bool have_done_early_global_mode = false;\n bool have_done_late_global_mode = false;\n bool have_done_anything = false;\n\n for (int rl = 0; rl < reflevels; ++rl) {\n ENTER_GLOBAL_MODE(cctkGH, ml) {\n ENTER_LEVEL_MODE(cctkGH, rl) {\n BeginTimingLevel(cctkGH);\n\n do_early_global_mode = not have_done_early_global_mode;\n do_late_global_mode = reflevel == reflevels - 1;\n do_early_meta_mode =\n do_early_global_mode and mglevel == mglevels - 1;\n do_late_meta_mode = do_late_global_mode and mglevel == 0;\n do_global_mode = do_late_global_mode;\n do_meta_mode = do_global_mode and do_late_meta_mode;\n assert(not(have_done_global_mode and do_global_mode));\n assert(not(have_done_early_global_mode and do_early_global_mode));\n assert(not(have_done_late_global_mode and do_late_global_mode));\n have_done_global_mode |= do_global_mode;\n have_done_early_global_mode |= do_early_global_mode;\n have_done_late_global_mode |= do_late_global_mode;\n have_done_anything = true;\n\n Waypoint(\"Initialisation/PostRestrict at iteration %d time %g\",\n cctkGH->cctk_iteration, (double)cctkGH->cctk_time);\n\n ScheduleTraverse(where, \"CCTK_POSTRESTRICTINITIAL\", cctkGH);\n\n if (init_fill_timelevels) {\n FillTimeLevels(cctkGH);\n }\n\n EndTimingLevel(cctkGH);\n }\n LEAVE_LEVEL_MODE;\n }\n LEAVE_GLOBAL_MODE;\n } // for rl\n\n if (have_done_anything)\n assert(have_done_global_mode);\n if (have_done_anything)\n assert(have_done_early_global_mode);\n if (have_done_anything)\n assert(have_done_late_global_mode);\n }\n\n } // for ml\n\n timer.stop();\n}\n\nvoid CallPostInitial(cGH *const cctkGH) {\n char const *const where = \"CallPostInitial\";\n static Timers::Timer timer(where);\n timer.start();\n\n for (int rl = 0; rl < reflevels; ++rl) {\n BEGIN_MGLEVEL_LOOP(cctkGH) {\n ENTER_LEVEL_MODE(cctkGH, rl) {\n BeginTimingLevel(cctkGH);\n\n do_early_global_mode = reflevel == 0;\n do_late_global_mode = reflevel == reflevels - 1;\n do_early_meta_mode = do_early_global_mode and mglevel == mglevels - 1;\n do_late_meta_mode = do_late_global_mode and mglevel == 0;\n do_global_mode = do_late_global_mode; // on last iteration, finest grid\n do_meta_mode = do_late_meta_mode; // on last iteration, finest grid\n\n Waypoint(\"Initialisation II at iteration %d time %g%s%s\",\n cctkGH->cctk_iteration, (double)cctkGH->cctk_time,\n (do_global_mode ? \" (global)\" : \"\"),\n (do_meta_mode ? \" (meta)\" : \"\"));\n\n#if 0\n if (reflevel < reflevels-1) {\n ScheduleTraverse (where, \"CCTK_POSTRESTRICTINITIAL\", cctkGH);\n }\n#endif\n\n ScheduleTraverse(where, \"CCTK_POSTPOSTINITIAL\", cctkGH);\n ScheduleTraverse(where, \"CCTK_POSTSTEP\", cctkGH);\n\n PoisonCheck(cctkGH, alltimes);\n CheckChecksums(cctkGH, allbutcurrenttime);\n\n EndTimingLevel(cctkGH);\n }\n LEAVE_LEVEL_MODE;\n }\n END_MGLEVEL_LOOP;\n } // for rl\n\n timer.stop();\n}\n\nvoid CallAnalysis(cGH *const cctkGH, bool const did_recover) {\n char const *const where = \"CallAnalysis\";\n static Timers::Timer timer(where);\n timer.start();\n\n for (int rl = 0; rl < reflevels; ++rl) {\n BEGIN_MGLEVEL_LOOP(cctkGH) {\n ENTER_LEVEL_MODE(cctkGH, rl) {\n BeginTimingLevel(cctkGH);\n\n do_early_global_mode = reflevel == 0;\n do_late_global_mode = reflevel == reflevels - 1;\n do_early_meta_mode = do_early_global_mode and mglevel == mglevels - 1;\n do_late_meta_mode = do_late_global_mode and mglevel == 0;\n do_global_mode = do_late_global_mode; // on last iteration, finest grid\n do_meta_mode = do_late_meta_mode; // on last iteration, finest grid\n\n Waypoint(\"Initialisation III at iteration %d time %g%s%s\",\n cctkGH->cctk_iteration, (double)cctkGH->cctk_time,\n (do_global_mode ? \" (global)\" : \"\"),\n (do_meta_mode ? \" (meta)\" : \"\"));\n\n int const do_every =\n ipow(mgfact, mglevel) * (maxtimereflevelfact / timereffacts.AT(rl));\n if (cctkGH->cctk_iteration % do_every == 0) {\n\n if (not did_recover) {\n // Checkpoint, but only if we did not recover\n ScheduleTraverse(where, \"CCTK_CPINITIAL\", cctkGH);\n }\n\n // Analysis\n in_analysis_bin = true;\n ScheduleTraverse(where, \"CCTK_ANALYSIS\", cctkGH);\n in_analysis_bin = false;\n\n if (do_late_global_mode) {\n // Timing statistics\n UpdateTimingStats(cctkGH);\n }\n\n // Output\n OutputGH(where, cctkGH);\n\n // Checking\n PoisonCheck(cctkGH, alltimes);\n CheckChecksums(cctkGH, allbutcurrenttime);\n } // if do_every\n\n EndTimingLevel(cctkGH);\n }\n LEAVE_LEVEL_MODE;\n }\n END_MGLEVEL_LOOP;\n } // for rl\n\n timer.stop();\n}\n\n#if 0\n void\n CallRegrid (cGH * const cctkGH,\n bool const callpreregrid,\n bool const callregrid,\n bool const callpostregrid,\n bool const regridinitial)\n {\n DECLARE_CCTK_PARAMETERS;\n \n assert (is_level_mode());\n \n bool const old_do_global_mode = do_global_mode;\n bool const old_do_meta_mode = do_meta_mode;\n do_global_mode = true;\n do_meta_mode = true;\n \n // Preregrid\n if (callpreregrid) {\n if (regridinitial) {\n Waypoint (\"Preregridinitial at iteration %d time %g%s%s\",\n cctkGH->cctk_iteration, (double)cctkGH->cctk_time,\n (do_global_mode ? \" (global)\" : \"\"),\n (do_meta_mode ? \" (meta)\" : \"\"));\n ScheduleTraverse (where, \"CCTK_PREREGRIDINITIAL\", cctkGH);\n } else {\n Waypoint (\"Preregrid at iteration %d time %g%s%s\",\n cctkGH->cctk_iteration, (double)cctkGH->cctk_time,\n (do_global_mode ? \" (global)\" : \"\"),\n (do_meta_mode ? \" (meta)\" : \"\"));\n ScheduleTraverse (where, \"CCTK_PREREGRID\", cctkGH);\n }\n }\n \n // Regrid\n bool did_regrid = false;\n if (callregrid) {\n Checkpoint (\"Regrid\");\n did_regrid = Regrid (cctkGH, true);\n }\n \n if (did_regrid or not callregrid) {\n BEGIN_META_MODE (cctkGH) {\n for (int rl=0; rlcctk_iteration, (double)cctkGH->cctk_time,\n (do_global_mode ? \" (global)\" : \"\"),\n (do_meta_mode ? \" (meta)\" : \"\"));\n } else {\n Waypoint (\"Postregrid at iteration %d time %g%s%s\",\n cctkGH->cctk_iteration, (double)cctkGH->cctk_time,\n (do_global_mode ? \" (global)\" : \"\"),\n (do_meta_mode ? \" (meta)\" : \"\"));\n }\n \n int const num_tl =\n regridinitial\n ? (init_each_timelevel ? maxtimelevels : 1)\n : maxtimelevels;\n \n bool const old_do_allow_past_timelevels =\n do_allow_past_timelevels;\n do_allow_past_timelevels = false;\n \n // Rewind times\n for (int m=0; mget_delta (reflevel, mglevel);\n vtt.AT(m)->set_delta (reflevel, mglevel, - old_delta);\n }\n FlipTimeLevels (cctkGH);\n for (int tl=0; tladvance_time (reflevel, mglevel);\n }\n CycleTimeLevels (cctkGH);\n }\n for (int m=0; mget_delta (reflevel, mglevel);\n vtt.AT(m)->set_delta (reflevel, mglevel, - old_delta);\n }\n FlipTimeLevels (cctkGH);\n CCTK_REAL const old_cctk_time = cctkGH->cctk_time;\n cctkGH->cctk_time -=\n num_tl * (cctkGH->cctk_delta_time / cctkGH->cctk_timefac);\n \n for (int tl=0; tladvance_time (reflevel, mglevel);\n }\n CycleTimeLevels (cctkGH);\n cctkGH->cctk_time +=\n cctkGH->cctk_delta_time / cctkGH->cctk_timefac;\n \n // Postregrid\n if (regridinitial) {\n ScheduleTraverse (where, \"CCTK_POSTREGRIDINITIAL\", cctkGH);\n } else {\n ScheduleTraverse (where, \"CCTK_POSTREGRID\", cctkGH);\n }\n \n } // for tl\n cctkGH->cctk_time = old_cctk_time;\n \n do_allow_past_timelevels = old_do_allow_past_timelevels;\n \n EndTimingLevel (cctkGH);\n } LEAVE_LEVEL_MODE;\n } END_MGLEVEL_LOOP;\n } // if did_recompose\n \n } // for rl\n } END_META_MODE;\n } // if did_regrid\n \n if (callregrid) {\n RegridFree (cctkGH);\n }\n \n do_global_mode = old_do_global_mode;\n do_meta_mode = old_do_meta_mode;\n }\n#endif\n\n#if 0\n void\n CallRegridRecoverMeta (cGH * const cctkGH)\n {\n DECLARE_CCTK_PARAMETERS;\n \n char const * const where = \"CallRegridRecoverMeta\";\n static Timers::Timer timer (where);\n timer.start();\n \n assert (is_meta_mode());\n \n bool const old_do_global_mode = do_global_mode;\n bool const old_do_meta_mode = do_meta_mode;\n do_global_mode = true;\n do_meta_mode = true;\n \n for (int rl=0; rlcctk_iteration, (double)cctkGH->cctk_time,\n (do_global_mode ? \" (global)\" : \"\"),\n (do_meta_mode ? \" (meta)\" : \"\"));\n \n int const num_tl = maxtimelevels;\n \n bool const old_do_allow_past_timelevels = do_allow_past_timelevels;\n do_allow_past_timelevels = false;\n \n // Rewind times\n for (int m=0; mget_delta (reflevel, mglevel);\n vtt.AT(m)->set_delta (reflevel, mglevel, - old_delta);\n }\n FlipTimeLevels (cctkGH);\n for (int tl=0; tladvance_time (reflevel, mglevel);\n }\n CycleTimeLevels (cctkGH);\n }\n for (int m=0; mget_delta (reflevel, mglevel);\n vtt.AT(m)->set_delta (reflevel, mglevel, - old_delta);\n }\n FlipTimeLevels (cctkGH);\n CCTK_REAL const old_cctk_time = cctkGH->cctk_time;\n cctkGH->cctk_time -=\n num_tl * (cctkGH->cctk_delta_time / cctkGH->cctk_timefac);\n \n for (int tl=0; tladvance_time (reflevel, mglevel);\n }\n CycleTimeLevels (cctkGH);\n cctkGH->cctk_time +=\n cctkGH->cctk_delta_time / cctkGH->cctk_timefac;\n \n // Postregrid\n ScheduleTraverse (where, \"CCTK_POSTREGRID\", cctkGH);\n \n } // for tl\n cctkGH->cctk_time = old_cctk_time;\n \n do_allow_past_timelevels = old_do_allow_past_timelevels;\n \n EndTimingLevel (cctkGH);\n } LEAVE_LEVEL_MODE;\n } END_MGLEVEL_LOOP;\n } // for rl\n \n do_global_mode = old_do_global_mode;\n do_meta_mode = old_do_meta_mode;\n \n timer.stop();\n }\n#endif\n\nvoid CallRegridRecoverLevel(cGH *const cctkGH) {\n DECLARE_CCTK_PARAMETERS;\n\n char const *const where = \"CallRegridRecoverLevel\";\n static Timers::Timer timer(where);\n timer.start();\n\n CCTK_WARN(CCTK_WARN_ALERT,\n \"Regridding in level mode after recovering is discouraged\");\n\n assert(is_level_mode());\n\n bool const old_do_global_mode = do_global_mode;\n bool const old_do_early_global_mode = do_early_global_mode;\n bool const old_do_late_global_mode = do_late_global_mode;\n bool const old_do_meta_mode = do_meta_mode;\n bool const old_do_early_meta_mode = do_early_meta_mode;\n bool const old_do_late_meta_mode = do_late_meta_mode;\n do_global_mode = true;\n do_early_global_mode = true;\n do_late_global_mode = true;\n do_meta_mode = true;\n do_early_meta_mode = true;\n do_late_meta_mode = true;\n\n // Preregrid\n Waypoint(\"Preregrid at iteration %d time %g%s%s\", cctkGH->cctk_iteration,\n (double)cctkGH->cctk_time, (do_global_mode ? \" (global)\" : \"\"),\n (do_meta_mode ? \" (meta)\" : \"\"));\n ScheduleTraverse(where, \"CCTK_PREREGRID\", cctkGH);\n\n // Regrid\n Checkpoint(\"Regrid\");\n int const oldreflevels = reflevels;\n bool const did_regrid = Regrid(cctkGH, false, true);\n bool const did_remove_level = reflevels < oldreflevels;\n assert(not did_remove_level or did_regrid);\n\n if (did_regrid) {\n#ifdef REQUIREMENTS_HH\n Requirements::Regrid(reflevels);\n#endif\n bool did_any_recompose = false;\n BEGIN_META_MODE(cctkGH) {\n\n bool have_done_global_mode = false;\n bool have_done_early_global_mode = false;\n bool have_done_late_global_mode = false;\n bool have_done_anything = false;\n\n for (int rl = 0; rl < reflevels; ++rl) {\n\n bool const did_recompose = Recompose(cctkGH, rl, true);\n did_any_recompose = did_any_recompose or did_recompose;\n#ifdef REQUIREMENTS_HH\n Requirements::Recompose(cctkGH->cctk_iteration, rl,\n not did_recompose\n ? Requirements::valid::everywhere\n : Requirements::valid::interior);\n#endif\n\n // Carpet assumes that a regridding operation always changes\n // \"level N and all finer levels\" so we should call POSTREGRID\n // on all finer levels\n if (did_any_recompose or (did_remove_level and rl == reflevels - 1)) {\n BEGIN_MGLEVEL_LOOP(cctkGH) {\n ENTER_LEVEL_MODE(cctkGH, rl) {\n BeginTimingLevel(cctkGH);\n\n do_early_global_mode = not have_done_early_global_mode;\n do_late_global_mode = reflevel == reflevels - 1;\n do_early_meta_mode =\n do_early_global_mode and mglevel == mglevels - 1;\n do_late_meta_mode = do_late_global_mode and mglevel == 0;\n do_global_mode = do_late_global_mode;\n do_meta_mode = do_late_meta_mode;\n assert(not(have_done_global_mode and do_global_mode));\n assert(not(have_done_early_global_mode and do_early_global_mode));\n assert(not(have_done_late_global_mode and do_late_global_mode));\n have_done_global_mode |= do_global_mode;\n have_done_early_global_mode |= do_early_global_mode;\n have_done_late_global_mode |= do_late_global_mode;\n have_done_anything = true;\n\n BEGIN_TIMELEVEL_LOOP(cctkGH) {\n\n Waypoint(\"Postregrid at iteration %d time %g timelevel %d%s%s\",\n cctkGH->cctk_iteration, (double)cctkGH->cctk_time,\n timelevel, (do_global_mode ? \" (global)\" : \"\"),\n (do_meta_mode ? \" (meta)\" : \"\"));\n\n // Postregrid\n ScheduleTraverse(where, \"CCTK_POSTREGRID\", cctkGH);\n }\n END_TIMELEVEL_LOOP;\n\n if (output_after_regridding) {\n // Output\n OutputGH(where, cctkGH);\n }\n\n EndTimingLevel(cctkGH);\n }\n LEAVE_LEVEL_MODE;\n }\n END_MGLEVEL_LOOP;\n } // if did_recompose\n\n } // for rl\n\n if (have_done_anything)\n assert(have_done_global_mode);\n if (have_done_anything)\n assert(have_done_early_global_mode);\n if (have_done_anything)\n assert(have_done_late_global_mode);\n }\n END_META_MODE;\n#ifdef REQUIREMENTS_HH\n Requirements::RegridFree();\n#endif\n } // if did_regrid\n\n RegridFree(cctkGH, prolongate_initial_data);\n\n do_global_mode = old_do_global_mode;\n do_early_global_mode = old_do_early_global_mode;\n do_late_global_mode = old_do_late_global_mode;\n do_meta_mode = old_do_meta_mode;\n do_early_meta_mode = old_do_early_meta_mode;\n do_late_meta_mode = old_do_late_meta_mode;\n\n timer.stop();\n}\n\nvoid CallRegridInitialMeta(cGH *const cctkGH) {\n DECLARE_CCTK_PARAMETERS;\n\n char const *const where = \"CallRegridInitialMeta\";\n static Timers::Timer timer(where);\n timer.start();\n\n assert(is_meta_mode());\n\n bool const old_do_global_mode = do_global_mode;\n bool const old_do_early_global_mode = do_early_global_mode;\n bool const old_do_late_global_mode = do_late_global_mode;\n bool const old_do_meta_mode = do_meta_mode;\n bool const old_do_early_meta_mode = do_early_meta_mode;\n bool const old_do_late_meta_mode = do_late_meta_mode;\n do_global_mode = true;\n do_early_global_mode = true;\n do_late_global_mode = true;\n do_meta_mode = true;\n do_early_meta_mode = true;\n do_late_meta_mode = true;\n\n ENTER_GLOBAL_MODE(cctkGH, 0) {\n ENTER_LEVEL_MODE(cctkGH, 0) {\n BeginTimingLevel(cctkGH);\n\n // Preregrid\n Waypoint(\"Preregridinitial at iteration %d time %g%s%s\",\n cctkGH->cctk_iteration, (double)cctkGH->cctk_time,\n (do_global_mode ? \" (global)\" : \"\"),\n (do_meta_mode ? \" (meta)\" : \"\"));\n ScheduleTraverse(where, \"CCTK_PREREGRIDINITIAL\", cctkGH);\n\n // Regrid\n Checkpoint(\"Regrid\");\n bool const did_regrid = Regrid(cctkGH, true, prolongate_initial_data);\n\n if (did_regrid) {\n#ifdef REQUIREMENTS_HH\n Requirements::Regrid(reflevels);\n#endif\n for (int rl = 0; rl < reflevels; ++rl) {\n Recompose(cctkGH, rl, prolongate_initial_data);\n#ifdef REQUIREMENTS_HH\n Requirements::Recompose(cctkGH->cctk_iteration, rl,\n prolongate_initial_data\n ? Requirements::valid::interior\n : Requirements::valid::nowhere);\n#endif\n } // for rl\n#ifdef REQUIREMENTS_HH\n Requirements::RegridFree();\n#endif\n } // if did_regrid\n\n RegridFree(cctkGH, prolongate_initial_data);\n\n EndTimingLevel(cctkGH);\n }\n LEAVE_LEVEL_MODE;\n }\n LEAVE_GLOBAL_MODE;\n\n do_global_mode = old_do_global_mode;\n do_early_global_mode = old_do_early_global_mode;\n do_late_global_mode = old_do_late_global_mode;\n do_meta_mode = old_do_meta_mode;\n do_early_meta_mode = old_do_early_meta_mode;\n do_late_meta_mode = old_do_late_meta_mode;\n\n timer.stop();\n}\n\nvoid CallRegridInitialLevel(cGH *const cctkGH) {\n DECLARE_CCTK_PARAMETERS;\n\n char const *const where = \"CallRegridInitialLevel\";\n static Timers::Timer timer(where);\n timer.start();\n\n CCTK_WARN(CCTK_WARN_ALERT,\n \"Regridding in level mode while initialising is discouraged\");\n\n assert(is_level_mode());\n\n bool const old_do_global_mode = do_global_mode;\n bool const old_do_early_global_mode = do_early_global_mode;\n bool const old_do_late_global_mode = do_late_global_mode;\n bool const old_do_meta_mode = do_meta_mode;\n bool const old_do_early_meta_mode = do_early_meta_mode;\n bool const old_do_late_meta_mode = do_late_meta_mode;\n do_global_mode = true;\n do_early_global_mode = true;\n do_late_global_mode = true;\n do_meta_mode = true;\n do_early_meta_mode = true;\n do_late_meta_mode = true;\n\n // Preregrid\n Waypoint(\"Preregridinitial at iteration %d time %g%s%s\",\n cctkGH->cctk_iteration, (double)cctkGH->cctk_time,\n (do_global_mode ? \" (global)\" : \"\"),\n (do_meta_mode ? \" (meta)\" : \"\"));\n ScheduleTraverse(where, \"CCTK_PREREGRIDINITIAL\", cctkGH);\n\n // Regrid\n Checkpoint(\"Regrid\");\n int const oldreflevels = reflevels;\n bool const did_regrid = Regrid(cctkGH, true, prolongate_initial_data);\n bool const did_remove_level = reflevels < oldreflevels;\n assert(not did_remove_level or did_regrid);\n\n if (did_regrid) {\n#ifdef REQUIREMENTS_HH\n Requirements::Regrid(reflevels);\n#endif\n bool did_any_recompose = false;\n BEGIN_META_MODE(cctkGH) {\n\n bool have_done_global_mode = false;\n bool have_done_early_global_mode = false;\n bool have_done_late_global_mode = false;\n bool have_done_anything = false;\n\n for (int rl = 0; rl < reflevels; ++rl) {\n\n bool did_recompose = Recompose(cctkGH, rl, prolongate_initial_data);\n did_any_recompose = did_any_recompose or did_recompose;\n#ifdef REQUIREMENTS_HH\n Requirements::Recompose(cctkGH->cctk_iteration, rl,\n not did_recompose\n ? Requirements::valid::everywhere\n : prolongate_initial_data\n ? Requirements::valid::interior\n : Requirements::valid::nowhere);\n#endif\n\n // Carpet assumes that a regridding operation always changes\n // \"level N and all finer levels\" so we should call\n // POSTREGRIDINITIAL on all finer levels\n if (did_any_recompose or (did_remove_level and rl == reflevels - 1)) {\n BEGIN_MGLEVEL_LOOP(cctkGH) {\n ENTER_LEVEL_MODE(cctkGH, rl) {\n BeginTimingLevel(cctkGH);\n\n do_early_global_mode = not have_done_early_global_mode;\n do_late_global_mode = reflevel == reflevels - 1;\n do_early_meta_mode =\n do_early_global_mode and mglevel == mglevels - 1;\n do_late_meta_mode = do_late_global_mode and mglevel == 0;\n do_global_mode = do_late_global_mode;\n do_meta_mode = do_late_meta_mode;\n assert(not(have_done_global_mode and do_global_mode));\n assert(not(have_done_early_global_mode and do_early_global_mode));\n assert(not(have_done_late_global_mode and do_late_global_mode));\n have_done_global_mode |= do_global_mode;\n have_done_early_global_mode |= do_early_global_mode;\n have_done_late_global_mode |= do_late_global_mode;\n have_done_anything = true;\n\n Waypoint(\"Postregridinitial at iteration %d time %g%s%s\",\n cctkGH->cctk_iteration, (double)cctkGH->cctk_time,\n (do_global_mode ? \" (global)\" : \"\"),\n (do_meta_mode ? \" (meta)\" : \"\"));\n\n if (init_each_timelevel) {\n\n BEGIN_TIMELEVEL_LOOP(cctkGH) {\n\n // Postregridinitial\n ScheduleTraverse(where, \"CCTK_POSTREGRIDINITIAL\", cctkGH);\n }\n END_TIMELEVEL_LOOP;\n\n } else { // not init_each_timelevel\n\n assert(do_allow_past_timelevels);\n do_allow_past_timelevels = false;\n\n // Postregridinitial\n ScheduleTraverse(where, \"CCTK_POSTREGRIDINITIAL\", cctkGH);\n\n do_allow_past_timelevels = true;\n\n if (init_fill_timelevels) {\n FillTimeLevels(cctkGH);\n }\n\n } // not init_each_timelevel\n\n EndTimingLevel(cctkGH);\n }\n LEAVE_LEVEL_MODE;\n }\n END_MGLEVEL_LOOP;\n } // if did_recompose\n\n } // for rl\n\n if (have_done_anything)\n assert(have_done_global_mode);\n if (have_done_anything)\n assert(have_done_early_global_mode);\n if (have_done_anything)\n assert(have_done_late_global_mode);\n }\n END_META_MODE;\n#ifdef REQUIREMENTS_HH\n Requirements::RegridFree();\n#endif\n } // if did_regrid\n\n RegridFree(cctkGH, prolongate_initial_data);\n\n do_global_mode = old_do_global_mode;\n do_early_global_mode = old_do_early_global_mode;\n do_late_global_mode = old_do_late_global_mode;\n do_meta_mode = old_do_meta_mode;\n do_early_meta_mode = old_do_early_meta_mode;\n do_late_meta_mode = old_do_late_meta_mode;\n\n timer.stop();\n}\n\n//////////////////////////////////////////////////////////////////////////////\n//////////////////////////////////////////////////////////////////////////////\n//////////////////////////////////////////////////////////////////////////////\n\nstatic void initialise_3tl_flip_timelevels(cGH *const cctkGH);\nstatic void initialise_3tl_evolve(cGH *const cctkGH);\nstatic void initialise_3tl_recycle(cGH *const cctkGH);\n\nvoid Initialise3tl(cGH *const cctkGH) {\n DECLARE_CCTK_PARAMETERS;\n\n Waypoint(\"Initialising three timelevels:\");\n\n char const *const where = \"Initialise3TL\";\n static Timers::Timer timer(where);\n timer.start();\n\n#if 0\n initialise_3tl_flip_timelevels (cctkGH);\n initialise_3tl_evolve (cctkGH);\n // TODO: May want to restrict here if possible (i.e. if the time\n // refinement factor is one)\n initialise_3tl_recycle (cctkGH);\n initialise_3tl_flip_timelevels (cctkGH);\n#endif\n\n initialise_3tl_flip_timelevels(cctkGH);\n initialise_3tl_evolve(cctkGH);\n initialise_3tl_evolve(cctkGH);\n // TODO: May want to restrict where possible (i.e. if the time\n // refinement factor is one)\n initialise_3tl_recycle(cctkGH);\n initialise_3tl_recycle(cctkGH);\n initialise_3tl_flip_timelevels(cctkGH);\n\n timer.stop();\n\n Waypoint(\"Finished initialising three timelevels\");\n}\n\nvoid initialise_3tl_flip_timelevels(cGH *const cctkGH) {\n Waypoint(\"Initialise3TL::Flip\");\n\n delta_time *= -1;\n\n BEGIN_MGLEVEL_LOOP(cctkGH) {\n BEGIN_REFLEVEL_LOOP(cctkGH) { FlipTimeLevels(cctkGH); }\n END_REFLEVEL_LOOP;\n }\n END_MGLEVEL_LOOP;\n}\n\nvoid initialise_3tl_evolve(cGH *const cctkGH) {\n char const *const where = \"Evolve\";\n static Timers::Timer timer(where);\n timer.start();\n\n BEGIN_MGLEVEL_LOOP(cctkGH) {\n BEGIN_REFLEVEL_LOOP(cctkGH) {\n BeginTimingLevel(cctkGH);\n\n do_early_global_mode = reflevel == 0;\n do_late_global_mode = reflevel == reflevels - 1;\n do_early_meta_mode = do_early_global_mode and mglevel == mglevels - 1;\n do_late_meta_mode = do_late_global_mode and mglevel == 0;\n do_global_mode = do_early_global_mode;\n do_meta_mode = do_early_meta_mode;\n\n Waypoint(\"Initialisation 3TL evolution\",\n (do_global_mode ? \" (global)\" : \"\"),\n (do_meta_mode ? \" (meta)\" : \"\"));\n\n CycleTimeLevels(cctkGH);\n\n CalculateChecksums(cctkGH, allbutcurrenttime);\n Poison(cctkGH, currenttimebutnotifonly);\n\n // Evolve\n ScheduleTraverse(where, \"CCTK_PRESTEP\", cctkGH);\n ScheduleTraverse(where, \"CCTK_EVOL\", cctkGH);\n\n PoisonCheck(cctkGH, currenttime);\n\n EndTimingLevel(cctkGH);\n }\n END_REFLEVEL_LOOP;\n }\n END_MGLEVEL_LOOP;\n\n timer.stop();\n}\n\nvoid initialise_3tl_recycle(cGH *const cctkGH) {\n char const *const where = \"Recycle\";\n static Timers::Timer timer(where);\n timer.start();\n\n BEGIN_MGLEVEL_LOOP(cctkGH) {\n BEGIN_REFLEVEL_LOOP(cctkGH) {\n BeginTimingLevel(cctkGH);\n\n Waypoint(\"Initialisation 3TL recycling\");\n\n UncycleTimeLevels(cctkGH);\n\n EndTimingLevel(cctkGH);\n }\n END_REFLEVEL_LOOP;\n }\n END_MGLEVEL_LOOP;\n\n timer.stop();\n}\n\n//////////////////////////////////////////////////////////////////////////////\n//////////////////////////////////////////////////////////////////////////////\n//////////////////////////////////////////////////////////////////////////////\n\nvoid print_internal_data() {\n DECLARE_CCTK_PARAMETERS;\n\n if (output_internal_data) {\n CCTK_INFO(\"Internal data dump:\");\n streamsize const oldprecision = cout.precision();\n cout.precision(17);\n cout << \" global_time: \" << global_time << endl\n // << \" leveltimes: \" << leveltimes << endl\n << \" delta_time: \" << delta_time << endl;\n cout.precision(oldprecision);\n }\n}\n\nvoid ScheduleTraverse(char const *const where, char const *const name,\n cGH *const cctkGH) {\n Timers::Timer timer(name);\n\n timer.start();\n ostringstream infobuf;\n infobuf << \"Scheduling \" << name;\n string const info = infobuf.str();\n Checkpoint(info.c_str());\n CCTK_ScheduleTraverse(name, cctkGH, CallFunction);\n timer.stop();\n}\n\nvoid OutputGH(char const *const where, cGH *const cctkGH) {\n static Timers::Timer timer(\"OutputGH\");\n timer.start();\n CCTK_OutputGH(cctkGH);\n timer.stop();\n}\n\n} // namespace Carpet\n", diff --git a/Carpet_CarpetEvolutionMask.json b/Carpet_CarpetEvolutionMask.json index 3590bd9cef1719f73e91c4f234619511e7d649f2..84fa9bc856ea91a28945b0857c8355e260496c3f 100644 --- a/Carpet_CarpetEvolutionMask.json +++ b/Carpet_CarpetEvolutionMask.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:82f42cef214ae58543e217235d7dcf704455628ae5615621d050f0a4b3b493a8 -size 26863338 +oid sha256:e354128acb9e8e416048b0be7c3532bf01b3b8d49c061998dc7266917d393a98 +size 26864219 diff --git a/Carpet_CarpetIOASCII.json b/Carpet_CarpetIOASCII.json index 90d418397074411f79c7794652eb54a72255a5cd..72891dfe114fae39c7b09973b1721f0c481930fc 100644 --- a/Carpet_CarpetIOASCII.json +++ b/Carpet_CarpetIOASCII.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "# Configuration definitions for thorn CarpetIOASCII\n\nREQUIRES Carpet CarpetLib IOUtil\n\nOPTIONAL SDF\n{\n}\n", "interface": "# Interface definition for thorn CarpetIOASCII\n\nIMPLEMENTS: IOASCII\n\nuses include header: Timer.hh\n\nuses include header: carpet.hh\n\nuses include header: dist.hh\n\nuses include header: vect.hh\n\nuses include header: data.hh\nuses include header: gdata.hh\n\nuses include header: gf.hh\nuses include header: ggf.hh\n\nuses include header: typecase.hh\nuses include header: typeprops.hh\n\nCCTK_INT last_output_iteration[4] TYPE=scalar\nCCTK_REAL last_output_time[4] TYPE=scalar\nCCTK_INT this_iteration[4] TYPE=scalar\n\n\n# Check whether existing output files should be truncated or not\nCCTK_INT FUNCTION \\\n IO_TruncateOutputFiles (CCTK_POINTER_TO_CONST IN cctkGH)\nREQUIRES FUNCTION IO_TruncateOutputFiles\n\n\n\n# Determine which boundaries are symmetry boundaries\nCCTK_INT FUNCTION \\\n SymmetryTableHandleForGrid (CCTK_POINTER_TO_CONST IN cctkGH)\nREQUIRES FUNCTION SymmetryTableHandleForGrid\n\nCCTK_INT FUNCTION \\\n SymmetryTableHandleForGI (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN group_index)\nREQUIRES FUNCTION SymmetryTableHandleForGI\n\n\n\n# Return a pointer to an unmodifiable C string\n# which contains a unique ID for this build\nCCTK_POINTER_TO_CONST \\\nFUNCTION UniqueBuildID (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION UniqueBuildID\n\n# Return a pointer to an unmodifiable C string\n# which contains a unique ID for this simulation\nCCTK_POINTER_TO_CONST \\\nFUNCTION UniqueSimulationID (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION UniqueSimulationID\n\n# Return a pointer to an unmodifiable C string\n# which contains a unique ID for this run\nCCTK_POINTER_TO_CONST \\\nFUNCTION UniqueRunID (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION UniqueRunID\n\n\n# Presync functions to interface with read/write data\nCCTK_INT FUNCTION Driver_RequireValidData\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT ARRAY IN variables,\n CCTK_INT ARRAY IN tls,\n CCTK_INT IN nvariables,\n CCTK_INT ARRAY IN where)\nUSES FUNCTION Driver_RequireValidData\n", - "params": "", + "param": "# Parameter definitions for thorn CarpetIOASCII\n\nshares: cactus\n\nUSES KEYWORD presync_mode\n\nshares: IO\n\nUSES STRING out_dir\n\nUSES KEYWORD out_criterion\nUSES CCTK_INT out_every\nUSES CCTK_REAL out_dt\n\n\n\nUSES CCTK_INT out_xline_yi\nUSES CCTK_INT out_xline_zi\nUSES CCTK_INT out_yline_xi\nUSES CCTK_INT out_yline_zi\nUSES CCTK_INT out_zline_xi\nUSES CCTK_INT out_zline_yi\n\nUSES CCTK_REAL out_xline_y\nUSES CCTK_REAL out_xline_z\nUSES CCTK_REAL out_yline_x\nUSES CCTK_REAL out_yline_z\nUSES CCTK_REAL out_zline_x\nUSES CCTK_REAL out_zline_y\n\n\n\nUSES CCTK_INT out_xyplane_zi\nUSES CCTK_INT out_xzplane_yi\nUSES CCTK_INT out_yzplane_xi\n\nUSES CCTK_REAL out_xyplane_z\nUSES CCTK_REAL out_xzplane_y\nUSES CCTK_REAL out_yzplane_x\n\n\n\nUSES BOOLEAN new_filename_scheme\nUSES BOOLEAN strict_io_parameter_check\nUSES KEYWORD out_fileinfo\nUSES KEYWORD verbose\nUSES STRING out_group_separator\n\n\n\nprivate:\n\n\n# this affects a static variable (created_files in ioascii.cc) which controls\n# file truncation and thus it should not change during a single segment\nBOOLEAN one_file_per_group \"Write one file per group instead of per variable\" STEERABLE = RECOVER\n{\n} \"no\"\n\n\n\nBOOLEAN output_all_timelevels \"Output all timelevels instead of only the current\" STEERABLE = ALWAYS\n{\n} \"no\"\n\n\n\nBOOLEAN separate_grids \"Separate grid levels in the output file by additional empty lines\" STEERABLE = ALWAYS\n{\n} \"yes\"\n\nBOOLEAN separate_components \"Separate grid components in the output file by additional empty lines\" STEERABLE = ALWAYS\n{\n} \"no\"\n\n\n\nBOOLEAN compact_format \"Use a more compact output format with fewer columns and lines\" STEERABLE = ALWAYS\n{\n} \"no\"\n\n\n\nBOOLEAN use_grid_coordinates \"Use grid coordinate grid functions to obtain coordinate locations\" STEERABLE = ALWAYS\n{\n} \"no\"\n\n\n\nINT out_precision \"How many digits to output floating-point numbers with\" STEERABLE = ALWAYS\n{\n 0:* :: \"Number of precision digits\"\n} 15\n\n\n\nCCTK_STRING out0D_dir \"Name of 0D ASCII output directory, overrides IO::out_dir\" STEERABLE = ALWAYS\n{\n \"^$\" :: \"Empty: use IO::out_dir\"\n \".+\" :: \"Not empty: directory name\"\n} \"\"\n\nCCTK_STRING out1D_dir \"Name of 1D ASCII output directory, overrides IO::out_dir\" STEERABLE = ALWAYS\n{\n \"^$\" :: \"Empty: use IO::out_dir\"\n \".+\" :: \"Not empty: directory name\"\n} \"\"\n\nCCTK_STRING out2D_dir \"Name of 2D ASCII output directory, overrides IO::out_dir\" STEERABLE = ALWAYS\n{\n \"^$\" :: \"Empty: use IO::out_dir\"\n \".+\" :: \"Not empty: directory name\"\n} \"\"\n\nCCTK_STRING out3D_dir \"Name of 3D ASCII output directory, overrides IO::out_dir\" STEERABLE = ALWAYS\n{\n \"^$\" :: \"Empty: use IO::out_dir\"\n \".+\" :: \"Not empty: directory name\"\n} \"\"\n\n\n\nCCTK_STRING out0D_vars \"Variables to output in 0D ASCII file format\" STEERABLE = ALWAYS\n{\n \"\" :: \"List of group or variable names\"\n} \"\"\n\nCCTK_STRING out1D_vars \"Variables to output in 1D ASCII file format\" STEERABLE = ALWAYS\n{\n \"\" :: \"List of group or variable names\"\n} \"\"\n\nCCTK_STRING out2D_vars \"Variables to output in 2D ASCII file format\" STEERABLE = ALWAYS\n{\n \"\" :: \"List of group or variable names\"\n} \"\"\n\nCCTK_STRING out3D_vars \"Variables to output in 3D ASCII file format\" STEERABLE = ALWAYS\n{\n \"\" :: \"List of group or variable names\"\n} \"\"\n\n\n\nKEYWORD out0D_criterion \"Criterion to select 0D ASCII output intervals, overrides out_every\" STEERABLE = ALWAYS\n{\n \"default\" :: \"Use IO::out_criterion\"\n \"never\" :: \"Never output\"\n \"iteration\" :: \"Output every so many iterations\"\n \"divisor\" :: \"Output if iteration mod divisor == 0.\"\n \"time\" :: \"Output every that much coordinate time\"\n} \"default\"\n\nKEYWORD out1D_criterion \"Criterion to select 1D ASCII output intervals, overrides out_every\" STEERABLE = ALWAYS\n{\n \"default\" :: \"Use IO::out_criterion\"\n \"never\" :: \"Never output\"\n \"iteration\" :: \"Output every so many iterations\"\n \"divisor\" :: \"Output if (iteration % out_every) == 0.\"\n \"time\" :: \"Output every that much coordinate time\"\n} \"default\"\n\nKEYWORD out2D_criterion \"Criterion to select 2D ASCII output intervals, overrides out_every\" STEERABLE = ALWAYS\n{\n \"default\" :: \"Use IO::out_criterion\"\n \"never\" :: \"Never output\"\n \"iteration\" :: \"Output every so many iterations\"\n \"divisor\" :: \"Output if (iteration % out_every) == 0.\"\n \"time\" :: \"Output every that much coordinate time\"\n} \"default\"\n\nKEYWORD out3D_criterion \"Criterion to select 3D ASCII output intervals, overrides out_every\" STEERABLE = ALWAYS\n{\n \"default\" :: \"Use IO::out_criterion\"\n \"never\" :: \"Never output\"\n \"iteration\" :: \"Output every so many iterations\"\n \"divisor\" :: \"Output if (iteration % out_every) == 0.\"\n \"time\" :: \"Output every that much coordinate time\"\n} \"default\"\n\n\n\nCCTK_INT out0D_every \"How often to do 0D ASCII output, overrides out_every\" STEERABLE = ALWAYS\n{\n 1:* :: \"Output every so many time steps\"\n -1:0 :: \"No output\"\n -2 :: \"Use IO::out_every\"\n} -2\n\nCCTK_INT out1D_every \"How often to do 1D ASCII output, overrides out_every\" STEERABLE = ALWAYS\n{\n 1:* :: \"Output every so many time steps\"\n -1:0 :: \"No output\"\n -2 :: \"Use IO::out_every\"\n} -2\n\nCCTK_INT out2D_every \"How often to do 2D ASCII output, overrides out_every\" STEERABLE = ALWAYS\n{\n 1:* :: \"Output every so many time steps\"\n -1:0 :: \"No output\"\n -2 :: \"Use IO::out_every\"\n} -2\n\nCCTK_INT out3D_every \"How often to do 3D ASCII output, overrides out_every\" STEERABLE = ALWAYS\n{\n 1:* :: \"Output every so many time steps\"\n -1:0 :: \"No output\"\n -2 :: \"Use IO::out_every\"\n} -2\n\n\n\nREAL out0D_dt \"How often to do 0D ASCII output, overrides IO::out_dt\" STEERABLE = ALWAYS\n{\n (0:* :: \"In intervals of that much coordinate time\"\n 0 :: \"As often as possible\"\n -1 :: \"Disable output\"\n -2 :: \"Default to IO::out_dt\"\n} -2\n\nREAL out1D_dt \"How often to do 1D ASCII output, overrides IO::out_dt\" STEERABLE = ALWAYS\n{\n (0:* :: \"In intervals of that much coordinate time\"\n 0 :: \"As often as possible\"\n -1 :: \"Disable output\"\n -2 :: \"Default to IO::out_dt\"\n} -2\n\nREAL out2D_dt \"How often to do 2D ASCII output, overrides IO::out_dt\" STEERABLE = ALWAYS\n{\n (0:* :: \"In intervals of that much coordinate time\"\n 0 :: \"As often as possible\"\n -1 :: \"Disable output\"\n -2 :: \"Default to IO::out_dt\"\n} -2\n\nREAL out3D_dt \"How often to do 3D ASCII output, overrides IO::out_dt\" STEERABLE = ALWAYS\n{\n (0:* :: \"In intervals of that much coordinate time\"\n 0 :: \"As often as possible\"\n -1 :: \"Disable output\"\n -2 :: \"Default to IO::out_dt\"\n} -2\n\n\n\nCCTK_INT out0D_point_xi \"x-index (counting from 0) for 0D points\" STEERABLE = ALWAYS\n{\n 0:* :: \"\"\n} 0\nCCTK_INT out0D_point_yi \"y-index (counting from 0) for 0D points\" STEERABLE = ALWAYS\n{\n 0:* :: \"\"\n} 0\nCCTK_INT out0D_point_zi \"z-index (counting from 0) for 0D points\" STEERABLE = ALWAYS\n{\n 0:* :: \"\"\n} 0\n\nCCTK_REAL out0D_point_x \"x coordinate for 0D points\" STEERABLE = ALWAYS\n{\n *:* :: \"\"\n} 0\nCCTK_REAL out0D_point_y \"y coordinate for 0D points\" STEERABLE = ALWAYS\n{\n *:* :: \"\"\n} 0\nCCTK_REAL out0D_point_z \"z coordinate for 0D points\" STEERABLE = ALWAYS\n{\n *:* :: \"\"\n} 0\n\n\n\nBOOLEAN out1D_x \"Do 1D IOASCII output in the x-direction\" STEERABLE = ALWAYS\n{\n} \"yes\"\nBOOLEAN out1D_y \"Do 1D IOASCII output in the y-direction\" STEERABLE = ALWAYS\n{\n} \"yes\"\nBOOLEAN out1D_z \"Do 1D IOASCII output in the z-direction\" STEERABLE = ALWAYS\n{\n} \"yes\"\n\nCCTK_INT out1D_xline_yi \"y-index (counting from 0) for 1D lines in x-direction\" STEERABLE = ALWAYS\n{\n 0:* :: \"\"\n} 0\nCCTK_INT out1D_xline_zi \"z-index (counting from 0) for 1D lines in x-direction\" STEERABLE = ALWAYS\n{\n 0:* :: \"\"\n} 0\n\nCCTK_INT out1D_yline_xi \"x-index (counting from 0) for 1D lines in y-direction\" STEERABLE = ALWAYS\n{\n 0:* :: \"\"\n} 0\nCCTK_INT out1D_yline_zi \"z-index (counting from 0) for 1D lines in y-direction\" STEERABLE = ALWAYS\n{\n 0:* :: \"\"\n} 0\n\nCCTK_INT out1D_zline_xi \"x-index (counting from 0) for 1D lines in z-direction\" STEERABLE = ALWAYS\n{\n 0:* :: \"\"\n} 0\nCCTK_INT out1D_zline_yi \"y-index (counting from 0) for 1D lines in z-direction\" STEERABLE = ALWAYS\n{\n 0:* :: \"\"\n} 0\n\nCCTK_REAL out1D_xline_y \"y coordinate for 1D lines in x-direction\" STEERABLE = ALWAYS\n{\n *:* :: \"\"\n} 0\nCCTK_REAL out1D_xline_z \"z coordinate for 1D lines in x-direction\" STEERABLE = ALWAYS\n{\n *:* :: \"\"\n} 0\n\nCCTK_REAL out1D_yline_x \"x coordinate for 1D lines in y-direction\" STEERABLE = ALWAYS\n{\n *:* :: \"\"\n} 0\nCCTK_REAL out1D_yline_z \"z coordinate for 1D lines in y-direction\" STEERABLE = ALWAYS\n{\n *:* :: \"\"\n} 0\n\nCCTK_REAL out1D_zline_x \"x coordinate for 1D lines in z-direction\" STEERABLE = ALWAYS\n{\n *:* :: \"\"\n} 0\nCCTK_REAL out1D_zline_y \"y coordinate for 1D lines in z-direction\" STEERABLE = ALWAYS\n{\n *:* :: \"\"\n} 0\n\n\n\nBOOLEAN out2D_xy \"Do 2D IOASCII output in the xy-direction\" STEERABLE = ALWAYS\n{\n} \"yes\"\nBOOLEAN out2D_xz \"Do 2D IOASCII output in the xz-direction\" STEERABLE = ALWAYS\n{\n} \"yes\"\nBOOLEAN out2D_yz \"Do 2D IOASCII output in the yz-direction\" STEERABLE = ALWAYS\n{\n} \"yes\"\n\nCCTK_INT out2D_xyplane_zi \"z-index (counting from 0) for 2D planes in xy-direction\" STEERABLE = ALWAYS\n{\n 0:* :: \"\"\n} 0\n\nCCTK_INT out2D_xzplane_yi \"y-index (counting from 0) for 2D planes in xz-direction\" STEERABLE = ALWAYS\n{\n 0:* :: \"\"\n} 0\n\nCCTK_INT out2D_yzplane_xi \"x-index (counting from 0) for 2D planes in yz-direction\" STEERABLE = ALWAYS\n{\n 0:* :: \"\"\n} 0\n\nCCTK_REAL out2D_xyplane_z \"z coordinate for 2D planes in xy-direction\" STEERABLE = ALWAYS\n{\n *:* :: \"\"\n} 0\n\nCCTK_REAL out2D_xzplane_y \"y coordinate for 2D planes in xz-direction\" STEERABLE = ALWAYS\n{\n *:* :: \"\"\n} 0\n\nCCTK_REAL out2D_yzplane_x \"x coordinate for 2D planes in yz-direction\" STEERABLE = ALWAYS\n{\n *:* :: \"\"\n} 0\n\n\n\nBOOLEAN output_symmetry_points \"Output symmetry points (assuming that there are nghostzones symmetry points)\" STEERABLE = ALWAYS\n{\n} \"yes\"\n\nBOOLEAN output_ghost_points \"Output ghost points\" STEERABLE = ALWAYS\n{\n} \"yes\"\n\nBOOLEAN output_boundary_points \"Output outer boundary points (assuming that there are nghostzones boundary points)\" STEERABLE = ALWAYS\n{\n} \"yes\"\n\nBOOLEAN out3D_ghosts \"Output ghost zones (DEPRECATED)\" STEERABLE = ALWAYS\n{\n} \"yes\"\n\nBOOLEAN out3D_outer_ghosts \"Output outer boundary zones (assuming that there are nghostzones boundary points) (DEPRECATED)\" STEERABLE = ALWAYS\n{\n} \"yes\"\n\n\n\n# These parameters are here for historic reasons only.\n# They might go away in the future. Do not use them.\n\nBOOLEAN out1D_d \"Do output along the diagonal\" STEERABLE = ALWAYS\n{\n} \"yes\"\n", "schedule": "# Schedule definitions for thorn CarpetIOASCII\n\nSTORAGE: last_output_iteration last_output_time this_iteration\n\nSCHEDULE CarpetIOASCIIStartup AT startup AFTER IOUtil_Startup\n{\n LANG: C\n OPTIONS: global\n} \"Startup routine\"\n\nSCHEDULE CarpetIOASCIIInit AT initial\n{\n LANG: C\n OPTIONS: global\n WRITES: CarpetIOASCII::last_output_iteration, last_output_time, this_iteration\n} \"Initialisation routine\"\n", "src": { "ioascii.cc": "#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n#include \n#include \n#include \n#include \n\n#include \n\n#include \"CactusBase/IOUtil/src/ioGH.h\"\n#include \"CactusBase/IOUtil/src/ioutil_Utils.h\"\n\n#include \"carpet.hh\"\n\n#include \"typeprops.hh\"\n\n#include \"ioascii.hh\"\n\n// That's a hack\nnamespace Carpet {\nvoid UnsupportedVarType(const int vindex);\n}\n\n#define GetParameter(parameter) \\\n (outdim == 0 \\\n ? out0D_##parameter \\\n : outdim == 1 ? out1D_##parameter \\\n : outdim == 2 ? out2D_##parameter : out3D_##parameter)\n\nnamespace CarpetIOASCII {\n\nusing namespace std;\nusing namespace Carpet;\n\n// Begin a new line without flushing the output buffer\nconst char *const eol = \"\\n\";\n\n// IO processor\nconst int ioproc = 0;\n\n// Global configuration parameters\nbool stop_on_parse_errors = false;\n\nint CarpetIOASCIIStartup() {\n IOASCII<0>::Startup();\n IOASCII<1>::Startup();\n IOASCII<2>::Startup();\n IOASCII<3>::Startup();\n return 0;\n}\n\nvoid CarpetIOASCIIInit(CCTK_ARGUMENTS) {\n DECLARE_CCTK_ARGUMENTS_CarpetIOASCIIInit;\n\n for (int d = 0; d < 4; ++d) {\n this_iteration[d] = 0;\n last_output_iteration[d] = 0;\n last_output_time[d] = cctk_time;\n }\n}\n\n// Definition of static members\ntemplate char *IOASCII::my_out_dir;\ntemplate char *IOASCII::my_out_vars;\ntemplate vector IOASCII::requests;\n\ntemplate int IOASCII::Startup() {\n ostringstream msg;\n msg << \"AMR \" << outdim << \"D ASCII I/O provided by CarpetIOASCII\";\n CCTK_RegisterBanner(msg.str().c_str());\n\n ostringstream extension_name;\n extension_name << \"CarpetIOASCII_\" << outdim << \"D\";\n const int GHExtension =\n CCTK_RegisterGHExtension(extension_name.str().c_str());\n CCTK_RegisterGHExtensionSetupGH(GHExtension, SetupGH);\n\n ostringstream method_name;\n method_name << \"IOASCII_\" << outdim << \"D\";\n const int IOMethod = CCTK_RegisterIOMethod(method_name.str().c_str());\n CCTK_RegisterIOMethodOutputGH(IOMethod, OutputGH);\n CCTK_RegisterIOMethodOutputVarAs(IOMethod, OutputVarAs);\n CCTK_RegisterIOMethodTimeToOutput(IOMethod, TimeToOutput);\n CCTK_RegisterIOMethodTriggerOutput(IOMethod, TriggerOutput);\n\n return 0;\n}\n\ntemplate \nvoid *IOASCII::SetupGH(tFleshConfig *const fc, const int convLevel,\n cGH *const cctkGH) {\n DECLARE_CCTK_PARAMETERS;\n const void *dummy;\n\n dummy = &fc;\n dummy = &convLevel;\n dummy = &cctkGH;\n dummy = &dummy;\n\n if (not CCTK_Equals(verbose, \"none\")) {\n CCTK_VINFO(\"I/O Method 'IOASCII_%dD' registered: %dD AMR output of grid \"\n \"variables to ASCII files\",\n outdim, outdim);\n }\n\n const int numvars = CCTK_NumVars();\n requests.resize(numvars);\n\n // initial I/O parameter check\n my_out_dir = 0;\n my_out_vars = strdup(\"\");\n stop_on_parse_errors = strict_io_parameter_check != 0;\n CheckSteerableParameters(cctkGH);\n stop_on_parse_errors = false;\n\n // We register only once, ergo we get only one handle. We store\n // that statically, so there is no need to pass anything to\n // Cactus.\n return NULL;\n}\n\ntemplate \nvoid IOASCII::CheckSteerableParameters(const cGH *const cctkGH) {\n DECLARE_CCTK_PARAMETERS;\n\n // re-parse the 'IOASCII::out%dD_dir' parameter if it has changed\n const char *the_out_dir = GetParameter(dir);\n if (CCTK_EQUALS(the_out_dir, \"\")) {\n the_out_dir = out_dir;\n }\n\n if (not my_out_dir or strcmp(the_out_dir, my_out_dir)) {\n free(my_out_dir);\n my_out_dir = strdup(the_out_dir);\n\n // create the output directory\n const int result = IOUtil_CreateDirectory(cctkGH, my_out_dir, 0, 0);\n if (result < 0) {\n CCTK_VWARN(CCTK_WARN_ALERT, \"Problem creating %dD-output directory '%s'\",\n outdim, my_out_dir);\n } else if (result > 0 and CCTK_Equals(verbose, \"full\")) {\n CCTK_VINFO(\"%dD-output directory '%s' already exists\", outdim,\n my_out_dir);\n }\n }\n\n // re-parse the 'IOASCII::out%d_vars' parameter if it has changed\n const char *const out_vars = GetParameter(vars);\n if (strcmp(out_vars, my_out_vars)) {\n ostringstream parameter_name;\n parameter_name << \"IOASCII::out\" << outdim << \"D_vars\";\n#ifdef IOUTIL_PARSER_HAS_OUT_DT\n IOUtil_ParseVarsForOutput(\n cctkGH, CCTK_THORNSTRING, parameter_name.str().c_str(),\n stop_on_parse_errors, out_vars, -1, -1.0, &requests[0]);\n#else\n IOUtil_ParseVarsForOutput(cctkGH, CCTK_THORNSTRING,\n parameter_name.str().c_str(),\n stop_on_parse_errors, out_vars, -1, &requests[0]);\n#endif\n\n // notify the user about the new setting\n if (not CCTK_Equals(verbose, \"none\")) {\n int count = 0;\n ostringstream msg;\n msg << \"Periodic \" << outdim << \"D AMR output requested for:\";\n for (int vi = 0; vi < CCTK_NumVars(); ++vi) {\n if (requests.at(vi)) {\n ++count;\n char *const fullname = CCTK_FullName(vi);\n msg << eol << \" \" << fullname;\n free(fullname);\n }\n }\n if (count > 0) {\n CCTK_INFO(msg.str().c_str());\n }\n }\n\n // save the last setting of 'IOASCII::out%d_vars' parameter\n free(my_out_vars);\n my_out_vars = strdup(out_vars);\n }\n}\n\ntemplate int IOASCII::OutputGH(const cGH *const cctkGH) {\n DECLARE_CCTK_PARAMETERS;\n\n ostringstream timer_name;\n timer_name << \"OutputGH<\" << outdim << \">\";\n Timers::Timer timer(timer_name.str());\n\n timer.start();\n CheckSteerableParameters(cctkGH);\n if (strcmp(my_out_vars, \"\")) {\n for (int vi = 0; vi < CCTK_NumVars(); ++vi) {\n if (TimeToOutput(cctkGH, vi)) {\n TriggerOutput(cctkGH, vi);\n }\n }\n }\n timer.stop();\n\n return 0;\n}\n\ntemplate \nint IOASCII::TimeToOutput(const cGH *const cctkGH, const int vindex) {\n DECLARE_CCTK_ARGUMENTS;\n DECLARE_CCTK_PARAMETERS;\n\n assert(vindex >= 0 and vindex < CCTK_NumVars());\n\n if (CCTK_GroupTypeFromVarI(vindex) != CCTK_GF and not do_global_mode) {\n return 0;\n }\n\n // check if output for this variable was requested\n if (not requests.at(vindex)) {\n return 0;\n }\n\n // check whether this refinement level should be output\n if (not(requests.at(vindex)->refinement_levels & (1 << reflevel))) {\n return 0;\n }\n\n // check if output for this variable was requested individually by\n // a \"{ out_every = }\" option string\n // this will overwrite the output criterion setting\n const char *myoutcriterion = GetParameter(criterion);\n if (CCTK_EQUALS(myoutcriterion, \"default\")) {\n myoutcriterion = out_criterion;\n }\n if (requests.at(vindex)->out_every >= 0) {\n myoutcriterion = \"divisor\";\n }\n\n if (CCTK_EQUALS(myoutcriterion, \"never\")) {\n return 0;\n }\n\n // check whether to output at this iteration\n bool output_this_iteration = false;\n\n if (CCTK_EQUALS(myoutcriterion, \"iteration\")) {\n int myoutevery = GetParameter(every);\n if (myoutevery == -2) {\n myoutevery = out_every;\n }\n if (myoutevery > 0) {\n if (cctk_iteration == this_iteration[outdim]) {\n // we already decided to output this iteration\n output_this_iteration = true;\n } else if (cctk_iteration >= last_output_iteration[outdim] + myoutevery) {\n // it is time for the next output\n output_this_iteration = true;\n last_output_iteration[outdim] = cctk_iteration;\n this_iteration[outdim] = cctk_iteration;\n }\n }\n } else if (CCTK_EQUALS(myoutcriterion, \"divisor\")) {\n int myoutevery = GetParameter(every);\n if (myoutevery == -2) {\n myoutevery = out_every;\n }\n if (requests[vindex]->out_every >= 0) {\n myoutevery = requests[vindex]->out_every;\n }\n if (myoutevery > 0 and (cctk_iteration % myoutevery) == 0) {\n // we already decided to output this iteration\n output_this_iteration = true;\n }\n } else if (CCTK_EQUALS(myoutcriterion, \"time\")) {\n CCTK_REAL myoutdt = GetParameter(dt);\n if (myoutdt == -2) {\n myoutdt = out_dt;\n }\n if (myoutdt == 0 or cctk_iteration == this_iteration[outdim]) {\n output_this_iteration = true;\n } else if (myoutdt > 0) {\n int do_output =\n cctk_time / cctk_delta_time >=\n (last_output_time[outdim] + myoutdt) / cctk_delta_time - 1.0e-12;\n MPI_Bcast(&do_output, 1, MPI_INT, 0, dist::comm());\n if (do_output) {\n // it is time for the next output\n output_this_iteration = true;\n last_output_time[outdim] = cctk_time;\n this_iteration[outdim] = cctk_iteration;\n }\n }\n } // select output criterion\n\n return output_this_iteration ? 1 : 0;\n}\n\ntemplate \nint IOASCII::TriggerOutput(const cGH *const cctkGH, const int vindex) {\n DECLARE_CCTK_PARAMETERS;\n\n assert(vindex >= 0 and vindex < CCTK_NumVars());\n\n char *const fullname = CCTK_FullName(vindex);\n\n int retval;\n if (one_file_per_group) {\n char *const alias_c = CCTK_GroupNameFromVarI(vindex);\n string alias(alias_c);\n free(alias_c);\n transform(alias.begin(), alias.end(), alias.begin(), ::tolower);\n string const oldsep(\"::\");\n size_t const oldseppos = alias.find(oldsep);\n assert(oldseppos != string::npos);\n alias.replace(oldseppos, oldsep.size(), out_group_separator);\n retval = OutputVarAs(cctkGH, fullname, alias.c_str());\n } else {\n const char *const alias = CCTK_VarName(vindex);\n retval = OutputVarAs(cctkGH, fullname, alias);\n }\n\n free(fullname);\n\n return retval;\n}\n\nstatic void GetVarIndex(const int vindex, const char *const optstring,\n void *const arg) {\n if (optstring) {\n char *const fullname = CCTK_FullName(vindex);\n CCTK_VWARN(\n CCTK_WARN_COMPLAIN,\n \"Option string '%s' will be ignored for ASCII output of variable '%s'\",\n optstring, fullname);\n free(fullname);\n }\n\n *static_cast(arg) = vindex;\n}\n\ntemplate \nint IOASCII::OutputVarAs(const cGH *const cctkGH,\n const char *const varname,\n const char *const alias) {\n DECLARE_CCTK_PARAMETERS;\n\n int vindex = -1;\n\n if (CCTK_TraverseString(varname, GetVarIndex, &vindex, CCTK_VAR) < 0) {\n CCTK_VWARN(CCTK_WARN_ALERT,\n \"error while parsing variable name '%s' (alias name '%s')\",\n varname, alias);\n return -1;\n }\n\n if (vindex < 0) {\n return -1;\n }\n\n if (not(is_level_mode() or (is_singlemap_mode() and maps == 1) or\n (is_local_mode() and maps == 1 and\n vhh.at(Carpet::map)->local_components(reflevel) == 1))) {\n CCTK_WARN(CCTK_WARN_ALERT, \"OutputVarAs must be called in level mode\");\n return -1;\n }\n\n BEGIN_LEVEL_MODE(cctkGH) {\n\n // Get information\n const int group = CCTK_GroupIndexFromVarI(vindex);\n assert(group >= 0);\n cGroup groupdata;\n {\n int const ierr = CCTK_GroupData(group, &groupdata);\n assert(not ierr);\n }\n\n // Check information\n if (groupdata.grouptype != CCTK_GF) {\n assert(do_global_mode);\n }\n\n if (outdim > groupdata.dim) {\n CCTK_VWARN(CCTK_WARN_ALERT,\n \"Cannot produce %dD ASCII output file '%s' for variable '%s' \"\n \"because it has only %d dimensions\",\n outdim, alias, varname, groupdata.dim);\n return -1;\n }\n\n // Check for storage\n if (not CCTK_QueryGroupStorageI(cctkGH, group)) {\n // This may be okay if storage is e.g. scheduled only in the\n // analysis bin\n CCTK_VWARN(CCTK_WARN_DEBUG,\n \"Cannot output variable '%s' because it has no storage\",\n varname);\n return 0;\n }\n\n ostringstream basefilenamebuf;\n basefilenamebuf << my_out_dir << \"/\" << alias;\n const string basefilename = basefilenamebuf.str();\n\n // Check if the file has been created already\n bool is_new_file, truncate_file;\n const bool did_output =\n DidOutput(cctkGH, vindex, basefilename, is_new_file, truncate_file);\n if (did_output) {\n return 0;\n }\n\n // Loop over all direction combinations\n vect dirs(0);\n bool done;\n do {\n\n // Output each combination only once\n bool ascending = true;\n for (int d1 = 0; d1 < outdim; ++d1) {\n for (int d2 = d1 + 1; d2 < outdim; ++d2) {\n ascending = ascending and dirs[d1] < dirs[d2];\n }\n }\n\n // Skip output if the dimensions are not ascending\n if (ascending) {\n\n // Skip output if not requested\n if (DirectionIsRequested(dirs)) {\n OutputDirection(cctkGH, vindex, alias, basefilename, dirs,\n is_new_file, truncate_file);\n }\n\n } // if ascending\n\n // Next direction combination\n done = true;\n for (int d = 0; d < outdim; ++d) {\n ++dirs[d];\n if (dirs[d] < groupdata.dim + (outdim == 1 ? 1 : 0)) {\n done = false;\n break;\n }\n dirs[d] = 0;\n }\n\n } while (not done); // output all directions\n }\n END_LEVEL_MODE;\n\n return 0;\n}\n\n// Traverse all maps and components on this refinement and multigrid\n// level\ntemplate \nvoid IOASCII::OutputDirection(const cGH *const cctkGH, const int vindex,\n const string alias,\n const string basefilename,\n const vect &dirs,\n const bool is_new_file,\n const bool truncate_file) {\n DECLARE_CCTK_PARAMETERS;\n\n // Get information\n const int group = CCTK_GroupIndexFromVarI(vindex);\n assert(group >= 0);\n const int vindex0 = CCTK_FirstVarIndexI(group);\n assert(vindex0 >= 0 and vindex >= vindex0);\n const int var = vindex - vindex0;\n cGroup groupdata;\n {\n int const ierr = CCTK_GroupData(group, &groupdata);\n assert(not ierr);\n }\n\n const int ml = groupdata.grouptype == CCTK_GF ? mglevel : 0;\n const int rl = groupdata.grouptype == CCTK_GF ? reflevel : 0;\n\n // const int num_tl = CCTK_NumTimeLevelsFromVarI (vindex);\n const int num_tl = CCTK_ActiveTimeLevelsVI(cctkGH, vindex);\n assert(num_tl >= 1);\n\n int const coord_group = CCTK_GroupIndex(\"grid::coordinates\");\n\n // Loop over all maps\n const int m_min = 0;\n const int m_max = groupdata.grouptype == CCTK_GF ? Carpet::maps : 1;\n for (int m = m_min; m < m_max; ++m) {\n\n fstream file;\n OpenFile(cctkGH, m, vindex, alias, basefilename, dirs, is_new_file,\n truncate_file, file);\n\n // Find the output offset\n const ivect offset = groupdata.grouptype == CCTK_GF\n ? GetOutputOffset(cctkGH, m, dirs)\n : ivect(0);\n\n const gh *const hh = arrdata.at(group).at(m).hh;\n const dh *const dd = arrdata.at(group).at(m).dd;\n\n // Traverse all components on this multigrid level, refinement\n // level, and map\n const int c_min = 0;\n const int c_max = groupdata.grouptype == CCTK_GF\n ? hh->components(reflevel)\n : groupdata.disttype != CCTK_DISTRIB_CONSTANT\n ? CCTK_nProcs(cctkGH)\n : 1;\n for (int c = c_min; c < c_max; ++c) {\n int const lc = hh->get_local_component(rl, c);\n int const proc = hh->processor(rl, c);\n if (dist::rank() == proc or dist::rank() == ioproc) {\n\n const ibbox &data_ext = dd->light_boxes.at(ml).at(rl).at(c).exterior;\n const ibbox ext = GetOutputBBox(cctkGH, group, rl, m, c, data_ext);\n\n CCTK_REAL coord_time;\n rvect coord_lower, coord_upper;\n GetCoordinates(cctkGH, m, groupdata, ext, coord_time, coord_lower,\n coord_upper);\n\n // Apply offset\n ivect offset1;\n if (groupdata.grouptype == CCTK_GF) {\n const ibbox &baseext = hh->baseextents.at(ml).at(rl);\n offset1 = baseext.lower() + offset * ext.stride();\n } else {\n offset1 = offset * ext.stride();\n }\n for (int d = 0; d < outdim; ++d) {\n if (dirs[d] < 3) {\n offset1[dirs[d]] = ext.lower()[dirs[d]];\n }\n }\n\n const int tl_min = 0;\n const int tl_max = output_all_timelevels ? num_tl : 1;\n for (int tl = tl_min; tl < tl_max; ++tl) {\n\n mempool pool;\n\n const int n_min = one_file_per_group ? 0 : var;\n const int n_max =\n one_file_per_group ? CCTK_NumVarsInGroupI(group) : var + 1;\n vector datas(n_max - n_min);\n for (size_t n = 0; n < datas.size(); ++n) {\n int const vi = vindex0 + n;\n if (not CCTK_EQUALS(presync_mode, \"off\") and\n QueryDriverBCForVarI(cctkGH, vi)) {\n int const where = CCTK_VALID_EVERYWHERE;\n Driver_RequireValidData(cctkGH, &vi, &tl, 1, &where);\n }\n if (dist::rank() == proc) {\n const ggf *const ff = arrdata.at(group).at(m).data.at(n + n_min);\n datas.at(n) = ff->data_pointer(tl, rl, lc, ml);\n } else {\n datas.at(n) = NULL;\n }\n }\n\n vector coords;\n if (use_grid_coordinates and groupdata.grouptype == CCTK_GF) {\n coords.resize(dim);\n for (int d = 0; d < dim; ++d) {\n if (dist::rank() == proc) {\n const ggf *const ff = arrdata.at(coord_group).at(m).data.at(d);\n coords.at(d) = ff->data_pointer(0, rl, lc, ml);\n } else {\n coords.at(d) = NULL;\n }\n }\n }\n\n vector tmpdatas(datas.size());\n vector tmpcoords(coords.size());\n\n if (proc != ioproc) {\n\n for (size_t n = 0; n < datas.size(); ++n) {\n const ggf *const ff = arrdata.at(group).at(m).data.at(n + n_min);\n tmpdatas.at(n) = ff->new_typed_data();\n size_t const memsize =\n tmpdatas.at(n)->allocsize(data_ext, data_ext.sizes(), ioproc);\n void *const memptr = pool.alloc(memsize);\n tmpdatas.at(n)->allocate(data_ext, data_ext.sizes(), ivect(0),\n ioproc, memptr, memsize);\n } // for n\n for (size_t n = 0; n < coords.size(); ++n) {\n const ggf *const ff = arrdata.at(coord_group).at(m).data.at(n);\n tmpcoords.at(n) = ff->new_typed_data();\n size_t const memsize = tmpcoords.at(n)->allocsize(\n data_ext, data_ext.sizes(), ioproc);\n void *const memptr = pool.alloc(memsize);\n tmpcoords.at(n)->allocate(data_ext, data_ext.sizes(), ivect(0),\n ioproc, memptr, memsize);\n } // for n\n\n for (comm_state state; not state.done(); state.step()) {\n for (size_t n = 0; n < datas.size(); ++n) {\n gdata::copy_data(tmpdatas.at(n), state, datas.at(n), data_ext,\n data_ext, NULL, ioproc, proc);\n }\n for (size_t n = 0; n < coords.size(); ++n) {\n gdata::copy_data(tmpcoords.at(n), state, coords.at(n), data_ext,\n data_ext, NULL, ioproc, proc);\n }\n }\n\n } else {\n\n for (size_t n = 0; n < datas.size(); ++n) {\n tmpdatas.at(n) = const_cast(datas.at(n));\n }\n for (size_t n = 0; n < coords.size(); ++n) {\n tmpcoords.at(n) = const_cast(coords.at(n));\n }\n }\n\n if (dist::rank() == ioproc) {\n ostringstream buf;\n buf << setprecision(out_precision);\n WriteASCII(buf, tmpdatas, ext, vindex, cctkGH->cctk_iteration,\n offset1, dirs, rl, ml, m, c, tl, coord_time, coord_lower,\n coord_upper, tmpcoords);\n file << buf.str();\n }\n\n if (proc != ioproc) {\n for (size_t n = 0; n < tmpdatas.size(); ++n) {\n delete tmpdatas.at(n);\n }\n for (size_t n = 0; n < tmpcoords.size(); ++n) {\n delete tmpcoords.at(n);\n }\n }\n\n // Append EOL after every component\n if (dist::rank() == ioproc) {\n if (separate_components) {\n assert(file.good());\n file << eol;\n }\n assert(file.good());\n }\n\n } // for tl\n }\n } // for c\n\n // Append EOL after every complete set of components\n if (dist::rank() == ioproc) {\n if (separate_grids and not compact_format) {\n assert(file.good());\n file << eol;\n }\n assert(file.good());\n }\n\n CloseFile(cctkGH, file);\n\n } // for m\n}\n\ntemplate \nbool IOASCII::DidOutput(const cGH *const cctkGH, const int vindex,\n const string basefilename, bool &is_new_file,\n bool &truncate_file) {\n DECLARE_CCTK_PARAMETERS;\n\n typedef std::map > > > filelist;\n static filelist created_files;\n\n filelist::iterator thisfile = created_files.find(basefilename);\n is_new_file = thisfile == created_files.end();\n truncate_file = is_new_file and IO_TruncateOutputFiles(cctkGH);\n\n if (is_new_file) {\n const int numelems = one_file_per_group ? CCTK_NumGroups() : CCTK_NumVars();\n vector > > last_outputs; // [ml][rl][var]\n last_outputs.resize(mglevels);\n for (int ml = 0; ml < mglevels; ++ml) {\n last_outputs.at(ml).resize(maxreflevels);\n for (int rl = 0; rl < maxreflevels; ++rl) {\n last_outputs.at(ml).at(rl).resize(numelems, cctkGH->cctk_iteration - 1);\n }\n }\n // TODO: this makes a copy of last_outputs, which is expensive;\n // change this to use a reference instead\n thisfile = created_files.insert(\n thisfile, filelist::value_type(basefilename, last_outputs));\n assert(thisfile != created_files.end());\n }\n\n // Check if this variable has been output already during this\n // iteration\n const int elem =\n one_file_per_group ? CCTK_GroupIndexFromVarI(vindex) : vindex;\n int &last_output = thisfile->second.at(mglevel).at(reflevel).at(elem);\n if (last_output == cctkGH->cctk_iteration) {\n // has already been output during this iteration\n char *const fullname = CCTK_FullName(vindex);\n CCTK_VWARN(5, \"Skipping output for variable '%s', because this variable \"\n \"has already been output during the current iteration -- \"\n \"probably via a trigger during the analysis stage\",\n fullname);\n free(fullname);\n return true;\n }\n assert(last_output < cctkGH->cctk_iteration);\n last_output = cctkGH->cctk_iteration;\n\n return false;\n}\n\nCCTK_REAL io_files;\nCCTK_REAL io_bytes_begin, io_bytes_end;\n\ntemplate \nvoid IOASCII::OpenFile(const cGH *const cctkGH, const int m,\n const int vindex, const string alias,\n const string basefilename,\n const vect &dirs,\n const bool is_new_file, const bool truncate_file,\n fstream &file) {\n DECLARE_CCTK_PARAMETERS;\n\n BeginTimingIO(cctkGH);\n io_files = 0;\n io_bytes_begin = 0;\n io_bytes_end = 0;\n\n if (dist::rank() == ioproc) {\n\n const int grouptype = CCTK_GroupTypeFromVarI(vindex);\n assert(grouptype >= 0);\n\n // Invent a file name\n ostringstream filenamebuf;\n filenamebuf << basefilename;\n if (maps > 1 and grouptype == CCTK_GF) {\n filenamebuf << \".\" << m;\n }\n filenamebuf << \".\";\n if (new_filename_scheme) {\n for (int d = 0; d < outdim; ++d) {\n const char *const coords = \"xyzd\";\n filenamebuf << coords[dirs[d]];\n }\n filenamebuf << \".asc\";\n } else {\n for (int d = 0; d < outdim; ++d) {\n assert(dirs[d] >= 0 and dirs[d] < 4);\n const char *const coords = \"xyzd\";\n filenamebuf << coords[dirs[d]];\n }\n const char *const suffixes = \"plpv\";\n filenamebuf << suffixes[outdim];\n }\n // we need a persistent temporary here\n const string filenamestr = filenamebuf.str();\n const char *const filename = filenamestr.c_str();\n\n // Open the file\n file.open(filename, ios::out | (truncate_file ? ios::trunc : ios::app));\n if (not file.good()) {\n char *const fullname = CCTK_FullName(vindex);\n CCTK_VERROR(\"Could not open output file '%s' for variable '%s'\", filename,\n fullname);\n free(fullname);\n }\n io_files += 1;\n io_bytes_begin = file.tellg();\n\n // If this is the first time, then write a nice header\n if (is_new_file) {\n\n bool want_labels = false;\n bool want_date = false;\n bool want_parfilename = false;\n bool want_other = false;\n if (CCTK_EQUALS(out_fileinfo, \"none\")) {\n // do nothing\n } else if (CCTK_EQUALS(out_fileinfo, \"axis labels\")) {\n want_labels = true;\n } else if (CCTK_EQUALS(out_fileinfo, \"creation date\")) {\n want_date = true;\n } else if (CCTK_EQUALS(out_fileinfo, \"parameter filename\")) {\n want_parfilename = true;\n } else if (CCTK_EQUALS(out_fileinfo, \"all\")) {\n want_labels = true;\n want_date = true;\n want_parfilename = true;\n want_other = true;\n } else {\n CCTK_ERROR(\"internal error\");\n }\n\n file << \"# \" << outdim << \"D ASCII output created by CarpetIOASCII\"\n << eol;\n\n if (want_date) {\n char run_host[1000];\n Util_GetHostName(run_host, sizeof run_host);\n const char *run_user = getenv(\"USER\");\n if (not run_user) {\n run_user = \"\";\n }\n char run_date[1000];\n Util_CurrentDate(sizeof run_date, run_date);\n char run_time[1000];\n Util_CurrentTime(sizeof run_time, run_time);\n file << \"# created on \" << run_host << \" by \" << run_user << \" on \"\n << run_date << \" at \" << run_time << eol;\n assert(file.good());\n }\n\n if (want_parfilename) {\n char parameter_filename[10000];\n CCTK_ParameterFilename(sizeof parameter_filename, parameter_filename);\n file << \"# parameter filename: \\\"\" << parameter_filename << \"\\\"\" << eol;\n }\n\n if (want_other) {\n if (CCTK_IsFunctionAliased(\"UniqueBuildID\")) {\n const char *const build_id = (const char *)UniqueBuildID(cctkGH);\n file << \"# Build ID: \" << build_id << eol;\n }\n if (CCTK_IsFunctionAliased(\"UniqueSimulationID\")) {\n const char *const job_id = (const char *)UniqueSimulationID(cctkGH);\n file << \"# Simulation ID: \" << job_id << eol;\n }\n if (CCTK_IsFunctionAliased(\"UniqueRunID\")) {\n const char *const job_id = (const char *)UniqueRunID(cctkGH);\n file << \"# Run ID: \" << job_id << eol;\n }\n }\n\n file << \"#\" << eol;\n\n if (want_labels) {\n if (one_file_per_group) {\n char *const groupname = CCTK_GroupNameFromVarI(vindex);\n file << \"# \" << groupname;\n free(groupname);\n } else {\n const char *const varname = CCTK_VarName(vindex);\n file << \"# \" << varname;\n }\n for (int d = 0; d < outdim; ++d) {\n file << \" \"\n << \"xyzd\"[dirs[d]];\n }\n file << \" (\" << alias << \")\" << eol;\n file << \"#\" << eol;\n }\n\n } // if is_new_file\n\n file << setprecision(out_precision);\n assert(file.good());\n\n } // if on the I/O processor\n}\n\ntemplate \nvoid IOASCII::CloseFile(const cGH *const cctkGH, fstream &file) {\n DECLARE_CCTK_PARAMETERS;\n\n if (dist::rank() == ioproc) {\n io_bytes_end = file.tellg();\n file.close();\n assert(file.good());\n }\n\n assert(not file.is_open());\n\n CCTK_REAL const io_bytes = io_bytes_end - io_bytes_begin;\n EndTimingIO(cctkGH, io_files, io_bytes, false);\n}\n\n// Check whether this output direction has been requested\ntemplate \nbool IOASCII::DirectionIsRequested(const vect &dirs) {\n DECLARE_CCTK_PARAMETERS;\n\n switch (outdim) {\n\n case 0:\n // Output is always requested (if switched on)\n return true;\n\n case 1:\n switch (dirs[0]) {\n case 0:\n return out1D_x;\n case 1:\n return out1D_y;\n case 2:\n return out1D_z;\n case 3:\n return out1D_d;\n }\n assert(0);\n\n case 2:\n if (dirs[0] == 0 and dirs[1] == 1)\n return out2D_xy;\n if (dirs[0] == 0 and dirs[1] == 2)\n return out2D_xz;\n if (dirs[0] == 1 and dirs[1] == 2)\n return out2D_yz;\n assert(0);\n\n case 3:\n // Output is always requested (if switched on)\n return true;\n }\n assert(0);\n}\n\n// Get the region that should be output, in terms of grid points;\n// this is the offset perpendicular to the output hyperslab\ntemplate \nivect IOASCII::GetOutputOffset(const cGH *const cctkGH, const int m,\n const vect &dirs) {\n DECLARE_CCTK_PARAMETERS;\n\n // Default is zero\n ivect offset(0);\n\n switch (outdim) {\n\n case 0:\n // 0D output\n offset[0] =\n GetGridOffset(cctkGH, m, 1, \"out0D_point_xi\", /*\"out_point_xi\"*/ NULL,\n \"out0D_point_x\", /*\"out_point_x\"*/ NULL,\n /*out_point_x*/ 0.0);\n offset[1] =\n GetGridOffset(cctkGH, m, 2, \"out0D_point_yi\", /*\"out_point_yi\"*/ NULL,\n \"out0D_point_y\", /*\"out_point_y\"*/ NULL,\n /*out_point_y*/ 0.0);\n offset[2] =\n GetGridOffset(cctkGH, m, 3, \"out0D_point_zi\", /*\"out_point_zi\"*/ NULL,\n \"out0D_point_z\", /*\"out_point_z\"*/ NULL,\n /*out_point_z*/ 0.0);\n break;\n\n case 1:\n // 1D output\n switch (dirs[0]) {\n case 0:\n offset[1] = GetGridOffset(cctkGH, m, 2, \"out1D_xline_yi\", \"out_xline_yi\",\n \"out1D_xline_y\", \"out_xline_y\", out_xline_y);\n offset[2] = GetGridOffset(cctkGH, m, 3, \"out1D_xline_zi\", \"out_xline_zi\",\n \"out1D_xline_z\", \"out_xline_z\", out_xline_z);\n break;\n case 1:\n offset[0] = GetGridOffset(cctkGH, m, 1, \"out1D_yline_xi\", \"out_yline_xi\",\n \"out1D_yline_x\", \"out_yline_x\", out_yline_x);\n offset[2] = GetGridOffset(cctkGH, m, 3, \"out1D_yline_zi\", \"out_yline_zi\",\n \"out1D_yline_z\", \"out_yline_z\", out_yline_z);\n break;\n case 2:\n offset[0] = GetGridOffset(cctkGH, m, 1, \"out1D_zline_xi\", \"out_zline_xi\",\n \"out1D_zline_x\", \"out_zline_x\", out_zline_x);\n offset[1] = GetGridOffset(cctkGH, m, 2, \"out1D_zline_yi\", \"out_zline_yi\",\n \"out1D_zline_y\", \"out_zline_y\", out_zline_y);\n break;\n case 3:\n // the diagonal: we don't care about the offset\n break;\n default:\n assert(0);\n }\n break;\n\n case 2:\n // 2D output\n if (dirs[0] == 0 and dirs[1] == 1) {\n offset[2] =\n GetGridOffset(cctkGH, m, 3, \"out2D_xyplane_zi\", \"out_xyplane_zi\",\n \"out2D_xyplane_z\", \"out_xyplane_z\", out_xyplane_z);\n } else if (dirs[0] == 0 and dirs[1] == 2) {\n offset[1] =\n GetGridOffset(cctkGH, m, 2, \"out2D_xzplane_yi\", \"out_xzplane_yi\",\n \"out2D_xzplane_y\", \"out_xzplane_y\", out_xzplane_y);\n } else if (dirs[0] == 1 and dirs[1] == 2) {\n offset[0] =\n GetGridOffset(cctkGH, m, 1, \"out2D_yzplane_xi\", \"out_yzplane_xi\",\n \"out2D_yzplane_x\", \"out_yzplane_x\", out_yzplane_x);\n } else {\n assert(0);\n }\n break;\n\n case 3:\n // 3D output: the offset does not matter\n break;\n\n default:\n assert(0);\n }\n\n return offset;\n}\n\n// Omit symmetry and ghost zones if requested\nibbox GetOutputBBox(const cGH *const cctkGH, const int group, const int rl,\n const int m, const int c, const ibbox &ext) {\n DECLARE_CCTK_PARAMETERS;\n\n const int groupdim = CCTK_GroupDimI(group);\n assert(groupdim >= 0);\n const int grouptype = CCTK_GroupTypeI(group);\n assert(grouptype >= 0);\n\n // TODO: This is a bit ad hoc\n CCTK_INT symtable;\n if (grouptype == CCTK_GF and groupdim == cctkGH->cctk_dim) {\n symtable = SymmetryTableHandleForGrid(cctkGH);\n if (symtable < 0)\n CCTK_ERROR(\"internal error\");\n } else {\n symtable = SymmetryTableHandleForGI(cctkGH, group);\n if (symtable < 0)\n CCTK_ERROR(\"internal error\");\n }\n\n CCTK_INT symbnd[2 * dim];\n int const ierr =\n Util_TableGetIntArray(symtable, 2 * groupdim, symbnd, \"symmetry_handle\");\n if (ierr != 2 * groupdim)\n CCTK_ERROR(\"internal error\");\n\n bool is_symbnd[2 * dim];\n for (int d = 0; d < 2 * groupdim; ++d) {\n is_symbnd[d] = symbnd[d] >= 0;\n }\n\n ivect lo = ext.lower();\n ivect hi = ext.upper();\n const ivect str = ext.stride();\n\n const b2vect obnds = vhh.at(m)->outer_boundaries(rl, c);\n const i2vect ghost_width = arrdata.at(group).at(m).dd->ghost_widths.at(rl);\n\n for (int d = 0; d < groupdim; ++d) {\n bool const output_lower_ghosts =\n obnds[0][d] ? (is_symbnd[2 * d]\n ? output_symmetry_points\n : (output_boundary_points and out3D_outer_ghosts))\n : (output_ghost_points and out3D_ghosts);\n bool const output_upper_ghosts =\n obnds[1][d] ? (is_symbnd[2 * d + 1]\n ? output_symmetry_points\n : (output_boundary_points and out3D_outer_ghosts))\n : (output_ghost_points and out3D_ghosts);\n\n if (not output_lower_ghosts) {\n lo[d] += ghost_width[0][d] * str[d];\n }\n if (not output_upper_ghosts) {\n hi[d] -= ghost_width[1][d] * str[d];\n }\n }\n\n return ibbox(lo, hi, str);\n}\n\n// Determine coordinates\nvoid GetCoordinates(const cGH *const cctkGH, const int m,\n const cGroup &groupdata, const ibbox &ext,\n CCTK_REAL &coord_time, rvect &coord_lower,\n rvect &coord_upper) {\n coord_time = cctkGH->cctk_time;\n\n rvect global_lower;\n rvect coord_delta;\n if (groupdata.grouptype == CCTK_GF) {\n rvect const cctk_origin_space = origin_space.at(m).at(mglevel);\n rvect const cctk_delta_space = delta_space.at(m) * rvect(mglevelfact);\n for (int d = 0; d < dim; ++d) {\n // lower boundary of Carpet's integer indexing\n global_lower[d] = cctk_origin_space[d];\n // grid spacing of Carpet's integer indexing\n coord_delta[d] = (cctk_delta_space[d] /\n vhh.at(m)->baseextents.at(0).at(0).stride()[d]);\n }\n } else {\n for (int d = 0; d < dim; ++d) {\n global_lower[d] = 0.0;\n coord_delta[d] = 1.0;\n }\n }\n\n coord_lower = global_lower + coord_delta * rvect(ext.lower());\n coord_upper = global_lower + coord_delta * rvect(ext.upper());\n}\n\nint GetGridOffset(const cGH *const cctkGH, const int m, const int dir,\n const char *const iparam, const char *const iglobal,\n const char *const cparam, const char *const cglobal,\n const CCTK_REAL cfallback) {\n // First choice: explicit coordinate\n const int ncparam = CCTK_ParameterQueryTimesSet(cparam, CCTK_THORNSTRING);\n assert(ncparam >= 0);\n if (ncparam > 0) {\n int ptype;\n const CCTK_REAL *const pcoord = ((const CCTK_REAL *)CCTK_ParameterGet(\n cparam, CCTK_THORNSTRING, &ptype));\n assert(pcoord);\n const CCTK_REAL coord = *pcoord;\n assert(ptype == PARAMETER_REAL);\n return CoordToOffset(cctkGH, m, dir, coord, 0);\n }\n\n // Second choice: explicit index\n const int niparam = CCTK_ParameterQueryTimesSet(iparam, CCTK_THORNSTRING);\n assert(niparam >= 0);\n if (niparam > 0) {\n int ptype;\n const int *const pindex =\n (const int *)CCTK_ParameterGet(iparam, CCTK_THORNSTRING, &ptype);\n assert(pindex);\n const int index = *pindex;\n assert(ptype == PARAMETER_INT);\n return index;\n }\n\n // Third choice: explicit global coordinate\n const char *iothorn = CCTK_ImplementationThorn(\"IO\");\n assert(iothorn);\n if (cglobal) {\n const int ncglobal = CCTK_ParameterQueryTimesSet(cglobal, iothorn);\n assert(ncglobal >= 0);\n if (ncglobal > 0) {\n int ptype;\n const CCTK_REAL *const pcoord =\n (const CCTK_REAL *)CCTK_ParameterGet(cglobal, iothorn, &ptype);\n assert(pcoord);\n const CCTK_REAL coord = *pcoord;\n assert(ptype == PARAMETER_REAL);\n return CoordToOffset(cctkGH, m, dir, coord, 0);\n }\n }\n\n // Fourth choice: explicit global index\n if (iglobal) {\n const int niglobal = CCTK_ParameterQueryTimesSet(iglobal, iothorn);\n assert(niglobal >= 0);\n if (niglobal > 0) {\n int ptype;\n const int *const pindex =\n (const int *)CCTK_ParameterGet(iglobal, iothorn, &ptype);\n assert(pindex);\n const int index = *pindex;\n assert(ptype == PARAMETER_INT);\n return index;\n }\n }\n\n // Fifth choice: default coordinate\n return CoordToOffset(cctkGH, m, dir, cfallback, 0);\n}\n\nint CoordToOffset(const cGH *cctkGH, const int m, const int dir,\n const CCTK_REAL coord, const int ifallback) {\n assert(m >= 0 and m < Carpet::maps and dir >= 1 and dir <= dim);\n\n assert(mglevel != -1 and reflevel != -1 and Carpet::map == -1);\n\n rvect const cctk_origin_space = origin_space.at(m).at(mglevel);\n rvect const cctk_delta_space = delta_space.at(m) * rvect(mglevelfact);\n ivect const cctk_levfac = spacereffacts.at(reflevel);\n ibbox const &coarseext = vhh.at(m)->baseextents.at(mglevel).at(0);\n ibbox const &baseext = vhh.at(m)->baseextents.at(mglevel).at(reflevel);\n ivect const cctk_levoff = baseext.lower() - coarseext.lower();\n ivect const cctk_levoffdenom = baseext.stride();\n\n const CCTK_REAL delta = cctk_delta_space[dir - 1] / cctk_levfac[dir - 1];\n const CCTK_REAL lower = cctk_origin_space[dir - 1] +\n cctk_delta_space[dir - 1] / cctk_levfac[dir - 1] *\n cctk_levoff[dir - 1] / cctk_levoffdenom[dir - 1];\n\n const CCTK_REAL rindex = (coord - lower) / delta;\n int cindex = lrint(floor(rindex + 0.75));\n\n return cindex;\n}\n\nCCTK_REAL nicelooking(const CCTK_REAL val, const CCTK_REAL base) {\n return floor(val / base + 0.5) * base;\n}\n\n// Output\ntemplate \nvoid WriteASCII(ostream &os, vector const &gfdatas,\n const bbox &gfext, const int vi, const int time,\n const vect &org, const vect &dirs,\n const int rl, const int ml, const int m, const int c,\n const int tl, const CCTK_REAL coord_time,\n const vect &coord_lower,\n const vect &coord_upper,\n vector const &gfcoords) {\n DECLARE_CCTK_PARAMETERS;\n\n assert(outdim <= dim);\n\n const int vartype = CCTK_VarTypeI(vi);\n const int grouptype = CCTK_GroupTypeFromVarI(vi);\n const int groupdim = CCTK_GroupDimFromVarI(vi);\n\n if (CCTK_EQUALS(out_fileinfo, \"axis labels\") or\n CCTK_EQUALS(out_fileinfo, \"all\")) {\n\n assert(os.good());\n\n if (not compact_format or grouptype == CCTK_GF) {\n // Don't output a comment with iteration number and time,\n // because these are always output with the real data anyway\n os << \"# iteration \" << time << \" time \" << coord_time << eol;\n os << \"# time level \" << tl << eol;\n os << \"# refinement level \" << rl << \" multigrid level \" << ml\n << \" map \" << m << \" component \" << c << eol;\n }\n static vector did_output_format;\n if (did_output_format.empty()) {\n did_output_format.resize(CCTK_NumVars());\n }\n if (not compact_format or not did_output_format.AT(vi)) {\n did_output_format.AT(vi) = true;\n os << \"# column format: 1:it\";\n int col = 2;\n if (not compact_format or output_all_timelevels) {\n os << \"\\t\" << col++ << \":tl\";\n }\n if (not compact_format) {\n os << \"\\t\" << col++ << \":rl\";\n os << \" \" << col++ << \":c\";\n os << \" \" << col++ << \":ml\";\n }\n assert(dim >= 0 and dim <= 3);\n const char *const coords = \"xyz\";\n if (not compact_format) {\n for (int d = 0; d < dim; ++d) {\n os << (d == 0 ? \"\\t\" : \" \") << col++ << \":i\" << coords[d];\n }\n } else {\n for (int d = 0; d < min(dim, groupdim); ++d) {\n os << (d == 0 ? \"\\t\" : \" \") << col++ << \":i\" << coords[d];\n }\n }\n os << \"\\t\" << col++ << \":time\";\n if (not compact_format or grouptype == CCTK_GF) {\n for (int d = 0; d < dim; ++d) {\n os << (d == 0 ? \"\\t\" : \" \") << col++ << \":\" << coords[d];\n }\n }\n os << \"\\t\" << col << \":data\" << eol;\n if (one_file_per_group) {\n os << \"# data columns:\";\n int const gindex = CCTK_GroupIndexFromVarI(vi);\n int const firstvar = CCTK_FirstVarIndexI(gindex);\n int const numvars = CCTK_NumVarsInGroupI(gindex);\n for (int n = firstvar; n < firstvar + numvars; ++n) {\n os << \" \" << col << \":\" << CCTK_VarName(n);\n col += CarpetSimpleMPIDatatypeLength(vartype);\n }\n os << eol;\n }\n }\n\n } // if out_fileinfo\n\n // boolean that says if we are doing 1D-diagonal output\n // This is not beautiful, but works for the moment\n bool const diagonal_output = outdim == 1 and dirs[0] == 3;\n\n if (not diagonal_output) { // not outputting the diagonal\n\n const vect lo = gfext.lower()[dirs];\n const vect up = gfext.upper()[dirs];\n const vect str = gfext.stride()[dirs];\n const bbox ext(lo, up, str);\n\n // check whether the output origin is contained in the extent of\n // the data that should be output\n ivect org1(org);\n for (int d = 0; d < outdim; ++d)\n org1[dirs[d]] = ext.lower()[d];\n if (gfext.contains(org1)) {\n\n typename bbox::iterator it = ext.begin();\n do {\n\n ivect index(org);\n for (int d = 0; d < outdim; ++d)\n index[dirs[d]] = (*it)[d];\n os << time;\n if (not compact_format or output_all_timelevels) {\n os << \"\\t\" << tl;\n }\n if (not compact_format) {\n // Don't output the grid structure in compact format (it\n // is still output in the comments above every component)\n os << \"\\t\" << rl << \" \" << c << \" \" << ml;\n }\n if (not compact_format) {\n for (int d = 0; d < dim; ++d) {\n os << (d == 0 ? \"\\t\" : \" \") << index[d];\n }\n } else {\n // In the compact format, output one column for each of\n // the group's dimension, don't always output three\n // columns\n for (int d = 0; d < min(dim, groupdim); ++d) {\n os << (d == 0 ? \"\\t\" : \" \") << index[d];\n }\n }\n os << \"\\t\" << coord_time;\n if (not compact_format or grouptype == CCTK_GF) {\n for (int d = 0; d < dim; ++d) {\n os << (d == 0 ? \"\\t\" : \" \");\n assert(gfext.upper()[d] - gfext.lower()[d] >= 0);\n if (gfcoords.empty()) {\n // Calculate coordinates\n if (gfext.upper()[d] - gfext.lower()[d] == 0) {\n os << coord_lower[d];\n } else {\n CCTK_REAL const dx = ((coord_upper[d] - coord_lower[d]) /\n (gfext.upper()[d] - gfext.lower()[d]));\n os << (nicelooking(coord_lower[d] +\n (index[d] - gfext.lower()[d]) * dx,\n dx * 1.0e-8));\n }\n } else {\n // Use coordinate grid functions\n const gdata *gfcoord = gfcoords.at(d);\n os << (*(const CarpetLib::data *)gfcoord)[index];\n }\n }\n }\n for (size_t n = 0; n < gfdatas.size(); ++n) {\n const gdata *gfdata = gfdatas.at(n);\n os << (n == 0 ? \"\\t\" : \" \");\n switch (specific_cactus_type(vartype)) {\n#define CARPET_NO_COMPLEX\n#define TYPECASE(N, T) \\\n case N: \\\n os << (*(const CarpetLib::data *)gfdata)[index]; \\\n break;\n#include \"typecase.hh\"\n#undef TYPECASE\n#undef CARPET_NO_COMPLEX\n#define CARPET_COMPLEX\n#define TYPECASE(N, T) \\\n case N: \\\n os << real((*(const CarpetLib::data *)gfdata)[index]) << \" \" \\\n << imag((*(const CarpetLib::data *)gfdata)[index]); \\\n break;\n#include \"typecase.hh\"\n#undef TYPECASE\n#undef CARPET_COMPLEX\n default:\n UnsupportedVarType(vi);\n }\n } // for n\n os << eol;\n\n ++it;\n\n for (int d = 0; d < outdim; ++d) {\n if ((*it)[d] != (*ext.end())[d])\n break;\n if (not compact_format or ext.shape()[d] > ext.stride()[d]) {\n // In the compact format, don't separate outputs that\n // consist of a single lines only\n os << eol;\n }\n }\n\n } while (it != ext.end());\n\n } else {\n\n if (not compact_format) {\n os << \"#\" << eol;\n }\n\n } // if not ext contains org\n\n assert(os.good());\n\n } else { // taking care of the diagonal\n\n const ivect lo = gfext.lower();\n const ivect up = gfext.upper();\n const ivect str = gfext.stride();\n const ibbox ext(lo, up, str);\n\n gh const &hh = *vhh.at(m);\n ibbox const &base = hh.baseextents.at(mglevel).at(reflevel);\n\n assert(base.stride()[0] == base.stride()[1] and\n base.stride()[0] == base.stride()[2]);\n\n // output the data on the diagonal\n for (int i = maxval(base.lower()); i <= minval(base.upper());\n i += base.stride()[0]) {\n\n ivect const pos = ivect(i, i, i);\n\n // check if the point in question is in our gf's extent\n if (gfext.contains(pos)) {\n os << time;\n if (not compact_format) {\n // Don't output the grid structure in compact format (it\n // is still output in the comments above every component)\n os << \"\\t\" << tl << \" \" << rl << \" \" << c << \" \" << ml;\n }\n for (int d = 0; d < dim; ++d) {\n os << (d == 0 ? \"\\t\" : \" \") << pos[d];\n }\n os << \"\\t\" << coord_time;\n for (int d = 0; d < dim; ++d) {\n os << (d == 0 ? \"\\t\" : \" \");\n assert(gfext.upper()[d] - gfext.lower()[d] >= 0);\n if (gfext.upper()[d] - gfext.lower()[d] == 0) {\n os << coord_lower[d];\n } else {\n CCTK_REAL const dx = ((coord_upper[d] - coord_lower[d]) /\n (gfext.upper()[d] - gfext.lower()[d]));\n os << (nicelooking(coord_lower[d] +\n (pos[d] - gfext.lower()[d]) * dx,\n dx * 1.0e-8));\n }\n }\n for (size_t n = 0; n < gfdatas.size(); ++n) {\n const gdata *gfdata = gfdatas.at(n);\n os << (n == 0 ? \"\\t\" : \" \");\n switch (specific_cactus_type(vartype)) {\n#define TYPECASE(N, T) \\\n case N: \\\n os << (*(const CarpetLib::data *)gfdata)[pos]; \\\n break;\n#include \"typecase.hh\"\n#undef TYPECASE\n default:\n UnsupportedVarType(vi);\n }\n } // for n\n os << eol;\n\n } else {\n\n if (not compact_format) {\n os << \"#\" << eol;\n }\n\n } // if not ext contains org\n\n } // end for loop\n\n if (not compact_format or maxval(base.lower()) > minval(base.upper())) {\n // In the compact format, don't separate outputs that consist\n // of a single lines only\n os << eol;\n }\n\n assert(os.good());\n\n } // if diagonal_output\n}\n\n// Explicit instantiation for all output dimensions\ntemplate struct IOASCII<0>;\ntemplate struct IOASCII<1>;\ntemplate struct IOASCII<2>;\ntemplate struct IOASCII<3>;\n\ntemplate void WriteASCII(ostream &os, vector const &gfdatas,\n const bbox &gfext, const int vi,\n const int time, const vect &org,\n const vect &dirs, const int rl, const int ml,\n const int m, const int c, const int tl,\n const CCTK_REAL coord_time,\n const vect &coord_lower,\n const vect &coord_upper,\n vector const &gfcoords);\n\ntemplate void WriteASCII(ostream &os, vector const &gfdatas,\n const bbox &gfext, const int vi,\n const int time, const vect &org,\n const vect &dirs, const int rl, const int ml,\n const int m, const int c, const int tl,\n const CCTK_REAL coord_time,\n const vect &coord_lower,\n const vect &coord_upper,\n vector const &gfcoords);\n\ntemplate void WriteASCII(ostream &os, vector const &gfdatas,\n const bbox &gfext, const int vi,\n const int time, const vect &org,\n const vect &dirs, const int rl, const int ml,\n const int m, const int c, const int tl,\n const CCTK_REAL coord_time,\n const vect &coord_lower,\n const vect &coord_upper,\n vector const &gfcoords);\n\ntemplate void WriteASCII(ostream &os, vector const &gfdatas,\n const bbox &gfext, const int vi,\n const int time, const vect &org,\n const vect &dirs, const int rl, const int ml,\n const int m, const int c, const int tl,\n const CCTK_REAL coord_time,\n const vect &coord_lower,\n const vect &coord_upper,\n vector const &gfcoords);\n\n} // namespace CarpetIOASCII\n", diff --git a/Carpet_CarpetIOBasic.json b/Carpet_CarpetIOBasic.json index cac9b3e9bac9c7cd9532acd63bdfc3cd3c7f9137..007c0ee9db4c8f8e10d3f078c183bf21b6e3829e 100644 --- a/Carpet_CarpetIOBasic.json +++ b/Carpet_CarpetIOBasic.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "# Configuration definitions for thorn CarpetIOBasic\n\nREQUIRES Carpet CarpetLib IOUtil\n", "interface": "# Interface definition for thorn CarpetIOBasic\n\nIMPLEMENTS: IOBasic\n\nINHERITS: IO\n\nCCTK_INT last_output_iteration TYPE=scalar\nCCTK_REAL last_output_time TYPE=scalar\nCCTK_INT this_iteration TYPE=scalar\n\nUSES INCLUDE HEADER: Timer.hh\n\nUSES INCLUDE HEADER: carpet.hh\nUSES INCLUDE HEADER: typecase.hh\nUSES INCLUDE HEADER: typeprops.hh\n\nCCTK_INT FUNCTION Driver_RequireValidData\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT ARRAY IN variables,\n CCTK_INT ARRAY IN tls,\n CCTK_INT IN nvariables,\n CCTK_INT ARRAY IN where)\nUSES FUNCTION Driver_RequireValidData\n", - "params": "", + "param": "# Parameter definitions for thorn CarpetIOBasic\n\nshares: cactus\n\nUSES KEYWORD presync_mode\n\nSHARES: IO\n\nUSES KEYWORD out_criterion\nUSES CCTK_INT out_every\nUSES CCTK_REAL out_dt\n\nUSES BOOLEAN strict_io_parameter_check\n\n\n\nPRIVATE:\n\nCCTK_STRING outInfo_vars \"Variables to output in scalar form\" STEERABLE = ALWAYS\n{\n \"\" :: \"A regex which matches everything\"\n} \"\"\n\nCCTK_STRING outInfo_reductions \"List of reductions to output in scalar form\" STEERABLE = ALWAYS\n{\n \"\" :: \"A regex which matches everything\"\n} \"minimum maximum\"\n\n\n\nKEYWORD outInfo_criterion \"Criterion to select scalar output intervals, overrides out_every\" STEERABLE = ALWAYS\n{\n \"never\" :: \"Never output\"\n \"iteration\" :: \"Output every so many iterations\"\n \"divisor\" :: \"Output if iteration mod divisor == 0.\"\n \"time\" :: \"Output every that much coordinate time\"\n} \"iteration\"\n\nCCTK_INT outInfo_every \"How often to do scalar output, overrides IO::out_every\" STEERABLE = ALWAYS\n{\n 1:* :: \"Output every so many time steps\"\n -1:0 :: \"No output\"\n -2 :: \"Default to IO::out_every\"\n} -2\n\nREAL outInfo_dt \"How often to do scalar output, overrides out_dt\" STEERABLE = ALWAYS\n{\n (0:* :: \"In intervals of that much coordinate time\"\n 0 :: \"As often as possible\"\n -1 :: \"Disable output\"\n -2 :: \"Default to IO::out_dt\"\n} -2\n\n\nINT outHeader_every \"How often to print the header\" STEERABLE = ALWAYS\n{\n 1:* :: \"Output every so many time steps\" \n -1 :: \"No header output\"\n} 20\n\n# Output field widths and precisions\n\nINT iter_width \"Field width for the current iteration\" STEERABLE = ALWAYS\n{\n 1:* :: \"\"\n} 9\n\nINT time_width \"Field width for the simulation time\" STEERABLE = ALWAYS\n{\n 1:* :: \"\"\n} 9\n\nINT time_prec \"Precision for the simulation time\" STEERABLE = ALWAYS\n{\n 0:* :: \"\"\n} 3\n\n\n\nINT int_width \"Field width for integer values\" STEERABLE = ALWAYS\n{\n 1:* :: \"\"\n} 9\n \nINT real_width \"Field width for real values\" STEERABLE = ALWAYS\n{\n 1:* :: \"\"\n} 12\n \nINT real_prec \"Precision for real values\" STEERABLE = ALWAYS\n{\n 0:* :: \"\"\n} 7\n \nINT real_prec_sci \"Precision for real values in scientific notation\" STEERABLE = ALWAYS\n{\n 0:* :: \"\"\n} 6\n\n\n\nREAL real_min \"Lower bound for numbers that are displayed in fixed notation\" STEERABLE = ALWAYS\n{\n (0.0:* :: \"\"\n} 1.0e-8\n\nREAL real_max \"Upper bound for numbers that are displayed in fixed notation\" STEERABLE = ALWAYS\n{\n (0.0:* :: \"\"\n} 1.0e+3\n", "schedule": "# Schedule definitions for thorn CarpetIOBasic\n\nstorage: last_output_iteration last_output_time this_iteration\n\nschedule CarpetIOBasicStartup at STARTUP after IOUtil_Startup\n{\n LANG: C\n OPTIONS: global\n} \"Startup routine\"\n\nschedule CarpetIOBasicInit at INITIAL\n{\n LANG: C\n OPTIONS: global\n WRITES: CarpetIOBasic::last_output_iteration\n WRITES: CarpetIOBasic::last_output_time\n WRITES: CarpetIOBasic::this_iteration\n} \"Initialisation routine\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn CarpetIOBasic\n\n# Source files in this directory\nSRCS = iobasic.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/Carpet_CarpetIOHDF5.json b/Carpet_CarpetIOHDF5.json index 1dcc8c50fbf20ca3302e2310c8459f784392883a..c237249edf27fc7ebc717747c8738f65248573ea 100644 --- a/Carpet_CarpetIOHDF5.json +++ b/Carpet_CarpetIOHDF5.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:41fc953aa03b368402f8cb6b6593b4c751a8a2f53d9d96365861c578e12f904d -size 13402987 +oid sha256:411a3d243548ac7115e4ecfb65cdf0c937c7da3901f594d3013d36f477d522f6 +size 13418349 diff --git a/Carpet_CarpetIOScalar.json b/Carpet_CarpetIOScalar.json index 47f7bc539ace44490741928281b71f9b972b8c59..21051f815f60652641cb7477ab7ca461a68a4fc3 100644 --- a/Carpet_CarpetIOScalar.json +++ b/Carpet_CarpetIOScalar.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "# Configuration definitions for thorn CarpetIOScalar\n\nREQUIRES Carpet CarpetLib IOUtil\n", "interface": "# Interface definition for thorn CarpetIOScalar\n\nIMPLEMENTS: IOScalar\n\nCCTK_INT last_output_iteration TYPE=scalar\nCCTK_REAL last_output_time TYPE=scalar\nCCTK_INT this_iteration TYPE=scalar\n\nUSES INCLUDE HEADER: Timer.hh\n\nUSES INCLUDE HEADER: carpet.hh\nUSES INCLUDE HEADER: typecase.hh\nUSES INCLUDE HEADER: typeprops.hh\n\n# function to check whether existing output files should be truncated or not\nCCTK_INT FUNCTION IO_TruncateOutputFiles \\\n (CCTK_POINTER_TO_CONST IN GH)\n\nREQUIRES FUNCTION IO_TruncateOutputFiles\n\n# Return a pointer to an unmodifiable C string\n# which contains a unique ID for this build\nCCTK_POINTER_TO_CONST \\\nFUNCTION UniqueBuildID (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION UniqueBuildID\n\n# Return a pointer to an unmodifiable C string\n# which contains a unique ID for this simulation\nCCTK_POINTER_TO_CONST \\\nFUNCTION UniqueSimulationID (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION UniqueSimulationID\n\n# Return a pointer to an unmodifiable C string\n# which contains a unique ID for this run\nCCTK_POINTER_TO_CONST \\\nFUNCTION UniqueRunID (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION UniqueRunID\n\n# Presync functions to interface with read/write data\nCCTK_INT FUNCTION Driver_RequireValidData\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT ARRAY IN variables,\n CCTK_INT ARRAY IN tls,\n CCTK_INT IN nvariables,\n CCTK_INT ARRAY IN where)\nUSES FUNCTION Driver_RequireValidData\n", - "params": "", + "param": "# Parameter definitions for thorn CarpetIOScalar\n\nshares: cactus\n\nUSES KEYWORD presync_mode\n\nshares: IO\n\nUSES STRING out_dir\n\nUSES KEYWORD out_criterion\nUSES CCTK_INT out_every\nUSES CCTK_REAL out_dt\n\nUSES BOOLEAN strict_io_parameter_check\nUSES KEYWORD verbose\nUSES KEYWORD out_fileinfo\nUSES STRING out_group_separator\n\n\n\nprivate:\n\n\n\nBOOLEAN one_file_per_group \"Write one file per group instead of per variable\"\n{\n} \"no\"\n\nBOOLEAN all_reductions_in_one_file \"Write all requested reductions in one file instead of per reduction\"\n{\n} \"no\"\n\n\n\nINT out_precision \"How many digits to output floating-point numbers with\" STEERABLE = ALWAYS\n{\n 0:* :: \"Number of precision digits\"\n} 15\n\n\n\nCCTK_STRING outScalar_dir \"Name of scalar output directory, overrides out_dir\" STEERABLE = ALWAYS\n{\n \"^$\" :: \"Empty: use IO::out_dir\"\n \".+\" :: \"Not empty: directory name\"\n} \"\"\n\nCCTK_STRING outScalar_vars \"Variables to output in scalar form\" STEERABLE = ALWAYS\n{\n \"\" :: \"A regex which matches everything\"\n} \"\"\n\nCCTK_STRING outScalar_reductions \"List of reductions to output in scalar form\" STEERABLE = ALWAYS\n{\n \"\" :: \"A regex which matches everything\"\n} \"count minimum maximum sum average norm1 norm2 norm_inf icount iaverage inorm1 inorm2\"\n\n\n\nKEYWORD outScalar_criterion \"Criterion to select scalar output intervals, overrides out_every\" STEERABLE = ALWAYS\n{\n \"never\" :: \"Never output\"\n \"iteration\" :: \"Output every so many iterations\"\n \"divisor\" :: \"Output if iteration mod divisor == 0.\"\n \"time\" :: \"Output every that much coordinate time\"\n} \"iteration\"\n\nCCTK_INT outScalar_every \"How often to do scalar output, overrides IO::out_every\" STEERABLE = ALWAYS\n{\n 1:* :: \"Output every so many time steps\"\n -1:0 :: \"No output\"\n -2 :: \"Default to IO::out_every\"\n} -2\n\nREAL outScalar_dt \"How often to do scalar output, overrides out_dt\" STEERABLE = ALWAYS\n{\n (0:* :: \"In intervals of that much coordinate time\"\n 0 :: \"As often as possible\"\n -1 :: \"Disable output\"\n -2 :: \"Default to IO::out_dt\"\n} -2\n", "schedule": "# Schedule definitions for thorn CarpetIOScalar\n\nstorage: last_output_iteration last_output_time this_iteration\n\nschedule CarpetIOScalarStartup at STARTUP after IOUtil_Startup\n{\n LANG: C\n OPTIONS: global\n} \"Startup routine\"\n\nschedule CarpetIOScalarInit at INITIAL\n{\n LANG: C\n OPTIONS: global\n WRITES: CarpetIOScalar::last_output_iteration\n WRITES: CarpetIOScalar::last_output_time\n WRITES: CarpetIOScalar::this_iteration\n} \"Initialisation routine\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn CarpetIOScalar\n\n# Source files in this directory\nSRCS = ioscalar.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/Carpet_CarpetIntegrateTest.json b/Carpet_CarpetIntegrateTest.json index 5a766cbfcf51d09a89ae4f99e80ecad43071b47b..726a1d1d96a3ed4cab11159d1f2694d66b6da76d 100644 --- a/Carpet_CarpetIntegrateTest.json +++ b/Carpet_CarpetIntegrateTest.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "REQUIRES Carpet\n", "interface": "implements: CarpetIntegrateTest\n\ninherits: Reduce Grid Driver\n\nCCTK_REAL integrand TYPE=GF TIMELEVELS=3\n", - "params": "", + "param": "REAL constant \"Integrand constant\"\n{\n *:* :: \"\"\n} 1.0\n\nREAL timefact \"Time dependence of integrand\"\n{\n *:* :: \"\"\n} 0.0\n", "schedule": "STORAGE: integrand[3]\n\nschedule CarpetIntegrate_Local AT CCTK_INITIAL\n{\n LANG: C\n WRITES: CarpetIntegrateTest::integrand(everywhere)\n} \"Setup integrand function\"\n\nschedule CarpetIntegrate_Local AT CCTK_EVOL\n{\n LANG: C\n} \"Setup integrand function\"\n\nschedule CarpetIntegrate_Global AT CCTK_ANALYSIS \n{\n LANG: C\n OPTIONS: global\n} \"Global integration by reduction\"\n", "src": { "make.code.defn": "# Source files in this directory\nSRCS = Local.cc Global.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/Carpet_CarpetInterp.json b/Carpet_CarpetInterp.json index 21d676e4bfb164a7546d37a419f9d6d438caac80..de13ab1734d5ba7b78a5cd9e249083a2e2a95e04 100644 --- a/Carpet_CarpetInterp.json +++ b/Carpet_CarpetInterp.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "# Configuration definitions for thorn CarpetInterp\n\nREQUIRES Carpet CarpetLib MPI\n", "interface": "# Interface definition for thorn CarpetInterp\n\nIMPLEMENTS: interp\n\nuses include header: nompi.h\n\nuses include header: data.hh\nuses include header: bbox.hh\nuses include header: data.hh\nuses include header: defs.hh\nuses include header: dist.hh\nuses include header: ggf.hh\nuses include header: timestat.hh\nuses include header: typecase.hh\nuses include header: typeprops.hh\nuses include header: vect.hh\n\nuses include header: carpet.hh\n\n\n\n# Interpolation\nCCTK_INT FUNCTION \\\n SymmetryInterpolate \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays)\nUSES FUNCTION SymmetryInterpolate\n\n\n\nCCTK_INT FUNCTION \\\n DriverInterpolate \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays)\nPROVIDES FUNCTION DriverInterpolate \\\n WITH Carpet_DriverInterpolate \\\n LANGUAGE C\n\n\n\n# Access coordinate information (on the coarse level)\nCCTK_INT FUNCTION GetCoordRange \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN m, \\\n CCTK_INT IN ml, \\\n CCTK_INT IN size, \\\n CCTK_INT ARRAY OUT gsh, \\\n CCTK_REAL ARRAY OUT lower, \\\n CCTK_REAL ARRAY OUT upper, \\\n CCTK_REAL ARRAY OUT delta)\nREQUIRES FUNCTION GetCoordRange\n", - "params": "", + "param": "# Parameter definitions for thorn CarpetInterp\n\nBOOLEAN barriers \"Insert barriers at strategic places for debugging purposes (slows down execution)\" STEERABLE=always\n{\n} \"no\"\n\nCCTK_REAL poison \"Poison value\" STEERABLE=always\n{\n *:* :: \"\"\n} -4.20042e+30\n\nCCTK_REAL ipoison \"Integer poison value\" STEERABLE=always\n{\n *:* :: \"\"\n} -420042\n\nBOOLEAN tree_search \"Use a tree search to find the source processor\" STEERABLE=always\n{\n} \"yes\"\n\nBOOLEAN check_tree_search \"Cross-check the result of the tree search\" STEERABLE=always\n{\n} \"no\"\n", "schedule": "# Schedule definitions for thorn CarpetInterp\n\nschedule CarpetInterpStartup at STARTUP\n{\n LANG: C\n} \"Startup routine\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn CarpetInterp\n\n# Source files in this directory\nSRCS = interp.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/Carpet_CarpetInterp2.json b/Carpet_CarpetInterp2.json index 5c83bb0c7a262d782e9a89624d94bfb83ef2b7e3..48c938cc51d72ab70dadfcebc6ac6521b6835bfd 100644 --- a/Carpet_CarpetInterp2.json +++ b/Carpet_CarpetInterp2.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "# Configuration definitions for thorn CarpetInterp2\n\nREQUIRES Carpet CarpetLib\n", "interface": "# Interface definition for thorn CarpetInterp2\n\nIMPLEMENTS: interp2\n\nINCLUDE HEADER: fasterp.hh IN carpetinterp2.hh\n\n\n\nUSES INCLUDE HEADER: nompi.h\n\nUSES INCLUDE HEADER: cacheinfo.hh\nUSES INCLUDE HEADER: defs.hh\nUSES INCLUDE HEADER: typeprops.hh\nUSES INCLUDE HEADER: vect.hh\n\nUSES INCLUDE HEADER: carpet.hh\nuses include header: Timer.hh\n\n\n\n# Get access to communicators\nCCTK_POINTER_TO_CONST FUNCTION \\\n GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH)\nREQUIRES FUNCTION GetMPICommWorld\n\n# Access coordinate information (on the coarse level)\nCCTK_INT FUNCTION \\\n GetCoordRange \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN m, \\\n CCTK_INT IN ml, \\\n CCTK_INT IN size, \\\n CCTK_INT ARRAY OUT gsh, \\\n CCTK_REAL ARRAY OUT lower, \\\n CCTK_REAL ARRAY OUT upper, \\\n CCTK_REAL ARRAY OUT delta)\nREQUIRES FUNCTION GetCoordRange\n\n\n\nCCTK_INT FUNCTION \\\n MultiPatch_LocalToGlobal \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN ndims, \\\n CCTK_INT IN npoints, \\\n CCTK_INT ARRAY IN patch, \\\n CCTK_POINTER_TO_CONST IN localcoords, \\\n CCTK_POINTER IN globalcoords, \\\n CCTK_POINTER IN dxda, \\\n CCTK_POINTER IN det_dxda, \\\n CCTK_POINTER IN dadx, \\\n CCTK_POINTER IN ddxdada, \\\n CCTK_POINTER IN ddadxdx, \\\n CCTK_POINTER IN dddxdadada)\nUSES FUNCTION MultiPatch_LocalToGlobal\n\nCCTK_INT FUNCTION \\\n MultiPatch_GlobalToLocal \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN ndims, \\\n CCTK_INT IN npoints, \\\n CCTK_POINTER_TO_CONST IN globalcoords, \\\n CCTK_INT ARRAY OUT patch, \\\n CCTK_POINTER IN localcoords, \\\n CCTK_POINTER IN dadx, \\\n CCTK_POINTER IN ddadxdx)\nUSES FUNCTION MultiPatch_GlobalToLocal\n\nCCTK_INT FUNCTION \\\n InterpGridArrays \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN order, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_POINTER_TO_CONST IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_POINTER IN output_arrays)\nPROVIDES FUNCTION InterpGridArrays \\\n WITH CarpetInterp2_InterpGridArrays \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n MultiPatchInterpGridArrays \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN order, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT ARRAY IN interp_maps, \\\n CCTK_POINTER_TO_CONST IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_POINTER IN output_arrays)\nPROVIDES FUNCTION MultiPatchInterpGridArrays \\\n WITH CarpetInterp2_MultiPatchInterpGridArrays \\\n LANGUAGE C\n\n\n\nCCTK_POINTER FUNCTION \\\n Interp2GridArraysSetup \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN order, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_POINTER_TO_CONST IN interp_coords)\nPROVIDES FUNCTION Interp2GridArraysSetup \\\n WITH CarpetInterp2_Interp2GridArraysSetup \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n Interp2GridArrays \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_POINTER_TO_CONST IN interp_handle, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_POINTER IN output_arrays)\nPROVIDES FUNCTION Interp2GridArrays \\\n WITH CarpetInterp2_Interp2GridArrays \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n Interp2GridArraysFree \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_POINTER IN interp_handle)\nPROVIDES FUNCTION Interp2GridArraysFree \\\n WITH CarpetInterp2_Interp2GridArraysFree \\\n LANGUAGE C\n", - "params": "", + "param": "# Parameter definitions for thorn CarpetInterp2\n\nBOOLEAN verbose \"Produce info output\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN veryverbose \"Produce debugging output\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN interp_barrier \"Wait for all processes before and after interpolating\" STEERABLE=always\n{\n} \"no\"\n\n", "schedule": "# Schedule definitions for thorn CarpetInterp2\n", "src": { "fasterp.cc": "#include \n#include \n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n#ifdef CCTK_MPI\n#include \n#else\n#include \"nompi.h\"\n#endif\n\n#include \n#include \n#include \n#include \n\n#include \"fasterp.hh\"\n\n#ifdef CARPETINTERP2_CHECK\n#define CI2C(x, y) x, y\n#else\n#define CI2C(x, y)\n#endif\n\nnamespace CarpetInterp2 {\n\nint const ipoison = -1234567890;\nCCTK_REAL const poison = -1.0e+12;\n\nint get_poison(int const &) CCTK_ATTRIBUTE_CONST;\nint get_poison(int const &) { return ipoison; }\nCCTK_REAL get_poison(CCTK_REAL const &) CCTK_ATTRIBUTE_CONST;\nCCTK_REAL get_poison(CCTK_REAL const &) { return poison; }\n\ntemplate void fill(vector &v, T const &val) {\n// fill (v.begin(), v.end(), val);\n#pragma omp parallel for\n for (int n = 0; n < int(v.size()); ++n) {\n v.AT(n) = val;\n }\n}\n\ntemplate void fill_with_poison(vector &v) {\n#ifndef NDEBUG\n T dummy;\n fill(v, get_poison(dummy));\n// fill (v.begin(), v.end(), get_poison(dummy));\n#endif\n}\n\ntemplate void check_for_poison(vector const &v) {\n#pragma omp parallel for\n for (int n = 0; n < int(v.size()); ++n) {\n T dummy;\n assert(v.AT(n) != get_poison(dummy));\n }\n}\n\n// Create an MPI datatype for location information\nMPI_Datatype fasterp_iloc_t::mpi_datatype() {\n static bool initialised = false;\n static MPI_Datatype newtype;\n if (not initialised) {\n static fasterp_iloc_t s;\n#define ENTRY(type, name) \\\n { \\\n sizeof s.name / sizeof(type), /* count elements */ \\\n (char *)&s.name - (char *)&s, /* offsetof doesn't work (why?) */ \\\n dist::mpi_datatype(), /* find MPI datatype */ \\\n STRINGIFY(name), /* field name */ \\\n STRINGIFY(type), /* type name */ \\\n }\n dist::mpi_struct_descr_t const descr[] = {\n ENTRY(int, mrc),\n#ifdef CARPETINTERP2_CHECK\n ENTRY(int, pn), ENTRY(int, ipos), ENTRY(int, ind),\n#endif\n ENTRY(int, ind3d), ENTRY(CCTK_REAL, offset)};\n#undef ENTRY\n newtype =\n dist::create_mpi_datatype(sizeof descr / sizeof descr[0], descr,\n \"fasterp_iloc_t::mpi_datatype\", sizeof s);\n initialised = true;\n }\n return newtype;\n}\n\nvoid fasterp_iloc_t::output(ostream &os) const {\n os << \"fasterp_iloc_t{\"\n << \"mrc=\" << mrc << \",\"\n#ifdef CARPETINTERP2_CHECK\n << \"pn=\" << pn << \",\"\n << \"ipos=\" << ipos << \",\"\n << \"ind=\" << ind << \",\"\n#endif\n << \"ind3d=\" << ind3d << \",\"\n << \"offset=\" << offset << \"}\";\n}\n\n//////////////////////////////////////////////////////////////////////////////\n//////////////////////////////////////////////////////////////////////////////\n//////////////////////////////////////////////////////////////////////////////\n\nint mrc_t::maps = -1;\nint mrc_t::reflevels = -1;\nint mrc_t::components = -1;\n\nvoid mrc_t::determine_mrc_info() {\n maps = Carpet::maps;\n reflevels = Carpet::reflevels;\n components = 0;\n for (int m = 0; m < maps; ++m) {\n for (int rl = 0; rl < reflevels; ++rl) {\n int const ncomps = Carpet::vhh.AT(m)->components(rl);\n components = max(components, ncomps);\n }\n }\n}\n\nmrc_t::mrc_t(int ind) {\n assert(ind >= 0);\n int const ind0 = ind;\n c = ind % components;\n ind /= components;\n rl = ind % reflevels;\n ind /= reflevels;\n m = ind % maps;\n ind /= maps;\n assert(ind == 0);\n assert(get_ind() == ind0);\n}\n\nvoid mrc_t::output(ostream &os) const {\n os << \"mrc{m=\" << m << \",rl=\" << rl << \",c=\" << c << \"}\";\n}\n\nvoid pn_t::output(ostream &os) const {\n os << \"pn{p=\" << p << \",n=\" << n << \"}\";\n}\n\n//////////////////////////////////////////////////////////////////////////////\n//////////////////////////////////////////////////////////////////////////////\n//////////////////////////////////////////////////////////////////////////////\n\n// Calculate the coefficients for one interpolation stencil\n// TODO: Could templatify this function on the order to improve\n// efficiency\nint fasterp_src_loc_t::calc_stencil(fasterp_iloc_t const &iloc,\n ivect const &ash,\n#ifdef CARPETINTERP2_CHECK\n ivect const &lsh,\n#endif\n int const order) {\n assert(order <= max_order);\n CCTK_REAL const eps = 1.0e-12;\n\n#ifdef CARPETINTERP2_CHECK\n mrc = iloc.mrc;\n pn = iloc.pn;\n ipos = iloc.ipos;\n\n // Save ash\n saved_ash = ash;\n#endif\n\n#ifndef NDEBUG\n // Poison all coefficients\n for (int d = 0; d < dim; ++d) {\n for (int n = 0; n <= max_order; ++n) {\n coeffs[d][n] = poison;\n }\n }\n#endif\n\n if (order == 0) {\n // Special case\n for (int d = 0; d < dim; ++d) {\n exact[d] = true;\n }\n\n#ifdef CARPETINTERP2_CHECK\n ind = iloc.ind;\n#endif\n ind3d = iloc.ind3d;\n return 0;\n }\n\n // Choose stencil anchor (first stencil point)\n ivect iorigin;\n if (order % 2 == 0) {\n iorigin = -ivect(order / 2);\n } else {\n // Potentially shift the stencil anchor for odd interpolation\n // orders (i.e., for even numbers of stencil points)\n ivect const ioffset(iloc.offset < CCTK_REAL(0.0));\n iorigin = -ivect((order - 1) / 2) - ioffset;\n }\n rvect const offset = iloc.offset - rvect(iorigin);\n // Ensure that the stencil is centred\n assert(all(offset >= CCTK_REAL(0.5) * (order - 1) and\n offset < CCTK_REAL(0.5) * (order + 1)));\n\n for (int d = 0; d < dim; ++d) {\n // C_n = PRODUCT_m,m!=n [(x - x_m) / (x_n - x_m)]\n CCTK_REAL const x = offset[d];\n CCTK_REAL const rx = rint(x);\n if (abs(x - rx) < eps * (1.0 + abs(x))) {\n // The interpolation point coincides with a grid point; no\n // interpolation is necessary (this is a special case)\n iorigin[d] += lrint(rx);\n exact[d] = true;\n } else {\n for (int n = 0; n <= order; ++n) {\n CCTK_REAL const xn = n;\n CCTK_REAL c = 1.0;\n for (int m = 0; m <= order; ++m) {\n if (m != n) {\n CCTK_REAL const xm = m;\n c *= (x - xm) / (xn - xm);\n }\n }\n coeffs[d][n] = c;\n }\n exact[d] = false;\n // The sum of the coefficients must be one\n CCTK_REAL s = 0.0;\n for (int n = 0; n <= order; ++n) {\n s += coeffs[d][n];\n }\n assert(abs(s - 1.0) <= eps);\n }\n }\n\n// Set 3D location of stencil anchor\n#ifdef CARPETINTERP2_CHECK\n ind = iloc.ind + iorigin;\n if (not(all(ind >= 0 and ind + either(exact, 0, order) < lsh))) {\n stringstream buf;\n buf << \"*this=\" << *this << \" iloc=\" << iloc << \" \"\n << \"lsh=\" << lsh << \" order=\" << order;\n CCTK_VWarn(CCTK_WARN_ALERT, __LINE__, __FILE__, CCTK_THORNSTRING,\n \"Array access out of bounds: %s. Most likely, the interpolation \"\n \"point is too close to an outer or to a symmetry/inter-patch \"\n \"boundary. More information follows...\",\n buf.str().c_str());\n return -1;\n }\n#endif\n ind3d = iloc.ind3d + index(ash, iorigin);\n#ifdef CARPETINTERP2_CHECK\n assert(index(ash, ind) == ind3d);\n#endif\n return 0;\n}\n\n// Interpolate a set of variables at the same location, with a given\n// set of interpolation coefficients. The template mechanism allows\n// the order in each direction to be different; in particular, the\n// order can be 0 if the interpolation location coincides with a\n// source grid point. For interpolation to order O, this function\n// should be instantiated eight times, with On=O and On=0, for\n// n=[0,1,2]. We hope that the compiler optimises the for loops\n// away if On=0.\ntemplate \nvoid fasterp_src_loc_t::interpolate(ivect const &ash,\n#ifdef CARPETINTERP2_CHECK\n ivect const &lsh,\n#endif\n vector const &varptrs,\n CCTK_REAL *restrict const vals) const {\n#ifdef CARPETINTERP2_CHECK\n assert(all(ash == saved_ash));\n#endif\n assert(O0 == 0 or not exact[0]);\n assert(O1 == 0 or not exact[1]);\n assert(O2 == 0 or not exact[2]);\n\n size_t const di = 1;\n size_t const dj = di * ash[0];\n size_t const dk = dj * ash[1];\n\n#ifdef CARPETINTERP2_CHECK\n assert(all(ind >= 0 and ind + ivect(O0, O1, O2) < lsh));\n assert(ind3d == index(ash, ind));\n assert(int(di * ind[0] + dj * ind[1] + dk * ind[2]) == index(ash, ind));\n#endif\n\n for (size_t v = 0; v < varptrs.size(); ++v) {\n CCTK_REAL tmp = 0.0;\n const CCTK_REAL *restrict const varptr = &varptrs.AT(v)[ind3d];\n\n for (size_t k = 0; k <= O2; ++k) {\n CCTK_REAL const coeff_k = O2 == 0 ? 1.0 : coeffs[2][k];\n for (size_t j = 0; j <= O1; ++j) {\n CCTK_REAL const coeff_jk = coeff_k * (O1 == 0 ? 1.0 : coeffs[1][j]);\n#ifndef __BIGGEST_ALIGNMENT__ // this is a GCC extension\n#define __BIGGEST_ALIGNMENT__ 64 // a guess\n#endif\n CCTK_REAL buffer[O0 + 1]\n __attribute__((__aligned__(__BIGGEST_ALIGNMENT__)));\n#ifdef __INTEL_COMPILER\n#pragma vector always\n#else\n#pragma omp simd\n#endif\n for (size_t i = 0; i <= O0; ++i) {\n buffer[i] = varptr[i * di + j * dj + k * dk];\n }\n#ifdef __INTEL_COMPILER\n#pragma vector always\n#else\n#pragma omp simd reduction(+ : tmp)\n#endif\n for (size_t i = 0; i <= O0; ++i) {\n CCTK_REAL const coeff_ijk = coeff_jk * (O0 == 0 ? 1.0 : coeffs[0][i]);\n tmp += coeff_ijk * buffer[i];\n }\n }\n }\n vals[v] = tmp;\n } // for v\n\n#ifdef CARPETINTERP2_CHECK\n#if 0\n for (size_t v=0; v\nvoid fasterp_src_loc_t::interpolate(ivect const &ash,\n#ifdef CARPETINTERP2_CHECK\n ivect const &lsh,\n#endif\n vector const &varptrs,\n CCTK_REAL *restrict const vals) const {\n int const Z = 0;\n if (exact[2]) {\n if (exact[1]) {\n if (exact[0]) {\n interpolate(ash, CI2C(lsh, ) varptrs, vals);\n } else {\n interpolate(ash, CI2C(lsh, ) varptrs, vals);\n }\n } else {\n if (exact[0]) {\n interpolate(ash, CI2C(lsh, ) varptrs, vals);\n } else {\n interpolate(ash, CI2C(lsh, ) varptrs, vals);\n }\n }\n } else {\n if (exact[1]) {\n if (exact[0]) {\n interpolate(ash, CI2C(lsh, ) varptrs, vals);\n } else {\n interpolate(ash, CI2C(lsh, ) varptrs, vals);\n }\n } else {\n if (exact[0]) {\n interpolate(ash, CI2C(lsh, ) varptrs, vals);\n } else {\n interpolate(ash, CI2C(lsh, ) varptrs, vals);\n }\n }\n }\n}\n\n// Interpolate a set of variables at the same location, with a given\n// set of interpolation coefficients. This calls a specialised\n// interpolation function, depending on whether interpolation is\n// exact in each of the directions.\nvoid fasterp_src_loc_t::interpolate(ivect const &ash,\n#ifdef CARPETINTERP2_CHECK\n ivect const &lsh,\n#endif\n int const order,\n vector const &varptrs,\n CCTK_REAL *restrict const vals) const {\n switch (order) {\n case 0:\n interpolate<0>(ash, CI2C(lsh, ) varptrs, vals);\n break;\n case 1:\n interpolate<1>(ash, CI2C(lsh, ) varptrs, vals);\n break;\n case 2:\n interpolate<2>(ash, CI2C(lsh, ) varptrs, vals);\n break;\n case 3:\n interpolate<3>(ash, CI2C(lsh, ) varptrs, vals);\n break;\n case 4:\n interpolate<4>(ash, CI2C(lsh, ) varptrs, vals);\n break;\n case 5:\n interpolate<5>(ash, CI2C(lsh, ) varptrs, vals);\n break;\n case 6:\n interpolate<6>(ash, CI2C(lsh, ) varptrs, vals);\n break;\n case 7:\n interpolate<7>(ash, CI2C(lsh, ) varptrs, vals);\n break;\n case 8:\n interpolate<8>(ash, CI2C(lsh, ) varptrs, vals);\n break;\n case 9:\n interpolate<9>(ash, CI2C(lsh, ) varptrs, vals);\n break;\n case 10:\n interpolate<10>(ash, CI2C(lsh, ) varptrs, vals);\n break;\n case 11:\n interpolate<11>(ash, CI2C(lsh, ) varptrs, vals);\n break;\n default:\n // Add higher orders here as desired\n CCTK_ERROR(\"Interpolation orders larger than 11 are not yet implemented\");\n assert(0);\n }\n}\n\nvoid fasterp_src_loc_t::output(ostream &os) const {\n os << \"fasterp_src_loc_t{\";\n os << \"coeffs=[\";\n for (int d = 0; d < dim; ++d) {\n if (d > 0)\n os << \",\";\n os << \"[\";\n for (int n = 0; n <= max_order; ++n) {\n if (n > 0)\n os << \",\";\n os << coeffs[d][n];\n }\n os << \"]\";\n }\n os << \"],\";\n os << \"exact=\" << exact << \",\";\n#ifdef CARPETINTERP2_CHECK\n os << \"pn=\" << pn << \",\";\n os << \"mrc=\" << mrc << \",\";\n os << \"ipos=\" << ipos << \",\";\n os << \"ind=\" << ind << \",\";\n#endif\n os << \"ind3d=\" << ind3d;\n#ifdef CARPETINTERP2_CHECK\n os << \",\"\n << \"saved_ash=\" << saved_ash;\n#endif\n os << \"}\";\n}\n\n//////////////////////////////////////////////////////////////////////////////\n//////////////////////////////////////////////////////////////////////////////\n//////////////////////////////////////////////////////////////////////////////\n\n// Calculate the coefficients for one interpolation stencil\n// TODO: Could templatify this function on the order to improve\n// efficiency\nint fasterp_eno2_src_loc_t::calc_stencil(fasterp_iloc_t const &iloc,\n ivect const &ash,\n#ifdef CARPETINTERP2_CHECK\n ivect const &lsh,\n#endif\n int /*order*/) {\n // assert (order <= max_order);\n CCTK_REAL const eps = 1.0e-12;\n\n#ifdef CARPETINTERP2_CHECK\n mrc = iloc.mrc;\n pn = iloc.pn;\n ipos = iloc.ipos;\n\n // Save ash\n saved_ash = ash;\n#endif\n\n // first we setup 1st order stencil!\n {\n const int order = 1;\n\n#ifndef NDEBUG\n // Poison all coefficients\n for (int d = 0; d < dim; ++d) {\n for (int n = 0; n <= order; ++n) {\n coeffs[d][n] = poison;\n }\n }\n#endif\n\n // Choose stencil anchor (first stencil point)\n ivect iorigin;\n\n // Potentially shift the stencil anchor for odd interpolation\n // orders (i.e., for even numbers of stencil points)\n ivect const ioffset(iloc.offset < CCTK_REAL(0.0));\n iorigin = -ivect((order - 1) / 2) - ioffset;\n rvect const offset = iloc.offset - rvect(iorigin);\n // Ensure that the stencil is centred\n assert(all(offset >= CCTK_REAL(0.5) * (order - 1) and\n offset < CCTK_REAL(0.5) * (order + 1)));\n\n for (int d = 0; d < dim; ++d) {\n // C_n = PRODUCT_m,m!=n [(x - x_m) / (x_n - x_m)]\n CCTK_REAL const x = offset[d];\n CCTK_REAL const rx = rint(x);\n if (abs(x - rx) < eps * (1.0 + abs(x))) {\n // The interpolation point coincides with a grid point; no\n // interpolation is necessary (this is a special case)\n iorigin[d] += lrint(rx);\n exact[d] = true;\n } else {\n for (int n = 0; n <= order; ++n) {\n CCTK_REAL const xn = n;\n CCTK_REAL c = 1.0;\n for (int m = 0; m <= order; ++m) {\n if (m != n) {\n CCTK_REAL const xm = m;\n c *= (x - xm) / (xn - xm);\n }\n }\n coeffs[d][n] = c;\n }\n exact[d] = false;\n // The sum of the coefficients must be one\n CCTK_REAL s = 0.0;\n for (int n = 0; n <= order; ++n) {\n s += coeffs[d][n];\n }\n assert(abs(s - 1.0) <= eps);\n }\n }\n }\n\n // second, we setup left 2nd order stencil!\n {\n int order = 2;\n\n#ifndef NDEBUG\n // Poison all coefficients\n for (int d = 0; d < dim; ++d) {\n for (int n = 0; n <= order; ++n) {\n coeffsLeft[d][n] = poison;\n }\n }\n#endif\n\n // Choose stencil anchor (first stencil point)\n ivect iorigin;\n iorigin = -ivect(order / 2) - ivect((iloc.offset < CCTK_REAL(0.0)));\n rvect const offset = iloc.offset - rvect(iorigin);\n // cout << \"Left \" << iorigin << \" \" << iloc.offset << \" \" << offset <<\n // endl;\n // Ensure that interpolation point is between second and third point\n assert(all(offset >= CCTK_REAL(1.0) and offset <= CCTK_REAL(2.0)));\n\n for (int d = 0; d < dim; ++d) {\n // C_n = PRODUCT_m,m!=n [(x - x_m) / (x_n - x_m)]\n CCTK_REAL const x = offset[d];\n CCTK_REAL const rx = rint(x);\n if (abs(x - rx) < eps * (1.0 + abs(x))) {\n // The interpolation point coincides with a grid point; no\n // interpolation is necessary (this is a special case)\n iorigin[d] += lrint(rx);\n exact[d] = true;\n } else {\n for (int n = 0; n <= order; ++n) {\n CCTK_REAL const xn = n;\n CCTK_REAL c = 1.0;\n for (int m = 0; m <= order; ++m) {\n if (m != n) {\n CCTK_REAL const xm = m;\n c *= (x - xm) / (xn - xm);\n }\n }\n coeffsLeft[d][n] = c;\n }\n exact[d] = false;\n // The sum of the coefficients must be one\n CCTK_REAL s = 0.0;\n for (int n = 0; n <= order; ++n) {\n s += coeffsLeft[d][n];\n }\n assert(abs(s - 1.0) <= eps);\n }\n }\n\n// Set 3D location of stencil anchor.\n// Since left stencil extends farthest to the left, we use\n// this to compute stencil anchor\n#ifdef CARPETINTERP2_CHECK\n ind = iloc.ind + iorigin;\n if (not(all(ind >= 0 and ind + either(exact, 0, order) < lsh))) {\n stringstream buf;\n buf << \"*this=\" << *this << \" iloc=\" << iloc << \" \"\n << \"lsh=\" << lsh << \" order=\" << order;\n CCTK_VWarn(CCTK_WARN_ALERT, __LINE__, __FILE__, CCTK_THORNSTRING,\n \"Array access out of bounds: %s. Most likely, the \"\n \"interpolation point is too close to an outer or to a \"\n \"symmetry/inter-patch boundary. More information follows...\",\n buf.str().c_str());\n return -1;\n }\n#endif\n ind3d = iloc.ind3d + index(ash, iorigin);\n#ifdef CARPETINTERP2_CHECK\n assert(index(ash, ind) == ind3d);\n#endif\n }\n\n // third, we setup right 2nd order stencil!\n {\n int order = 2;\n\n#ifndef NDEBUG\n // Poison all coefficients\n for (int d = 0; d < dim; ++d) {\n for (int n = 0; n <= order; ++n) {\n coeffsLeft[d][n] = poison;\n }\n }\n#endif\n\n // Choose stencil anchor (first stencil point)\n ivect iorigin;\n iorigin =\n -ivect(order / 2) + ivect(1.0) - ivect((iloc.offset < CCTK_REAL(0.0)));\n rvect const offset = iloc.offset - rvect(iorigin);\n // cout << \"Right \" << iorigin << \" \" << iloc.offset << \" \" << offset <<\n // endl;\n // Ensure that the interpolation point is between first and second point\n assert(all(offset >= CCTK_REAL(0.0) and offset <= CCTK_REAL(1.0)));\n\n for (int d = 0; d < dim; ++d) {\n // C_n = PRODUCT_m,m!=n [(x - x_m) / (x_n - x_m)]\n CCTK_REAL const x = offset[d];\n CCTK_REAL const rx = rint(x);\n if (abs(x - rx) < eps * (1.0 + abs(x))) {\n // The interpolation point coincides with a grid point; no\n // interpolation is necessary (this is a special case)\n iorigin[d] += lrint(rx);\n exact[d] = true;\n } else {\n for (int n = 0; n <= order; ++n) {\n CCTK_REAL const xn = n;\n CCTK_REAL c = 1.0;\n for (int m = 0; m <= order; ++m) {\n if (m != n) {\n CCTK_REAL const xm = m;\n c *= (x - xm) / (xn - xm);\n }\n }\n coeffsRight[d][n] = c;\n }\n exact[d] = false;\n // The sum of the coefficients must be one\n CCTK_REAL s = 0.0;\n for (int n = 0; n <= order; ++n) {\n s += coeffsRight[d][n];\n }\n assert(abs(s - 1.0) <= eps);\n }\n }\n }\n\n return 0;\n}\n\n// Interpolate a set of variables at the same location, with a given\n// set of interpolation coefficients. The template mechanism allows\n// the order in each direction to be different; in particular, the\n// order can be 0 if the interpolation location coincides with a\n// source grid point. For interpolation to order O, this function\n// should be instantiated eight times, with On=O and On=0, for\n// n=[0,1,2]. We hope that the compiler optimises the for loops\n// away if On=0.\ntemplate \nvoid fasterp_eno2_src_loc_t::interpolate(\n ivect const &ash,\n#ifdef CARPETINTERP2_CHECK\n ivect const &lsh,\n#endif\n vector const &varptrs,\n CCTK_REAL *restrict const vals) const {\n#ifdef CARPETINTERP2_CHECK\n assert(all(ash == saved_ash));\n#endif\n assert(O0 == 0 or not exact[0]);\n assert(O1 == 0 or not exact[1]);\n assert(O2 == 0 or not exact[2]);\n\n size_t const di = 1;\n size_t const dj = di * ash[0];\n size_t const dk = dj * ash[1];\n\n#ifdef CARPETINTERP2_CHECK\n assert(all(ind >= 0 and ind + ivect(O0, O1, O2) < lsh));\n assert(ind3d == index(ash, ind));\n assert(int(di * ind[0] + dj * ind[1] + dk * ind[2]) == index(ash, ind));\n#endif\n\n for (size_t v = 0; v < varptrs.size(); ++v) {\n vals[v] = 0.0;\n }\n\n // Must construct interpolation stencils for each variable\n // independently!\n for (size_t v = 0; v < varptrs.size(); ++v) {\n\n vector qz(4);\n for (size_t k = 0; k <= 3; ++k) {\n\n vector qy(4);\n for (size_t j = 0; j <= 3; ++j) {\n\n vector qx(4);\n for (size_t i = 0; i <= 3; ++i) {\n\n qx[i] = varptrs.AT(v)[ind3d + i * di + j * dj + k * dk];\n }\n\n switch (O0) {\n case 0:\n qy[j] = qx[0];\n break;\n\n default: {\n const CCTK_REAL diffleft = qx[0] + qx[2] - 2.0 * qx[1];\n const CCTK_REAL diffright = qx[1] + qx[3] - 2.0 * qx[2];\n\n CCTK_REAL res;\n if (fabs(diffleft) < fabs(diffright))\n res = coeffsLeft[0][0] * qx[0] + coeffsLeft[0][1] * qx[1] +\n coeffsLeft[0][2] * qx[2];\n else\n res = coeffsRight[0][0] * qx[1] + coeffsRight[0][1] * qx[2] +\n coeffsRight[0][2] * qx[3];\n\n if (diffleft * diffright <= 0.0 ||\n (res - qx[1]) * (qx[2] - res) < 0.0) {\n res = coeffs[0][0] * qx[1] + coeffs[0][1] * qx[2];\n }\n\n qy[j] = res;\n break;\n }\n }\n }\n\n switch (O1) {\n case 0:\n qz[k] = qy[0];\n break;\n default: {\n const CCTK_REAL diffleft = qy[0] + qy[2] - 2.0 * qy[1];\n const CCTK_REAL diffright = qy[1] + qy[3] - 2.0 * qy[2];\n\n CCTK_REAL res;\n if (fabs(diffleft) < fabs(diffright))\n res = coeffsLeft[1][0] * qy[0] + coeffsLeft[1][1] * qy[1] +\n coeffsLeft[1][2] * qy[2];\n else\n res = coeffsRight[1][0] * qy[1] + coeffsRight[1][1] * qy[2] +\n coeffsRight[1][2] * qy[3];\n\n if (diffleft * diffright <= 0.0 ||\n (res - qy[1]) * (qy[2] - res) < 0.0) {\n res = coeffs[1][0] * qy[1] + coeffs[1][1] * qy[2];\n }\n\n qz[k] = res;\n break;\n }\n }\n }\n\n switch (O2) {\n case 0:\n vals[v] = qz[0];\n break;\n default: {\n const CCTK_REAL diffleft = qz[0] + qz[2] - 2.0 * qz[1];\n const CCTK_REAL diffright = qz[1] + qz[3] - 2.0 * qz[2];\n\n CCTK_REAL res;\n if (fabs(diffleft) < fabs(diffright))\n res = coeffsLeft[2][0] * qz[0] + coeffsLeft[2][1] * qz[1] +\n coeffsLeft[2][2] * qz[2];\n else\n res = coeffsRight[2][0] * qz[1] + coeffsRight[2][1] * qz[2] +\n coeffsRight[2][2] * qz[3];\n\n if (diffleft * diffright <= 0.0 || (res - qz[1]) * (qz[2] - res) < 0.0) {\n res = coeffs[2][0] * qz[1] + coeffs[2][1] * qz[2];\n }\n\n vals[v] = res;\n break;\n }\n }\n\n } // for v\n\n#ifdef CARPETINTERP2_CHECK\n#if 0\n for (size_t v=0; v\nvoid fasterp_eno2_src_loc_t::interpolate(\n ivect const &ash,\n#ifdef CARPETINTERP2_CHECK\n ivect const &lsh,\n#endif\n vector const &varptrs,\n CCTK_REAL *restrict const vals) const {\n int const Z = 0;\n if (exact[2]) {\n if (exact[1]) {\n if (exact[0]) {\n interpolate(ash, CI2C(lsh, ) varptrs, vals);\n } else {\n interpolate(ash, CI2C(lsh, ) varptrs, vals);\n }\n } else {\n if (exact[0]) {\n interpolate(ash, CI2C(lsh, ) varptrs, vals);\n } else {\n interpolate(ash, CI2C(lsh, ) varptrs, vals);\n }\n }\n } else {\n if (exact[1]) {\n if (exact[0]) {\n interpolate(ash, CI2C(lsh, ) varptrs, vals);\n } else {\n interpolate(ash, CI2C(lsh, ) varptrs, vals);\n }\n } else {\n if (exact[0]) {\n interpolate(ash, CI2C(lsh, ) varptrs, vals);\n } else {\n interpolate(ash, CI2C(lsh, ) varptrs, vals);\n }\n }\n }\n}\n\n// Interpolate a set of variables at the same location, with a given\n// set of interpolation coefficients. This calls a specialised\n// interpolation function, depending on whether interpolation is\n// exact in each of the directions.\nvoid fasterp_eno2_src_loc_t::interpolate(\n ivect const &ash,\n#ifdef CARPETINTERP2_CHECK\n ivect const &lsh,\n#endif\n int const order, vector const &varptrs,\n CCTK_REAL *restrict const vals) const {\n switch (order) {\n case 2:\n interpolate<2>(ash, CI2C(lsh, ) varptrs, vals);\n break;\n default:\n // Add higher orders here as desired\n CCTK_ERROR(\"Interpolation orders other than 2 don't make sense for eno2\");\n assert(0);\n }\n}\n\nvoid fasterp_eno2_src_loc_t::output(ostream &os) const {\n os << \"fasterp_src_loc_t{\";\n os << \"coeffs=[\";\n for (int d = 0; d < dim; ++d) {\n if (d > 0)\n os << \",\";\n os << \"[\";\n for (int n = 0; n <= 1; ++n) {\n if (n > 0)\n os << \",\";\n os << coeffs[d][n];\n }\n os << \"]\";\n }\n os << \"],\";\n os << \"exact=\" << exact << \",\";\n#ifdef CARPETINTERP2_CHECK\n os << \"pn=\" << pn << \",\";\n os << \"mrc=\" << mrc << \",\";\n os << \"ipos=\" << ipos << \",\";\n os << \"ind=\" << ind << \",\";\n#endif\n os << \"ind3d=\" << ind3d;\n#ifdef CARPETINTERP2_CHECK\n os << \",\"\n << \"saved_ash=\" << saved_ash;\n#endif\n os << \"}\";\n}\n\n//////////////////////////////////////////////////////////////////////////////\n//////////////////////////////////////////////////////////////////////////////\n//////////////////////////////////////////////////////////////////////////////\n\n// Set up an interpolation starting from global coordinates\ntemplate \nfasterp_setup_gen_t::fasterp_setup_gen_t(\n cGH const *restrict const cctkGH, fasterp_glocs_t const &locations,\n int const order_)\n : order(order_), reflevel(Carpet::reflevel),\n regridding_epoch(reflevel == -1\n ? Carpet::regridding_epoch\n : Carpet::level_regridding_epochs.AT(reflevel)) {\n // Some global properties\n int const npoints = locations.size();\n\n // Calculate patch numbers and local coordinates\n fasterp_llocs_t local_locations(npoints);\n\n if (CCTK_IsFunctionAliased(\"MultiPatch_GlobalToLocal\")) {\n // This is a multi-patch simulation: convert global to local\n // coordinates\n\n CCTK_REAL const *coords[dim];\n CCTK_REAL *local_coords[dim];\n for (int d = 0; d < dim; ++d) {\n coords[d] = &locations.coords[d].front();\n local_coords[d] = &local_locations.coords[d].front();\n }\n\n int const ierr = MultiPatch_GlobalToLocal(cctkGH, dim, npoints, coords,\n &local_locations.maps.front(),\n local_coords, NULL, NULL);\n assert(not ierr);\n\n } else {\n // This is a single-patch simulation\n\n // TODO: Optimise this: don't copy coordinates, and don't store\n // map numbers if there is only one map.\n for (int n = 0; n < npoints; ++n) {\n int const m = 0;\n local_locations.maps.AT(n) = m;\n for (int d = 0; d < dim; ++d) {\n local_locations.coords[d].AT(n) = locations.coords[d].AT(n);\n }\n }\n\n } // if not multi-patch\n\n setup(cctkGH, local_locations);\n}\n\n// Set up an interpolation starting from local coordinates\ntemplate \nfasterp_setup_gen_t::fasterp_setup_gen_t(\n cGH const *restrict const cctkGH, fasterp_llocs_t const &locations,\n int const order_)\n : order(order_) {\n setup(cctkGH, locations);\n}\n\n// Helper for setting up an interpolation\ntemplate \nvoid fasterp_setup_gen_t::setup(cGH const *restrict const cctkGH,\n fasterp_llocs_t const &locations) {\n DECLARE_CCTK_PARAMETERS;\n\n if (verbose)\n CCTK_VInfo(CCTK_THORNSTRING, \"Setting up interpolation for %d grid points\",\n int(locations.size()));\n\n if (order < 0) {\n CCTK_ERROR(\"Interpolation order must be non-negative\");\n }\n if (order > max_order) {\n CCTK_VError(__LINE__, __FILE__, CCTK_THORNSTRING,\n \"Interpolation order cannot be larger than max_order=%d; \"\n \"order=%d was requested. \"\n \"(You can increase the compile time constant max_order \"\n \"in thorn CarpetInterp2.)\",\n max_order, order);\n }\n\n // Some global properties\n int const npoints = locations.size();\n int const nprocs = CCTK_nProcs(cctkGH);\n // int const myproc = CCTK_MyProc (cctkGH);\n\n mrc_t::determine_mrc_info();\n int const maxmrc = mrc_t::get_max_ind();\n\n MPI_Comm const &comm_world = *(MPI_Comm const *)GetMPICommWorld(cctkGH);\n\n // Obtain the coordinate ranges for all patches\n vector lower(Carpet::maps);\n vector upper(Carpet::maps);\n vector delta(Carpet::maps); // spacing on finest possible grid\n vector idelta(Carpet::maps); // inverse spacing\n for (int m = 0; m < Carpet::maps; ++m) {\n jvect gsh;\n int const ierr =\n GetCoordRange(cctkGH, m, Carpet::mglevel, dim, &gsh[0], &lower.AT(m)[0],\n &upper.AT(m)[0], &delta.AT(m)[0]);\n assert(not ierr);\n // delta.AT(m) /= Carpet::maxspacereflevelfact;\n gh const *const hh = Carpet::vhh.AT(m);\n ibbox const &baseext = hh->baseextent(Carpet::mglevel, 0);\n delta.AT(m) /= baseext.stride();\n idelta.AT(m) = CCTK_REAL(1.0) / delta.AT(m);\n if (veryverbose) {\n cout << \"GetCoordRange[\" << m << \"]: lower=\" << lower.AT(m)\n << \" upper=\" << upper.AT(m) << \" delta=\" << delta.AT(m) << endl;\n }\n }\n\n // Calculate refinement levels, components, and integer grid point\n // indices\n if (verbose)\n CCTK_INFO(\"Mapping points onto components\");\n vector ilocs(npoints);\n vector proc(npoints);\n fill_with_poison(proc);\n vector nlocs(nprocs, 0);\n int min_rl, max_rl;\n if (Carpet::is_level_mode()) {\n min_rl = Carpet::reflevel;\n max_rl = Carpet::reflevel + 1;\n } else if (Carpet::is_global_mode()) {\n min_rl = 0;\n max_rl = Carpet::reflevels;\n } else {\n assert(0);\n }\n#pragma omp parallel for\n for (int n = 0; n < npoints; ++n) {\n int const m = locations.maps.AT(n);\n rvect const pos(locations.coords[0].AT(n), locations.coords[1].AT(n),\n locations.coords[2].AT(n));\n\n gh const *const hh = Carpet::vhh.AT(m);\n // ibbox const & baseext = hh->baseextent(Carpet::mglevel, 0);\n // rvect const rpos =\n // (pos - lower.AT(m)) / (upper.AT(m) - lower.AT(m)) *\n // rvect (baseext.upper() - baseext.lower());\n rvect const rpos = (pos - lower.AT(m)) * idelta.AT(m);\n\n // Find refinement level and component\n int rl, c;\n ivect ipos;\n hh->locate_position(rpos, Carpet::mglevel, min_rl, max_rl, rl, c, ipos);\n if (not(rl >= 0 and c >= 0)) {\n#pragma omp critical\n {\n ostringstream msg;\n msg << \"Interpolation point \" << n << \" on map \" << m << \" \"\n << \"at \" << pos << \" is outside of the grid hierarchy\";\n msg << \"\\n\"\n << \"rl=\" << rl << \" c=\" << c << \"\\n\"\n << \"rpos=\" << rpos << \"\\n\"\n << \"ipos=\" << ipos << \"\\n\"\n << \"lower=\" << lower << \"\\n\"\n << \"upper=\" << upper << \"\\n\"\n << \"delta=\" << delta << \"\\n\"\n << \"idelta=\" << idelta << \"\\n\"\n << \"hh=\" << *hh << \"\\n\";\n CCTK_ERROR(msg.str().c_str());\n }\n }\n assert(rl >= 0 and c >= 0);\n\n const auto &cmp =\n Carpet::vdd.AT(m)->light_boxes.AT(Carpet::mglevel).AT(rl).AT(c);\n ibbox const &ext = cmp.exterior;\n ibbox const &own = cmp.owned;\n rvect dpos = rpos - rvect(ipos);\n\n // Convert from Carpet indexing to grid point indexing\n assert(all(ipos % ext.stride() == ivect(0)));\n ipos /= ext.stride();\n dpos /= rvect(ext.stride());\n if (not(all(fabs(dpos) <= rvect(0.5)))) {\n cout << \"fasterp.cc:659\\n\"\n << \" dpos=\" << dpos << \"\\n\"\n << \" ext=\" << ext << \"\\n\";\n }\n assert(all(fabs(dpos) <= rvect(0.5)));\n\n ivect const ind = ipos - ext.lower() / ext.stride();\n ivect const ash = pad_shape(ext, own).padded_shape;\n int const ind3d = index(ash, ind);\n#if 0\n ENTER_SINGLEMAP_MODE (cctkGH, m, CCTK_GF) {\n ENTER_LOCAL_MODE (cctkGH, c, CCTK_GF) {\n CCTK_REAL const * restrict const xptr = (CCTK_REAL const *) CCTK_VarDataPtr (cctkGH, 0, \"grid::x\");\n CCTK_REAL const * restrict const yptr = (CCTK_REAL const *) CCTK_VarDataPtr (cctkGH, 0, \"grid::y\");\n CCTK_REAL const * restrict const zptr = (CCTK_REAL const *) CCTK_VarDataPtr (cctkGH, 0, \"grid::z\");\n assert (xptr);\n assert (yptr);\n assert (zptr);\n cout << \"CI2 map=\" << m << \" pos=\" << pos << \" ind=\" << ind << \" x=\" << xptr[ind3d] << \" y=\" << yptr[ind3d] << \" z=\" << zptr[ind3d] << endl;\n } LEAVE_LOCAL_MODE;\n } LEAVE_SINGLEMAP_MODE;\n#endif\n\n // TODO: assert that there are enough ghost zones\n\n // TODO: store for every face/direction/component/map/reflevel\n // how wide the boundaries are in every direction. Then check\n // against this when the stencils are set up.\n\n // Store result\n fasterp_iloc_t &iloc = ilocs.AT(n);\n iloc.mrc = mrc_t(m, rl, c);\n#ifdef CARPETINTERP2_CHECK\n iloc.pn.p = dist::rank();\n iloc.pn.n = n;\n iloc.ipos = ipos * ext.stride();\n iloc.ind = ind;\n#endif\n iloc.ind3d = ind3d;\n iloc.offset = dpos;\n\n // Find source processor\n int const p = Carpet::vhh.AT(m)->processor(rl, c);\n proc.AT(n) = p;\n int &nlocs_p = nlocs.AT(p);\n#pragma omp atomic\n ++nlocs_p;\n\n // Output\n if (veryverbose) {\n#pragma omp critical\n { cout << \"Point #\" << n << \" at \" << pos << \": iloc \" << iloc << endl; }\n }\n }\n\n // Find mapping from processors to \"processor indices\": It may be\n // too expensive to store data for all processors, so we store\n // only data about those processors with which we actually\n // communicate.\n if (verbose)\n CCTK_INFO(\"Determine set of communicating processors\");\n {\n int n_nz_nlocs = 0;\n for (int p = 0; p < nprocs; ++p) {\n if (nlocs.AT(p) > 0) {\n ++n_nz_nlocs;\n }\n }\n recv_descr.procs.resize(n_nz_nlocs);\n recv_descr.procinds.resize(nprocs, -1);\n int pp = 0;\n int offset = 0;\n for (int p = 0; p < nprocs; ++p) {\n if (nlocs.AT(p) > 0) {\n recv_descr.procs.AT(pp).p = p;\n recv_descr.procs.AT(pp).offset = offset;\n recv_descr.procs.AT(pp).npoints = nlocs.AT(p);\n recv_descr.procinds.AT(p) = pp;\n ++pp;\n offset += nlocs.AT(p);\n }\n }\n assert(pp == n_nz_nlocs);\n assert(offset == npoints);\n recv_descr.npoints = npoints;\n }\n\n // Create a mapping \"index\" from location index, as specified by\n // the user, to the index order in which the data are received\n // from the other processors.\n if (verbose) {\n CCTK_INFO(\"Determine inter-processor gather index permutation\");\n }\n {\n vector index(recv_descr.procs.size());\n fill_with_poison(index);\n for (int pp = 0; pp < int(recv_descr.procs.size()); ++pp) {\n index.AT(pp) = recv_descr.procs.AT(pp).offset;\n }\n recv_descr.index.resize(npoints);\n // TODO: parallelise with OpenMP\n for (int n = 0; n < npoints; ++n) {\n int const p = proc.AT(n);\n int const pp = recv_descr.procinds.AT(p);\n assert(pp >= 0);\n recv_descr.index.AT(n) = index.AT(pp);\n ++index.AT(pp);\n }\n for (int pp = 0; pp < int(recv_descr.procs.size()); ++pp) {\n int const recv_npoints = index.AT(pp) - recv_descr.procs.AT(pp).offset;\n assert(recv_npoints == recv_descr.procs.AT(pp).npoints);\n }\n#ifndef NDEBUG\n vector received(npoints);\n fill(received, false);\n // NOTE: Can't use OMP parallel here -- vector has the\n // wrong memory layout for this\n for (int n = 0; n < npoints; ++n) {\n assert(not received.AT(n));\n received.AT(n) = true;\n }\n for (int n = 0; n < npoints; ++n) {\n assert(received.AT(n));\n }\n#endif\n }\n\n // Count the number of points which have to be sent to other\n // processors, and exchange this information with MPI\n if (verbose) {\n CCTK_INFO(\"Count and exchange number of communicated grid points\");\n }\n vector recv_npoints(nprocs), recv_offsets(nprocs);\n fill(recv_npoints, 0);\n fill_with_poison(recv_offsets);\n {\n int offset = 0;\n for (int pp = 0; pp < int(recv_descr.procs.size()); ++pp) {\n int const p = recv_descr.procs.AT(pp).p;\n recv_npoints.AT(p) = recv_descr.procs.AT(pp).npoints;\n recv_offsets.AT(p) = offset;\n offset += recv_npoints.AT(p);\n }\n assert(offset == npoints);\n }\n vector send_npoints(nprocs), send_offsets(nprocs);\n fill_with_poison(send_npoints);\n fill_with_poison(send_offsets);\n MPI_Alltoall(&recv_npoints.front(), 1, MPI_INT, &send_npoints.front(), 1,\n MPI_INT, comm_world);\n int npoints_send = 0;\n for (int p = 0; p < nprocs; ++p) {\n send_offsets.AT(p) = npoints_send;\n npoints_send += send_npoints.AT(p);\n }\n\n // Scatter the location information into a send-array, and\n // exchange it with MPI\n vector scattered_ilocs(npoints);\n#pragma omp parallel for\n for (int n = 0; n < npoints; ++n) {\n scattered_ilocs.AT(recv_descr.index.AT(n)) = ilocs.AT(n);\n }\n vector gathered_ilocs(npoints_send);\n MPI_Alltoallv(&scattered_ilocs.front(), &recv_npoints.front(),\n &recv_offsets.front(), fasterp_iloc_t::mpi_datatype(),\n &gathered_ilocs.front(), &send_npoints.front(),\n &send_offsets.front(), fasterp_iloc_t::mpi_datatype(),\n comm_world);\n\n#ifdef CARPETINTERP2_CHECK\n // Ensure that the ilocs were sent to the right processor\n for (int p = 0; p < nprocs; ++p) {\n#pragma omp parallel for\n for (int n = 0; n < send_npoints.at(p); ++n) {\n fasterp_iloc_t const &iloc = gathered_ilocs.at(send_offsets.at(p) + n);\n mrc_t const &mrc = iloc.mrc;\n int const m = mrc.m;\n int const rl = mrc.rl;\n int const c = mrc.c;\n assert(Carpet::vhh.AT(m)->is_local(rl, c));\n }\n }\n#endif\n\n // Fill in send descriptors\n send_descr.npoints = npoints_send;\n\n {\n int n_nz_send_npoints = 0;\n for (int p = 0; p < nprocs; ++p) {\n if (send_npoints.AT(p) > 0)\n ++n_nz_send_npoints;\n }\n send_descr.procs.resize(n_nz_send_npoints);\n int pp = 0;\n for (int p = 0; p < nprocs; ++p) {\n if (send_npoints.AT(p) > 0) {\n send_proc_t &send_proc = send_descr.procs.AT(pp);\n send_proc.p = p;\n send_proc.offset = send_offsets.AT(p);\n send_proc.npoints = send_npoints.AT(p);\n ++pp;\n }\n }\n assert(pp == n_nz_send_npoints);\n }\n\n // Calculate stencil coefficients\n if (verbose)\n CCTK_INFO(\"Calculate stencil coefficients\");\n\n for (size_t pp = 0; pp < send_descr.procs.size(); ++pp) {\n send_proc_t &send_proc = send_descr.procs.AT(pp);\n\n vector mrc2comp(maxmrc, -1);\n vector comp2mrc(maxmrc);\n fill_with_poison(comp2mrc);\n int ncomps = 0;\n\n vector npoints_comp(maxmrc);\n fill(npoints_comp, 0);\n\n // TODO: parallelise with OpenMP\n for (int n = 0; n < int(send_proc.npoints); ++n) {\n fasterp_iloc_t const &iloc = gathered_ilocs.AT(send_proc.offset + n);\n int const mrc = iloc.mrc.get_ind();\n if (mrc2comp.AT(mrc) == -1) {\n mrc2comp.AT(mrc) = ncomps;\n comp2mrc.AT(ncomps) = mrc;\n ++ncomps;\n }\n ++npoints_comp.AT(mrc);\n }\n assert(ncomps <= maxmrc);\n send_proc.comps.resize(ncomps);\n\n int offset = 0;\n for (int comp = 0; comp < ncomps; ++comp) {\n send_comp_t &send_comp = send_proc.comps.AT(comp);\n int const mrc = comp2mrc.AT(comp);\n send_comp.mrc = mrc;\n send_comp.locs.reserve(npoints_comp.AT(mrc));\n\n mrc_t const themrc(mrc);\n int const m = themrc.m;\n int const rl = themrc.rl;\n int const c = themrc.c;\n assert(Carpet::vhh.AT(m)->is_local(rl, c));\n const auto &cmp =\n Carpet::vdd.AT(m)->light_boxes.AT(Carpet::mglevel).AT(rl).AT(c);\n ibbox const &ext = cmp.exterior;\n ibbox const &own = cmp.owned;\n send_comp.ash = pad_shape(ext, own).padded_shape;\n#ifdef CARPETINTERP2_CHECK\n send_comp.lsh = ext.shape() / ext.stride();\n#endif\n\n send_comp.offset = offset;\n send_comp.npoints = npoints_comp.AT(mrc);\n offset += send_comp.npoints;\n }\n assert(offset == send_proc.npoints);\n\n send_proc.index.resize(send_proc.npoints);\n fill_with_poison(send_proc.index);\n // TODO: This is not parallel! Loop over comps instead?\n // #pragma omp parallel for\n for (int n = 0; n < int(send_proc.npoints); ++n) {\n fasterp_iloc_t const &iloc = gathered_ilocs.AT(send_proc.offset + n);\n int const mrc = iloc.mrc.get_ind();\n int const comp = mrc2comp.AT(mrc);\n send_comp_t &send_comp = send_proc.comps.AT(comp);\n\n send_proc.index.AT(n) = send_comp.offset + send_comp.locs.size();\n\n // fasterp_src_loc_t sloc;\n FASTERP sloc;\n int const ierr =\n sloc.calc_stencil(iloc, send_comp.ash, CI2C(send_comp.lsh, ) order);\n if (ierr) {\n CCTK_VError(__LINE__, __FILE__, CCTK_THORNSTRING,\n \"Could not determine valid interpolation stencil for point \"\n \"%d on map %d, refinement level %d, component %d\",\n n, iloc.mrc.m, iloc.mrc.rl, iloc.mrc.c);\n }\n send_comp.locs.push_back(sloc);\n }\n\n for (int comp = 0; comp < ncomps; ++comp) {\n send_comp_t &send_comp = send_proc.comps.AT(comp);\n assert(int(send_comp.locs.size()) == send_comp.npoints);\n }\n\n#ifndef NDEBUG\n {\n vector used(send_proc.npoints, false);\n for (int n = 0; n < int(send_proc.npoints); ++n) {\n assert(not used.AT(send_proc.index.AT(n)));\n used.AT(send_proc.index.AT(n)) = true;\n }\n for (int n = 0; n < int(send_proc.npoints); ++n) {\n assert(used.AT(send_proc.index.AT(n)));\n }\n }\n#endif\n\n#ifdef CARPETINTERP2_CHECK\n for (int comp = 0; comp < ncomps; ++comp) {\n send_comp_t const &send_comp = send_proc.comps.at(comp);\n assert(int(send_comp.locs.size()) == send_comp.npoints);\n for (int n = 0; n < send_comp.npoints; ++n) {\n FASTERP const &sloc = send_comp.locs.at(n);\n assert(sloc.mrc == send_comp.mrc);\n assert(all(sloc.saved_ash == send_comp.ash));\n }\n }\n#endif\n\n } // for pp\n\n#ifdef CARPETINTERP2_CHECK\n {\n if (verbose)\n CCTK_INFO(\"Compare send and receive counts\");\n\n vector recv_count(dist::size());\n fill(recv_count, 0);\n for (size_t pp = 0; pp < recv_descr.procs.size(); ++pp) {\n recv_proc_t const &recv_proc = recv_descr.procs.AT(pp);\n assert(recv_count.AT(recv_proc.p) == 0);\n assert(recv_proc.npoints > 0);\n recv_count.AT(recv_proc.p) = recv_proc.npoints;\n }\n\n vector send_count(dist::size());\n fill(send_count, 0);\n for (size_t pp = 0; pp < send_descr.procs.size(); ++pp) {\n send_proc_t const &send_proc = send_descr.procs.AT(pp);\n assert(send_count.AT(send_proc.p) == 0);\n assert(send_proc.npoints > 0);\n send_count.AT(send_proc.p) = send_proc.npoints;\n }\n\n {\n vector tmp_count(dist::size());\n MPI_Alltoall(&send_count.front(), 1, MPI_INT, &tmp_count.front(), 1,\n MPI_INT, dist::comm());\n swap(send_count, tmp_count);\n }\n bool error = false;\n for (int p = 0; p < dist::size(); ++p) {\n if (not(send_count.AT(p) == recv_count.AT(p))) {\n ostringstream buf;\n buf << \"Error: processor \" << p << \" \"\n << \"sends me \" << send_count.AT(p) << \" points, \"\n << \"while I receive \" << recv_count.AT(p) << \" from it\";\n CCTK_WARN(CCTK_WARN_ALERT, buf.str().c_str());\n error = true;\n }\n }\n if (error) {\n CCTK_ERROR(\"Internal error in interpolation setup\");\n }\n }\n#endif\n\n if (verbose)\n CCTK_INFO(\"Done.\");\n}\n\n// Free the setup for one interpolation\ntemplate \nfasterp_setup_gen_t::~fasterp_setup_gen_t() {\n // do nothing -- C++ calls destructors automatically\n}\n\n// Interpolate\ntemplate \nvoid fasterp_setup_gen_t::interpolate(\n cGH const *restrict const cctkGH, vector const &varinds,\n vector &values) const {\n DECLARE_CCTK_PARAMETERS;\n\n // Check regridding epoch\n if (outofdate()) {\n if (reflevel == -1) {\n CCTK_VError(__LINE__, __FILE__, CCTK_THORNSTRING,\n \"The Carpet grid structure was changed since this \"\n \"fasterp_setup was created\");\n } else {\n CCTK_VError(\n __LINE__, __FILE__, CCTK_THORNSTRING,\n \"The Carpet grid structure on level %d was changed since this \"\n \"fasterp_setup was created\",\n reflevel);\n }\n }\n\n // Desired time level\n int const tl = 0; // current time\n\n size_t const nvars = varinds.size();\n if (verbose)\n CCTK_VInfo(CCTK_THORNSTRING, \"Interpolating %d variables\", int(nvars));\n assert(values.size() == nvars);\n\n if (nvars == 0)\n return;\n\n if (interp_barrier) {\n static Timers::Timer barrier_timer(\"PreBarrier\");\n barrier_timer.start();\n CCTK_Barrier(cctkGH);\n barrier_timer.stop();\n }\n\n for (size_t v = 0; v < values.size(); ++v) {\n int const vi = varinds.AT(v);\n assert(vi >= 0 and vi <= CCTK_NumVars());\n int const gi = CCTK_GroupIndexFromVarI(vi);\n assert(gi >= 0);\n cGroup group;\n int const ierr = CCTK_GroupData(gi, &group);\n assert(not ierr);\n assert(group.grouptype == CCTK_GF);\n assert(group.vartype == CCTK_VARIABLE_REAL);\n assert(group.dim == dim);\n#if 0\n // Cannot be called in level mode\n cGroupDynamicData dyndata;\n {\n int const ierr = CCTK_GroupDynamicData (cctkGH, gi, &dyndata);\n assert (not ierr);\n }\n assert (dyndata.activetimelevels > tl);\n#endif\n assert(recv_descr.npoints == 0 or values.AT(v) != NULL);\n }\n\n MPI_Comm const &comm_world = *(MPI_Comm const *)GetMPICommWorld(cctkGH);\n int const mpi_tag = 0;\n\n // Post Irecvs\n if (verbose)\n CCTK_INFO(\"Posting MPI_Irecvs\");\n\n static Timers::Timer irecvs_timer(\"PostIrecvs\");\n irecvs_timer.start();\n\n vector recv_points(recv_descr.npoints * nvars);\n fill_with_poison(recv_points);\n vector recv_reqs(recv_descr.procs.size());\n#ifdef CARPETINTERP2_CHECK\n vector recv_pn(recv_descr.npoints);\n vector recv_reqs_pn(recv_descr.procs.size());\n#endif\n for (size_t pp = 0; pp < recv_descr.procs.size(); ++pp) {\n recv_proc_t const &recv_proc = recv_descr.procs.AT(pp);\n\n MPI_Irecv(&recv_points.AT(recv_proc.offset * nvars),\n recv_proc.npoints * nvars, dist::mpi_datatype(),\n recv_proc.p, mpi_tag, comm_world, &recv_reqs.AT(pp));\n#ifdef CARPETINTERP2_CHECK\n MPI_Irecv(&recv_pn.AT(recv_proc.offset), recv_proc.npoints * 2,\n dist::mpi_datatype(), recv_proc.p, mpi_tag, comm_world,\n &recv_reqs_pn.AT(pp));\n#endif\n }\n irecvs_timer.stop();\n\n // Interpolate data and post Isends\n if (verbose)\n CCTK_INFO(\"Interpolating and posting MPI_Isends\");\n static Timers::Timer interpolate_timer(\"Interpolate\");\n\n interpolate_timer.instantiate();\n\n // TODO: Use one array per processor?\n vector send_points(send_descr.npoints * nvars);\n fill_with_poison(send_points);\n vector send_reqs(send_descr.procs.size());\n#ifdef CARPETINTERP2_CHECK\n vector send_pn(send_descr.npoints);\n vector send_reqs_pn(send_descr.procs.size());\n#endif\n for (size_t pp = 0; pp < send_descr.procs.size(); ++pp) {\n send_proc_t const &send_proc = send_descr.procs.AT(pp);\n\n vector computed_points(send_proc.npoints * nvars);\n fill_with_poison(computed_points);\n#ifdef CARPETINTERP2_CHECK\n vector computed_pn(send_descr.npoints);\n#endif\n for (size_t comp = 0; comp < send_proc.comps.size(); ++comp) {\n send_comp_t const &send_comp = send_proc.comps.AT(comp);\n\n int const m = send_comp.mrc.m;\n int const rl = send_comp.mrc.rl;\n int const c = send_comp.mrc.c;\n\n int const lc = Carpet::vhh.AT(m)->get_local_component(rl, c);\n\n // Get pointers to 3D data\n vector varptrs(nvars);\n for (size_t v = 0; v < nvars; ++v) {\n int const gi = CCTK_GroupIndexFromVarI(varinds.AT(v));\n assert(gi >= 0);\n int const vi = varinds.AT(v) - CCTK_FirstVarIndexI(gi);\n assert(vi >= 0);\n ggf const *const ff = Carpet::arrdata.AT(gi).AT(m).data.AT(vi);\n void const *const ptr =\n ff->data_pointer(tl, rl, lc, Carpet::mglevel)->storage();\n varptrs.AT(v) = (CCTK_REAL const *)ptr;\n assert(varptrs.AT(v));\n }\n\n // TODO: This loop seems unbalanced. Maybe the different\n // interpolations have different costs.\n interpolate_timer.start();\n#pragma omp parallel for schedule(dynamic, 1000)\n for (int n = 0; n < int(send_comp.locs.size()); ++n) {\n size_t const ind = (send_comp.offset + n) * nvars;\n send_comp.locs.AT(n).interpolate(send_comp.ash,\n CI2C(send_comp.lsh, ) order, varptrs,\n &computed_points.AT(ind));\n#ifdef CARPETINTERP2_CHECK\n computed_pn.AT(send_comp.offset + n) = send_comp.locs.AT(n).pn;\n#endif\n }\n interpolate_timer.stop();\n\n } // for comp\n\n// Gather send points\n#pragma omp parallel for\n for (int n = 0; n < int(send_proc.npoints); ++n) {\n size_t const nn = send_proc.index.AT(n);\n for (size_t v = 0; v < nvars; ++v) {\n send_points.AT((send_proc.offset + n) * nvars + v) =\n computed_points.AT(nn * nvars + v);\n }\n#ifdef CARPETINTERP2_CHECK\n send_pn.AT(send_proc.offset + n) = computed_pn.AT(nn);\n#endif\n }\n// TODO: Use a scatter index list instead of a gather index\n// list, and combine the scattering with the calculation\n\n#ifdef CARPETINTERP2_CHECK\n#pragma omp parallel for\n for (int n = 0; n < int(send_proc.npoints); ++n) {\n assert(send_pn.AT(send_proc.offset + n).p == send_proc.p);\n if (n > 0) {\n assert(send_pn.AT(send_proc.offset + n).n >\n send_pn.AT(send_proc.offset + n - 1).n);\n }\n }\n#endif\n\n MPI_Isend(&send_points.AT(send_proc.offset * nvars),\n send_proc.npoints * nvars, dist::mpi_datatype(),\n send_proc.p, mpi_tag, comm_world, &send_reqs.AT(pp));\n#ifdef CARPETINTERP2_CHECK\n MPI_Isend(&send_pn.AT(send_proc.offset), send_proc.npoints * 2,\n dist::mpi_datatype(), send_proc.p, mpi_tag, comm_world,\n &send_reqs_pn.AT(pp));\n#endif\n } // for pp\n\n // Wait for Irecvs to complete\n if (verbose)\n CCTK_INFO(\"Waiting for MPI_Irevcs to complete\");\n\n static Timers::Timer waitall_ir_timer(\"WaitAll_Irecvs\");\n waitall_ir_timer.start();\n MPI_Waitall(recv_reqs.size(), &recv_reqs.front(), MPI_STATUSES_IGNORE);\n#ifdef CARPETINTERP2_CHECK\n MPI_Waitall(recv_reqs.size(), &recv_reqs_pn.front(), MPI_STATUSES_IGNORE);\n#endif\n\n waitall_ir_timer.stop();\n // Gather data\n if (verbose)\n CCTK_INFO(\"Gathering data\");\n static Timers::Timer gather_timer(\"Gather\");\n gather_timer.start();\n\n#pragma omp parallel for\n for (int n = 0; n < recv_descr.npoints; ++n) {\n size_t const nn = recv_descr.index.AT(n);\n for (size_t v = 0; v < nvars; ++v) {\n values.AT(v)[n] = recv_points.AT(nn * nvars + v);\n#ifndef NDEBUG\n recv_points.AT(nn * nvars + v) = poison;\n#endif\n }\n#ifdef CARPETINTERP2_CHECK\n assert(recv_pn.AT(nn).p == dist::rank());\n assert(recv_pn.AT(nn).n == n);\n#endif\n }\n\n gather_timer.stop();\n\n // Wait for Isends to complete\n if (verbose)\n CCTK_INFO(\"Waiting for MPI_Isends to complete\");\n static Timers::Timer waitall_is_timer(\"WaitAll_Isend\");\n waitall_is_timer.start();\n MPI_Waitall(send_reqs.size(), &send_reqs.front(), MPI_STATUSES_IGNORE);\n#ifdef CARPETINTERP2_CHECK\n MPI_Waitall(send_reqs.size(), &send_reqs_pn.front(), MPI_STATUSES_IGNORE);\n#endif\n\n waitall_is_timer.stop();\n\n if (interp_barrier) {\n static Timers::Timer barrier_timer(\"PostBarrier\");\n barrier_timer.start();\n CCTK_Barrier(cctkGH);\n barrier_timer.stop();\n }\n\n if (verbose)\n CCTK_INFO(\"Done.\");\n}\n\n// instantiate template\ntemplate class fasterp_setup_gen_t;\n\ntemplate class fasterp_setup_gen_t;\n\n} // namespace CarpetInterp2\n", diff --git a/Carpet_CarpetLib.json b/Carpet_CarpetLib.json index 14b30ead9ed326568cb22a8599e89cede20be36f..a7d9a624a22b9c2bcd2517f262a1692f19a1a597 100644 --- a/Carpet_CarpetLib.json +++ b/Carpet_CarpetLib.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "# Configuration definitions for thorn CarpetLib\n\nPROVIDES CarpetLib\n{\n SCRIPT\n LANG\n}\n\n# TODO: make Vectors optional\nREQUIRES MPI Vectors\n\nOPTIONAL Boost CycleClock LoopControl\n{\n}\n\n# DGFE\nOPTIONAL HRSCCore\n{\n}\n", "interface": "# Interface definition for thorn CarpetLib\n\nIMPLEMENTS: CarpetLib\n\nincludes header: mpi_string.hh in mpi_string.hh\n\nincludes header: cacheinfo.hh in cacheinfo.hh\nincludes header: defs.hh in defs.hh\nincludes header: dist.hh in dist.hh\nincludes header: typecase.hh in typecase.hh\nincludes header: typeprops.hh in typeprops.hh\n\nincludes header: balance.hh in balance.hh\nincludes header: bbox.hh in bbox.hh\nincludes header: bboxset.hh in bboxset.hh\nincludes header: fulltree.hh in fulltree.hh\nincludes header: region.hh in region.hh\nincludes header: vect.hh in vect.hh\n\nincludes header: commstate.hh in commstate.hh\nincludes header: mem.hh in mem.hh\nincludes header: timestat.hh in timestat.hh\n\nincludes header: operator_prototypes_3d.hh in operator_prototypes_3d.hh\n\nincludes header: data.hh in data.hh\nincludes header: gdata.hh in gdata.hh\n\nincludes header: dh.hh in dh.hh\nincludes header: gf.hh in gf.hh\nincludes header: ggf.hh in ggf.hh\nincludes header: gh.hh in gh.hh\nincludes header: th.hh in th.hh\n\nincludes header: operators.hh in operators.hh\n\nuses include header: nompi.h\n\nuses include header: Timer.hh\nuses include header: cycleclock.h\nuses include header: loopcontrol.h\nuses include header: vectors.h\n\n# DGFE\nuses include header: hrscc.hh\n\n\n\n# Return a pointer to an unmodifiable C string\n# which contains a unique ID for this build\nCCTK_POINTER_TO_CONST \\\nFUNCTION UniqueBuildID (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION UniqueBuildID\n\n# Return a pointer to an unmodifiable C string\n# which contains a unique ID for this simulation\nCCTK_POINTER_TO_CONST \\\nFUNCTION UniqueSimulationID (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION UniqueSimulationID\n\n\n\n# Check whether existing output files should be truncated\nCCTK_INT \\\nFUNCTION IO_TruncateOutputFiles (CCTK_POINTER_TO_CONST IN cctkGH)\nREQUIRES FUNCTION IO_TruncateOutputFiles\n\n\n\n# The location of the boundary points\nCCTK_INT FUNCTION GetBoundarySpecification \\\n (CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\n\n\nCCTK_INT FUNCTION GetCacheInfo1 \\\n (CCTK_POINTER_TO_CONST ARRAY OUT names, \\\n CCTK_INT ARRAY OUT types, \\\n CCTK_POINTER_TO_CONST ARRAY OUT sizes, \\\n CCTK_INT ARRAY OUT linesizes, \\\n CCTK_INT ARRAY OUT strides, \\\n CCTK_INT ARRAY OUT num_puss, \\\n CCTK_INT IN max_num_cache_levels)\nUSES FUNCTION GetCacheInfo1\n", - "params": "", + "param": "# Parameter definitions for thorn CarpetLib\n\nprivate:\n\nBOOLEAN verbose \"Print info to the screen\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN barriers \"Insert barriers at strategic places for debugging purposes (slows down execution)\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN commstate_verbose \"Print debug info from the commstate class\" STEERABLE=always\n{\n} \"no\"\n\n\n\n#BOOLEAN omit_prolongation_points_when_restricting \"Do not restrict to points which are used to prolongate the boundary\" STEERABLE=always\n#{\n#} \"no\"\n\n#INT proper_nesting_distance \"Minimum distance (in grid points) between two level interfaces\" STEERABLE=always\n#{\n# 0:* :: \"any non-negative value is fine; the default value is just a guess\"\n#} 4\n\n\n\nBOOLEAN use_dgfe \"Use DGFE operators instead of Lagrange operators\"\n{\n} \"no\"\n\n\n\nBOOLEAN interpolate_from_buffer_zones \"Use buffer points for interpolation\" STEERABLE=always\n{\n} \"no\"\n\n\n\nBOOLEAN use_loopcontrol_in_operators \"Use LoopControl to parallelize AMR operators\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN use_openmp \"Use OpenMP to parallelize AMR operators\" STEERABLE=always\n{\n} \"yes\"\n\n\n\nrestricted:\n\nBOOLEAN use_higher_order_restriction \"Use third order cell centered restriction operators instead of first order\"\n{\n} \"no\"\n\nINT restriction_order_space \"Order of restriction operator to use with use_higher_order_restriction\"\n{\n 1 :: \"linear interpolation, this is Carpet's original implementation\"\n 3 :: \"third order accurate restriction for grid functions where prolongation is not (W)ENO\"\n 5 :: \"fifth order accurate restriction for grid functions where prolongation is not (W)ENO\"\n} 3\n\nBOOLEAN support_staggered_operators \"Provide one extra ghost point during restriction for staggered operators - EXPERIMENTAL\"\n{\n} \"no\"\n\n\n\nprivate:\n\nBOOLEAN output_bboxes \"Output bounding box information to the screen\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN check_bboxes \"Check bounding box information for self-consistency\" STEERABLE=always\n{\n} \"yes\"\n\n\n\nBOOLEAN poison_new_memory \"Try to catch uninitialised data by setting newly allocated memory to values that will catch your attention\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN electric_fence \"Surround each allocated memory block by canaries to check for out-of-bounds accesses\" STEERABLE=recover\n{\n} \"no\"\n\nCCTK_INT fence_width \"number of guard cells to use\" STEERABLE=recover\n{\n 1:* :: \"any number of cells\"\n} 1\n\nRESTRICTED:\n\nCCTK_INT poison_value \"Integer value (0..255) used to poison new timelevels (with memset)\" STEERABLE=always\n{\n 0:255 :: \"Must fit into a byte. Use 0 for zero, 255 for nan, and e.g. 113 for a large value.\"\n} 255\n\nCCTK_INT deadbeef \"A strange integer value that indicates that something has gone wrong; the integer equivalent of a nan\" STEERABLE=always\n{\n *:* :: \"should be large and positive\"\n} 666 # 7353315\n\nPRIVATE:\n\n\n\n# System limits\n\nINT max_core_size_MB \"Maximum size of a core file, set via setrlimit\" STEERABLE=recover\n{\n -2 :: \"unchanged\"\n -1 :: \"unlimited\"\n 0:* :: \"limited\"\n} -2\n\nINT max_memory_size_MB \"Maximum amount of memory per MPI process, set via setrlimit\" STEERABLE=recover\n{\n -2 :: \"unchanged\"\n -1 :: \"unlimited\"\n 0:* :: \"limited\"\n} -2\n\n\n\nBOOLEAN test_backtrace \"Kill yourself to test the backtrace mechanism\"\n{\n} \"no\"\n\n\n\n# Statistics\n\nINT print_timestats_every \"Print timing statistics periodically\" STEERABLE=always\n{\n -1 :: \"don't report\"\n 0 :: \"report after initialisation\"\n 1:* :: \"report every so many iterations\"\n} -1\n\nSTRING timestat_file \"File name in which timestat output is collected (because stdout from the root node may not be enough)\" STEERABLE=always\n{\n \"^$\" :: \"empty filename: no file output\"\n \"^.+$\" :: \"file name\"\n} \"carpetlib-timing-statistics\"\n\nBOOLEAN use_ipm_timing_regions \"Call IPM (via MPI_Pcontrol) to define regions\" STEERABLE=always\n{\n} no\n\n\n\nINT print_memstats_every \"Report periodically how much memory is used per process\" STEERABLE=always\n{\n -1 :: \"don't report\"\n 0 :: \"report after setting up initial data\"\n 1:* :: \"report every so many iterations\"\n} -1\n\nINT max_allowed_memory_MB \"Maximum allowed amount of memory per process that can be allocated for grid variables (in Megabytes)\" STEERABLE=always\n{\n -1 :: \"no maximum\"\n 0 :: \"no maximum\"\n 1:* :: \"abort if more memory is used\"\n} 0\n\nSTRING memstat_file \"File name in which memstat output is collected (because stdout from the root node may not be enough)\" STEERABLE=always\n{\n \"^$\" :: \"empty filename: no file output\"\n \"^.+$\" :: \"file name\"\n} \"carpetlib-memory-statistics\"\n\n\n\nBOOLEAN combine_recompose \"Recompose all grid functions of one refinement levels at once\" STEERABLE=always\n{\n} \"yes\"\n\n\n\n# # Memory allocation parameters\n# \n# INT avoid_arraysize_bytes \"Avoid array sizes that are multiples of this\" STEERABLE=recover\n# {\n# 0 :: \"don't avoid anything\"\n# 2:* :: \"\"\n# } 0\n\n\n\n# Communication experiment parameters\n\nINT message_size_multiplier \"Enlarge size of transmitted messages by this factor\" STEERABLE=always\n{\n 1:* :: \"\"\n} 1\n\nINT message_count_multiplier \"Transmit messages this many times\" STEERABLE=always\n{\n 1:* :: \"\"\n} 1\n\n\n\n# Experimental communication parameters\n\nBOOLEAN interleave_communications \"Try to interleave communications with each other; each processor begins to communicate with its 'right neighbour' in rank, instead of with the root processor\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN barrier_between_stages \"Add a barrier between the communication stages (slows down, but may make timing numbers easier to interpret)\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN check_communication_schedule \"Check the communication schedule at run time (expensive)\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN combine_sends \"Send data together and in order of processor ranks\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN use_mpi_send \"Use MPI_Send instead of MPI_Isend\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN use_mpi_ssend \"Use MPI_Ssend instead of MPI_Isend\" STEERABLE=always\n{\n} \"no\"\n\n\n\nBOOLEAN pad_to_cachelines \"Pad arrays to the cache line size (only when VECTORISE_ALIGNED_ARRAYS is set) DEPRECARED\" STEERABLE=recover # DEPRECATED\n{\n} \"yes\"\n\n\n\nSHARES: IO\n\nUSES STRING out_dir\n", "schedule": "# Schedule definitions for thorn CarpetLib\n\nSCHEDULE CarpetLib_test_prolongate_3d_rf2 AT paramcheck\n{\n LANG: C\n OPTIONS: global\n} \"Test prolongation operators\"\n\nif (test_backtrace) {\n SCHEDULE CarpetLib_BacktraceTest AT wragh\n {\n LANG: C\n } \"Test stack backtraces\"\n}\n\nSCHEDULE CarpetLib_printtimestats AT analysis\n{\n LANG: C\n OPTIONS: global\n} \"Print timing statistics if desired\"\n\nSCHEDULE CarpetLib_printmemstats AT analysis\n{\n LANG: C\n OPTIONS: global\n} \"Print memory statistics if desired\"\n", "src": { "bintree.cc": "#include \n#include \n#include \n\n#include \"defs.hh\"\n#include \"region.hh\"\n\n#include \"bintree.hh\"\n\nnamespace CarpetLib {\nusing namespace std;\n\n// Create an empty tree\ntemplate \nbintree::bintree() : type(type_empty) {\n assert(invariant());\n // This is unused\n assert(0);\n}\n\n// Create a tree branch from a list of bounds and subtrees\ntemplate \nbintree::bintree(int const dir_, vect const &bounds_,\n vect const &subtrees_)\n : type(type_branch), dir(dir_), bounds(bounds_), subtrees(subtrees_) {\n assert(dir >= 0 and dir < D);\n assert(invariant());\n}\n\n// Create a tree leaf from a payload\ntemplate \nbintree::bintree(P const &p_) : type(type_leaf), p(p_) {\n assert(invariant());\n}\n\n// Create a tree as copy from another tree\ntemplate \nbintree::bintree(bintree const &t) : type(t.type) {\n switch (type) {\n case type_empty:\n // do nothing\n break;\n case type_branch:\n dir = t.dir;\n bounds = t.bounds;\n for (int i = 0; i < 2; ++i) {\n subtrees[i] = new bintree(*t.subtrees[i]);\n }\n break;\n case type_leaf:\n p = t.p;\n break;\n default:\n assert(0);\n }\n assert(invariant());\n}\n\n// Copy a tree\ntemplate \nbintree &bintree::operator=(bintree const &t) {\n assert(&t !=\n this); // subtree delet handling is currently incorrect in this case\n if (&t == this)\n return *this; // nothing to do\n\n assert(invariant());\n if (is_branch()) {\n for (int i = 0; i < 2; ++i) {\n delete subtrees[i];\n }\n }\n type = t.type;\n switch (type) {\n case type_empty:\n // do nothing\n break;\n case type_branch:\n dir = t.dir;\n bounds = t.bounds;\n for (int i = 0; i < 2; ++i) {\n subtrees[i] = new bintree(*t.subtrees[i]);\n }\n break;\n case type_leaf:\n p = t.p;\n break;\n default:\n assert(0);\n }\n assert(invariant());\n return *this;\n}\n\n// Delete a tree (and its subtrees)\ntemplate bintree::~bintree() {\n assert(invariant());\n if (is_branch()) {\n for (int i = 0; i < 2; ++i) {\n delete subtrees[i];\n }\n }\n}\n\n// Compare trees\ntemplate \nbool bintree::operator==(bintree const &t) const {\n assert(invariant());\n assert(t.invariant());\n if (type != t.type)\n return false;\n switch (type) {\n case type_empty:\n break;\n case type_branch:\n if (dir != t.dir)\n return false;\n if (any(bounds != t.bounds))\n return false;\n if (any(subtrees != t.subtrees))\n return false;\n break;\n case type_leaf:\n return p == t.p;\n default:\n assert(0);\n }\n return true;\n}\n\n// Invariant\ntemplate \nbool bintree::invariant() const {\n return empty() + is_branch() + is_leaf() == 1;\n}\n\n// Find the leaf payload corresponding to a position\ntemplate \nP const *bintree::search(tvect const &ipos) const {\n assert(not empty());\n if (is_leaf())\n return &p;\n int const i = CarpetLib::asearch(ipos[dir], bounds);\n if (i < 0 or i >= 2)\n return NULL; // not found\n return subtrees[i]->search(ipos);\n}\n\ntemplate \nP *bintree::search(tvect const &ipos) {\n assert(not empty());\n if (is_leaf())\n return &p;\n int const i = CarpetLib::asearch(ipos[dir], bounds);\n if (i < 0 or i >= 2)\n return NULL; // not found\n return subtrees[i]->search(ipos);\n}\n\n// Const iterator\ntemplate \nbintree::const_iterator::const_iterator(bintree const &f_)\n : f(f_), i(0), it(0) {\n if (f.is_branch()) {\n it = new const_iterator(*f.subtrees[i]);\n while ((*it).done()) {\n delete it;\n it = 0;\n ++i;\n if (done())\n break;\n // to do: use a new function \"reset iterator\" instead\n it = new const_iterator(*f.subtrees[i]);\n }\n assert(done() or not(*it).done());\n }\n}\n\ntemplate \nbintree::const_iterator::const_iterator(bintree const &f_, int)\n : f(f_), it(0) {\n if (f.empty()) {\n i = 0;\n } else if (f.is_leaf()) {\n i = 1;\n } else {\n i = 2;\n }\n}\n\ntemplate \nbintree::const_iterator::~const_iterator() {\n if (it) {\n delete it;\n }\n}\n\ntemplate \nbintree const &bintree::const_iterator::operator*() const {\n assert(not done());\n assert(not f.empty());\n if (f.is_leaf()) {\n return f;\n } else {\n assert(it);\n return **it;\n }\n}\n\ntemplate \nbool bintree::const_iterator::\noperator==(const_iterator const &it2) const {\n // assert (f == it2.f);\n assert(&f == &it2.f);\n if (i != it2.i)\n return false;\n if (it == 0 and it2.it == 0)\n return true;\n if (it == 0 or it2.it == 0)\n return false;\n return *it == *it2.it;\n}\n\ntemplate \ntypename bintree::const_iterator &bintree::const_iterator::\noperator++() {\n assert(not done());\n assert(not f.empty());\n if (f.is_leaf()) {\n ++i;\n } else {\n ++*it;\n while ((*it).done()) {\n delete it;\n it = 0;\n ++i;\n if (done())\n break;\n // to do: use a new function \"reset iterator\" instead\n it = new const_iterator(*f.subtrees[i]);\n }\n assert(done() or not(*it).done());\n }\n return *this;\n}\n\ntemplate \nbool bintree::const_iterator::done() const {\n if (f.empty()) {\n return true;\n } else if (f.is_leaf()) {\n return i > 0;\n } else {\n return i == 2;\n }\n}\n\n// Non-const iterator\ntemplate \nbintree::iterator::iterator(bintree &f_) : f(f_), i(0), it(0) {\n if (f.is_branch()) {\n it = new iterator(*f.subtrees[i]);\n while ((*it).done()) {\n delete it;\n it = 0;\n ++i;\n if (done())\n break;\n // to do: use a new function \"reset iterator\" instead\n it = new iterator(*f.subtrees[i]);\n }\n assert(done() or not(*it).done());\n }\n}\n\ntemplate \nbintree::iterator::iterator(bintree &f_, int) : f(f_), it(0) {\n if (f.empty()) {\n i = 0;\n } else if (f.is_leaf()) {\n i = 1;\n } else {\n i = 2;\n }\n}\n\ntemplate \nbintree::iterator::~iterator() {\n if (it) {\n delete it;\n }\n}\n\ntemplate \nbintree &bintree::iterator::operator*() const {\n assert(not done());\n assert(not f.empty());\n if (f.is_leaf()) {\n return f;\n } else {\n assert(it);\n return **it;\n }\n}\n\ntemplate \nbool bintree::iterator::operator==(iterator const &it2) const {\n // assert (f == it2.f);\n assert(&f == &it2.f);\n if (i != it2.i)\n return false;\n if (it == 0 and it2.it == 0)\n return true;\n if (it == 0 or it2.it == 0)\n return false;\n return *it == *it2.it;\n}\n\ntemplate \ntypename bintree::iterator &bintree::iterator::operator++() {\n assert(not done());\n assert(not f.empty());\n if (f.is_leaf()) {\n ++i;\n } else {\n ++*it;\n while ((*it).done()) {\n delete it;\n it = 0;\n ++i;\n if (done())\n break;\n // to do: use a new function \"reset iterator\" instead\n it = new iterator(*f.subtrees[i]);\n }\n assert(done() or not(*it).done());\n }\n return *this;\n}\n\ntemplate \nbool bintree::iterator::done() const {\n if (f.empty()) {\n return true;\n } else if (f.is_leaf()) {\n return i > 0;\n } else {\n return i == 2;\n }\n}\n\n// Memory usage\ntemplate \nsize_t bintree::memory() const {\n size_t size = sizeof *this;\n if (is_branch()) {\n for (int i = 0; i < 2; ++i) {\n size += memoryof(*subtrees[i]);\n }\n }\n return size;\n}\n\n// Output helper\ntemplate \nvoid bintree::output(ostream &os) const {\n os << \"bintree{\";\n if (empty()) {\n os << \"empty\";\n } else if (is_branch()) {\n os << \"branch:\"\n << \"dir=\" << dir << \",\"\n << \"subtrees=[\";\n for (int i = 0; i < 2; ++i) {\n os << bounds[i] << \":[\" << i << \"]=\" << *subtrees[i] << \":\";\n }\n os << bounds[2] << \"]\";\n } else {\n os << \"leaf:\"\n << \"payload=\" << p;\n }\n os << \"}\";\n}\n\n// Generic arithmetic search\ntemplate \nstatic int asearch(T const t, vect const &ts) {\n int imin = 0;\n int imax = D - 1;\n if (imax <= imin) {\n return imin;\n }\n T tmin = ts[imin];\n if (t < tmin) {\n return -1;\n }\n T tmax = ts[imax];\n if (t >= tmax) {\n return imax;\n }\n int isize = imax - imin;\n for (;;) {\n // check loop invariants\n assert(imin < imax);\n assert(t >= tmin);\n assert(t < tmax);\n if (imax == imin + 1) {\n return imin;\n }\n assert(tmax > tmin); // require that ts is strictly ordered\n CCTK_REAL const rguess =\n (imax - imin) * CCTK_REAL(t - tmin) / (tmax - tmin);\n int const iguess = imin + std::max(1, int(std::lrint(std::floor(rguess))));\n // handle round-off errors\n if (iguess == imax) {\n return imax - 1;\n }\n assert(iguess > imin and iguess < imax);\n T const tguess = ts[iguess];\n if (t < tguess) {\n imax = iguess;\n tmax = tguess;\n } else {\n imin = iguess;\n tmin = tguess;\n }\n // check loop variant\n int const newisize = imax - imin;\n assert(newisize < isize);\n isize = newisize;\n }\n}\n\ntemplate class bintree;\n\ntemplate size_t memoryof(bintree const &f);\n\ntemplate ostream &operator<<(ostream &os,\n bintree const &f);\n}\n", diff --git a/Carpet_CarpetMask.json b/Carpet_CarpetMask.json index a1ce091119e708b810c31884e2f703790a90f17c..2ba65ccfb15baa5a9cc7dccafa85a03986e81b11 100644 --- a/Carpet_CarpetMask.json +++ b/Carpet_CarpetMask.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "# Configuration definitions for thorn CarpetMask\n\nOPTIONAL LoopControl\n{\n}\n", "interface": "# Interface definition for thorn CarpetMask\n\nIMPLEMENTS: CarpetMask\n\nINHERITS: grid SphericalSurface\n\nUSES INCLUDE HEADER: CarpetReduce_bits.h\n", - "params": "", + "param": "# Parameter definitions for thorn CarpetMask\n\n\n\nBOOLEAN verbose \"Produce screen output\" STEERABLE=always\n{\n} \"no\"\n\n\n\n# The exclusion parameters are re-interpreted after each regridding,\n# and are therefore marked as \"always steerable\".\n\n\n\n# Exclude coordinate spheres\n\nCCTK_REAL excluded_centre_x[10] \"x coordinate of excluded region\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL excluded_centre_y[10] \"y coordinate of excluded region\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL excluded_centre_z[10] \"z coordinate of excluded region\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL excluded_radius[10] \"radius of excluded region\" STEERABLE=always\n{\n -1.0 :: \"do not exlude this region\"\n 0.0:* :: \"\"\n} -1.0\n\nBOOLEAN exclude_exterior[10] \"exclude the exterior of this radius, otherwise the interior\" STEERABLE=always\n{\n} no\n\n\n\n# Exclude spherical surfaces\n\nCCTK_INT excluded_surface[10] \"index of excluded surface\" STEERABLE=always\n{\n -1 :: \"do not exclude\"\n 0:* :: \"\"\n} -1\n\nCCTK_REAL excluded_surface_factor[10] \"shrink factor of excluded surface\" STEERABLE=always\n{\n 0:* :: \"\"\n} 1.0\n\n\n\nSHARES: SphericalSurface\n\nUSES CCTK_INT nsurfaces\n\nUSES BOOLEAN symmetric_z\nUSES BOOLEAN symmetric_y\nUSES BOOLEAN symmetric_x\nUSES CCTK_INT maxntheta\nUSES CCTK_INT maxnphi\n", "schedule": "# Schedule definitions for thorn CarpetMask\n\nSCHEDULE CarpetSurfaceParamCheck AT paramcheck\n{\n LANG: C\n OPTIONS: global\n} \"Check parameters\"\n\n# TODO: Schedule this only if there is an excluded centre which is active\nSCHEDULE GROUP MaskBase_SetupMask AT poststep AFTER SphericalSurface_HasBeenSet\n{\n} \"Set up the weight function\"\n\n# these two need to be global loop-local since SphericalSurface_Set and\n# AHFinder are global\nSCHEDULE CarpetExcludedSetup IN SetupIMask\n{\n LANG: C\n OPTIONS: global loop-local\n READS: grid::x, grid::y, grid::z\n} \"Set up the weight function for the excluded regions\"\n\nSCHEDULE CarpetSurfaceSetup IN SetupIMask\n{\n LANG: C\n OPTIONS: global loop-local\n READS: grid::x, grid::y, grid::z\n READS: SphericalSurface::sf_coordinate_descriptors,\n SphericalSurface::sf_shape_descriptors\n READS: SphericalSurface::sf_info, SphericalSurface::sf_active,\n SphericalSurface::sf_origin, SphericalSurface::sf_radius\n} \"Set up the weight function for the excluded spherical surfaces\"\n\n\n\n#SCHEDULE CarpetExcludedSetup IN SetupMask_LevelMode\n#{\n# LANG: C\n#} \"Set up the weight function for the excluded regions\"\n#\n#SCHEDULE CarpetSurfaceSetup IN SetupMask_LevelMode\n#{\n# LANG: C\n#} \"Set up the weight function for the excluded spherical surfaces\"\n", "src": { "mask_excluded.hh": "#include \n#include \n\nnamespace CarpetMask {\n\nextern \"C\" {\nvoid CarpetExcludedSetup(CCTK_ARGUMENTS);\n}\n\n} // namespace CarpetMask\n", diff --git a/Carpet_CarpetProlongateTest.json b/Carpet_CarpetProlongateTest.json index 46e5a2682900e47a3866a7d750f1309a3b064aec..3b6c9be9e1e90915255feba0101abe214699e8b4 100644 --- a/Carpet_CarpetProlongateTest.json +++ b/Carpet_CarpetProlongateTest.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "# Configuration definition for thorn CarpetProlongateTest\n\nREQUIRES Fortran\n", "interface": "# Interface definition for thorn CarpetProlongateTest\n\nIMPLEMENTS: CarpetProlongateTest\n\nINHERITS: grid\n\n\n\nCCTK_REAL scalar TYPE=gf TIMELEVELS=3 TAGS='ProlongationParameter=\"CarpetProlongateTest::prolongation\"'\n{\n u\n} \"Grid function\"\n\nCCTK_REAL scaled TYPE=gf TIMELEVELS=3\n{\n uscaled\n} \"Scaled grid function\"\n\nCCTK_REAL difference TYPE=gf TIMELEVELS=3\n{\n u0 du\n} \"Error in grid function\"\n\n\n\nCCTK_REAL interp_difference TYPE=array DIM=3 SIZE=interp_nx,interp_ny,interp_nz DISTRIB=default\n{\n interp_x interp_y interp_z\n interp_u\n interp_u0 interp_du\n} \"Error in interpolated grid array\"\n\n\n\nCCTK_REAL errornorm TYPE=scalar \"Norm of error in grid function\"\nCCTK_REAL interp_errornorm TYPE=scalar \"Norm of error in interpolated grid array\"\n", - "params": "", + "param": "# Parameter definitions for thorn CarpetProlongateTest\n\nCCTK_INT power_x \"Polynomial power of x coordinate\"\n{\n *:* :: \"\"\n} 0\n\nCCTK_INT power_y \"Polynomial power of y coordinate\"\n{\n *:* :: \"\"\n} 0\n\nCCTK_INT power_z \"Polynomial power of z coordinate\"\n{\n *:* :: \"\"\n} 0\n\nCCTK_INT power_t \"Polynomial power of t coordinate\"\n{\n *:* :: \"\"\n} 0\n\n\n\nKEYWORD prolongation \"The prolongation operator to use\" STEERABLE=recover\n{\n \"Lagrange\" :: \"\"\n \"ENO\" :: \"\"\n \"WENO\" :: \"\"\n \"TVD\" :: \"\"\n \"Lagrange_monotone\" :: \"\"\n} \"Lagrange\"\n\nSTRING interpolator \"The interpolator to use\" STEERABLE=always\n{\n \"\" :: \"must be a registered interpolator\"\n} \"Lagrange polynomial interpolation\"\n\nSTRING interpolator_options \"Options for the interpolator\" STEERABLE=always\n{\n \"\" :: \"must be a valid options specification\"\n} \"order=2\"\n\nCCTK_INT interp_nx \"number of points for interpolated region\"\n{\n 0:* :: \"\"\n} 4\nCCTK_INT interp_ny \"number of points for interpolated region\"\n{\n 0:* :: \"\"\n} 4\nCCTK_INT interp_nz \"number of points for interpolated region\"\n{\n 0:* :: \"\"\n} 4\n\nCCTK_REAL interp_xmin \"xmin for interpolated region\"\n{\n *:* :: \"\"\n} -0.5\nCCTK_REAL interp_ymin \"ymin for interpolated region\"\n{\n *:* :: \"\"\n} -0.5\nCCTK_REAL interp_zmin \"zmin for interpolated region\"\n{\n *:* :: \"\"\n} -0.5\n\nCCTK_REAL interp_xmax \"xmax for interpolated region\"\n{\n *:* :: \"\"\n} +0.5\nCCTK_REAL interp_ymax \"ymax for interpolated region\"\n{\n *:* :: \"\"\n} +0.5\nCCTK_REAL interp_zmax \"zmax for interpolated region\"\n{\n *:* :: \"\"\n} +0.5\n", "schedule": "# Schedule definitions for thorn CarpetProlongateTest\n\nSTORAGE: scalar[3] scaled[3] difference[3]\nSTORAGE: interp_difference\nSTORAGE: errornorm interp_errornorm\n\n\n\nSCHEDULE CarpetProlongateTest_Init AT initial\n{\n LANG: Fortran\n SYNC: scalar scaled\n WRITES: u(interior), uscaled(interior)\n} \"Set up initial data\"\n\nSCHEDULE CarpetProlongateTest_Init AT evol\n{\n LANG: Fortran\n SYNC: scalar scaled\n READS: grid::x, grid::y, grid::z\n WRITES: u(interior), uscaled(interior)\n} \"Set up initial data\"\n\nSCHEDULE CarpetProlongateTest_Diff IN MoL_PostStep\n{\n LANG: Fortran\n READS: grid::x, grid::y, grid::z\n READS: u\n WRITES: u0(everywhere), du(everywhere)\n} \"Test data\"\n\nSCHEDULE CarpetProlongateTest_InterpInit AT initial\n{\n LANG: Fortran\n OPTIONS: global-late\n WRITES: interp_x(everywhere), interp_y(everywhere), interp_z(everywhere)\n} \"Set up interpolation\"\n\nSCHEDULE CarpetProlongateTest_Interp IN MoL_PostStep\n{\n LANG: Fortran\n OPTIONS: global-late\n READS: interp_x, interp_y, interp_z\n WRITES: interp_u(everywhere)\n} \"Interpolate\"\n\nSCHEDULE CarpetProlongateTest_InterpDiff IN MoL_PostStep AFTER CarpetProlongateTest_Interp\n{\n LANG: Fortran\n OPTIONS: global-late\n READS: interp_x, interp_y, interp_z, interp_u\n WRITES: interp_u0(everywhere), interp_du(everywhere)\n} \"Test interpolated data\"\n\nSCHEDULE CarpetProlongateTest_NormInit IN MoL_PostStep AFTER (CarpetProlongateTest_Diff CarpetProlongateTest_InterpDiff)\n{\n LANG: Fortran\n OPTIONS: global-late\n WRITES: errornorm(everywhere), interp_errornorm(everywhere)\n} \"Calculate error norm\"\n\nSCHEDULE CarpetProlongateTest_NormCalc IN MoL_PostStep AFTER CarpetProlongateTest_NormInit\n{\n LANG: Fortran\n OPTIONS: global-late loop-local\n READS: errornorm, interp_errornorm, du, interp_du\n WRITES: errornorm(everywhere), interp_errornorm(everywhere)\n} \"Calculate error norm\"\n\nSCHEDULE CarpetProlongateTest_NormReduce IN MoL_PostStep AFTER CarpetProlongateTest_NormCalc\n{\n LANG: Fortran\n OPTIONS: global-late\n READS: errornorm, interp_errornorm\n WRITES: errornorm(everywhere), interp_errornorm(everywhere)\n} \"Calculate error norm\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn CarpetProlongateTest\n\n# Source files in this directory\nSRCS = init.F90\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/Carpet_CarpetReduce.json b/Carpet_CarpetReduce.json index 3e471edef6ebb6248abc2c13d75894ea31d05914..f9f4ade2b020321acc1c3c01789a80da453a34ca 100644 --- a/Carpet_CarpetReduce.json +++ b/Carpet_CarpetReduce.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "# Configuration definitions for thorn CarpetReduce\n\nREQUIRES Carpet CarpetLib MPI\n\nOPTIONAL LoopControl\n{\n}\n", "interface": "# Interface definition for thorn CarpetReduce\n\nIMPLEMENTS: reduce\n\nuses include header: nompi.h\n\nuses include header: defs.hh\nuses include header: dh.hh\nuses include header: dist.hh\nuses include header: vect.hh\n\nuses include header: carpet.hh\nuses include header: carpet.h\n\nuses include header: typecase.hh\nuses include header: typeprops.hh\n\nuses include header: loopcontrol.h\n\nincludes header: bits.h IN CarpetReduce_bits.h\n\n\n\nCCTK_INT FUNCTION \\\n GetBoundarySpecification \\\n (CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetBoundarySpecification \\\n (CCTK_INT IN map, \\\n CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION MultiPatch_GetBoundarySpecification \n\nCCTK_INT FUNCTION \\\n SymmetryTableHandleForGrid (CCTK_POINTER_TO_CONST IN cctkGH)\nREQUIRES FUNCTION SymmetryTableHandleForGrid\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetMaps \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMaps\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetMap \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetDomainSpecification \\\n (CCTK_INT IN map, \\\n CCTK_INT IN size, \\\n CCTK_REAL OUT ARRAY physical_min, \\\n CCTK_REAL OUT ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL OUT ARRAY spacing)\nUSES FUNCTION MultiPatch_GetDomainSpecification\n\nCCTK_INT FUNCTION \\\n GetDomainSpecification \\\n (CCTK_INT IN size, \\\n CCTK_REAL OUT ARRAY physical_min, \\\n CCTK_REAL OUT ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL OUT ARRAY spacing)\nUSES FUNCTION GetDomainSpecification\n\n# Get current refinement level\nCCTK_INT FUNCTION \\\n GetRefinementLevel \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nREQUIRES FUNCTION GetRefinementLevel\n\n\n\nINT iweight TYPE=gf TAGS='prolongation=\"none\" InterpNumTimelevels=1 checkpoint=\"no\"' \"Integer weight mask, using 2^D bits\"\n\nREAL weight TYPE=gf TAGS='prolongation=\"none\" InterpNumTimelevels=1 checkpoint=\"no\"' \"Weight function\"\n\nREAL one TYPE=gf TAGS='prolongation=\"none\" InterpNumTimelevels=1 checkpoint=\"no\"' \"Constant one\"\n\nCCTK_REAL excised_cells TYPE=scalar TAGS='checkpoint=\"no\"' \"Excised (ignored) volume in the simulation domain, in terms of coarse grid cells\"\n", - "params": "", + "param": "# Parameter definitions for thorn CarpetReduce\n\nBOOLEAN verbose \"Produce screen output while running\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN debug_iweight \"Allow debugging iweight grid function by keeping it allocated\" STEERABLE=recover\n{\n} \"no\"\n\nBOOLEAN min_max_time_interpolation \"Interpolate in time for min/max reductions\" STEERABLE=always\n{\n} \"yes\"\n", "schedule": "# Schedule definitions for thorn CarpetReduce\n\nschedule CarpetReduceStartup at STARTUP\n{\n LANG: C\n} \"Startup routine\"\n\n\n\n# Should this move to a new thorn MaskBase?\nSTORAGE: weight\nSTORAGE: excised_cells\n\n\n\nSCHEDULE GROUP MaskBase_SetupMask AT basegrid AFTER (SpatialCoordinates SphericalSurface_Setup)\n{\n} \"Set up the weight function\"\n\nSCHEDULE GROUP MaskBase_SetupMask AT postregridinitial AFTER SpatialCoordinates\n{\n} \"Set up the weight function\"\n\nSCHEDULE GROUP MaskBase_SetupMask AT postregrid AFTER SpatialCoordinates\n{\n} \"Set up the weight function\"\n\nSCHEDULE GROUP MaskBase_SetupMask AT post_recover_variables\n{\n} \"Set up the weight function\"\n\n\n\nSCHEDULE GROUP MaskBase_SetupMaskAll IN MaskBase_SetupMask\n{\n # Note: Storage for iweight and one is managed manually\n} \"Set up the weight function\"\n\n\n\nSCHEDULE MaskBase_AllocateMask IN MaskBase_SetupMaskAll\n{\n LANG: C\n WRITES: CARPETREDUCE::excised_cells(everywhere)\n OPTIONS: global\n} \"Allocate the weight function\"\n\nSCHEDULE MaskBase_InitMask IN MaskBase_SetupMaskAll AFTER MaskBase_AllocateMask\n{\n LANG: C\n WRITES: CARPETREDUCE::iweight(everywhere)\n OPTIONS: global loop-local\n} \"Initialise the weight function\"\n\nSCHEDULE GROUP SetupIMaskInternal IN MaskBase_SetupMaskAll AFTER MaskBase_InitMask\n{\n} \"Set up the integer weight function (schedule other routines in here)\"\n\nSCHEDULE GROUP SetupIMask IN MaskBase_SetupMaskAll AFTER SetupIMaskInternal\n{\n} \"Set up the integer weight function (schedule other routines in here)\"\n\nSCHEDULE MaskBase_SetMask IN MaskBase_SetupMaskAll AFTER SetupIMask\n{\n LANG: C\n READS: CARPETREDUCE::iweight(everywhere)\n WRITES: CARPETREDUCE::one(everywhere)\n WRITES: CARPETREDUCE::weight(everywhere)\n OPTIONS: global loop-local\n} \"Set the weight function\"\n\nSCHEDULE GROUP SetupMask IN MaskBase_SetupMaskAll AFTER MaskBase_SetMask\n{\n} \"Set up the real weight function (schedule other routines in here)\"\n\nSCHEDULE MaskBase_TestMask IN MaskBase_SetupMaskAll AFTER SetupMask\n{\n LANG: C\n READS: CARPETREDUCE::excised_cells(everywhere)\n WRITES: CARPETREDUCE::excised_cells(everywhere)\n OPTIONS: global\n} \"Test the weight function\"\n\n\n\n# Should this move to CoordBase?\nSCHEDULE CoordBase_SetupMask IN SetupIMaskInternal\n{\n LANG: C\n WRITES: CARPETREDUCE::iweight(everywhere)\n OPTIONS: global loop-local\n} \"Set up the outer boundaries of the weight function\"\n\n# Should this move to CarpetMask?\nSCHEDULE CarpetMaskSetup IN SetupIMaskInternal\n{\n LANG: C\n READS: CARPETREDUCE::iweight(everywhere)\n WRITES: CARPETREDUCE::iweight(everywhere)\n OPTIONS: global loop-singlemap\n} \"Set up the weight function for the restriction regions\"\n", "src": { "mask_test.cc": "#include \n#include \n#include \n\n#include \n\n#include \n#include \n\nextern \"C\" void MaskBase_TestMask(CCTK_ARGUMENTS) {\n DECLARE_CCTK_ARGUMENTS_MaskBase_TestMask;\n DECLARE_CCTK_PARAMETERS;\n\n if (verbose)\n CCTK_INFO(\"Testing weight\");\n\n int const sum = CCTK_ReductionHandle(\"sum\");\n assert(sum >= 0);\n\n int const array_sum = CCTK_ReductionArrayHandle(\"sum\");\n assert(array_sum >= 0);\n\n int const proc = 0;\n\n int const weight_var = CCTK_VarIndex(\"CarpetReduce::weight\");\n int const one_var = CCTK_VarIndex(\"CarpetReduce::one\");\n assert(weight_var >= 0);\n assert(one_var >= 0);\n\n CCTK_REAL sum_weight, all_excised_cells;\n\n {\n int const ierr = CCTK_Reduce(cctkGH, proc, sum, 1, CCTK_VARIABLE_REAL,\n &sum_weight, 1, one_var);\n assert(ierr >= 0);\n }\n {\n int const ierr =\n CCTK_ReduceLocalScalar(cctkGH, proc, array_sum, excised_cells,\n &all_excised_cells, CCTK_VARIABLE_REAL);\n assert(ierr >= 0);\n *excised_cells = all_excised_cells;\n }\n\n if (proc == -1 || CCTK_MyProc(cctkGH) == proc) {\n\n if (verbose)\n CCTK_VINFO(\"Reduction weight sum: %.17g\", (double)sum_weight);\n\n CCTK_REAL domain_volume = 0.0;\n\n int maps = 1;\n if (CCTK_IsFunctionAliased(\"MultiPatch_GetMaps\"))\n maps = MultiPatch_GetMaps(cctkGH);\n\n for (int m = 0; m < maps; ++m) {\n\n CCTK_REAL physical_min[cctk_dim];\n CCTK_REAL physical_max[cctk_dim];\n CCTK_REAL interior_min[cctk_dim];\n CCTK_REAL interior_max[cctk_dim];\n CCTK_REAL exterior_min[cctk_dim];\n CCTK_REAL exterior_max[cctk_dim];\n CCTK_REAL spacing[cctk_dim];\n\n /* TODO: This requires that the domain was set up via CoordBase, not via\n * grid. Check this, and don't output any warnings if so. */\n if (CCTK_IsFunctionAliased(\"MultiPatch_GetDomainSpecification\")) {\n int const ierr = MultiPatch_GetDomainSpecification(\n m, cctk_dim, physical_min, physical_max, interior_min, interior_max,\n exterior_min, exterior_max, spacing);\n assert(!ierr);\n } else {\n int const ierr = GetDomainSpecification(\n cctk_dim, physical_min, physical_max, interior_min, interior_max,\n exterior_min, exterior_max, spacing);\n assert(!ierr);\n }\n\n CCTK_REAL map_volume = 1.0;\n for (int d = 0; d < cctk_dim; ++d)\n map_volume *= (physical_max[d] - physical_min[d]) / spacing[d];\n\n if (verbose)\n CCTK_VINFO(\"Volume of map #%d: %.17g\", m, (double)map_volume);\n\n domain_volume += map_volume;\n\n } /* for m */\n\n /* Don't count excised regions towards the domain volume */\n domain_volume -= *excised_cells;\n\n if (verbose) {\n CCTK_VINFO(\"Simulation domain volume: %.17g\", (double)domain_volume);\n CCTK_VINFO(\"Additional excised volume: %.17g\", (double)*excised_cells);\n }\n\n int const there_is_a_problem = fabs(sum_weight - domain_volume) >\n 1.0e-12 * (sum_weight + domain_volume);\n\n if (there_is_a_problem) {\n if (!verbose) {\n CCTK_VINFO(\"Simulation domain volume: %.17g\", (double)domain_volume);\n CCTK_VINFO(\"Additional excised volume: %.17g\", (double)*excised_cells);\n CCTK_VINFO(\"Reduction weight sum: %.17g\", (double)sum_weight);\n }\n CCTK_WARN(CCTK_WARN_ALERT,\n \"Simulation domain volume and reduction weight sum differ\");\n }\n }\n\n if (!debug_iweight) {\n CCTK_DisableGroupStorage(cctkGH, \"CarpetReduce::iweight\");\n CCTK_DisableGroupStorage(cctkGH, \"CarpetReduce::one\");\n }\n}\n", diff --git a/Carpet_CarpetRegrid.json b/Carpet_CarpetRegrid.json index 45e691d1cbec8a8745d6b03146fad22424c3657b..03b51b6dd18527be915d7ba03dbef4fcead42457 100644 --- a/Carpet_CarpetRegrid.json +++ b/Carpet_CarpetRegrid.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "# Configuration definitions for thorn CarpetRegrid\n\nREQUIRES Carpet CarpetLib\n", "interface": "# Interface definition for thorn CarpetRegrid\n\nIMPLEMENTS: CarpetRegrid\n\nuses include header: carpet.hh\n\nuses include header: defs.hh\n\nuses include header: bbox.hh\nuses include header: bboxset.hh\nuses include header: vect.hh\n\nuses include header: gf.hh\nuses include header: gh.hh\n\n\n\n# The location of the boundary points\nCCTK_INT FUNCTION GetBoundarySpecification \\\n (CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\n# The overall size of the domain\nCCTK_INT FUNCTION GetDomainSpecification \\\n (CCTK_INT IN size, \\\n CCTK_REAL OUT ARRAY physical_min, \\\n CCTK_REAL OUT ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL OUT ARRAY spacing)\nUSES FUNCTION GetDomainSpecification\n\n# Convert between boundaries types\nCCTK_INT FUNCTION ConvertFromPhysicalBoundary \\\n (CCTK_INT IN size, \\\n CCTK_REAL IN ARRAY physical_min, \\\n CCTK_REAL IN ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL IN ARRAY spacing)\nUSES FUNCTION ConvertFromPhysicalBoundary\n\n\n\n# The true prototype of the routine below:\n# int Carpet_Regrid (cGH const * cctkGH,\n# gh::rregs * superregss,\n# gh::mregs * regsss,\n# int force);\nCCTK_INT FUNCTION Carpet_Regrid (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_POINTER IN superregss, \\\n CCTK_POINTER IN regsss, \\\n\t\t\t\t CCTK_INT IN force)\nPROVIDES FUNCTION Carpet_Regrid WITH CarpetRegrid_Regrid LANGUAGE C\n\n\n\n\nCCTK_INT FUNCTION RegridLevel (CCTK_POINTER_TO_CONST IN cctkGH, \\\n\t\t\t CCTK_INT IN current_max_reflevel, \\\n\t\t\t CCTK_INT IN max_reflevels)\nUSES FUNCTION RegridLevel\n", - "params": "", + "param": "# Parameter definitions for thorn CarpetRegrid\n\n\n\nBOOLEAN verbose \"Print screen output while running\"\n{\n} \"no\"\n\nBOOLEAN veryverbose \"Print much screen output while running\"\n{\n} \"no\"\n\n\n\nCCTK_INT refinement_levels \"Number of refinement levels (including the base level)\" STEERABLE=always\n{\n 1:* :: \"must be positive, and must not be larger than Carpet::max_refinement_levels\"\n} 1\n\n\n\nCCTK_INT regrid_every \"Regrid every n time steps\" STEERABLE=always\n{\n -1 :: \"regrid never\"\n 0 :: \"regrid during initial data calculation only\"\n 1:* :: \"regrid every n time steps\"\n} 0\n\n\n\nKEYWORD activate_levels_on_regrid \"Whether to activate or deactivate new levels on regridding\" STEERABLE=always\n{\n \"none\" :: \"Do not activate or deactivate any levels\"\n \"fixed\" :: \"Activate or deactivate a fixed number of levels\"\n \"function\" :: \"Activate or deactivate a variable number of levels, determined by a user-specified function. When this option is used, the parameters num_new_levels and activate_next have no effect and should not be set.\"\n} \"none\"\n\nCCTK_INT num_new_levels \"When regridding, activate this many new levels (if possible). Note that this will steer the parameter refinement_levels.\" STEERABLE=always\n{\n : :: \"Number of new levels to activate (negative numbers deactivate)\"\n} 0\n\nCCTK_INT activate_next \"The next iteration at which new levels should be activated\" STEERABLE=always\n{\n 0: :: \"Note that this parameter is steered when new levels are activated\"\n} 1\n\nBOOLEAN keep_same_grid_structure \"Do not allow the grid structure to change; only allow levels to be switched on or off\" STEERABLE=always\n{\n} \"no\"\n\n\n\nKEYWORD refined_regions \"Regions where the grid is refined\" STEERABLE=always\n{\n \"none\" :: \"Don't refine\"\n \"centre\" :: \"Refine around the centre of the grid only\"\n \"manual-gridpoints\" :: \"Refine the regions specified by integer grid points l[123]i[xyz]{min,max}\"\n \"manual-coordinates\" :: \"Refine the regions specified by coordinates l[123][xyz]{min,max}\"\n \"manual-gridpoint-list\" :: \"Refine the regions specified by integer grid points in the parameter 'gridpoints'\"\n \"manual-coordinate-list\" :: \"Refine the regions specified by coordinates in the parameter 'coordinates'\"\n \"moving\" :: \"Refine a moving region\"\n \"automatic\" :: \"Refine automatically\"\n} \"centre\"\n\n\n\nBOOLEAN smart_outer_boundaries \"Use the CoordBase interface for outer boundaries\" STEERABLE=always\n{\n} no\n\nBOOLEAN merge_overlapping_components \"Merge overlapping components\" STEERABLE=always\n{\n} no\n\nBOOLEAN tracking \"Enable tracking\" STEERABLE=always\n{\n} no\n\n\n\n\n# Region specifications for centre refinement\n\nBOOLEAN symmetry_x \"Refine the lower half in x-direction\" STEERABLE=always\n{\n} \"no\"\nBOOLEAN symmetry_y \"Refine the lower half in y-direction\" STEERABLE=always\n{\n} \"no\"\nBOOLEAN symmetry_z \"Refine the lower half in z-direction\" STEERABLE=always\n{\n} \"no\"\n\n\n\n# Region specifications for moving boxes\n\nKEYWORD moving_trajectory \"Type of trajectory\" STEERABLE=always\n{\n \"point\" :: \"Do not move\"\n \"circle\" :: \"Move in a circle\"\n} \"point\"\n\nCCTK_REAL moving_region_radius \"Radius of the moving region (on the first refined level)\" STEERABLE=always\n{\n (0: :: \"\"\n} 1.0\n\nCCTK_REAL moving_centre_x \"x-coordinate of the centre\" STEERABLE=always\n{\n : :: \"\"\n} 0.0\n\nCCTK_REAL moving_centre_y \"y-coordinate of the centre\" STEERABLE=always\n{\n : :: \"\"\n} 0.0\n\nCCTK_REAL moving_centre_z \"z-coordinate of the centre\" STEERABLE=always\n{\n : :: \"\"\n} 0.0\n\nCCTK_REAL moving_circle_radius \"Radius of the circle\" STEERABLE=always\n{\n 0: :: \"\"\n} 1.0\n\nCCTK_REAL moving_circle_frequency \"Angular frequency on the circle\" STEERABLE=always\n{\n 0: :: \"\"\n} 1.0\n\n\n\n# Region specifications for manual gridpoint refinement\n\nCCTK_INT l1ixmin \"Lower boundary of level 1 box in x-direction\" STEERABLE=always\n{\n : :: \"\"\n} 0\nCCTK_INT l1iymin \"Lower boundary of level 1 box in y-direction\" STEERABLE=always\n{\n : :: \"\"\n} 0\nCCTK_INT l1izmin \"Lower boundary of level 1 box in z-direction\" STEERABLE=always\n{\n : :: \"\"\n} 0\n\nCCTK_INT l1ixmax \"Upper boundary of level 1 box in x-direction\" STEERABLE=always\n{\n : :: \"\"\n} -1\nCCTK_INT l1iymax \"Upper boundary of level 1 box in y-direction\" STEERABLE=always\n{\n : :: \"\"\n} -1\nCCTK_INT l1izmax \"Upper boundary of level 1 box in z-direction\" STEERABLE=always\n{\n : :: \"\"\n} -1\n\n\n\nCCTK_INT l2ixmin \"Lower boundary of level 2 box in x-direction\" STEERABLE=always\n{\n : :: \"\"\n} 0\nCCTK_INT l2iymin \"Lower boundary of level 2 box in y-direction\" STEERABLE=always\n{\n : :: \"\"\n} 0\nCCTK_INT l2izmin \"Lower boundary of level 2 box in z-direction\" STEERABLE=always\n{\n : :: \"\"\n} 0\n\nCCTK_INT l2ixmax \"Upper boundary of level 2 box in x-direction\" STEERABLE=always\n{\n : :: \"\"\n} -1\nCCTK_INT l2iymax \"Upper boundary of level 2 box in y-direction\" STEERABLE=always\n{\n : :: \"\"\n} -1\nCCTK_INT l2izmax \"Upper boundary of level 2 box in z-direction\" STEERABLE=always\n{\n : :: \"\"\n} -1\n\n\n\nCCTK_INT l3ixmin \"Lower boundary of level 3 box in x-direction\" STEERABLE=always\n{\n : :: \"\"\n} 0\nCCTK_INT l3iymin \"Lower boundary of level 3 box in y-direction\" STEERABLE=always\n{\n : :: \"\"\n} 0\nCCTK_INT l3izmin \"Lower boundary of level 3 box in z-direction\" STEERABLE=always\n{\n : :: \"\"\n} 0\n\nCCTK_INT l3ixmax \"Upper boundary of level 3 box in x-direction\" STEERABLE=always\n{\n : :: \"\"\n} -1\nCCTK_INT l3iymax \"Upper boundary of level 3 box in y-direction\" STEERABLE=always\n{\n : :: \"\"\n} -1\nCCTK_INT l3izmax \"Upper boundary of level 3 box in z-direction\" STEERABLE=always\n{\n : :: \"\"\n} -1\n\n\n\n# Region specifications for manual coordinate refinement\n\nCCTK_REAL l1xmin \"Lower boundary of level 1 box in x-direction\" STEERABLE=always\n{\n : :: \"\"\n} 0\nCCTK_REAL l1ymin \"Lower boundary of level 1 box in y-direction\" STEERABLE=always\n{\n : :: \"\"\n} 0\nCCTK_REAL l1zmin \"Lower boundary of level 1 box in z-direction\" STEERABLE=always\n{\n : :: \"\"\n} 0\n\nCCTK_REAL l1xmax \"Upper boundary of level 1 box in x-direction\" STEERABLE=always\n{\n : :: \"\"\n} -1\nCCTK_REAL l1ymax \"Upper boundary of level 1 box in y-direction\" STEERABLE=always\n{\n : :: \"\"\n} -1\nCCTK_REAL l1zmax \"Upper boundary of level 1 box in z-direction\" STEERABLE=always\n{\n : :: \"\"\n} -1\n\n\n\nCCTK_REAL l2xmin \"Lower boundary of level 2 box in x-direction\" STEERABLE=always\n{\n : :: \"\"\n} 0\nCCTK_REAL l2ymin \"Lower boundary of level 2 box in y-direction\" STEERABLE=always\n{\n : :: \"\"\n} 0\nCCTK_REAL l2zmin \"Lower boundary of level 2 box in z-direction\" STEERABLE=always\n{\n : :: \"\"\n} 0\n\nCCTK_REAL l2xmax \"Upper boundary of level 2 box in x-direction\" STEERABLE=always\n{\n : :: \"\"\n} -1\nCCTK_REAL l2ymax \"Upper boundary of level 2 box in y-direction\" STEERABLE=always\n{\n : :: \"\"\n} -1\nCCTK_REAL l2zmax \"Upper boundary of level 2 box in z-direction\" STEERABLE=always\n{\n : :: \"\"\n} -1\n\n\n\nCCTK_REAL l3xmin \"Lower boundary of level 3 box in x-direction\" STEERABLE=always\n{\n : :: \"\"\n} 0\nCCTK_REAL l3ymin \"Lower boundary of level 3 box in y-direction\" STEERABLE=always\n{\n : :: \"\"\n} 0\nCCTK_REAL l3zmin \"Lower boundary of level 3 box in z-direction\" STEERABLE=always\n{\n : :: \"\"\n} 0\n\nCCTK_REAL l3xmax \"Upper boundary of level 3 box in x-direction\" STEERABLE=always\n{\n : :: \"\"\n} -1\nCCTK_REAL l3ymax \"Upper boundary of level 3 box in y-direction\" STEERABLE=always\n{\n : :: \"\"\n} -1\nCCTK_REAL l3zmax \"Upper boundary of level 3 box in z-direction\" STEERABLE=always\n{\n : :: \"\"\n} -1\n\n\n\n# Refinement criteria for manual-gridpoint-list\n\nCCTK_STRING gridpoints \"List of bounding box gridpoints\" STEERABLE=always\n{\n# We want the string to contain a list of bboxes. Each bbox contains\n# three vectors specifying the lower bound, upper bound, and stride.\n# (The upper bound is inclusive. All values are nonnegative integers.)\n# The syntax for vectors, bboxes, and lists is described below.\n# All spaces are optional.\n\n# Almost human readable explanation follows.\n# The specification is hierarchical.\n\n# The following definitions are generic:\n# VECT2(x) := \"[ x, x ]\"\n# two x, separated by commas, enclosed in square brackets\n# VECT3(x) := \"[ x, x, x ]\"\n# three x, separated by commas, enclosed in square brackets\n# LIST(x) := \"[ {{ x, }* x}? ]\"\n# zero or more x, separated by commas, enclosed in square brackets\n\n# A domain is built up as follows:\n# REGION := VECT3(VECT2(double))\n# REFLEVEL := LIST(REGION)\n# DOMAIN := LIST(REFLEVEL)\n\n \"^$\" :: \"leave empty for no refinement\"\n \".*\" :: \"[ [ ([,,]:[,,]:[,,]), ... ], ... ]\"\n} \"\"\n\n\n\n# Refinement criteria for manual-coordinate-list\n\nCCTK_STRING coordinates \"List of bounding box coordinates\" STEERABLE=always\n{\n# We want the string to contain a list of bboxes. Each bbox contains\n# three vectors specifying the lower bound, upper bound, and stride.\n# (The upper bound is inclusive. All values are nonnegative integers.)\n# The syntax for vectors, bboxes, and lists is described below.\n# All spaces are optional.\n\n# Almost human readable explanation follows.\n# The specification is hierarchical.\n\n# The following definitions are generic:\n# VECT2(x) := \"[ x, x ]\"\n# two x, separated by commas, enclosed in square brackets\n# VECT3(x) := \"[ x, x, x ]\"\n# three x, separated by commas, enclosed in square brackets\n# LIST(x) := \"[ {{ x, }* x}? ]\"\n# zero or more x, separated by commas, enclosed in square brackets\n\n# A domain is built up as follows:\n# REGION := VECT3(VECT2(double))\n# REFLEVEL := LIST(REGION)\n# DOMAIN := LIST(REFLEVEL)\n\n \"^$\" :: \"leave empty for no refinement\"\n \".*\" :: \"[ [ ([,,]:[,,]:[,,]), ... ], ... ]\"\n} \"\"\n\n\n\n# Offsets for manual-coordinate-list\n\nRESTRICTED:\n\nCCTK_INT num_offsets \"Number of given offsets\" STEERABLE=always\n{\n 0:10 :: \"\"\n} 0\n\nCCTK_INT offset_firstlevel \"First (lowest) refinement level that should have an offset applied\" STEERABLE=always\n{\n 1:* :: \"\"\n} 1\n\nCCTK_REAL offsetx[10] \"x-coordinate of offset\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\nCCTK_REAL offsety[10] \"y-coordinate of offset\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\nCCTK_REAL offsetz[10] \"z-coordinate of offset\" STEERABLE=always\n{\n *:* :: \"\"\n} 0.0\n\nPRIVATE:\n\n\n\n# Outer boundaries for manual-gridpoint-list and manual-coordinate-list\n\nCCTK_STRING outerbounds \"Outer boundaries\" STEERABLE=always\n{\n \"^$\" :: \"leave empty for no outer boundaries\"\n\n# Each vector element is 0 or 1,\n# where 0 is handled by synchronisation or prolongation,\n# and 1 stands for a user-supplied (\"outer\") boundary condition.\n\n# BND := \" [ 0 , 0 ]\"\n# VECT := \" [ BND , BND , BND ]\"\n# LIST := \" [{{VECT ,}*VECT}? ]\"\n\n# Almost human readable explanation follows.\n# The specification is hierarchical.\n\n# The following definitions are generic:\n# VECT2(x) := \"[ x, x ]\"\n# two x, separated by commas, enclosed in square brackets\n# VECT3(x) := \"[ x, x, x ]\"\n# three x, separated by commas, enclosed in square brackets\n# LIST(x) := \"[ {{ x, }* x}? ]\"\n# zero or more x, separated by commas, enclosed in square brackets\n\n# A domain is built up as follows:\n# REGION := VECT3(VECT2(double))\n# REFLEVEL := LIST(REGION)\n# DOMAIN := LIST(REFLEVEL)\n\n \".*\" :: \"[ [ [[?,?],[?,?],[?,?]], ... ], ...]\"\n} \"\"\n\n\n\n# Refinement criteria for automatic refining\n\nCCTK_INT minwidth \"Minimum width of refined region\" STEERABLE=always\n{\n 1:* :: \"must be positive\"\n} 8\n\nCCTK_REAL minfraction \"Minimum fraction of points in need of refinement in a refined region\" STEERABLE=always\n{\n 0:1 :: \"must be positive and less than one\"\n} 0.75\n\nCCTK_REAL maxerror \"Maximum allowed error for non-refined grid points\" STEERABLE=always\n{\n *:* :: \"everything goes\"\n} 1.0\n\nCCTK_STRING errorvar \"Name of grid function that contains the error\" STEERABLE=always\n{\n \".*\" :: \"must be the name of a grid function\"\n} \"\"\n", "schedule": "# Schedule definitions for thorn CarpetRegrid\n\nschedule CarpetRegridParamcheck at PARAMCHECK\n{\n LANG: C\n OPTIONS: global\n} \"Check Parameters\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn CarpetRegrid\n\n# Source files in this directory\nSRCS = automatic.cc \\\n baselevel.cc \\\n centre.cc \\\n manualcoordinatelist.cc \\\n manualcoordinates.cc \\\n manualgridpointlist.cc \\\n manualgridpoints.cc \\\n moving.cc \\\n regrid.cc \\\n paramcheck.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/Carpet_CarpetRegrid2.json b/Carpet_CarpetRegrid2.json index db409deb9d507c6fc5ff64b4c4aa8b95047c5d99..cac58c8ed4e71e79ea97a8b0a8311cdfcafa114d 100644 --- a/Carpet_CarpetRegrid2.json +++ b/Carpet_CarpetRegrid2.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "# Configuration definitions for thorn CarpetRegrid2\n\nREQUIRES Carpet CarpetLib\n", "interface": "# Interface definition for thorn CarpetRegrid2\n\nIMPLEMENTS: CarpetRegrid2\n\nUSES INCLUDE HEADER: Timer.hh\n\nUSES INCLUDE HEADER: bbox.hh\nUSES INCLUDE HEADER: bboxset.hh\nUSES INCLUDE HEADER: defs.hh\nUSES INCLUDE HEADER: dh.hh\nUSES INCLUDE HEADER: gh.hh\nUSES INCLUDE HEADER: mpi_string.hh\nUSES INCLUDE HEADER: region.hh\nUSES INCLUDE HEADER: vect.hh\n\nUSES INCLUDE HEADER: carpet.hh\n\n\n\n# The location of the boundary points\nCCTK_INT FUNCTION GetBoundarySpecification \\\n (CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\n# The overall size of the domain\nCCTK_INT FUNCTION GetDomainSpecification \\\n (CCTK_INT IN size, \\\n CCTK_REAL OUT ARRAY physical_min, \\\n CCTK_REAL OUT ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL OUT ARRAY spacing)\nUSES FUNCTION GetDomainSpecification\n\n# Conversion between boundary types\nCCTK_INT FUNCTION ConvertFromPhysicalBoundary \\\n (CCTK_INT IN size, \\\n CCTK_REAL IN ARRAY physical_min, \\\n CCTK_REAL IN ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL IN ARRAY spacing)\nUSES FUNCTION ConvertFromPhysicalBoundary\n\n# The location of the boundary points\nCCTK_INT FUNCTION MultiPatch_GetBoundarySpecification \\\n (CCTK_INT IN map, \\\n CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION MultiPatch_GetBoundarySpecification\n\n# The overall size of the domain\nCCTK_INT FUNCTION MultiPatch_GetDomainSpecification \\\n (CCTK_INT IN map, \\\n CCTK_INT IN size, \\\n CCTK_REAL OUT ARRAY physical_min, \\\n CCTK_REAL OUT ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL OUT ARRAY spacing)\nUSES FUNCTION MultiPatch_GetDomainSpecification\n\n# Conversion between boundary types\nCCTK_INT FUNCTION MultiPatch_ConvertFromPhysicalBoundary \\\n (CCTK_INT IN map, \\\n CCTK_INT IN size, \\\n CCTK_REAL IN ARRAY physical_min, \\\n CCTK_REAL IN ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL IN ARRAY spacing)\nUSES FUNCTION MultiPatch_ConvertFromPhysicalBoundary\n\n\n\n# The true prototype of the routine below:\n# int Carpet_Regrid (cGH const * cctkGH,\n# gh::rregs * superregss,\n# gh::mregs * regsss,\n# int force);\nCCTK_INT FUNCTION Carpet_Regrid \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_POINTER IN superregss, \\\n CCTK_POINTER IN regsss, \\\n CCTK_INT IN force)\nPROVIDES FUNCTION Carpet_Regrid WITH CarpetRegrid2_Regrid LANGUAGE C\n\n# The true prototype of the routine below:\n# int Carpet_Regrid (cGH const * cctkGH,\n# vector * superregsss,\n# vector * regssss,\n# int force)\nCCTK_INT FUNCTION Carpet_RegridMaps \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_POINTER IN superregsss, \\\n CCTK_POINTER IN regssss, \\\n CCTK_INT IN force)\nPROVIDES FUNCTION Carpet_RegridMaps WITH CarpetRegrid2_RegridMaps LANGUAGE C\n\n\n\nCCTK_INT last_iteration \"Last iteration at which there was a regridding\"\nCCTK_INT last_map \"Last map at which there was a regridding at last_iteration\"\n\n\n\nPUBLIC:\n\nCCTK_INT active[10] TYPE=scalar \"Whether this centre is active\"\n\nCCTK_INT num_levels[10] TYPE=scalar \"Number of refinement levels\"\n\nCCTK_REAL positions[10] TYPE=scalar\n{\n position_x position_y position_z\n} \"Positions of refined regions\"\n\nCCTK_REAL radii[10] TYPE=array DIM=1 SIZE=30 DISTRIB=constant\n{\n radius\n} \"Radii of refined regions for each level\"\n\nCCTK_REAL radiixyz[10] TYPE=array DIM=1 SIZE=30 DISTRIB=constant\n{\n radius_x radius_y radius_z\n} \"Radii of refined regions for each level\"\n\nCCTK_REAL level_mask TYPE=gf TAGS='checkpoint=\"no\" prolongation=\"none\"' \"Requested refinement level for this grid point\"\n\nPRIVATE:\n\nCCTK_INT old_active[10] TYPE=scalar \"Old whether this centre is active\"\n\nCCTK_INT old_num_levels[10] TYPE=scalar \"Old number of refinement levels\"\n\nCCTK_REAL old_positions[10] TYPE=scalar\n{\n old_position_x old_position_y old_position_z\n} \"Old positions of refined regions\"\n\nCCTK_REAL old_radiixyz[10] TYPE=array DIM=1 SIZE=30 DISTRIB=constant\n{\n old_radius_x old_radius_y old_radius_z\n} \"Old radii of refined regions for each level\"\n", - "params": "", + "param": "# Parameter definitions for thorn CarpetRegrid2\n\nBOOLEAN verbose \"Display regridding information on the terminal\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN veryverbose \"Display much regridding information on the terminal\" STEERABLE=always\n{\n} \"no\"\n\n\n\nCCTK_INT min_distance \"Minimum distance (in grid points) between coarse and fine grid boundaries\" STEERABLE=always\n{\n 0:* :: \"\"\n} 4\n\nBOOLEAN ensure_proper_nesting \"Ensure proper nesting automatically\" STEERABLE=always\n{\n} \"yes\"\n\nBOOLEAN freeze_unaligned_levels \"Do not change refinement levels that do not exist at this time\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN freeze_unaligned_parent_levels \"Do not change refinement levels where the parent does not exist at this time\" STEERABLE=always\n{\n} \"no\"\n\n\n\nCCTK_REAL min_fraction \"Minimum fraction of required refined points that need to be present in a refined region\" STEERABLE=always\n{\n 0:* :: \"\"\n} 0.9\n\nBOOLEAN snap_to_coarse \"Ensure that the fine grid extent coincides with coarse grid points\" STEERABLE=always\n{\n} \"no\"\n\nCCTK_INT granularity \"Granularity of size of refined regions\" STEERABLE=always\n{\n 1:* :: \"\"\n} 1\n\nCCTK_INT boundary_shiftout \"Number of grid points added to the refinement boundary radius\" STEERABLE=always\n{\n *:* :: \"\"\n} 0\n\n\n\nCCTK_INT regrid_every \"Regrid every n time steps\" STEERABLE=always\n{\n -1 :: \"regrid never\"\n 0 :: \"regrid during initial data calculation only\"\n 1:* :: \"regrid every n time steps\"\n} 0\n\n\n\nBOOLEAN symmetry_rotating90 \"Ensure a 90 degree rotating symmetry about the z axis\"\n{\n} no\n\nBOOLEAN symmetry_rotating180 \"Ensure a 180 degree rotating symmetry about the z axis\"\n{\n} no\n\nBOOLEAN symmetry_parity \"parity \"\n{\n} no\n\n\nBOOLEAN symmetry_periodic_x \"Ensure a periodicity symmetry in the x direction\"\n{\n} no\n\nBOOLEAN symmetry_periodic_y \"Ensure a periodicity symmetry in the y direction\"\n{\n} no\n\nBOOLEAN symmetry_periodic_z \"Ensure a periodicity symmetry in the z direction\"\n{\n} no\n\n\n\nBOOLEAN expect_symmetric_grids \"Expect a grid structure that is symmetric about the origin, and abort if it is not\"\n{\n} \"no\"\n\n\n\nBOOLEAN adaptive_refinement \"Use level_mask for adaptive refinement\" STEERABLE=always\n{\n} \"no\"\n\nCCTK_INT adaptive_block_size \"Block size for adaptive refinement\" STEERABLE=always\n{\n 1:* :: \"\"\n} 8\n\nCCTK_INT adaptive_block_size_x \"Block size in x direction for adaptive refinement\" STEERABLE=always\n{\n -1 :: \"use adaptive_block_size\"\n 1:* :: \"\"\n} -1\nCCTK_INT adaptive_block_size_y \"Block size in y direction for adaptive refinement\" STEERABLE=always\n{\n -1 :: \"use adaptive_block_size\"\n 1:* :: \"\"\n} -1\nCCTK_INT adaptive_block_size_z \"Block size in z direction for adaptive refinement\" STEERABLE=always\n{\n -1 :: \"use adaptive_block_size\"\n 1:* :: \"\"\n} -1\n\n\n\nCCTK_INT num_centres \"Number of refinement centres\"\n{\n 0:10 :: \"\"\n} 0\n\n\n\n################################################################################\n\nBOOLEAN add_levels_automatically \"Automatically add a new refinement level at each regrid\" STEERABLE=always\n{\n} \"no\"\n\n\n\n################################################################################\n\nCCTK_INT num_levels_1 \"Number of refinement levels for this centre\"\n{\n 1:30 :: \"\"\n} 1\n\nBOOLEAN active_1 \"Is this region active?\"\n{\n} \"yes\"\n\n\n\nCCTK_REAL position_x_1 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL position_y_1 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL position_z_1 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\n\n\nCCTK_REAL radius_1[30] \"Radius of refined region for this level of this centre\"\n{\n -1 :: \"illegal\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_x_1[30] \"x-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_y_1[30] \"y-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_z_1[30] \"z-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\n\n\nCCTK_REAL movement_threshold_1 \"Minimum movement to trigger a regridding\" STEERABLE=always\n{\n 0:* :: \"\"\n} 0.0\n\nCCTK_REAL radius_rel_change_threshold_1 \"Minimum RELATIVE change in radius to trigger a regridding\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\n\n\n################################################################################\n\nCCTK_INT num_levels_2 \"Number of refinement levels for this centre\"\n{\n 1:30 :: \"\"\n} 1\n\nBOOLEAN active_2 \"Is this region active?\"\n{\n} \"yes\"\n\n\n\nCCTK_REAL position_x_2 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL position_y_2 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL position_z_2 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\n\n\nCCTK_REAL radius_2[30] \"Radius of refined region for this level of this centre\"\n{\n -1 :: \"illegal\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_x_2[30] \"x-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_y_2[30] \"y-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_z_2[30] \"z-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\n\n\nCCTK_REAL movement_threshold_2 \"Minimum movement to trigger a regridding\" STEERABLE=always\n{\n 0:* :: \"\"\n} 0.0\n\nCCTK_REAL radius_rel_change_threshold_2 \"Minimum change in radius to trigger a regridding\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\n\n\n################################################################################\n\nCCTK_INT num_levels_3 \"Number of refinement levels for this centre\"\n{\n 1:30 :: \"\"\n} 1\n\nBOOLEAN active_3 \"Is this region active?\"\n{\n} \"yes\"\n\n\n\nCCTK_REAL position_x_3 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL position_y_3 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL position_z_3 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\n\n\nCCTK_REAL radius_3[30] \"Radius of refined region for this level of this centre\"\n{\n -1 :: \"illegal\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_x_3[30] \"x-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_y_3[30] \"y-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_z_3[30] \"z-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\n\n\nCCTK_REAL movement_threshold_3 \"Minimum movement to trigger a regridding\" STEERABLE=always\n{\n 0:* :: \"\"\n} 0.0\n\nCCTK_REAL radius_rel_change_threshold_3 \"Minimum change in radius to trigger a regridding\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\n\n\n################################################################################\n\nCCTK_INT num_levels_4 \"Number of refinement levels for this centre\"\n{\n 1:30 :: \"\"\n} 1\n\nBOOLEAN active_4 \"Is this region active?\"\n{\n} \"yes\"\n\n\n\nCCTK_REAL position_x_4 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL position_y_4 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL position_z_4 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\n\n\nCCTK_REAL radius_4[30] \"Radius of refined region for this level of this centre\"\n{\n -1 :: \"illegal\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_x_4[30] \"x-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_y_4[30] \"y-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_z_4[30] \"z-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\n\n\nCCTK_REAL movement_threshold_4 \"Minimum movement to trigger a regridding\" STEERABLE=always\n{\n 0:* :: \"\"\n} 0.0\n\nCCTK_REAL radius_rel_change_threshold_4 \"Minimum change in radius to trigger a regridding\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\n\n\n################################################################################\n\nCCTK_INT num_levels_5 \"Number of refinement levels for this centre\"\n{\n 1:30 :: \"\"\n} 1\n\nBOOLEAN active_5 \"Is this region active?\"\n{\n} \"yes\"\n\n\n\nCCTK_REAL position_x_5 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL position_y_5 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL position_z_5 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\n\n\nCCTK_REAL radius_5[30] \"Radius of refined region for this level of this centre\"\n{\n -1 :: \"illegal\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_x_5[30] \"x-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_y_5[30] \"y-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_z_5[30] \"z-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\n\n\nCCTK_REAL movement_threshold_5 \"Minimum movement to trigger a regridding\" STEERABLE=always\n{\n 0:* :: \"\"\n} 0.0\n\nCCTK_REAL radius_rel_change_threshold_5 \"Minimum change in radius to trigger a regridding\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\n\n\n################################################################################\n\nCCTK_INT num_levels_6 \"Number of refinement levels for this centre\"\n{\n 1:30 :: \"\"\n} 1\n\nBOOLEAN active_6 \"Is this region active?\"\n{\n} \"yes\"\n\n\n\nCCTK_REAL position_x_6 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL position_y_6 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL position_z_6 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\n\n\nCCTK_REAL radius_6[30] \"Radius of refined region for this level of this centre\"\n{\n -1 :: \"illegal\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_x_6[30] \"x-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_y_6[30] \"y-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_z_6[30] \"z-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\n\n\nCCTK_REAL movement_threshold_6 \"Minimum movement to trigger a regridding\" STEERABLE=always\n{\n 0:* :: \"\"\n} 0.0\n\nCCTK_REAL radius_rel_change_threshold_6 \"Minimum change in radius to trigger a regridding\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\n\n\n################################################################################\n\nCCTK_INT num_levels_7 \"Number of refinement levels for this centre\"\n{\n 1:30 :: \"\"\n} 1\n\nBOOLEAN active_7 \"Is this region active?\"\n{\n} \"yes\"\n\n\n\nCCTK_REAL position_x_7 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL position_y_7 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL position_z_7 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\n\n\nCCTK_REAL radius_7[30] \"Radius of refined region for this level of this centre\"\n{\n -1 :: \"illegal\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_x_7[30] \"x-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_y_7[30] \"y-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_z_7[30] \"z-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\n\n\nCCTK_REAL movement_threshold_7 \"Minimum movement to trigger a regridding\" STEERABLE=always\n{\n 0:* :: \"\"\n} 0.0\n\nCCTK_REAL radius_rel_change_threshold_7 \"Minimum change in radius to trigger a regridding\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\n\n\n################################################################################\n\nCCTK_INT num_levels_8 \"Number of refinement levels for this centre\"\n{\n 1:30 :: \"\"\n} 1\n\nBOOLEAN active_8 \"Is this region active?\"\n{\n} \"yes\"\n\n\n\nCCTK_REAL position_x_8 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL position_y_8 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL position_z_8 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\n\n\nCCTK_REAL radius_8[30] \"Radius of refined region for this level of this centre\"\n{\n -1 :: \"illegal\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_x_8[30] \"x-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_y_8[30] \"y-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_z_8[30] \"z-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\n\n\nCCTK_REAL movement_threshold_8 \"Minimum movement to trigger a regridding\" STEERABLE=always\n{\n 0:* :: \"\"\n} 0.0\n\nCCTK_REAL radius_rel_change_threshold_8 \"Minimum change in radius to trigger a regridding\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\n\n\n################################################################################\n\nCCTK_INT num_levels_9 \"Number of refinement levels for this centre\"\n{\n 1:30 :: \"\"\n} 1\n\nBOOLEAN active_9 \"Is this region active?\"\n{\n} \"yes\"\n\n\n\nCCTK_REAL position_x_9 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL position_y_9 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL position_z_9 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\n\n\nCCTK_REAL radius_9[30] \"Radius of refined region for this level of this centre\"\n{\n -1 :: \"illegal\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_x_9[30] \"x-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_y_9[30] \"y-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_z_9[30] \"z-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\n\n\nCCTK_REAL movement_threshold_9 \"Minimum movement to trigger a regridding\" STEERABLE=always\n{\n 0:* :: \"\"\n} 0.0\n\nCCTK_REAL radius_rel_change_threshold_9 \"Minimum change in radius to trigger a regridding\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n\n\n\n################################################################################\n\nCCTK_INT num_levels_10 \"Number of refinement levels for this centre\"\n{\n 1:30 :: \"\"\n} 1\n\nBOOLEAN active_10 \"Is this region active?\"\n{\n} \"yes\"\n\n\n\nCCTK_REAL position_x_10 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL position_y_10 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_REAL position_z_10 \"Position of this centre\"\n{\n *:* :: \"\"\n} 0.0\n\n\n\nCCTK_REAL radius_10[30] \"Radius of refined region for this level of this centre\"\n{\n -1 :: \"illegal\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_x_10[30] \"x-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_y_10[30] \"y-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\nCCTK_REAL radius_z_10[30] \"z-radius of refined region for this level of this centre\"\n{\n -1 :: \"ignore this radius\"\n 0:* :: \"\"\n} -1.0\n\n\n\nCCTK_REAL movement_threshold_10 \"Minimum movement to trigger a regridding\" STEERABLE=always\n{\n 0:* :: \"\"\n} 0.0\n\nCCTK_REAL radius_rel_change_threshold_10 \"Minimum change in radius to trigger a regridding\" STEERABLE=always\n{\n 0.0:* :: \"\"\n} 0.0\n", "schedule": "# Schedule definitions for thorn CarpetRegrid2\n\nSTORAGE: last_iteration last_map\nSTORAGE: active num_levels positions radii radiixyz\nSTORAGE: old_active old_positions old_num_levels old_radiixyz\nif (adaptive_refinement)\n{\n STORAGE: level_mask\n}\n\n\n\nSCHEDULE CarpetRegrid2_ParamCheck AT paramcheck\n{\n LANG: C\n} \"Check parameters\"\n\nSCHEDULE CarpetRegrid2_Initialise AT wragh\n{\n LANG: C\n OPTIONS: global\n WRITES: CarpetRegrid2::radius(everywhere), radiixyz\n WRITES: CarpetRegrid2::last_iteration(everywhere), last_map, active, num_levels\n WRITES: CarpetRegrid2::positions(everywhere), old_positions\n} \"Initialise locations of refined regions\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn CarpetRegrid2\n\n# Source files in this directory\nSRCS =\tamr.cc\t\t\t\t\t\\\n\tboundary.cc\t\t\t\t\\\n\tindexing.cc\t\t\t\t\\\n\tinitialise.cc\t\t\t\t\\\n\tparamcheck.cc\t\t\t\t\\\n\tproperty.cc\t\t\t\t\\\n\tregrid.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/Carpet_CarpetRegridTest.json b/Carpet_CarpetRegridTest.json index 44ef4b822ce31f8f2d1da7a85cdf3cba99299d2c..b7065531f6ef400840d658bd04bb3c80a8333e77 100644 --- a/Carpet_CarpetRegridTest.json +++ b/Carpet_CarpetRegridTest.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "", "interface": "# Interface definition for thorn CarpetRegridTest\n\nimplements: CarpetRegridTest\ninherits: grid\n\n#tags='Prolongation=\"ENO\"'\nCCTK_REAL testscalar type=GF timelevels=3 \n{\n phi, phi_error, phi_relerror\n} \"The test scalar field\"\n\n", - "params": "", + "param": "# Parameter definitions for thorn CarpetRegridTest\n\nprivate:\n\nREAL radius \"The radius of the gaussian wave\"\n{\n *:* :: \"No restriction\"\n} 0.0\n\nREAL sigma \"The sigma for the gaussian wave\"\n{\n 0:* :: \"Positive\"\n} 0.1\n\nREAL amplitude \"The amplitude of the wave\"\n{\n *:* :: \"No restriction\"\n} 1.0\n", "schedule": "# Schedule definitions for thorn CarpetRegridTest\n\n\nschedule CarpetRegridTest_Startup AT STARTUP\n{\n LANG: C\n} \"Startup banner\"\n\n\nschedule CarpetRegrid_SetupGaussian at INITIAL\n{\n STORAGE: testscalar[3]\n LANG: C\n READS: grid::r\n WRITES: phi(everywhere)\n} \"Gaussian Initial Data\"\n\nschedule CarpetRegrid_TestGaussian at Analysis\n{\n STORAGE: testscalar[3]\n LANG: C\n READS: grid::x, grid::y, grid::z\n WRITES: phi\n WRITES: phi_error(everywhere), phi_relerror(everywhere)\n} \"Test Gaussian Data\"\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn CarpetRegridTest\n\n# Source files in this directory\nSRCS = Startup.c SetupGaussian.c TestGaussian.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/Carpet_CarpetSlab.json b/Carpet_CarpetSlab.json index 951a27c658021358752b3145d58a8e253b22384e..5aa7f6d61bea15825812ac83765dd9c0b4d63eb4 100644 --- a/Carpet_CarpetSlab.json +++ b/Carpet_CarpetSlab.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "# Configuration definitions for thorn CarpetSlab\n\nREQUIRES Carpet CarpetLib\n", "interface": "# Interface definition for thorn CarpetSlab\n\nIMPLEMENTS: Hyperslab\n\nincludes header: GetHyperslab.h in Hyperslab.h\n\nuses include header: carpet.hh\n\nuses include header: bbox.hh\nuses include header: bboxset.hh\nuses include header: vect.hh\n\nuses include header: gdata.hh\n\nuses include header: dh.hh\nuses include header: ggf.hh\nuses include header: gh.hh\n\n\n\nCCTK_INT FUNCTION \\\n Hyperslab_LocalMappingByIndex (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN vindex, \\\n CCTK_INT IN hdim, \\\n CCTK_INT ARRAY IN direction, \\\n CCTK_INT ARRAY IN origin, \\\n CCTK_INT ARRAY IN extent, \\\n CCTK_INT ARRAY IN downsample, \\\n CCTK_INT IN table_handle, \\\n CCTK_INT CCTK_FPOINTER IN \\\n conversion_fn (CCTK_INT IN nelems, \\\n CCTK_INT IN src_stride, \\\n CCTK_INT IN dst_stride, \\\n CCTK_INT IN src_type, \\\n CCTK_INT IN dst_type, \\\n CCTK_POINTER_TO_CONST IN from, \\\n CCTK_POINTER IN to), \\\n CCTK_INT ARRAY OUT hsize_local, \\\n CCTK_INT ARRAY OUT hsize_global, \\\n CCTK_INT ARRAY OUT hoffset_global)\nPROVIDES FUNCTION Hyperslab_LocalMappingByIndex \\\n WITH CarpetSlab_LocalMappingByIndex LANGUAGE C\n\nCCTK_INT FUNCTION \\\n Hyperslab_GlobalMappingByIndex (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN vindex, \\\n CCTK_INT IN hdim, \\\n CCTK_INT ARRAY IN direction, \\\n CCTK_INT ARRAY IN origin, \\\n CCTK_INT ARRAY IN extent, \\\n CCTK_INT ARRAY IN downsample, \\\n CCTK_INT IN table_handle, \\\n CCTK_INT CCTK_FPOINTER IN \\\n conversion_fn (CCTK_INT IN nelems, \\\n CCTK_INT IN src_stride, \\\n CCTK_INT IN dst_stride, \\\n CCTK_INT IN src_type, \\\n CCTK_INT IN dst_type, \\\n CCTK_POINTER_TO_CONST IN from, \\\n CCTK_POINTER IN to), \\\n CCTK_INT ARRAY OUT hsize)\nPROVIDES FUNCTION Hyperslab_GlobalMappingByIndex \\\n WITH CarpetSlab_GlobalMappingByIndex LANGUAGE C\n\nCCTK_INT FUNCTION Hyperslab_FreeMapping (CCTK_INT IN mapping_handle)\nPROVIDES FUNCTION Hyperslab_FreeMapping \\\n WITH CarpetSlab_FreeMapping LANGUAGE C\n\n\n\nCCTK_INT FUNCTION \\\n Hyperslab_Get (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN mapping_handle, \\\n CCTK_INT IN proc, \\\n CCTK_INT IN vindex, \\\n CCTK_INT IN timelevel, \\\n CCTK_INT IN hdatatype, \\\n CCTK_POINTER IN hdata)\nPROVIDES FUNCTION Hyperslab_Get \\\n WITH CarpetSlab_Get LANGUAGE C\n\nCCTK_INT FUNCTION \\\n Hyperslab_GetList (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN mapping_handle, \\\n CCTK_INT IN num_arrays, \\\n CCTK_INT ARRAY IN procs, \\\n CCTK_INT ARRAY IN vindices, \\\n CCTK_INT ARRAY IN timelevels, \\\n CCTK_INT ARRAY IN hdatatypes, \\\n CCTK_POINTER ARRAY IN hdata, \\\n CCTK_INT ARRAY OUT retvals)\nPROVIDES FUNCTION Hyperslab_GetList \\\n WITH CarpetSlab_GetList LANGUAGE C\n", - "params": "", + "param": "# Parameter definitions for thorn CarpetSlab\n", "schedule": "# Schedule definitions for thorn CarpetSlab\n", "src": { "slab.hh": "#ifndef CARPETSLAB_SLAB_HH\n#define CARPETSLAB_SLAB_HH\n\n#include \"cctk.h\"\n\nnamespace CarpetSlab {\n\nvoid FillSlab(const cGH *const cgh, const int dest_proc, const int n,\n const int tl, const int hdim, const int origin[/*vdim*/],\n const int dirs[/*hdim*/], const int stride[/*hdim*/],\n const int length[/*hdim*/], void *const hdata);\n\n} // namespace CarpetSlab\n\n#endif // !defined(CARPETSLAB_SLAB_HH)\n", diff --git a/Carpet_CarpetTracker.json b/Carpet_CarpetTracker.json index a8f746461cc9fa4cbcbce894708a8b6d5e0ea9b2..67b9e490d1b4137d7a2c675171a68e76f8dcbf51 100644 --- a/Carpet_CarpetTracker.json +++ b/Carpet_CarpetTracker.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "", "interface": "# Interface definition for thorn CarpetTracker\n\nIMPLEMENTS: CarpetTracker\n\nINHERITS: SphericalSurface CarpetRegrid2\n\n# translate SphericalSurface name into ID\nCCTK_INT \\\nFUNCTION sf_IdFromName (CCTK_INT IN id, CCTK_POINTER_TO_CONST IN name)\nUSES FUNCTION sf_IdFromName\n", - "params": "", + "param": "# Parameter definitions for thorn CarpetTracker\n\n\n\nBOOLEAN verbose \"Tell what is going on\" STEERABLE=always\n{\n} no\n\n\n\nCCTK_INT surface[10] \"Spherical surface index which is the source for the location of the refine regions\" STEERABLE=always\n{\n -1 :: \"disabled\"\n 0:* :: \"active\"\n} -1\n\n\n\nCCTK_STRING surface_name[10] \"Spherical surface name which is the source for the location of the refine regions\" STEERABLE=always\n{\n \"\" :: \"use surface\"\n \".*\" :: \"any string\"\n} \"\"\n\n\n\nSHARES: SphericalSurface\n\nUSES CCTK_INT nsurfaces\n", "schedule": "# Schedule definitions for thorn CarpetTracker\n\n\n\nSCHEDULE CarpetTracker_SetPositions AT preregrid\n{\n LANG: C\n OPTIONS: global\n READS: SphericalSurface::sf_info\n READS: SphericalSurface::sf_active, SphericalSurface::sf_valid\n WRITES: CarpetRegrid2::active(everywhere), CarpetRegrid2::positions(everywhere)\n} \"Set positions of refined regions\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn CarpetTracker\n\n# Source files in this directory\nSRCS = SetPositions.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/Carpet_CycleClock.json b/Carpet_CycleClock.json index 8b57717583d7d3d8c20673565011d9bd215db1cc..64433bc75d2d85426d1b22d96660fadaef208ad3 100644 --- a/Carpet_CycleClock.json +++ b/Carpet_CycleClock.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "# Configuration definitions for thorn CycleClock\n\nPROVIDES CycleClock\n{\n}\n", "interface": "# Interface definition for thorn CycleClock\n\nIMPLEMENTS: CycleClock\n\nINCLUDES HEADER: cycleclock.h IN cycleclock.h\n", - "params": "", + "param": "# Parameter definitions for thorn CycleClock\n\nBOOLEAN register_clock \"Register cycle counter as Cactus clock\" STEERABLE=recover\n{\n} \"yes\"\n", "schedule": "# Schedule definitions for thorn CycleClock\n\nSCHEDULE CycleClock_Setup AT startup BEFORE Driver_Startup\n{\n LANG: C\n} \"Set up CycleClock\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn CycleClock\n\n# Source files in this directory\nSRCS = clock.cc cycle.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/Carpet_HighOrderWaveTest.json b/Carpet_HighOrderWaveTest.json index 9a9002cfa40e7fe9687ab387abb1e5f4523af220..f862c286eb7237028fc315678d01e8b77ad67315 100644 --- a/Carpet_HighOrderWaveTest.json +++ b/Carpet_HighOrderWaveTest.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "# Configuration definitions for thorn HighOrderWaveTest\n", "interface": "# Interface definition for thorn HighOrderWaveTest\nimplements: HighOrderWaveTest\n", - "params": "", + "param": "# Parameter definitions for thorn HighOrderWaveTest\n", "schedule": "# Schedule definitions for thorn HighOrderWaveTest\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn HighOrderWaveTest\n\n# Source files in this directory\nSRCS = \n\n# Subdirectories containing source files\nSUBDIRS = \n" diff --git a/Carpet_LoopControl.json b/Carpet_LoopControl.json index c93e066272871b209c65dd8e6d318bdedf579fc9..beb266699a030694c84eed627088ce0f22998746 100644 --- a/Carpet_LoopControl.json +++ b/Carpet_LoopControl.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "# Configuration definition for thorn LoopControl\n\nOPTIONAL CycleClock hwloc Vectors\n{\n}\n\nPROVIDES LoopControl\n{\n}\n", "interface": "# Interface definition for thorn LoopControl\n\nIMPLEMENTS: LoopControl\n\nINHERITS: CycleClock\n\nINCLUDE HEADER: loopcontrol.h IN loopcontrol.h\n\nUSES INCLUDE HEADER: cycleclock.h\nUSES INCLUDE HEADER: vectors.h\n\n\n\nCCTK_INT FUNCTION GetNumSMTThreads()\nUSES FUNCTION GetNumSMTThreads\n\nCCTK_INT FUNCTION GetCacheInfo1 \\\n (CCTK_POINTER_TO_CONST ARRAY OUT names, \\\n CCTK_INT ARRAY OUT types, \\\n CCTK_POINTER_TO_CONST ARRAY OUT sizes, \\\n CCTK_INT ARRAY OUT linesizes, \\\n CCTK_INT ARRAY OUT strides, \\\n CCTK_INT ARRAY OUT num_puss, \\\n CCTK_INT IN max_num_cache_levels)\nUSES FUNCTION GetCacheInfo1\n\nCCTK_INT FUNCTION IO_TruncateOutputFiles(CCTK_POINTER_TO_CONST IN cctkGH)\nREQUIRES FUNCTION IO_TruncateOutputFiles\n", - "params": "", + "param": "# Parameter definitions for thorn LoopControl\n\nBOOLEAN verbose \"Output some loop information at run time\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN veryverbose \"Output detailed debug information at run time\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN selftest \"Run a self test with every loop (expensive)\" STEERABLE=always\n{\n} \"no\"\n\nSTRING statistics_filename \"File name for LoopControl statistics\" STEERABLE=always\n{\n \"\" :: \"disable statistics output\"\n \".+\" :: \"file name\"\n} \"LoopControl-statistics\"\n\nREAL statistics_every_seconds \"Output statistics every so many seconds\" STEERABLE=always\n{\n -1.0 :: \"don't output\"\n 0.0:* :: \"output every so many seconds\"\n} -1.0\n\nSHARES: IO\n\nUSES STRING out_dir\n\nPRIVATE:\n\n\n\nKEYWORD initial_setup \"Initial configuration\" STEERABLE=always\n{\n \"legacy\" :: \"Like a non-LoopControl loop\"\n \"tiled\" :: \"Basic LoopControl setup\"\n} \"tiled\"\n\nINT explore_eagerly_before_iteration \"Try to explore the parameter space as much as possible before this iteration\" STEERABLE=always\n{\n 0:* :: \"\"\n} 0\n\nINT settle_after_iteration \"Do not explore the parameter space any more at or after this iteration\" STEERABLE=always\n{\n -1 :: \"always continue exploring\"\n 0:* :: \"\"\n# Setting settle_after_iteration=0 apparently avoids an inefficiency,\n# so make it the default for the time being.\n} 0 # -1\n\n\n\n# NOTE:\n# - Intel chips divide the D1 cache into two, one for each hyperthread.\n# The cache is thus not shared!\nBOOLEAN use_smt_threads \"Place SMT threads close together\" STEERABLE=always\n{\n} \"yes\"\n\nBOOLEAN align_with_cachelines \"Align innermost loops with cache line size\" STEERABLE=always\n{\n} \"yes\"\n\n\n\nINT tilesize_i \"Tile size in i direction (in grid points) for loop tiling\" STEERABLE=always\n{\n 1:* :: \"\"\n} 4\n\nINT tilesize_j \"Tile size in j direction (in grid points) for loop tiling\" STEERABLE=always\n{\n 1:* :: \"\"\n} 4\n\nINT tilesize_k \"Tile size in k direction (in grid points) for loop tiling\" STEERABLE=always\n{\n 1:* :: \"\"\n} 4\n\n\n\nINT loopsize_i \"Size of each thread's loop in i direction (in grid points) for multithreading\" STEERABLE=always\n{\n 1:* :: \"\"\n} 8\n\nINT loopsize_j \"Size of each thread's loop in j direction (in grid points) for multithreading\" STEERABLE=always\n{\n 1:* :: \"\"\n} 8\n\nINT loopsize_k \"Size of each thread's loop in k direction (in grid points) for multithreading\" STEERABLE=always\n{\n 1:* :: \"\"\n} 8\n\n\n\nCCTK_INT max_size_factor \"Maximum size for modifying loop sizes\" STEERABLE=always\n{\n 1:* :: \"\"\n} 4\n\nCCTK_REAL very_expensive_factor \"Params worse than the current-best by more than this factor are ignored more quickly\" STEERABLE=always\n{\n 1.0:* :: \"\"\n} 1.5\n\nCCTK_INT tryout_iterations \"Try out new params for this many iterations before judging them\" STEERABLE=always\n{\n 1:* :: \"\"\n} 1\n\nCCTK_REAL random_jump_probability \"Probability of a random jump to begin exploring a very different param\" STEERABLE=always\n{\n 0.0:1.0 :: \"\"\n} 0.1\n", "schedule": "# Schedule definitions for thorn LoopControl\n\nSCHEDULE lc_setup AT startup BEFORE Driver_Startup\n{\n LANG: C\n} \"Set up LoopControl\"\n\nSCHEDULE lc_steer AT prestep\n{\n LANG: C\n OPTIONS: meta\n} \"Update LoopControl algorithm preferences\"\n\nSCHEDULE lc_statistics_analysis AT analysis\n{\n LANG: C\n OPTIONS: meta\n} \"Output LoopControl statistics\"\n\nSCHEDULE lc_statistics_terminate AT terminate\n{\n LANG: C\n OPTIONS: meta\n} \"Output LoopControl statistics\"\n", "src": { "loopcontrol_fortran.inc": "/* -*-f90-*- */\n\n#ifndef LOOPCONTROL_FORTRAN_H\n#define LOOPCONTROL_FORTRAN_H\n\n#include \"cctk.h\"\n\n\n\n#define LC_COARSE_DECLARE(name, D) \\\n && integer :: name/**/_cmin/**/D, name/**/_cmax/**/D, \\\n name/**/_cstep/**/D, name/**/_cpos/**/D\n#define LC_COARSE_OMP_PRIVATE(name, D) \\\n & && !$omp private (name/**/_cmin/**/D, name/**/_cmax/**/D) \\\n & && !$omp private (name/**/_cstep/**/D, name/**/_cpos/**/D) \\\n\n#define LC_COARSE_SETUP(name, D) \\\n && name/**/_control%coarse_loop%min%v(D) = \\\n name/**/_control%coarse_thread%pos%v(D) \\\n && name/**/_control%coarse_loop%max%v(D) = \\\n min(name/**/_control%coarse_thread%max%v(D), \\\n name/**/_control%coarse_loop%min%v(D) + \\\n name/**/_control%coarse_thread%step%v(D)) \\\n && name/**/_cmin/**/D = name/**/_control%coarse_loop%min%v(D) \\\n && name/**/_cmax/**/D = name/**/_control%coarse_loop%max%v(D) \\\n && name/**/_cstep/**/D = name/**/_control%coarse_loop%step%v(D)\n#define LC_COARSE_LOOP(name, D) \\\n && do name/**/_cpos/**/D = name/**/_cmin/**/D, name/**/_cmax/**/D, \\\n name/**/_cstep/**/D\n\n#define LC_FINE_DECLARE(name, D) \\\n && integer :: name/**/_fmin/**/D, name/**/_fmax/**/D, \\\n name/**/_fstep/**/D\n#define LC_FINE_OMP_PRIVATE(name, I, NI, D) \\\n & && !$omp private (name/**/_fmin/**/D, name/**/_fmax/**/D) \\\n & && !$omp private (name/**/_fstep/**/D, I, NI) \\\n\n#define LC_FINE_SETUP(name, D) \\\n && name/**/_control%fine_loop%min%v(D) = name/**/_cpos/**/D \\\n && name/**/_control%fine_loop%max%v(D) = \\\n min(name/**/_control%coarse_loop%max%v(D), \\\n name/**/_control%fine_loop%min%v(D) + \\\n name/**/_control%coarse_loop%step%v(D)) \\\n && name/**/_fmin/**/D = name/**/_control%fine_loop%min%v(D) \\\n && name/**/_fmax/**/D = name/**/_control%fine_loop%max%v(D) \\\n && name/**/_fstep/**/D = name/**/_control%fine_loop%step%v(D)\n#define LC_FINE_LOOP(name, I, NI, D) \\\n && do I = name/**/_fmin/**/D+1, name/**/_fmax/**/D, \\\n name/**/_fstep/**/D \\\n && NI = 0 \\\n && if (name/**/_dir/**/D<0) NI = I \\\n && if (name/**/_dir/**/D>0) NI = name/**/_control%overall%max%v(D)+1-I\n\n\n\n#define LC_LOOP3STR_NORMAL_DECLARE(name) \\\n && integer :: name/**/_dir1, name/**/_dir2, name/**/_dir3 \\\n && integer :: name/**/_ash1, name/**/_ash2, name/**/_ash3 \\\n && integer :: name/**/_str1 \\\n && CCTK_POINTER, save :: name/**/_descr = 0 \\\n && type(lc_control_t) :: name/**/_control \\\n LC_COARSE_DECLARE(name,1) \\\n LC_COARSE_DECLARE(name,2) \\\n LC_COARSE_DECLARE(name,3) \\\n LC_FINE_DECLARE(name,1) \\\n LC_FINE_DECLARE(name,2) \\\n LC_FINE_DECLARE(name,3)\n\n#define LC_LOOP3STR_NORMAL_OMP_PRIVATE(name, i,j,k, ni,nj,nk) \\\n private (name/**/_control) \\\n & && !$omp shared (name/**/_descr) \\\n & && !$omp private (name/**/_dir1, name/**/_dir2, name/**/_dir3) \\\n & && !$omp private (name/**/_ash1, name/**/_ash2, name/**/_ash3) \\\n & && !$omp private (name/**/_str1) \\\n LC_COARSE_OMP_PRIVATE(name,1) \\\n LC_COARSE_OMP_PRIVATE(name,2) \\\n LC_COARSE_OMP_PRIVATE(name,3) \\\n LC_FINE_OMP_PRIVATE(name, i, ni,1) \\\n LC_FINE_OMP_PRIVATE(name, j, nj,2) \\\n LC_FINE_OMP_PRIVATE(name, k, nk,3) \\\n\n\n\n#define LC_LOOP3STR_NORMAL(name, i,j,k, ni,nj,nk, \\\n idir_,jdir_,kdir_, \\\n imin_,jmin_,kmin_, \\\n imax_,jmax_,kmax_, \\\n iash_,jash_,kash_, \\\n vec_imin,vec_imax, istr_) \\\n && name/**/_dir1 = (idir_) \\\n && name/**/_dir2 = (jdir_) \\\n && name/**/_dir3 = (kdir_) \\\n && name/**/_ash1 = (iash_) \\\n && name/**/_ash2 = (jash_) \\\n && name/**/_ash3 = (kash_) \\\n && name/**/_str1 = (istr_) \\\n \\\n && call lc_descr_init(name/**/_descr, __LINE__, __FILE__, \"name\") \\\n && call lc_control_init(name/**/_control, name/**/_descr, \\\n ((imin_)-1), ((jmin_)-1), ((kmin_)-1), \\\n (imax_), (jmax_), (kmax_), \\\n name/**/_ash1, name/**/_ash2, name/**/_ash3, \\\n name/**/_str1, 0, name/**/_str1) \\\n \\\n /* Multithreading */ \\\n && call lc_thread_init(name/**/_control) \\\n && do while (lc_thread_done(name/**/_control) == 0) \\\n \\\n /* Coarse loops */ \\\n LC_COARSE_SETUP(name,3) \\\n LC_COARSE_SETUP(name,2) \\\n LC_COARSE_SETUP(name,1) \\\n LC_COARSE_LOOP(name,3) \\\n LC_COARSE_LOOP(name,2) \\\n LC_COARSE_LOOP(name,1) \\\n \\\n /* Fine loops */ \\\n LC_FINE_SETUP(name,3) \\\n LC_FINE_SETUP(name,2) \\\n LC_FINE_SETUP(name,1) \\\n LC_FINE_LOOP(name, k, nk,3) \\\n LC_FINE_LOOP(name, j, nj,2) \\\n LC_FINE_LOOP(name, i, ni,1)\n\n#define LC_ENDLOOP3STR_NORMAL(name) \\\n && end do \\\n && end do \\\n && end do \\\n && end do \\\n && end do \\\n && end do \\\n && call lc_thread_step(name/**/_control) \\\n && end do \\\n && call lc_control_finish(name/**/_control, name/**/_descr)\n\n\n\n#define LC_LOOP3(name, i,j,k, imin,jmin,kmin, imax,jmax,kmax, iash,jash,kash) \\\n LC_LOOP3STR(name, i,j,k, imin,jmin,kmin, imax,jmax,kmax, iash,jash,kash, 1)\n#define LC_ENDLOOP3(name) \\\n LC_ENDLOOP3STR(name)\n\n\n\n/* Replace CCTK_LOOP macros */\n#if (!defined CCTK_LOOP3STR_NORMAL_DECLARE || \\\n !defined CCTK_LOOP3STR_NORMAL_OMP_PRIVATE || \\\n !defined CCTK_LOOP3STR_NORMAL || \\\n !defined CCTK_ENDLOOP3STR_NORMAL)\n# error \"internal error\"\n#endif\n#undef CCTK_LOOP3STR_NORMAL_DECLARE\n#undef CCTK_LOOP3STR_NORMAL_OMP_PRIVATE\n#undef CCTK_LOOP3STR_NORMAL\n#undef CCTK_ENDLOOP3STR_NORMAL\n#define CCTK_LOOP3STR_NORMAL_DECLARE LC_LOOP3STR_NORMAL_DECLARE\n#define CCTK_LOOP3STR_NORMAL_OMP_PRIVATE LC_LOOP3STR_NORMAL_OMP_PRIVATE\n#define CCTK_LOOP3STR_NORMAL LC_LOOP3STR_NORMAL\n#define CCTK_ENDLOOP3STR_NORMAL LC_ENDLOOP3STR_NORMAL\n\n\n\n#endif /* #ifndef LOOPCONTROL_FORTRAN_H */\n", diff --git a/Carpet_PeriodicCarpet.json b/Carpet_PeriodicCarpet.json index 4782389e038da33f1db2f1b8f28fbd4f3f8ea11f..64f4b0ec472dacca6126bf11dd50cb664018c12d 100644 --- a/Carpet_PeriodicCarpet.json +++ b/Carpet_PeriodicCarpet.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "# Configuration definitions for thorn PeriodicCarpet\n\nREQUIRES Carpet CarpetLib\n", "interface": "# Interface definition for thorn PeriodicCarpet\n\nIMPLEMENTS: PeriodicCarpet\n\nINHERITS: grid\n\nUSES INCLUDE: carpet.hh\nUSES INCLUDE: mpi_string.hh\nUSES INCLUDE: dist.hh\n\n\n\nCCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name)\nREQUIRES FUNCTION SymmetryRegister\n\nCCTK_INT FUNCTION \\\n SymmetryRegisterGrid \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT IN ARRAY which_faces, \\\n CCTK_INT IN ARRAY symmetry_zone_width)\nREQUIRES FUNCTION SymmetryRegisterGrid\n\nCCTK_INT FUNCTION \\\n SymmetryRegisterGridInterpolator \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT CCTK_FPOINTER IN symmetry_interpolate \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays, \\\n CCTK_INT IN faces))\nREQUIRES FUNCTION SymmetryRegisterGridInterpolator\n\nCCTK_INT FUNCTION \\\n SymmetryInterpolateFaces \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays, \\\n CCTK_INT IN faces)\nREQUIRES FUNCTION SymmetryInterpolateFaces\n\nCCTK_INT FUNCTION \\\n Boundary_SelectedGVs \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN array_size, \\\n CCTK_INT ARRAY OUT var_indicies, \\\n CCTK_INT ARRAY OUT faces, \\\n CCTK_INT ARRAY OUT boundary_widths, \\\n CCTK_INT ARRAY OUT table_handles, \\\n CCTK_STRING IN bc_name)\nREQUIRES FUNCTION Boundary_SelectedGVs\n\nCCTK_INT FUNCTION \\\n GetBoundarySpecification \\\n (CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nREQUIRES FUNCTION GetBoundarySpecification\n\nCCTK_INT FUNCTION \\\n GetDomainSpecification \\\n (CCTK_INT IN size, \\\n CCTK_REAL OUT ARRAY physical_min, \\\n CCTK_REAL OUT ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL OUT ARRAY spacing)\nREQUIRES FUNCTION GetDomainSpecification\n\n\n\nCCTK_INT FUNCTION \\\n Periodic_ApplyVI \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT IN ARRAY stencil, \\\n CCTK_INT IN ARRAY do_periodic, \\\n CCTK_INT IN var_index)\nPROVIDES FUNCTION Periodic_ApplyVI WITH BndPeriodicCarpetVI LANGUAGE C\n\nCCTK_INT FUNCTION \\\n Periodic_ApplyVN \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT IN ARRAY stencil, \\\n CCTK_INT IN ARRAY do_periodic, \\\n CCTK_STRING IN var_name)\nPROVIDES FUNCTION Periodic_ApplyVN WITH BndPeriodicCarpetVN LANGUAGE C\n\nCCTK_INT FUNCTION \\\n Periodic_ApplyGI \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT IN ARRAY stencil, \\\n CCTK_INT IN ARRAY do_periodic, \\\n CCTK_INT IN group_index)\nPROVIDES FUNCTION Periodic_ApplyGI WITH BndPeriodicCarpetGI LANGUAGE C\n\nCCTK_INT FUNCTION \\\n Periodic_ApplyGN \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT IN ARRAY stencil, \\\n CCTK_INT IN ARRAY do_periodic, \\\n CCTK_STRING IN group_name)\nPROVIDES FUNCTION Periodic_ApplyGN WITH BndPeriodicCarpetGN LANGUAGE C\n", - "params": "", + "param": "# Parameter definitions for thorn PeriodicCarpet\n\nBOOLEAN verbose \"Produce screen output while applying boundary conditions\"\n{\n} \"no\"\n\nBOOLEAN periodic \"Periodic boundary conditions in all directions\"\n{\n} \"no\"\n\nBOOLEAN periodic_x \"Periodic boundary conditions in x-direction\"\n{\n} \"no\"\n\nBOOLEAN periodic_y \"Periodic boundary conditions in y-direction\"\n{\n} \"no\"\n\nBOOLEAN periodic_z \"Periodic boundary conditions in z-direction\"\n{\n} \"no\"\n", "schedule": "# Schedule definitions for thorn PeriodicCarpet\n\nSCHEDULE PeriodicCarpet_ParamCheck AT paramcheck\n{\n LANG: C\n OPTIONS: level\n} \"Register periodic boundary conditions\"\n\nSCHEDULE PeriodicCarpet_RegisterBC IN SymmetryRegister\n{\n LANG: C\n} \"Register periodic boundary conditions\"\n\nSCHEDULE PeriodicCarpet_ApplyBC IN BoundaryConditions\n{\n LANG: C\n} \"Apply periodic boundary conditions\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn PeriodicCarpet\n\n# Source files in this directory\nSRCS = paramcheck.cc periodic.cc interpolate.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/Carpet_ReductionTest.json b/Carpet_ReductionTest.json index 5e166fb3e1c30c1c3229ecb2f3c6df7702668d1a..902c33f9391b22511ad0170f1c0a1d2e7f1fd91e 100644 --- a/Carpet_ReductionTest.json +++ b/Carpet_ReductionTest.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "", "interface": "# Interface definition for thorn ReductionTest\n# $Header:$\n\nimplements: ReductionTest\ninherits: GRHydro grid\n\nCCTK_REAL center_of_mass_helpers TYPE=GF TIMELEVELS=3 tags='prolongation=\"none\"'\n{\n \n dMx,dMy,dMz\n}\n\nCCTK_REAL center_of_mass TYPE=SCALAR\n{\n \n Mx,My,Mz,Mr\n}\n\n", - "params": "", + "param": "# Parameter definitions for thorn ReductionTest\n# $Header:$\n\nshares: grid\n\nUSES KEYWORD domain\n\n\n\n\n\n", "schedule": "# Schedule definitions for thorn ReductionTest\n# $Header:$\n\nSTORAGE: center_of_mass center_of_mass_helpers[3]\n\nSCHEDULE CoM_Local AT CCTK_INITIAL AFTER Whisky_Initial\n{\n \n LANG: C\n SYNC: center_of_mass_helpers\n} \"Setup integrands for CoM calculation\"\n\nSCHEDULE CoM_Local AT CCTK_EVOL AFTER MoL_Evolution\n{\n \n LANG: C\n SYNC: center_of_mass_helpers\n} \"Setup integrands for CoM calculation\"\n\nSCHEDULE CoM_Local AT Postregridinitial\n{\n \n LANG: C\n SYNC: center_of_mass_helpers\n} \"Setup integrands for CoM calculation\"\n\nSCHEDULE CoM_Local AT Postregrid\n{\n \n LANG: C\n SYNC: center_of_mass_helpers\n} \"Setup integrands for CoM calculation\"\n\n\n\nSCHEDULE CoM AT CCTK_ANALYSIS \n{\n \n LANG: C\n OPTIONS: GLOBAL\n} \"CoM Reductions\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn ReductionTest\n# $Header:$\n\n# Source files in this directory\nSRCS = CoM.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/Carpet_ReductionTest2.json b/Carpet_ReductionTest2.json index 29f3c23928f077c464b312179941fc7718831be9..f39c296c95fd8c2b90f7454d6b96549a875394b8 100644 --- a/Carpet_ReductionTest2.json +++ b/Carpet_ReductionTest2.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "", "interface": "# Interface definition for thorn ReductionTest2\n# $Header:$\n\nimplements: ReductionTest2\n\n\nCCTK_REAL redvars TYPE=GF TIMELEVELS=3 \n{\n redvar\n}\n\n", - "params": "", + "param": "# Parameter definitions for thorn ReductionTest2\n# $Header:$\n\nshares: grid\n\nUSES KEYWORD domain\n\n\n\n\n\n", "schedule": "# Schedule definitions for thorn ReductionTest2\n# $Header:$\n\nSTORAGE: redvars[3]\n\nSCHEDULE CoM2_Local AT CCTK_INITIAL AFTER Whisky_Initial\n{\n \n LANG: C\n SYNC: redvars\n WRITES: ReductionTest2::redvar(everywhere)\n} \"Setup integrands for CoM calculation\"\n\nSCHEDULE CoM2_Local AT CCTK_EVOL AFTER MoL_Evolution\n{\n \n LANG: C\n SYNC: redvars\n} \"Setup integrands for CoM calculation\"\n\nSCHEDULE CoM2_Local AT Postregridinitial\n{\n \n LANG: C\n SYNC: redvars\n} \"Setup integrands for CoM calculation\"\n\nSCHEDULE CoM2_Local AT Postregrid\n{\n \n LANG: C\n SYNC: redvars\n} \"Setup integrands for CoM calculation\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn ReductionTest\n# $Header:$\n\n# Source files in this directory\nSRCS = CoM.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/Carpet_ReductionTest3.json b/Carpet_ReductionTest3.json index 860cd12106e386bc4fb61b2ddf6a83be928d705e..26758a1b6a1e4ffd791c3b28fc3607dd79508eb5 100644 --- a/Carpet_ReductionTest3.json +++ b/Carpet_ReductionTest3.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "", "interface": "# Interface definition for thorn ReductionTest\n# $Header:$\n\nimplements: ReductionTest3\ninherits: grid\n\nCCTK_REAL myredvar TYPE=GF TIMELEVELS=3 tags='ProlongationParameter=\"Whisky::Whisky_Prolongation_Type\" tensortypealias=\"Scalar\" tensorweight=+1.0 interpolator=\"matter\"'\n\nCCTK_REAL center_of_mass_helpers TYPE=GF TIMELEVELS=3 tags='prolongation=\"none\"'\n{\n \n dMx,dMy,dMz\n}\n\nCCTK_REAL center_of_mass TYPE=SCALAR\n{\n \n Mx,My,Mz,Mr\n}\n\n", - "params": "", + "param": "# Parameter definitions for thorn ReductionTest\n# $Header:$\n\nshares: grid\n\nUSES KEYWORD domain\n\n\n\n\n\n", "schedule": "# Schedule definitions for thorn ReductionTest3\n# $Header:$\n\nSTORAGE: center_of_mass center_of_mass_helpers[3] myredvar[3]\n\nSCHEDULE CoM3_Local AT CCTK_INITIAL AFTER Whisky_Initial\n{\n \n LANG: C\n SYNC: center_of_mass_helpers\n READS: grid::x, grid::y, grid::z\n READS: ReductionTest3::myredvar\n WRITES: ReductionTest3::center_of_mass_helpers(everywhere)\n} \"Setup integrands for CoM calculation\"\n\nSCHEDULE CoM3_Local AT CCTK_EVOL AFTER MoL_Evolution\n{\n \n LANG: C\n SYNC: center_of_mass_helpers\n READS: grid::x, grid::y, grid::z\n READS: ReductionTest3::myredvar\n WRITES: ReductionTest3::center_of_mass_helpers(everywhere)\n} \"Setup integrands for CoM calculation\"\n\nSCHEDULE CoM3_Local AT Postregridinitial\n{\n \n LANG: C\n SYNC: center_of_mass_helpers\n READS: grid::x, grid::y, grid::z\n READS: ReductionTest3::myredvar\n WRITES: ReductionTest3::center_of_mass_helpers(everywhere)\n} \"Setup integrands for CoM calculation\"\n\nSCHEDULE CoM3_Local AT Postregrid\n{\n \n LANG: C\n SYNC: center_of_mass_helpers\n READS: grid::x, grid::y, grid::z\n READS: ReductionTest3::myredvar\n WRITES: ReductionTest3::center_of_mass_helpers(everywhere)\n} \"Setup integrands for CoM calculation\"\n\n\n\nSCHEDULE CoM3 AT CCTK_ANALYSIS \n{\n \n LANG: C\n OPTIONS: GLOBAL\n WRITES: ReductionTest3::center_of_mass(everywhere)\n} \"CoM Reductions\"\n\n\n#SCHEDULE CoM3 AT Postregrid AFTER CoM3_Local\n#{\n# \n# LANG: C\n# OPTIONS: GLOBAL\n#} \"CoM Reductions\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn ReductionTest\n# $Header:$\n\n# Source files in this directory\nSRCS = CoM.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/Carpet_RegridSyncTest.json b/Carpet_RegridSyncTest.json index 61d77c799f2127a62fdf93e8fa7aa2948c0d710c..b49fd4008b13ab050c192287fe15b2f50a7f636a 100644 --- a/Carpet_RegridSyncTest.json +++ b/Carpet_RegridSyncTest.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "", "interface": "# Interface definition for thorn RegridSyncTest\n\nimplements: RegridSyncTest\n\n\nreal myregridtestgf type=GF timelevels=3 \"This is the regrid test grid function\"\n", - "params": "", + "param": "# Parameter definitions for thorn RegridSyncTest\n", "schedule": "# Schedule definitions for thorn RegridSyncTest\n\nstorage: myregridtestgf[3]\n\nschedule RegridSyncTest_setup AT CCTK_INITIAL\n{\n LANG: Fortran\n SYNC: myregridtestgf\n WRITES: RegridSyncTest::myregridtestgf(everywhere)\n} \"Do something at inital\"\n\n\nschedule RegridSyncTest_do_something AT PostRegrid\n{\n LANG: Fortran\n SYNC: myregridtestgf\n WRITES: RegridSyncTest::myregridtestgf(everywhere)\n} \"Do something at postregrid and try to sync\"\n\n\nschedule RegridSyncTest_evolve AT CCTK_EVOL\n{\n LANG: Fortran\n SYNC: myregridtestgf\n WRITES: RegridSyncTest::myregridtestgf(everywhere)\n} \"Do something at evol\"\n\n#This function is unneeded with presync and could be removed.\nschedule RegridSyncTest_sync AT POSTREGRID BEFORE regridsynctest_output\n{\n LANG: Fortran\n SYNC: myregridtestgf\n} \"Dummy routine for sync-ing\"\n\nschedule RegridSyncTest_output AT POSTREGRID BEFORE RegridSyncTest_do_something\n{\n LANG: C\n} \"Do something at postregrid\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn RegridSyncTest\n\n# Source files in this directory\nSRCS = regridsynctest.F90 output.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/Carpet_TestCarpetGridInfo.json b/Carpet_TestCarpetGridInfo.json index 9a3143c34b3768b46a34032fb14d473bb8d3edf4..50a06707e3b469228b4897964bff73c3ed1b237c 100644 --- a/Carpet_TestCarpetGridInfo.json +++ b/Carpet_TestCarpetGridInfo.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "# Configuration definition for thorn TestCarpetGridInfo\n\nREQUIRES Carpet\n", "interface": "# Interface definition for thorn TestCarpetGridInfo\n# $Header: /numrelcvs/ThornburgCVS/TestCarpetGridInfo/interface.ccl,v 1.1 2006/07/03 14:41:50 jthorn Exp $\n\nimplements: TestCarpetGridInfo\nuses include: carpet.hh\t\t# from Carpet/Carpet\n", - "params": "", + "param": "# Parameter definitions for thorn TestCarpetGridInfo\n# $Header: /numrelcvs/ThornburgCVS/TestCarpetGridInfo/param.ccl,v 1.1 2006/07/03 14:41:50 jthorn Exp $\n\nint N_maps \"number of Carpet maps to test\"\n{\n0:* :: \"any integer >= 0\"\n} 6\n\nBoolean test_local_mode \"should we test grid info in local mode as well?\"\n{\n} false\n", "schedule": "# Schedule definitions for thorn TestCarpetGridInfo\n# $Header: /numrelcvs/ThornburgCVS/TestCarpetGridInfo/schedule.ccl,v 1.1 2006/07/03 14:41:50 jthorn Exp $\n\nschedule TestCarpetGridInfo_test\t\t\t\t\t\\\n at BASEGRID\t\t\t\t\t\t\t\\\n after SpatialCoordinates\n\t{\n\tLANG: C\n\tOPTIONS: level\n\t} \"test grid info\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TestCarpetGridInfo\n# $Header: /numrelcvs/ThornburgCVS/TestCarpetGridInfo/src/make.code.defn,v 1.1 2006/07/03 14:41:50 jthorn Exp $\n\n# Source files in this directory\nSRCS = test.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/Carpet_TestLoopControl.json b/Carpet_TestLoopControl.json index 8b5d2bfc19e252369d4d8836c1251af62b8079a3..9509e0981c8b1c0b024125905852b932c2f552fe 100644 --- a/Carpet_TestLoopControl.json +++ b/Carpet_TestLoopControl.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "# Configuration definition for thorn TestLoopControl\n\nREQUIRES LoopControl\n", "interface": "# Interface definition for thorn TestLoopControl\n\nIMPLEMENTS: TestLoopControl\n\nINHERITS: grid\n\nUSES INCLUDE HEADER: loopcontrol.h\n\n\n\n# Convenient way to determine boundary sizes\nCCTK_INT FUNCTION GetBoundarySizesAndTypes \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY bndsize, \\\n CCTK_INT OUT ARRAY is_ghostbnd, \\\n CCTK_INT OUT ARRAY is_symbnd, \\\n CCTK_INT OUT ARRAY is_physbnd)\nREQUIRES FUNCTION GetBoundarySizesAndTypes\n\n\n\nCCTK_REAL csums TYPE=scalar\n{\n csum_all csum_int csum_bnd csum_intbnd\n} \"Result values for C test cases\"\n\nCCTK_REAL fsums TYPE=scalar\n{\n fsum_all fsum_int fsum_bnd fsum_intbnd\n} \"Result values for Fortran test cases\"\n\nCCTK_INT pointtypes TYPE=GF \"Grid function point types\"\n", - "params": "", + "param": "# Parameter definitions for thorn TestLoopControl\n", "schedule": "# Schedule definitions for thorn TestLoopControl\n\nSTORAGE: csums fsums pointtypes\n\nSCHEDULE TestLoopControlPointwise AT initial\n{\n LANG: C\n} \"Test loop iterators pointwise\"\n\nSCHEDULE TestLoopControlC AT initial\n{\n LANG: C\n} \"Test loop iterators\"\n\nSCHEDULE TestLoopControlFortran AT initial\n{\n LANG: Fortran\n} \"Test loop iterators\"\n", "src": { "TestLoopC.c": "#include \n#include \n#include \n\n#include \n\nvoid TestLoopControlC(CCTK_ARGUMENTS) {\n DECLARE_CCTK_ARGUMENTS;\n DECLARE_CCTK_PARAMETERS;\n\n CCTK_REAL csum;\n\n switch (cctk_dim) {\n\n case 1: {\n /* 1D */\n\n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP1_ALL(loop1_all, cctkGH, i) {\n int const ind1d = CCTK_GFINDEX1D(cctkGH, i);\n csum += r[ind1d];\n } CCTK_ENDLOOP1_ALL(loop1_all);\n *csum_all = csum;\n\n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP1_INT(loop1_int, cctkGH, i) {\n int const ind1d = CCTK_GFINDEX1D(cctkGH, i);\n csum += r[ind1d];\n } CCTK_ENDLOOP1_INT(loop1_int);\n *csum_int = csum;\n\n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP1_BND(loop1_bnd, cctkGH, i, ni) {\n int const ind1d = CCTK_GFINDEX1D(cctkGH, i);\n csum += r[ind1d];\n } CCTK_ENDLOOP1_BND(loop1_bnd);\n *csum_bnd = csum;\n\n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP1_INTBND(loop1_intbnd, cctkGH, i, ni) {\n int const ind1d = CCTK_GFINDEX1D(cctkGH, i);\n csum += r[ind1d];\n } CCTK_ENDLOOP1_INTBND(loop1_intbnd);\n *csum_intbnd = csum;\n\n break;\n }\n\n\n\n case 2:{\n /* 2D */\n\n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP2_ALL(loop2_all, cctkGH, i,j) {\n int const ind2d = CCTK_GFINDEX2D(cctkGH, i,j);\n csum += r[ind2d];\n } CCTK_ENDLOOP2_ALL(loop2_all);\n *csum_all = csum;\n\n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP2_INT(loop2_int, cctkGH, i,j) {\n int const ind2d = CCTK_GFINDEX2D(cctkGH, i,j);\n csum += r[ind2d];\n } CCTK_ENDLOOP2_INT(loop2_int);\n *csum_int = csum;\n\n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP2_BND(loop2_bnd, cctkGH, i,j, ni,nj) {\n int const ind2d = CCTK_GFINDEX2D(cctkGH, i,j);\n csum += r[ind2d];\n } CCTK_ENDLOOP2_BND(loop2_bnd);\n *csum_bnd = csum;\n\n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP2_INTBND(loop2_intbnd, cctkGH, i,j, ni,nj) {\n int const ind2d = CCTK_GFINDEX2D(cctkGH, i,j);\n csum += r[ind2d];\n } CCTK_ENDLOOP2_INTBND(loop2_intbnd);\n *csum_intbnd = csum;\n\n break;\n }\n\n\n\n case 3: {\n /* 3D */\n\n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP3_ALL(loop3_all, cctkGH, i,j,k) {\n int const ind3d = CCTK_GFINDEX3D(cctkGH, i,j,k);\n csum += r[ind3d];\n } CCTK_ENDLOOP3_ALL(loop3_all);\n *csum_all = csum;\n\n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP3_INT(loop3_int, cctkGH, i,j,k) {\n int const ind3d = CCTK_GFINDEX3D(cctkGH, i,j,k);\n csum += r[ind3d];\n } CCTK_ENDLOOP3_INT(loop3_int);\n *csum_int = csum;\n\n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP3_BND(loop3_bnd, cctkGH, i,j,k, ni,nj,nk) {\n int const ind3d = CCTK_GFINDEX3D(cctkGH, i,j,k);\n csum += r[ind3d];\n } CCTK_ENDLOOP3_BND(loop3_bnd);\n *csum_bnd = csum;\n\n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP3_INTBND(loop3_intbnd, cctkGH, i,j,k, ni,nj,nk) {\n int const ind3d = CCTK_GFINDEX3D(cctkGH, i,j,k);\n csum += r[ind3d];\n } CCTK_ENDLOOP3_INTBND(loop3_intbnd);\n *csum_intbnd = csum;\n\n break;\n }\n\n\n\n case 4: {\n /* 4D */\n\n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP4_ALL(loop4_all, cctkGH, i,j,k,l) {\n int const ind4d = CCTK_GFINDEX4D(cctkGH, i,j,k,l);\n csum += r[ind4d];\n } CCTK_ENDLOOP4_ALL(loop4_all);\n *csum_all = csum;\n\n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP4_INT(loop4_int, cctkGH, i,j,k,l) {\n int const ind4d = CCTK_GFINDEX4D(cctkGH, i,j,k,l);\n csum += r[ind4d];\n } CCTK_ENDLOOP4_INT(loop4_int);\n *csum_int = csum;\n\n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP4_BND(loop4_bnd, cctkGH, i,j,k,l, ni,nj,nk,nl) {\n int const ind4d = CCTK_GFINDEX4D(cctkGH, i,j,k,l);\n csum += r[ind4d];\n } CCTK_ENDLOOP4_BND(loop4_bnd);\n *csum_bnd = csum;\n\n csum = 0.;\n#pragma omp parallel reduction(+: csum)\n CCTK_LOOP4_INTBND(loop4_intbnd, cctkGH, i,j,k,l, ni,nj,nk,nl) {\n int const ind4d = CCTK_GFINDEX4D(cctkGH, i,j,k,l);\n csum += r[ind4d];\n } CCTK_ENDLOOP4_INTBND(loop4_intbnd);\n *csum_intbnd = csum;\n\n break;\n }\n\n\n\n default:\n CCTK_ERROR(\"cctk_dim out of range\");\n\n }\n}\n", diff --git a/Carpet_Timers.json b/Carpet_Timers.json index 93023d89d6f886d102aa2321f9af97380b8d93f4..219b62fff252980c76dd1661bc938c0b52ec2ebb 100644 --- a/Carpet_Timers.json +++ b/Carpet_Timers.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/eschnett/carpet.git", "configuration": "# Configuration definitions for thorn Timers\n\nPROVIDES Timers\n{\n}\n\n# This is necessary for some convenient communication routines\nREQUIRES CarpetLib\n", "interface": "# Interface definition for thorn Timers\n\nIMPLEMENTS: Timers\n\nINCLUDE HEADER: CactusTimer.hh IN CactusTimer.hh\nINCLUDE HEADER: CactusTimerSet.hh IN CactusTimerSet.hh\nINCLUDE HEADER: Timer.hh IN Timer.hh\nINCLUDE HEADER: TimerTree.hh IN TimerTree.hh\n\n\n\n# Check whether existing output files should be truncated or not\nCCTK_INT FUNCTION IO_TruncateOutputFiles(CCTK_POINTER_TO_CONST IN cctkGH)\nREQUIRES FUNCTION IO_TruncateOutputFiles\n", - "params": "", + "param": "# Parameter definitions for thorn Timers\n\nSHARES: IO\n\nUSES STRING out_dir\n\n\n\nPRIVATE:\n\nBOOLEAN verbose \"Output (debug) messages when a timer is started or stopped\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN disable_cactus_timer_set \"Disable Cactus timer set\" STEERABLE=recover\n{\n} \"no\"\n\nBOOLEAN disable_timer_trees \"Disable timer trees\" STEERABLE=recover\n{\n} \"no\"\n\nSTRING xml_clock \"Which clock to use in the XML timer output file\" STEERABLE=always\n{\n \".*\" :: \"must be a legal clock name\"\n} \"gettimeofday\"\n\nCCTK_REAL threshold_percentage \"The percentage of the root timer below which timers are omitted\" STEERABLE=always\n{\n 0:* :: \"\"\n} 1.0\n\nINT output_precision \"Number of decimal places to use in standard output for timer tree\" STEERABLE=always\n{\n 1:* :: \"number of decimal places\"\n} 1\n", "schedule": "# Schedule definitions for thorn Timers\n\nSCHEDULE Timer_Startup AT startup BEFORE Driver_Startup\n{\n LANG: C\n} \"Prepare hierarchical timers\"\n\nSCHEDULE Timer_Shutdown AT shutdown AFTER Driver_Shutdown\n{\n LANG: C\n} \"Prepare hierarchical timers\"\n", "src": { "CactusTimer.cc": "#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n#include \n#include \n#include \n\n#if HAVE_UNISTD_H\n#include \n#include \n#endif\n\n#include \n\n#include \"CactusTimer.hh\"\n#include \"CactusTimerSet.hh\"\n\nnamespace Timers {\n\nusing namespace std;\n\n// Create a new Cactus timer with the given name\nCactusTimer::CactusTimer(string timername) : running(false) {\n handle = CCTK_TimerCreate(timername.c_str());\n assert(handle >= 0);\n\n timerSet.add(this);\n msgCreate();\n}\n\n// Destroy a timer\nCactusTimer::~CactusTimer() {\n timerSet.remove(this);\n CCTK_TimerDestroyI(handle);\n}\n\n// Start the timer\nvoid CactusTimer::start() {\n msgStart();\n running = true;\n CCTK_TimerStartI(handle);\n}\n\n// Stop the timer\nvoid CactusTimer::stop() {\n CCTK_TimerStopI(handle);\n running = false;\n msgStop();\n}\n\n// Reset the timer\nvoid CactusTimer::reset() { CCTK_TimerResetI(handle); }\n\n// Timer name\nstring CactusTimer::name() const {\n const char *const timername = CCTK_TimerName(handle);\n assert(timername);\n return string(timername);\n}\n\ndouble CactusTimer::getTime() {\n DECLARE_CCTK_PARAMETERS;\n\n const bool was_running = running;\n if (was_running)\n stop();\n\n static cTimerData *timer = 0;\n if (not timer)\n timer = CCTK_TimerCreateData();\n assert(timer);\n\n CCTK_TimerI(handle, timer);\n const cTimerVal *tv = CCTK_GetClockValue(xml_clock, timer);\n double val;\n if (not tv) {\n CCTK_VWARN(CCTK_WARN_ALERT, \"Clock \\\"%s\\\" not found for timer #%d \\\"%s\\\"\",\n xml_clock, handle, CCTK_TimerName(handle));\n val = -1.0;\n } else {\n val = CCTK_TimerClockSeconds(tv);\n }\n msgRead(val);\n if (was_running)\n start();\n\n return val;\n}\n\nvoid CactusTimer::getGlobalTime(double &avg, double &max) {\n const cGH *const cctkGH = 0;\n\n int ierr;\n\n static int op_sum = -1;\n static int op_max = -1;\n if (op_sum < 0)\n op_sum = CCTK_ReductionArrayHandle(\"sum\");\n if (op_max < 0)\n op_max = CCTK_ReductionArrayHandle(\"maximum\");\n\n const double val = getTime();\n const CCTK_REAL val1 = val;\n\n CCTK_REAL sum1;\n ierr = CCTK_ReduceLocScalar(cctkGH, -1, op_sum, &val1, &sum1,\n CCTK_VARIABLE_REAL);\n if (ierr) {\n CCTK_VWARN(CCTK_WARN_ALERT, \"Error in sum reduction\");\n }\n avg = sum1 / CCTK_nProcs(cctkGH);\n\n CCTK_REAL max1;\n ierr = CCTK_ReduceLocScalar(cctkGH, -1, op_max, &val1, &max1,\n CCTK_VARIABLE_REAL);\n if (ierr) {\n CCTK_VWARN(CCTK_WARN_ALERT, \"Error in maximum reduction\");\n }\n max = max1;\n}\n\nvector > CactusTimer::getAllTimerNames() const {\n DECLARE_CCTK_PARAMETERS;\n\n static cTimerData *timer = NULL;\n if (not timer)\n timer = CCTK_TimerCreateData();\n assert(timer);\n\n CCTK_TimerI(handle, timer);\n\n vector > names(timer->n_vals);\n for (int i = 0; i < timer->n_vals; ++i) {\n names[i].first = timer->vals[i].heading;\n names[i].second = timer->vals[i].units;\n }\n\n return names;\n}\n\nvector CactusTimer::getAllTimerValues() {\n DECLARE_CCTK_PARAMETERS;\n\n const bool was_running = running;\n if (was_running)\n stop();\n\n static cTimerData *timer = NULL;\n if (not timer)\n timer = CCTK_TimerCreateData();\n assert(timer);\n\n CCTK_TimerI(handle, timer);\n\n vector vals(timer->n_vals);\n for (int i = 0; i < timer->n_vals; ++i) {\n switch (timer->vals[i].type) {\n case val_int:\n vals[i] = timer->vals[i].val.i;\n break;\n case val_long:\n vals[i] = timer->vals[i].val.l;\n break;\n case val_double:\n vals[i] = timer->vals[i].val.d;\n break;\n default:\n assert(0);\n }\n }\n\n if (was_running)\n start();\n\n return vals;\n}\n\n// Print timer data\nvoid CactusTimer::printData() {\n const bool was_running = running;\n if (was_running)\n stop();\n\n#if 0\n CCTK_TimerPrintDataI(handle, -1); // -1 means: all clocks\n#endif\n\n static cTimerData *timer = 0;\n if (not timer)\n timer = CCTK_TimerCreateData();\n assert(timer);\n CCTK_TimerI(handle, timer);\n\n static bool firsttime = true;\n if (firsttime) {\n printf(\"# 1: timer name\");\n for (int i = 0; i < timer->n_vals; ++i) {\n printf(\" %d: %s [%s]\", i + 2, timer->vals[i].heading,\n timer->vals[i].units);\n }\n printf(\"\\n\");\n firsttime = false;\n }\n\n printf(\"%s:\", name().c_str());\n for (int i = 0; i < timer->n_vals; ++i) {\n switch (timer->vals[i].type) {\n case val_int:\n printf(\" %d\", timer->vals[i].val.i);\n break;\n case val_long:\n printf(\" %ld\", timer->vals[i].val.l);\n break;\n case val_double:\n printf(\" %g\", timer->vals[i].val.d);\n break;\n case val_none:\n break;\n default:\n assert(0);\n }\n }\n printf(\"\\n\");\n\n if (was_running)\n start();\n}\n\n// Output (debug) messages that a timer is starting or stopping\nvoid CactusTimer::msgCreate() const {\n DECLARE_CCTK_PARAMETERS;\n if (verbose) {\n CCTK_VINFO(\"Timer \\\"%s\\\" created\", name().c_str());\n }\n}\n\nvoid CactusTimer::msgStart() const {\n DECLARE_CCTK_PARAMETERS;\n if (verbose) {\n CCTK_VINFO(\"Timer \\\"%s\\\" starting\", name().c_str());\n }\n}\n\nvoid CactusTimer::msgStop() const {\n DECLARE_CCTK_PARAMETERS;\n if (verbose) {\n CCTK_VINFO(\"Timer \\\"%s\\\" stopping\", name().c_str());\n }\n}\n\nvoid CactusTimer::msgRead(double val) const {\n DECLARE_CCTK_PARAMETERS;\n if (verbose) {\n CCTK_VINFO(\"Timer \\\"%s\\\" read: %g\", name().c_str(), val);\n }\n}\n\nostream &CactusTimer::serialise(ostream &os) {\n os << scientific << setprecision(19) << getTime() << \" \" << name();\n return os;\n}\n\n} // namespace Carpet\n", diff --git a/EinsteinAnalysis_ADMAnalysis.json b/EinsteinAnalysis_ADMAnalysis.json index f5dcbad15b739dc184af21ef96760edb8614eaf6..db8946b4f25bd3c523625391ca9ba9af66f713d5 100644 --- a/EinsteinAnalysis_ADMAnalysis.json +++ b/EinsteinAnalysis_ADMAnalysis.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinanalysis.git", "configuration": "# Configuration definition for thorn CactusEinstein/ADMAnalysis\n# $Header$\n\nREQUIRES CartGrid3D\n", "interface": "# Interface definition for thorn ADMAnalysis\n# $Header$\n\nimplements: ADMAnalysis\n\ninherits: ADMBase, StaticConformal, Grid, ADMMacros\n\nUSES INCLUDE HEADER: Symmetry.h\n\nvoid FUNCTION CartToSphere(CCTK_INT IN ARRAY ash, \\\n CCTK_INT IN r2norm, \\\n\t\t\t CCTK_REAL IN ARRAY x, \\\n\t\t\t CCTK_REAL IN ARRAY y, \\\n\t\t\t CCTK_REAL IN ARRAY z, \\\n\t\t\t CCTK_REAL IN ARRAY r, \\\n\t\t\t CCTK_REAL IN ARRAY cart_xx, \\\n\t\t\t CCTK_REAL IN ARRAY cart_xy, \\\n\t\t\t CCTK_REAL IN ARRAY cart_xz, \\\n\t\t\t CCTK_REAL IN ARRAY cart_yy, \\\n\t\t\t CCTK_REAL IN ARRAY cart_yz, \\\n\t\t\t CCTK_REAL IN ARRAY cart_zz, \\\n\t\t\t CCTK_REAL OUT ARRAY sphere_rr, \\\n\t\t\t CCTK_REAL OUT ARRAY sphere_rq, \\\n\t\t\t CCTK_REAL OUT ARRAY sphere_rp, \\\n\t\t\t CCTK_REAL OUT ARRAY sphere_qq, \\\n\t\t\t CCTK_REAL OUT ARRAY sphere_qp, \\\n\t\t\t CCTK_REAL OUT ARRAY sphere_pp)\n\nvoid FUNCTION Trace(CCTK_INT IN ARRAY ash, \\\n CCTK_REAL IN ARRAY g11, \\\n\t\t CCTK_REAL IN ARRAY g12, \\\n\t\t CCTK_REAL IN ARRAY g13, \\\n\t\t CCTK_REAL IN ARRAY g22, \\\n\t\t CCTK_REAL IN ARRAY g23, \\\n\t\t CCTK_REAL IN ARRAY g33, \\\n\t\t CCTK_REAL OUT ARRAY tensor11, \\\n\t\t CCTK_REAL OUT ARRAY tensor12, \\\n\t\t CCTK_REAL OUT ARRAY tensor13, \\\n\t\t CCTK_REAL OUT ARRAY tensor22, \\\n\t\t CCTK_REAL OUT ARRAY tensor23, \\\n\t\t CCTK_REAL OUT ARRAY tensor33, \\\n\t\t CCTK_REAL OUT ARRAY trace, \\\n\t\t CCTK_REAL OUT ARRAY detg)\n\nPROVIDES FUNCTION CartToSphere WITH ADMAnalysis_CartToSphere LANGUAGE C\nPROVIDES FUNCTION Trace WITH ADMAnalysis_Trace LANGUAGE C\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nREQUIRES FUNCTION Boundary_SelectGroupForBC\n\npublic:\n\n# For evaltrK\nREAL trace_of_K TYPE = GF TAGS = 'tensortypealias=\"scalar\" Prolongation=\"none\"'\n{\n trK \n} \"trace of extrinsic curvature\"\n\nREAL detofg TYPE = GF TAGS = 'tensortypealias=\"scalar\" Prolongation=\"none\"'\n{\n detg \n} \"determinant of the conformal metric\"\n\n# For carttoshpere (p=phi, q=theta)\nREAL spherical_metric TYPE = GF TAGS = 'Prolongation=\"none\"'\n{\n grr,gqq,gpp,grq,grp,gqp\n} \"Metric in spherical coordinates\"\n\nREAL spherical_curv TYPE = GF TAGS = 'Prolongation=\"none\"'\n{\n krr,kqq,kpp,krq,krp,kqp\n} \"extrinsic curvature in spherical coordinates\"\n\n# For the Ricci tensor and scalar\n\nREAL ricci_tensor TYPE = GF TIMELEVELS = 3 TAGS = 'tensortypealias=\"dd_sym\" ProlongationParameter=\"ADMAnalysis::ricci_prolongation_type\"'\n{\n Ricci11, Ricci12, Ricci13, Ricci22, Ricci23, Ricci33\n} \"Components of the Ricci tensor\"\n\nREAL ricci_scalar TYPE = GF TIMELEVELS = 3 TAGS = 'tensortypealias=\"scalar\" ProlongationParameter=\"ADMAnalysis::ricci_prolongation_type\"'\n{\n Ricci\n} \"The Ricci scalar\"\n", - "params": "", + "param": "# Parameter definitions for thorn ADMAnalysis\n# $Header$\n\nshares: ADMBase\n\nUSES KEYWORD metric_type\n\nprivate:\n\nBOOLEAN normalize_dtheta_dphi \"Project angular components onto r*dtheta and r*sin(theta)*dphi?\"\n{\n} \"no\"\n\n\n\nBOOLEAN ricci_persist \"Keep storage of the Ricci tensor and scalar around?\"\n{\n} \"no\"\n\nINT ricci_timelevels \"Number of time levels for the Ricci tensor and scalar\"\n{\n 1:3 :: \"\"\n} 1\n\nKEYWORD ricci_prolongation_type \"The kind of boundary prolongation for the Ricci tensor and scalar\"\n{\n \"Lagrange\" :: \"standard prolongation (requires several time levels)\"\n \"copy\" :: \"use data from the current time level (requires only one time level)\"\n \"none\" :: \"no prolongation (use this if you do not have enough time levels active)\"\n} \"none\"\n", "schedule": "# Schedule definitions for thorn ADMAnalysis\n# $Header$\n\nSCHEDULE ADMAnalysis_ParamCheck AT CCTK_PARAMCHECK\n{\n LANG: C\n OPTIONS: global\n} \"Check that the metric_type is recognised\"\n\nSCHEDULE ADMAnalysis_RegisterSymmetry AT CCTK_WRAGH\n{\n LANG: C\n OPTIONS: global\n} \"Register symmetry of Ricci tensor and scalar\"\n\n\nSCHEDULE ADMAnalysis_EvaltrK AT CCTK_ANALYSIS\n{\n STORAGE: trace_of_K,detofg\n LANG: C\n TRIGGERS: trace_of_K,detofg\n SYNC: trace_of_K,detofg\n READS: ADMBase::metric, ADMBase::curv\n READS: StaticConformal::psi\n READS: StaticConformal::conformal_state\n WRITES: trK(everywhere), detg(everywhere)\n} \"Compute the trace of the extrinsic curvature and the determinant of the metric\"\n\nSCHEDULE ADMAnalysis_MetricCartToSphere AT CCTK_ANALYSIS\n{\n STORAGE: spherical_metric\n LANG: C\n TRIGGERS: spherical_metric\n SYNC: spherical_metric\n READS: grid::coordinates\n READS: ADMBase::metric\n WRITES: spherical_metric(everywhere)\n} \"Calculate the spherical metric in r,theta(q), phi(p)\"\n\nSCHEDULE ADMAnalysis_CurvCartToSphere AT CCTK_ANALYSIS\n{\n STORAGE: spherical_curv\n LANG: C\n TRIGGERS: spherical_curv\n SYNC:spherical_curv\n READS: grid::coordinates\n READS: ADMBase::curv\n WRITES: spherical_curv(everywhere)\n} \"Calculate the spherical ex. curvature in r, theta(q), phi(p)\"\n\nif (ricci_persist)\n{\n if (ricci_timelevels == 1)\n {\n STORAGE: ricci_tensor[1], ricci_scalar[1]\n }\n else if (ricci_timelevels == 2)\n {\n STORAGE: ricci_tensor[2], ricci_scalar[2]\n }\n else if (ricci_timelevels == 3)\n {\n STORAGE: ricci_tensor[3], ricci_scalar[3]\n }\n \n SCHEDULE GROUP RicciGroup at CCTK_POSTINITIAL after (MoL_PostStep MoL_PostInitial)\n {\n STORAGE: detofg\n } \"Calculate Ricci tensor, with boundary conditions\"\n \n SCHEDULE GROUP RicciBoundariesGroup at CCTK_POSTREGRID\n {\n STORAGE: detofg\n } \"Set Ricci tensor on the boundary\"\n \n SCHEDULE GROUP RicciBoundariesGroup at CCTK_POSTRESTRICT\n {\n } \"Set Ricci tensor on the boundary\"\n \n SCHEDULE GROUP RicciGroup at CCTK_POST_RECOVER_VARIABLES after (MoL_PostStep MoL_PostInitial)\n {\n STORAGE: detofg\n } \"Calculate Ricci tensor, with boundary conditions\"\n \n SCHEDULE GROUP RicciGroup at CCTK_EVOL after MoL_Evolution\n {\n STORAGE: detofg\n } \"Calculate Ricci tensor, with boundary conditions\"\n}\nelse\n{\n SCHEDULE GROUP RicciGroup at CCTK_ANALYSIS\n {\n STORAGE: ricci_tensor[1], ricci_scalar[1], detofg\n TRIGGERS: ricci_tensor, ricci_scalar\n } \"Calculate Ricci tensor, with boundary conditions\"\n}\n\nSCHEDULE ADMAnalysis_Ricci in RicciGroup\n{\n LANG: C\n READS: ADMBase::metric\n WRITES: detg(everywhere), ricci_tensor(everywhere), ricci_scalar(everywhere)\n} \"Calculate Ricci tensor, with boundary conditions\"\n\nschedule GROUP RicciBoundariesGroup in RicciGroup after ADMAnalysis_Ricci\n{\n} \"Set Ricci tensor on the boundary\"\n\nSCHEDULE ADMAnalysis_Ricci_Boundaries in RicciBoundariesGroup\n{\n LANG: C\n OPTIONS: level\n SYNC: ricci_tensor, ricci_scalar\n} \"Select boundary conditions for the Ricci tensor\"\n\nSCHEDULE GROUP ApplyBCs as ADMAnalysis_ApplyBCs in RicciBoundariesGroup after ADMAnalysis_Ricci\n{\n} \"Apply boundary conditions to the Ricci tensor\"\n", "src": { "Analysis.c": " /*@@\n @file Analysis.c\n @date Thu Apr 25 18:46:27 2002\n @author Tom Goodale\n @desc \n Routines to do the various analysis tasks.\n @enddesc\n @version $Header$\n @@*/\n\n#include \"cctk.h\"\n\n#include \"cctk_Arguments.h\"\n#include \"cctk_Parameters.h\"\n\n#include \"ADMAnalysis.h\"\n\nstatic const char *rcsid = \"$Header$\";\n\nCCTK_FILEVERSION(CactusEinstein_ADMAnalysis_Analysis_c)\n\n/********************************************************************\n ********************* Local Data Types ***********************\n ********************************************************************/\n\n#define SQR(a) ((a)*(a))\n\n/********************************************************************\n ********************* Local Routine Prototypes *********************\n ********************************************************************/\n\n/********************************************************************\n ***************** Scheduled Routine Prototypes *********************\n ********************************************************************/\n\nvoid ADMAnalysis_EvaltrK(CCTK_ARGUMENTS);\n\nvoid ADMAnalysis_MetricCartToSphere(CCTK_ARGUMENTS);\n\nvoid ADMAnalysis_CurvCartToSphere(CCTK_ARGUMENTS);\n\n/********************************************************************\n ********************* Other Routine Prototypes *********************\n ********************************************************************/\n\n/********************************************************************\n ********************* Local Data *****************************\n ********************************************************************/\n\n/********************************************************************\n ********************* External Routines **********************\n ********************************************************************/\n\n /*@@\n @routine ADMAnalysis_EvaltrK\n @date Thu Apr 25 19:11:32 2002\n @author Tom Goodale\n @desc \n Scheduled routine to evaluate the trace of the extrinsic curvature\n and the determinant of the metric.\n @enddesc \n @calls \n @calledby \n @history \n \n @endhistory \n \n@@*/\nvoid ADMAnalysis_EvaltrK(CCTK_ARGUMENTS)\n{\n int i, d;\n CCTK_INT ash[3];\n DECLARE_CCTK_ARGUMENTS_ADMAnalysis_EvaltrK;\n DECLARE_CCTK_PARAMETERS;\n\n for (d=0; d<3; ++d) ash[d] = cctk_ash[d];\n ADMAnalysis_Trace(ash,\n gxx,\n gxy,\n gxz,\n gyy,\n gyz,\n gzz,\n kxx,\n kxy,\n kxz,\n kyy,\n kyz,\n kzz,\n trK,\n detg);\n\n /* If we have a conformal metric, must convert trK to non-conformal form */\n if(CCTK_EQUALS(metric_type, \"static conformal\") && *conformal_state > 0)\n {\n for(i = 0; i< cctk_ash[0]*cctk_ash[1]*cctk_ash[2]; i++) \n {\n trK[i] = trK[i] /(SQR(psi[i])*SQR(psi[i]));\n }\n }\n}\n\n/*@@\n @routine ADMAnalysis_MetricCartToSphere\n @date Thu Apr 25 19:11:32 2002\n @author Tom Goodale\n @desc \n Scheduled routine to evaluate the components of the metric\n in spherical coordinates\n @enddesc \n @calls \n @calledby \n @history \n \n @endhistory \n \n@@*/\nvoid ADMAnalysis_MetricCartToSphere(CCTK_ARGUMENTS)\n{\n int d;\n CCTK_INT ash[3];\n DECLARE_CCTK_ARGUMENTS_ADMAnalysis_MetricCartToSphere;\n DECLARE_CCTK_PARAMETERS;\n\n for (d=0; d<3; ++d) ash[d] = cctk_ash[d];\n ADMAnalysis_CartToSphere(ash,\n normalize_dtheta_dphi,\n x,\n y,\n z,\n r,\n gxx,\n gxy,\n gxz,\n gyy,\n gyz,\n gzz,\n grr,\n grq,\n grp,\n gqq,\n gqp,\n gpp);\n}\n\n/*@@\n @routine ADMAnalysis_MetricCartToSphere\n @date Thu Apr 25 19:11:32 2002\n @author Tom Goodale\n @desc \n Scheduled routine to evaluate the components of the extrinsic curvature\n in spherical coordinates\n @enddesc \n @calls \n @calledby \n @history \n \n @endhistory \n \n@@*/\nvoid ADMAnalysis_CurvCartToSphere(CCTK_ARGUMENTS)\n{\n int d;\n CCTK_INT ash[3];\n DECLARE_CCTK_ARGUMENTS_ADMAnalysis_CurvCartToSphere;\n DECLARE_CCTK_PARAMETERS;\n\n for (d=0; d<3; ++d) ash[d] = cctk_ash[d];\n ADMAnalysis_CartToSphere(ash,\n normalize_dtheta_dphi,\n x,\n y,\n z,\n r,\n kxx,\n kxy,\n kxz,\n kyy,\n kyz,\n kzz,\n krr,\n krq,\n krp,\n kqq,\n kqp,\n kpp);\n}\n/********************************************************************\n ********************* Local Routines *************************\n ********************************************************************/\n\n", diff --git a/EinsteinAnalysis_ADMMass.json b/EinsteinAnalysis_ADMMass.json index 11ded3f3f51dad4159db1bcc59dc781a70020443..6b23ba3114027f04f2cbc737c5151cef0d360e62 100644 --- a/EinsteinAnalysis_ADMMass.json +++ b/EinsteinAnalysis_ADMMass.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinanalysis.git", "configuration": "", "interface": "# Interface definition for thorn ADMMass\n# $Header$\n\nimplements: ADMMass\ninherits: ADMBase ADMMacros StaticConformal SpaceMask\n\nUSES INCLUDE: SpaceMask.h\n\nCCTK_INT FUNCTION GetDomainSpecification \\\n (CCTK_INT IN size, \\\n CCTK_REAL OUT ARRAY physical_min, \\\n CCTK_REAL OUT ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL OUT ARRAY spacing)\nREQUIRES FUNCTION GetDomainSpecification\n\nCCTK_INT ADMMass_LoopCounterG type = SCALAR\n{\n ADMMass_LoopCounter\n} \"ADMMass LoopCounter\"\n\nCCTK_REAL ADMMass_Masses[ADMMass_number] type = SCALAR tags='checkpoint=\"no\"'\n{\n ADMMass_SurfaceMass\n ADMMass_SurfaceMass_Lapse\n ADMMass_VolumeMass\n} \"ADMMass Scalars\"\n\nCCTK_REAL ADMMass_GFs_surface type = GF Timelevels = 3 tags='Prolongation=\"none\" tensortypealias=\"Scalar\" checkpoint=\"no\"'\n{\n ADMMass_SurfaceMass_GF\n} \"ADMMass gridfunctions for surface integration\"\n\nCCTK_REAL ADMMass_GFs_volume type = GF Timelevels = 3 tags='Prolongation=\"none\" tensortypealias=\"Scalar\" checkpoint=\"no\"'\n{\n ADMMass_VolumeMass_pot_x\n ADMMass_VolumeMass_pot_y\n ADMMass_VolumeMass_pot_z\n ADMMass_VolumeMass_GF\n} \"ADMMass gridfunctions for volume integration\"\n\nCCTK_REAL ADMMass_box type = scalar tags='checkpoint=\"no\"'\n{\n ADMMass_box_x_min\n ADMMass_box_x_max\n ADMMass_box_y_min\n ADMMass_box_y_max\n ADMMass_box_z_min\n ADMMass_box_z_max\n} \"Physical coordinates of the surface on which the integral is computed\"\n\nreal grid_spacing_product type=SCALAR tags='checkpoint=\"no\"' \"product of cctk_delta_space, to be computed in local mode and later used in global mode (carpet problems)\"\n", - "params": "", + "param": "# Parameter definitions for thorn ADMMass\n# $Header$\n\nCCTK_INT ADMMass_number \"number of measurements\" STEERABLE=ALWAYS\n{\n 0: :: \"0 or positive\"\n} 1\n\nCCTK_REAL ADMMass_x_min[100] \"x position of the leftmost yz-plane for the integration box\" STEERABLE=ALWAYS\n{\n :\t:: \"anything\"\n} -100.0\nCCTK_REAL ADMMass_x_max[100] \"x position of the righttmost yz-plane for the integration box\" STEERABLE=ALWAYS\n{\n :\t:: \"anything\"\n} 100.0\n\nCCTK_REAL ADMMass_y_min[100] \"y position of the leftmost xz-plane for the integration box\" STEERABLE=ALWAYS\n{\n :\t:: \"anything\"\n} -100.0\nCCTK_REAL ADMMass_y_max[100] \"y position of the rightmost xz-plane for the integration box\" STEERABLE=ALWAYS\n{\n :\t:: \"anything\"\n} 100.0\n\nCCTK_REAL ADMMass_z_min[100] \"z position of the leftmost xy-plane for the integration box\" STEERABLE=ALWAYS\n{\n :\t:: \"anything\"\n} -100.0\nCCTK_REAL ADMMass_z_max[100] \"z position of the rightmost xy-plane for the integration box\" STEERABLE=ALWAYS\n{\n :\t:: \"anything\"\n} 100.0\n\nCCTK_REAL ADMMass_x_pos[100] \"x position of the center of the integration box\" STEERABLE=ALWAYS\n{\n :\t:: \"anything\"\n} 0.0\nCCTK_REAL ADMMass_y_pos[100] \"y position of the center of the integration box\" STEERABLE=ALWAYS\n{\n :\t:: \"anything\"\n} 0.0\nCCTK_REAL ADMMass_z_pos[100] \"z position of the center of the integration box\" STEERABLE=ALWAYS\n{\n :\t:: \"anything\"\n} 0.0\n\nCCTK_REAL ADMMass_distance_from_grid_boundary[100] \"distance between the grid boundaries and the surface of the integration box\" STEERABLE=ALWAYS\n{\n :\t:: \"<=0 for disable, positive otherwise\"\n} -1.0\n\nCCTK_REAL ADMMass_surface_distance[100] \"distance between the above-defined center of the integration (cubic) box and its surface\" STEERABLE=ALWAYS\n{\n :\t:: \"<=0 for disable, positive otherwise\"\n} -1.0\n\nCCTK_REAL ADMMass_volume_radius[100] \"radius of the sphere inside which the volume integral is computed\" STEERABLE=ALWAYS\n{\n :\t:: \"<=0 for disable, positive otherwise\"\n} -1.0\n\nBOOLEAN ADMMass_use_surface_distance_as_volume_radius \"Use ADMMass_surface_distance instead of ADMMass_volume_radius\" STEERABLE=ALWAYS\n{\n} \"yes\"\n\nBOOLEAN ADMMass_use_all_volume_as_volume_radius \"Use the whole grid for volume integration\" STEERABLE=ALWAYS\n{\n} \"no\"\n\nBOOLEAN ADMMass_Excise_Horizons \"Should we exclude the region inside the AH to the volume integral\" STEERABLE=ALWAYS\n{\n} \"no\"\n\nBOOLEAN ADMMass_Debug \"Enable some info at runtime\" STEERABLE=ALWAYS\n{\n} \"no\"\n", "schedule": "# Schedule definitions for thorn ADMMass\n# $Header$\n\nSTORAGE:ADMMass_LoopCounterG\nSTORAGE:ADMMass_Masses\n###############################################################################\n# The storage of the following grid functions at all times is necessary only\n# because carpet would allocate them only for the finest level, if the STORAGE\n# specification were only in the ADMMass group, as it was earlier. This will\n# be changed back again, when carpet will be modified.\n###############################################################################\nSTORAGE:ADMMass_GFs_surface[3] \nSTORAGE:ADMMass_GFs_volume[3] \n\nschedule ADMMass_InitLoopCounter AT INITIAL\n{\n LANG: C\n OPTIONS: global\n} \"Initialise the loop counter for ADMMass\"\n\nschedule ADMMass_SetLoopCounter AT POSTSTEP AFTER OutsideMask_UpdateMask\n{\n LANG: C\n OPTIONS: global\n} \"Set the loop counter to the value of the parameter ADMMass:ADMMass_number\"\n\n###############################################################################\n# We must schedule the local routines to compute the integrals in\n# global-loop-local (as opposed to local) mode, in order to make sure that the\n# scheduling condition \"AFTER\", which describes the ADMMass group, is respected.\n# This group may depend on local routines (excision, emask) and must be run\n# after all local routines. If we had no such a dependence, we could have\n# scheduled the integral computations simply in local mode.\n###############################################################################\nschedule GROUP ADMMass AT POSTSTEP AFTER ADMMass_SetLoopCounter WHILE ADMMass::ADMMass_LoopCounter\n{\n STORAGE:ADMMass_GFs_surface[3]\n STORAGE:ADMMass_GFs_volume[3]\n STORAGE:ADMMass_box\n STORAGE:grid_spacing_product\n} \"ADMMass loop\"\n\nschedule ADMMass_Loop IN ADMMass\n{\n LANG: C\n OPTIONS: global\n} \"Decrement loop counter\"\n\nschedule ADMMass_Surface IN ADMMass AFTER ADMMass_Loop\n{\n LANG: C\n OPTIONS: global loop-local\n SYNC: ADMMass_GFs_surface\n} \"Calculate the ADMmass using a surface integral: local routine\"\n\nschedule ADMMass_Surface_Global IN ADMMass AFTER ADMMass_Surface\n{\n LANG: C\n OPTIONS: global\n} \"Calculate the ADMmass using a surface integral: global routine\"\n\nschedule ADMMass_Surface_Lapse IN ADMMass AFTER ADMMass_Surface_Global\n{\n LANG: C\n OPTIONS: global loop-local\n SYNC: ADMMass_GFs_surface\n} \"Calculate the ADMmass*lapse using a surface integral: local routine\"\n\nschedule ADMMass_Surface_Lapse_Global IN ADMMass AFTER ADMMass_Surface_Lapse\n{\n LANG: C\n OPTIONS: global\n} \"Calculate the ADMmass*lapse using a surface integral: global routine\"\n\nschedule ADMMass_Volume IN ADMMass AFTER ADMMass_Surface_Lapse_Global\n{\n LANG: C\n OPTIONS: global loop-local\n SYNC: ADMMass_GFs_volume\n} \"Calculate the ADMmass using a volume integral: local routine\"\n\nschedule ADMMass_Volume_Global IN ADMMass AFTER ADMMass_Volume\n{\n LANG: C\n OPTIONS: global\n} \"Calculate the ADMmass using a volume integral: global routine\"\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn ADMMass\n# $Header$\n\n# Source files in this directory\nSRCS = surface_integral.c volume_integral.c loop.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/EinsteinAnalysis_AHFinder.json b/EinsteinAnalysis_AHFinder.json index ae023e580a3358f2209b7fe715ae0e4a7822a271..14b16647dbb7be4cbbb0c519b6c88fa1a235d1be 100644 --- a/EinsteinAnalysis_AHFinder.json +++ b/EinsteinAnalysis_AHFinder.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinanalysis.git", "configuration": "# Configuration definition for thorn CactusEinstein/AHFinder\n# $Header$\n\nREQUIRES CartGrid3D\n", "interface": "# Interface definition for thorn AHFinder\n# $Header$\n\n\nimplements: AHFinder\ninherits: ADMBase StaticConformal SpaceMask Grid IO ADMMacros\n\nSUBROUTINE SetDriftCorrectPosition ( CCTK_POINTER_TO_CONST IN GH_Pointer, \\\n CCTK_REAL IN x, \\\n CCTK_REAL IN y, \\\n CCTK_REAL IN z )\n\nUSES FUNCTION SetDriftCorrectPosition\n\nSUBROUTINE ConfToPhysInPlace (CCTK_INT IN nx, \\\n CCTK_INT IN ny, \\\n CCTK_INT IN nz, \\\n CCTK_REAL ARRAY IN psi, \\\n CCTK_REAL ARRAY INOUT gxx, \\\n CCTK_REAL ARRAY INOUT gxy, \\\n CCTK_REAL ARRAY INOUT gxz, \\\n CCTK_REAL ARRAY INOUT gyy, \\\n CCTK_REAL ARRAY INOUT gyz, \\\n CCTK_REAL ARRAY INOUT gzz)\n\nUSES FUNCTION ConfToPhysInPlace\n\nSUBROUTINE PhysToConfInPlace (CCTK_INT IN nx, \\\n CCTK_INT IN ny, \\\n CCTK_INT IN nz, \\\n CCTK_REAL ARRAY IN psi, \\\n CCTK_REAL ARRAY INOUT gxx, \\\n CCTK_REAL ARRAY INOUT gxy, \\\n CCTK_REAL ARRAY INOUT gxz, \\\n CCTK_REAL ARRAY INOUT gyy, \\\n CCTK_REAL ARRAY INOUT gyz, \\\n CCTK_REAL ARRAY INOUT gzz)\n\nUSES FUNCTION PhysToConfInPlace\n\n################################\n### PUBLIC GRID FUNCTIONS ###\n################################\n\npublic:\n\nreal ahfindergrid type=GF\n{\nahfgrid\n} \"Horizon function\"\n\nreal ahfinderexp type=GF\n{\nahf_exp\n} \"Expansion\"\n\nreal ahfmask type=GF\n{\nahmask\n} \"Grid function for masking\"\n\n\n######################################\n### PUBLIC SCALARS FOR EXCISION ###\n######################################\n\nreal hole1_bounds type=SCALAR\n{\ndhole1_xmin,\ndhole1_ymin,\ndhole1_zmin,\ndhole1_xmax,\ndhole1_ymax,\ndhole1_zmax\n} \"Bounds of excision box for hole 1\"\n\nreal hole2_bounds type=SCALAR\n{\ndhole2_xmin,\ndhole2_ymin,\ndhole2_zmin,\ndhole2_xmax,\ndhole2_ymax,\ndhole2_zmax\n} \"Bounds of excision box for hole 2\"\n\nreal hole3_bounds type=SCALAR\n{\ndhole3_xmin,\ndhole3_ymin,\ndhole3_zmin,\ndhole3_xmax,\ndhole3_ymax,\ndhole3_zmax\n} \"Bounds of excision box for hole 3\"\n\n\n###################\n### PRIVATE ###\n###################\n\nprivate:\n\nint triggergroup type=SCALAR\n{\ntriggervar\n} \"For triggering output\"\n\nreal ahfgradient type=GF\n{\nahfgradx,\nahfgrady,\nahfgradz,\nahfgradn\n} \"Grid functions for gradients\"\n\nreal ahfinder_gauss type=GF\n{\nahfgauss\n} \"Grid function for gaussian curvature calculation\"\n\nreal find3grid type=GF\n{\nahfgrid3,\nahf_exp3\n} \"Grid functions to use in find3 algorithm\"\n\nreal ahf_centroid type=SCALAR\n{\n ahf_centroid_x,\n ahf_centroid_y,\n ahf_centroid_z\n} \"Centroid of one of the horizons\"\n\nint drift_check type=SCALAR\n{\n drift_first\n} \"For checking if its the first drift correction\"\n\n#######################################\n### SCALARS AND ARRAYS FOR OUTPUT ###\n#######################################\n\nREAL out_scalars TYPE=SCALAR\n{\n out_mass,\n out_radius,\n out_area,\n out_perimeter,\n out_meridian1,\n out_meridian2,\n out_asymx,\n out_asymy,\n out_asymz,\n out_centerx,\n out_centery,\n out_centerz\n} \"Output of scalar variables\"\n\nREAL out_1d_legen TYPE=ARRAY DISTRIB=CONSTANT DIM=1 SIZE=ahf_lmax\n{\n out_c0\n} \"Output of c0 coefficients\"\n\nREAL out_2d_legen TYPE=ARRAY DISTRIB=CONSTANT DIM=2 SIZE=ahf_lmax,ahf_lmax\n{\n out_cc,out_cs\n} \"Output of cc and cs coefficients\"\n\nREAL ahfinder_gaussian TYPE=ARRAY DISTRIB=CONSTANT DIM=2 SIZE=ahf_ntheta+1,ahf_nphi+1\n{\n gaussian\n} \"Gaussian Curvature\"\n", - "params": "", + "param": "# Parameter definitions for thorn AHFinder\n# $Header$\n\n\n#################################\n### RESTRICTED PARAMETERS ###\n#################################\n\nrestricted:\n\nBOOLEAN ahf_active \"Activate AHFinder?\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nBOOLEAN ahf_persists \"Do the finder grid functions stay around?\"\n{\n} \"no\"\n\n\n\n##############################\n### PRIVATE PARAMETERS ###\n##############################\n\nprivate:\n\n\n############################\n### General parameters ###\n############################\n\nBOOLEAN ahf_ReportAlways \"Report for all surfaces found (yes) or just for apparent horizons (no)\"\n{\n} \"no\"\n\nBOOLEAN ahf_find3 \"Searching for 3 surfaces?\"\n{\n} \"no\"\n\nBOOLEAN ahf_trapped_surface \"Minimize (expansion + delta) to find trapped surface?\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nINT ahf_findevery \"How often to look for horizons\" STEERABLE = ALWAYS\n{\n1: :: \"Set to 1 for searching each iteration\"\n} 1\n\nINT ahf_findafter \"After how many iterations look for horizons\" STEERABLE = ALWAYS\n{\n0: :: \"Any positive integer\"\n} 0\n\nREAL ahf_findaftertime \"After how much time look for horizons\"\n{\n0.0: :: \"Any positive real number. If non-zero overides ahf_findafter\"\n} 0.0\n\nREAL trapped_surface_delta \"find (expansion = delta) surface\" STEERABLE = ALWAYS\n{\n : :: \"Just a real number\"\n} 0.0\n\n\n########################################\n### Parameters for surface expansion ###\n########################################\n\nBOOLEAN ahf_phi \"Expand also in phi? (seach for non-axisymmetric surface)\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nBOOLEAN ahf_offset \"Center offset from origin?\"\n{\n} \"no\"\n\nBOOLEAN ahf_wander \"Allow the center to wander?\"\n{\n} \"no\"\n\nINT ahf_lmax \"Maximum number of terms in theta expansion\"\n{\n0:19 :: \"Range from 0 to 19\"\n} 8\n\nREAL ahf_xc \"x-coordinate of center of expansion\" STEERABLE = ALWAYS\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_yc \"y-coordinate of center of expansion\" STEERABLE = ALWAYS\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_zc \"z-coordinate of center of expansion\" STEERABLE = ALWAYS\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_xc_0 \"x-coordinate of center of expansion for first surface with find3\" STEERABLE = ALWAYS\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_yc_0 \"y-coordinate of center of expansion for first surface with find3\" STEERABLE = ALWAYS\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_zc_0 \"z-coordinate of center of expansion for first surface with find3\" STEERABLE = ALWAYS\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_xc_1 \"x-coordinate of center of expansion for second surface with find3\" STEERABLE = ALWAYS\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_yc_1 \"y-coordinate of center of expansion for second surface with find3\" STEERABLE = ALWAYS\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_zc_1 \"z-coordinate of center of expansion for second surface with find3\" STEERABLE = ALWAYS\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_xc_2 \"x-coordinate of center of expansion for third surface with find3\" STEERABLE = ALWAYS\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_yc_2 \"y-coordinate of center of expansion for third surface with find3\" STEERABLE = ALWAYS\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_zc_2 \"z-coordinate of center of expansion for third surface with find3\" STEERABLE = ALWAYS\n{\n : :: \"Anything\"\n} 0.0\n\n\n########################################\n### Parameters for surface integrals ###\n########################################\n\nINT ahf_ntheta \"Number of subdivisions in theta\" STEERABLE = ALWAYS\n{\n 1: :: \"Any sensible integer\"\n} 100\n\nINT ahf_nphi \"Number of subdivisions in phi\" STEERABLE = ALWAYS\n{\n 1: :: \"Any sensible integer\"\n} 100\n\n\n#########################################\n### Parameters to indicate symmetries ###\n#########################################\n\n# IMPORTANT: This symmetries refer to the surface itself, and NOT the grid.\n\n# Notice that octant = \"yes\" enforces reflection symmetries on all\n# three coordinate planes, while octant = \"high\" enforces also the\n# extra symmetry of rotation of pi/2 around the z axis.\n\nBOOLEAN ahf_refx \"Reflection symmetry x->-x?\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nBOOLEAN ahf_refy \"Reflection symmetry y->-y?\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nBOOLEAN ahf_refz \"Reflection symmetry z->-z?\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nBOOLEAN ahf_cartoon \"Cartoon mode?\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nKEYWORD ahf_octant \"Octant symmetry?\" STEERABLE = ALWAYS\n{\n \"no\" :: \"No octant symmetry\"\n \"yes\" :: \"Octant symmetry: reflection symmetry on all three coordinate planes\"\n \"high\" :: \"Octant symmetry + symmetry of rotation of pi/2 around z axis\"\n} \"no\"\n\n\n#############################################\n### Parameters for minimization algorithm ###\n#############################################\n\nBOOLEAN ahf_minarea \"Minimize area instead of expansion?\"\n{\n} \"no\"\n\nINT ahf_maxiter \"Maximum number of iterations of POWELL\"\n{\n : :: \"Any sensible integer value\"\n} 10\n\nREAL ahf_tol \"Tolerance for minimization routines\"\n{\n0: :: \"A sensible positive number\"\n} 0.1\n\n\n####################################\n### Parameters for initial guess ###\n####################################\n\nBOOLEAN ahf_sloppyguess \"Use sphere as initial guess?\"\n{\n} \"no\"\n\nBOOLEAN ahf_guess_absmin \"Use absolute min to start minimization?\"\n{\n} \"no\"\n\nBOOLEAN ahf_guessold \"Use old horizon as initial guess?\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nBOOLEAN ahf_inner \"Look for inner horizon?\"\n{\n} \"no\"\n\nBOOLEAN ahf_manual_guess \"Use specified coefficients for guess?\"\n{\n} \"no\"\n\nINT ahf_nn0 \"Number of subdivisions of c0(0) for initial guess\"\n{\n : :: \"Some positive integer\"\n} 10\n\nINT ahf_nn2 \"Number of subdivisions of c0(2) for initial guess\"\n{\n : :: \"Some positive integer\"\n} 10\n\nREAL ahf_l0_guess \"Manual guess for l=0 component\"\n{\n : :: \"Anything\"\n} 1.0\n\nREAL ahf_l2_guess \"Manual guess for l=2 component\"\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_l4_guess \"Manual guess for l=4 component\"\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_l6_guess \"Manual guess for l=6 component\"\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_l8_guess \"Manual guess for l=8 component\"\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_l10_guess \"Manual guess for l=10 component\"\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_l12_guess \"Manual guess for l=12 component\"\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_l14_guess \"Manual guess for l=14 component\"\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_l16_guess \"Manual guess for l=16 component\"\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_l18_guess \"Manual guess for l=18 component\"\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_r0 \"Radius of initial sphere (0 forces largest sphere)\" STEERABLE = ALWAYS\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_r0_0 \"Radius of first initial sphere for find3 (0 forces largest sphere)\" STEERABLE = ALWAYS\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_r0_1 \"Radius of second initial sphere for find3 (0 forces largest sphere)\" STEERABLE = ALWAYS\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_r0_2 \"Radius of third initial sphere for find3 (0 forces largest sphere)\" STEERABLE = ALWAYS\n{\n : :: \"Anything\"\n} 0.0\n\n\n\n#####################################\n### Parameters for flow algorithm ###\n#####################################\n\nBOOLEAN ahf_flow \"Use flow instead of minimization?\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nINT ahf_flowiter \"Maximum number of iterations for flow\" STEERABLE = ALWAYS\n{\n0: :: \"Anything\"\n} 200\n\nREAL ahf_flowa \"alpha parameter for flow\"\n{\n : :: \"Anything\"\n} 0.01\n\nREAL ahf_flowb \"beta parameter for flow\"\n{\n : :: \"Anything\"\n} 0.5\n\nREAL ahf_flowh \"Weight of H flow\"\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_flowc \"Weight of C flow\"\n{\n : :: \"Anything\"\n} 1.0\n\nREAl ahf_flown \"Weight of N flow\"\n{\n : :: \"Anything\"\n} 0.0\n\nREAL ahf_flowtol \"Tolerance for flow\"\n{\n : :: \"Anything\"\n} 0.0001\n\nREAL ahf_maxchange \"Maximum relative difference between 1 big and 2 small steps\"\n{\n : :: \"Anything\"\n} 0.1\n\nREAL ahf_minchange \"Minimum relative difference between 1 big and 2 small steps\"\n{\n : :: \"Anything\"\n} 0.01\n\n\n######################################\n### Parameters related to centroid ###\n######################################\nINT horizon_to_announce_centroid \\\n \"For which horizon should we announce the centroid to driftcorrect\"\n{\n 0 :: \"don't announce the centroid\"\n 1:3 :: \"announce this horizon's centroid each time we find it\"\n} 0\n\nINT horizon_to_output_centroid \\\n \"For which horizon should we output the centroid\"\n{\n 0 :: \"don't output any centroids\"\n 1:3 :: \"output this horizon's centroid each time we find it\"\n} 0\n\n#############################\n### Parameters for output ###\n#############################\n\nBOOLEAN ahf_logfile \"Write log file?\"\n{\n} \"no\"\n\nBOOLEAN ahf_verbose \"Print messages to screen?\"\n{\n} \"yes\"\n\nBOOLEAN ahf_veryverbose \"Print messages at each iteration step to screen?\"\n{\n} \"no\"\n\nBOOLEAN ahf_guessverbose \"Print info on initial guess?\"\n{\n} \"no\"\n\nBOOLEAN ahf_1Doutput \"1D output of grid functions?\"\n{\n} \"no\"\n\nBOOLEAN ahf_2Doutput \"2D output of grid functions?\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nBOOLEAN ahf_3Doutput \"3D output of grid functions?\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nBOOLEAN ahf_HDF5output \"HDF5 output of AHFinder data?\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nBOOLEAN ahf_areamap \"Find area map?\"\n{\n} \"no\"\n\nBOOLEAN ahf_gaussout \"Output gaussian curvature of horizon?\" STEERABLE = ALWAYS\n{\n} \"yes\"\n\n\n\n###########################\n### Parameters for mask ###\n###########################\n\nKEYWORD ahf_mask \"Use mask?\" STEERABLE = ALWAYS\n{\n\"off\" :: \"Mask is off\"\n\"strong\" :: \"Mask set only for definite horizons\"\n\"weak\" :: \"Mask set for both definite and probable horizons\"\n} \"off\"\n\nKEYWORD ahf_masktype \"Type of mask\" STEERABLE = ALWAYS\n{\n\"lego\" :: \"Mask is a lego sphere\"\n\"cube\" :: \"Mask is a cube\"\n\"poly\" :: \"Mask is a polyhedra\"\n} \"cube\"\n\nREAL ahf_mask_time \"Time after which to start setting the mask\"\n{\n: :: \"Anything goes. Negative number means setting the mask as soon as possible\"\n} -1.0\n\nBOOLEAN ahf_mask_0 \"Mask for first horizon with find3?\"\n{\n} \"yes\"\n\nBOOLEAN ahf_mask_1 \"Mask for second horizon with find3?\"\n{\n} \"yes\"\n\nBOOLEAN ahf_mask_2 \"Mask for third horizon with find3?\"\n{\n} \"yes\"\n\nINT ahf_maskbuffer \"Number of grid points in mask buffer zone\" STEERABLE = ALWAYS\n{\n0 :: \"Positive please\"\n} 5\n\nREAL ahf_maskshrink \"Shrink factor for mask\" STEERABLE = ALWAYS\n{\n0.0:1.0 :: \"Must be positive and not larger than 1\"\n} 0.8\n\nREAL ahf_shiftcoeff \"Coefficient for shift\"\n{\n: :: \"Anything goes\"\n} 0.0\n\nINT interpolation_order \"Order for interpolation\" STEERABLE = ALWAYS\n{\n 1:4 :: \"Choose between first and fourth order interpolation\"\n} 2\n\nSTRING interpolation_operator \"Name of interpolation operator to use\" STEERABLE = ALWAYS\n{\n \".+\" :: \"A valid name for a registered interpolation operator\"\n} \"uniform cartesian\"\n\n###############################################\n### PARAMETERS SHARED FROM OTHER THORNS ###\n###############################################\n\n\n###############\n### FROM IO ###\n###############\n\nshares: IO\n\nUSES STRING out_dir\n\n\n#################\n### FROM GRID ###\n#################\n\nshares: grid\n\nUSES KEYWORD domain\nUSES KEYWORD quadrant_direction\nUSES KEYWORD bitant_plane\n\n\n####################\n### FROM ADMBase ###\n####################\n\nshares: admbase\n\nUSES KEYWORD metric_type\n\n######################\n### FROM ADMMacros ###\n######################\n\nshares: ADMMacros\n\nUSES INT spatial_order\n\n######################\n### FROM SpaceMask ###\n######################\n\nshares: spacemask\n\nUSES BOOLEAN use_mask\n", "schedule": "# Schedule definitions for thorn AHFinder\n#c/*@@\n#c @date July 1999\n#c @author Lars Nerger\n#c @@*/\n\n\nschedule AHFinder_SetSym at CCTK_WRAGH\n{\n LANG: Fortran\n OPTIONS: global\n} \"Set symmetries for AHFinder grid functions\"\n\nschedule AHFinder_Startup at CCTK_STARTUP\n{\n LANG: C\n OPTIONS: global\n} \"Register AHFinder as an IO Method\"\n\nschedule AHFinder_ParamCheck at PARAMCHECK\n{\n LANG: Fortran\n OPTIONS: global\n} \"Check for physical or conformal metric\"\n\nschedule AHFinder_InitOutput at CCTK_INITIAL\n{\n LANG: Fortran\n} \"Create output files, write headers\"\n\nif (ahf_active)\n{\n STORAGE: hole1_bounds,hole2_bounds,hole3_bounds,ahf_centroid\n STORAGE: out_scalars\n STORAGE: ahfinder_gaussian\n if (ahf_lmax > 0)\n {\n STORAGE: out_1d_legen, out_2d_legen\n }\n\n if (ahf_persists)\n {\n STORAGE: ahfindergrid,ahfinderexp,ahfgradient,ahfinder_gauss,find3grid\n STORAGE: ahfmask\n\n schedule ahfinder before driftcorrect at CCTK_ANALYSIS\n {\n LANG: Fortran\n STORAGE: triggergroup\n TRIGGERS: triggergroup\n } \"Call apparent horizon finder with persisting grid functions\"\n }\n else if (CCTK_Equals (ahf_mask,\"off\"))\n {\n schedule ahfinder before driftcorrect at CCTK_ANALYSIS\n {\n LANG: Fortran\n STORAGE: ahfindergrid,ahfinderexp,ahfgradient,ahfinder_gauss,find3grid\n STORAGE: ahfmask, triggergroup\n TRIGGERS:triggergroup\n } \"Call apparent horizon finder\"\n }\n else\n {\n STORAGE: ahfmask\n STORAGE: hole1_bounds,hole2_bounds,hole3_bounds\n\n schedule ahfinder before driftcorrect at CCTK_ANALYSIS\n {\n LANG: Fortran\n STORAGE: ahfindergrid,ahfinderexp,ahfgradient,ahfinder_gauss,find3grid, triggergroup\n TRIGGERS: triggergroup\n } \"Call apparent horizon finder with persisting mask\"\n }\n}\n", "src": { "AHFinder_ParamCheck.F90": "! @@\n! @file ParamCheck.F90\n! @date Mon Apr 29 17:51:25 2002\n! @author Peter Diener\n! @desc \n! Parameter checking stuff for AHFinder\n! @enddesc\n! @version $Header$\n! @@\n\n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Functions.h\"\n#include \"cctk_Parameters.h\"\n\n! CCTK_FILEVERSION(CactusEinstein_AHFinder_ParamCheck_f)\n\n! @@\n! @routine AHFinder_ParamCheck\n! @date Thu Apr 29 17:51:25 2002\n! @author Peter Diener\n! @desc \n! Scheduled routine to detect invalid parameter settings.\n! @enddesc \n! @calls \n! @calledby \n! @history \n!\n! @endhistory \n!\n! @@\n\nsubroutine AHFinder_ParamCheck(CCTK_ARGUMENTS)\n \n DECLARE_CCTK_ARGUMENTS\n DECLARE_CCTK_PARAMETERS\n DECLARE_CCTK_FUNCTIONS\n\n if ( ( .not. CCTK_EQUALS(metric_type,'physical') ) .and. &\n ( .not. CCTK_EQUALS(metric_type,'static conformal') ) ) then\n call CCTK_PARAMWARN('Unknown ADMBase::metric_type - known types are \"physical\" and \"static conformal\"')\n end if\nend subroutine AHFinder_ParamCheck\n", diff --git a/EinsteinAnalysis_AHFinderDirect.json b/EinsteinAnalysis_AHFinderDirect.json index 3dfe4082dfc45af7999f7091099abe710c2dcd99..c9a2483bf0a054071e160ab40bb246bc6d405d5e 100644 --- a/EinsteinAnalysis_AHFinderDirect.json +++ b/EinsteinAnalysis_AHFinderDirect.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fe3010fab26c98dd4cebbc0ac630d25664212e00392abe4658d58cdbacd8ed62 -size 22865858 +oid sha256:4b291b20b5d4f22e2c85a21cdf74d6e472163598b91fb8efbd7ff76d1774b047 +size 22927898 diff --git a/EinsteinAnalysis_CalcK.json b/EinsteinAnalysis_CalcK.json index cc1cff6448db5c97dbae7017603bba2877336284..d867a094cfc6c12ab620df51b784b31beee5b7f5 100644 --- a/EinsteinAnalysis_CalcK.json +++ b/EinsteinAnalysis_CalcK.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinanalysis.git", "configuration": "# Configuration definition for thorn CalcK\n# $Header$\n\nREQUIRES CartGrid3D Fortran\n", "interface": "# Interface definition for thorn CalcK\n# $Header$\n\nIMPLEMENTS: CalcK\n\nINHERITS: ADMBase StaticConformal\n\nCCTK_REAL metric_prev TYPE=gf\n{\n gxx_prev gxy_prev gxz_prev gyy_prev gyz_prev gzz_prev\n} \"ADM 3-metric, previous time\"\n\nCCTK_REAL metric_prev2 TYPE=gf\n{\n gxx_prev2 gxy_prev2 gxz_prev2 gyy_prev2 gyz_prev2 gzz_prev2\n} \"ADM 3-metric, pre-previous time\"\n\nCCTK_REAL metric_next TYPE=gf\n{\n gxx_next gxy_next gxz_next gyy_next gyz_next gzz_next\n} \"ADM 3-metric, next time\"\n\n\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC (\t\\\n\tCCTK_POINTER_TO_CONST IN cctkGH,\t\\\n\tCCTK_INT IN faces,\t\t\t\\\n\tCCTK_INT IN boundary_width,\t\t\\\n\tCCTK_INT IN table_handle,\t\t\\\n\tCCTK_STRING IN group_name,\t\t\\\n\tCCTK_STRING IN bc_name)\nREQUIRES FUNCTION Boundary_SelectGroupForBC\n\n\n\nvoid FUNCTION ConfToPhysInPlace (CCTK_INT IN nx, \\\n CCTK_INT IN ny, \\\n CCTK_INT IN nz, \\\n CCTK_REAL ARRAY IN psi, \\\n CCTK_REAL ARRAY INOUT gxx, \\\n CCTK_REAL ARRAY INOUT gxy, \\\n CCTK_REAL ARRAY INOUT gxz, \\\n CCTK_REAL ARRAY INOUT gyy, \\\n CCTK_REAL ARRAY INOUT gyz, \\\n CCTK_REAL ARRAY INOUT gzz)\nREQUIRES FUNCTION ConfToPhysInPlace\n\nvoid FUNCTION PhysToConfInPlace (CCTK_INT IN nx, \\\n CCTK_INT IN ny, \\\n CCTK_INT IN nz, \\\n CCTK_REAL ARRAY IN psi, \\\n CCTK_REAL ARRAY INOUT gxx, \\\n CCTK_REAL ARRAY INOUT gxy, \\\n CCTK_REAL ARRAY INOUT gxz, \\\n CCTK_REAL ARRAY INOUT gyy, \\\n CCTK_REAL ARRAY INOUT gyz, \\\n CCTK_REAL ARRAY INOUT gzz)\nREQUIRES FUNCTION PhysToConfInPlace\n", - "params": "", + "param": "# Parameter definitions for thorn CalcK\n# $Header$\n\nBOOLEAN copy_to_prev \"Copy ADMBase::metric to CalcK::metric_prev\"\n{\n} \"no\"\n\nBOOLEAN copy_to_prev2 \"Copy ADMBase::metric to CalcK::metric_prev2\"\n{\n} \"no\"\n\nBOOLEAN copy_to_next \"Copy ADMBase::metric to CalcK::metric_next\"\n{\n} \"no\"\n\nBOOLEAN calc_extcurv \"Calculate extrinsic curvature\"\n{\n} \"no\"\n\n\n\n\nSTRING extcurv_boundary \"Boundary condition for the extrinsic curvature\"\n{\n \".*\" :: \"must be a registered boundary condition\"\n} \"Robin\"\n\nSTRING extcurv_boundary_options \"Options for the boundry condition for the extrinsic curvature\"\n{\n \".*\" :: \"must have the options table syntax\"\n} \"decay_power=2.0\"\n\n\n\nSHARES: ADMBase\n\nUSES KEYWORD metric_type\n", "schedule": "# Schedule definitions for thorn CalcK\n# $Header$\n\nSTORAGE: metric_prev metric_prev2 metric_next\n\nif (copy_to_prev) {\n SCHEDULE CalcK_copy_to_prev AT postinitial\n {\n LANG: Fortran\n } \"Copy ADMBase::metric to CalcK::metric_prev\"\n}\n\nif (copy_to_prev2) {\n SCHEDULE CalcK_copy_to_prev2 AT postinitial\n {\n LANG: Fortran\n } \"Copy ADMBase::metric to CalcK::metric_prev2\"\n}\n\nif (copy_to_next) {\n SCHEDULE CalcK_copy_to_next AT postinitial\n {\n LANG: Fortran\n } \"Copy ADMBase::metric to CalcK::metric_next\"\n}\n\nif (calc_extcurv) {\n \n SCHEDULE CalcK AT postinitial\n {\n LANG: Fortran\n SYNC: ADMBase::curv\n } \"Calculate K_ij from gamma_ij, alpha, and beta^i\"\n \n SCHEDULE GROUP ApplyBCs as CalcK_ApplyBCs AT postinitial AFTER CalcK\n {\n } \"Apply boundary conditions\"\n \n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn CalcK\n# $Header$\n\n# Source files in this directory\nSRCS = CalcK.F90 copy.F90\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/EinsteinAnalysis_EHFinder.json b/EinsteinAnalysis_EHFinder.json index f9d3bc662d3dd60c4cd453f398a08428fcd88ef7..8e2ea6a3865d9f39be15271035e59ea5a5c764ec 100644 --- a/EinsteinAnalysis_EHFinder.json +++ b/EinsteinAnalysis_EHFinder.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinanalysis.git", "configuration": "# Configuration definition for thorn AEIThorns/EHFinder\n# $Header$\n\nREQUIRES THORNS: CartGrid3D\n", "interface": "# Interface definition for thorn EHFinder\n# $Header$\n\nimplements: ehfinder\ninherits: grid admbase coordgauge staticconformal spacemask boundary\n\nUSES INCLUDE: Boundary.h carpet.h\n\nCCTK_INT FUNCTION MoLRegisterEvolvedGroup(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\nUSES FUNCTION MoLRegisterEvolvedGroup\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, \\\n CCTK_INT IN boundary_width, \\\n CCTK_INT IN table_handle, \\\n CCTK_STRING IN var_name, \\\n CCTK_STRING IN bc_name)\n\nUSES FUNCTION Boundary_SelectGroupForBC\n\nprivate:\n\n# The scalar level set functions that defines the null surfaces.\nCCTK_REAL f[eh_number_level_sets] TYPE=GF TIMELEVELS=3\n\n# Sources for the level set functions.\nCCTK_REAL sf[eh_number_level_sets] TYPE=GF TIMELEVELS=1 tags='tensortypealias=\"Scalar\" Prolongation=\"None\"'\n\n# X-derivatives of the level set functions.\nCCTK_REAL dfx[eh_number_level_sets] TYPE=GF TIMELEVELS=1 tags='Prolongation=\"None\"'\n\n# Y-derivatives of the level set functions.\nCCTK_REAL dfy[eh_number_level_sets] TYPE=GF TIMELEVELS=1 tags='Prolongation=\"None\"'\n\n# Z-derivatives of the level set functions.\nCCTK_REAL dfz[eh_number_level_sets] TYPE=GF TIMELEVELS=1 tags='Prolongation=\"None\"'\n\n# Squares of the derivatives of the level set functions.\nCCTK_REAL dfsq[eh_number_level_sets] TYPE=GF TIMELEVELS=1 tags='tensortypealias=\"Scalar\" Prolongation=\"None\"'\n\n# Temporary variables used in pde re-initialization.\nCCTK_REAL ftmp[eh_number_level_sets] TYPE=GF TIMELEVELS=1 tags='tensortypealias=\"Scalar\" Prolongation=\"None\"'\n\n# Temporary variables for the right hand side used in pde re-initialization.\nCCTK_REAL sftmp[eh_number_level_sets] TYPE=GF TIMELEVELS=1 tags='tensortypealias=\"Scalar\" Prolongation=\"None\"'\n\n# Temporary placeholder for the level set during re-initialization.\nCCTK_REAL fbak[eh_number_level_sets] TYPE=GF TIMELEVELS=1 tags='tensortypealias=\"Scalar\" Prolongation=\"None\"'\n\nCCTK_REAL g3inv TYPE=GF TIMELEVELS=1 tags='tensortypealias=\"Scalar\" Prolongation=\"None\"'\n{\n g3xx, g3xy, g3xz, g3yy, g3yz, g3zz\n} \"The inverse of the 3-metric\"\n\n# Masks to define active cells.\nCCTK_INT eh_mask[eh_number_level_sets] TYPE=GF TIMELEVELS=1 tags='tensortypealias=\"Scalar\" Prolongation=\"None\"'\n\n# Temporary masks to define active cells.\nCCTK_INT tm_mask[eh_number_level_sets] TYPE=GF TIMELEVELS=1 tags='tensortypealias=\"Scalar\" Prolongation=\"None\"'\n\n# Temporary placeholders for the masks during re-initialization.\nCCTK_INT eh_mask_bak[eh_number_level_sets] TYPE=GF TIMELEVELS=1 tags='tensortypealias=\"Scalar\" Prolongation=\"None\"'\n\n# Control variable for while loops in re-initialization.\nCCTK_INT re_init_control TYPE=SCALAR\n \n# Counter for iterations in re-initialization.\nCCTK_INT niter_reinit TYPE=SCALAR\n \n## Control variable for while loops in re-initialization (used with PUGH).\n#CCTK_INT pugh_re_init_control TYPE=SCALAR\n# \n## Control variable for while loops in re-initialization (used with Carpet).\n#CCTK_INT carpet_re_init_control TYPE=SCALAR\n\n# Grid function used in counting surfaces.\nCCTK_REAL surface_index TYPE=GF TIMELEVELS=1 tags='tensortypealias=\"Scalar\" Prolongation=\"None\"'\n{\n sc\n}\n\n# Flag to indicate succesful location of points on a surface.\nCCTK_INT find_surface_status TYPE=SCALAR\n\nCCTK_INT levelset_integers TYPE=SCALAR\n{\n levelset_counter\n more_levelsets\n} \"Integer variables used to loop over the level sets\"\n\nCCTK_INT surface_integers TYPE=SCALAR\n{\n surface_counter\n points_counter\n more_surfaces\n more_points\n integrate_counter\n} \"Integer variables used in surface integration\"\n\nCCTK_REAL surface_reals TYPE=SCALAR\n{\n sym_factor, theta_sym_factor, phi_sym_factor\n} \"Real variables used in surface integration\"\n\nCCTK_REAL surface_arrays TYPE=ARRAY DIM=2 TIMELEVELS=1 SIZE=ntheta,nphi GHOSTSIZE=n_array_ghosts,n_array_ghosts DISTRIB=DEFAULT\n{\n ctheta, cphi, rsurf, sintheta, costheta, sinphi, cosphi,\n drdtheta, drdphi, da, gtt, gtp, gpp, weights, dltheta, dlphi,\n thetaweights, phiweights\n} \"Grid arrays for points on the surface\"\n\nCCTK_REAL surface_tmp_arrays TYPE=ARRAY DIM=2 TIMELEVELS=1 SIZE=ntheta,nphi GHOSTSIZE=n_array_ghosts,n_array_ghosts DISTRIB=DEFAULT\n{\n drsurf, interp_x, interp_y, interp_z, f_interp,\n dfdx_interp, dfdy_interp, dfdz_interp\n} \"Temporary grid arrays for finding points on the surface\"\n\nCCTK_REAL center_arrays TYPE=ARRAY DIM=1 TIMELEVELS=1 SIZE=3 DISTRIB=CONSTANT\n{\n center\n} \"The cartesian location of the center for the spherical coordinate system\"\n\nCCTK_INT surface_int_array TYPE=ARRAY DIM=2 TIMELEVELS=1 SIZE=ntheta,nphi GHOSTSIZE=n_array_ghosts,n_array_ghosts DISTRIB=DEFAULT\n{\n n_since_last_reduction\n} \"Temporary integer grid array for finding points on the surface\"\n\nCCTK_REAL interp_metric_arrays TYPE=ARRAY DIM=2 TIMELEVELS=1 SIZE=ntheta,nphi GHOSTSIZE=n_array_ghosts,n_array_ghosts DISTRIB=DEFAULT\n{\n gxxi, gxyi, gxzi, gyyi, gyzi, gzzi, psii\n} \"Arrays for holding the interpolated metric and conformal factor\"\n\nCCTK_REAL integrate_tmp_array TYPE=ARRAY DIM=2 TIMELEVELS=1 SIZE=ntheta,nphi GHOSTSIZE=n_array_ghosts,n_array_ghosts DISTRIB=DEFAULT\n{\n int_tmp\n} \"Temporary array that is used in the integration of various quantities\"\n\n# Storage for the event horizon areas. This is used to trigger output.\nCCTK_REAL eh_area[eh_number_level_sets] TYPE=ARRAY DIM=1 TIMELEVELS=1 SIZE=maximum_surface_number GHOSTSIZE=0 DISTRIB=DEFAULT\n\n# Temporary storage for the event horizon areas.\nCCTK_REAL eh_area2[eh_number_level_sets] TYPE=ARRAY DIM=1 TIMELEVELS=1 SIZE=maximum_surface_number GHOSTSIZE=0 DISTRIB=DEFAULT \n\n# Storage for the event horizon x-centroids. This is used to trigger output.\nCCTK_REAL eh_centroid_x[eh_number_level_sets] TYPE=ARRAY DIM=1 TIMELEVELS=1 SIZE=maximum_surface_number GHOSTSIZE=0 DISTRIB=DEFAULT\n\n# Storage for the event horizon y-centroids. This is used to trigger output.\nCCTK_REAL eh_centroid_y[eh_number_level_sets] TYPE=ARRAY DIM=1 TIMELEVELS=1 SIZE=maximum_surface_number GHOSTSIZE=0 DISTRIB=DEFAULT\n\n# Storage for the event horizon z-centroids. This is used to trigger output.\nCCTK_REAL eh_centroid_z[eh_number_level_sets] TYPE=ARRAY DIM=1 TIMELEVELS=1 SIZE=maximum_surface_number GHOSTSIZE=0 DISTRIB=DEFAULT\n\n# Temporary storage for the event horizon x-centroids.\nCCTK_REAL eh_centroid2_x[eh_number_level_sets] TYPE=ARRAY DIM=1 TIMELEVELS=1 SIZE=maximum_surface_number GHOSTSIZE=0 DISTRIB=DEFAULT\n\n# Temporary storage for the event horizon y-centroids.\nCCTK_REAL eh_centroid2_y[eh_number_level_sets] TYPE=ARRAY DIM=1 TIMELEVELS=1 SIZE=maximum_surface_number GHOSTSIZE=0 DISTRIB=DEFAULT\n\n# Temporary storage for the event horizon z-centroids.\nCCTK_REAL eh_centroid2_z[eh_number_level_sets] TYPE=ARRAY DIM=1 TIMELEVELS=1 SIZE=maximum_surface_number GHOSTSIZE=0 DISTRIB=DEFAULT\n\n# Storage for the event horizon equatorial circumferences.\n# This is used to trigger output.\nCCTK_REAL eh_circ_eq[eh_number_level_sets] TYPE=ARRAY DIM=1 TIMELEVELS=1 SIZE=maximum_surface_number GHOSTSIZE=0 DISTRIB=DEFAULT\n\n# Storage for the event horizon polar circumferences.\n#This is used to trigger output.\nCCTK_REAL eh_circ_pol[eh_number_level_sets] TYPE=ARRAY DIM=1 TIMELEVELS=1 SIZE=maximum_surface_number GHOSTSIZE=0 DISTRIB=DEFAULT\n\n# Temporary storage for the event horizon equatorial circumferences.\n# This is used to trigger output.\nCCTK_REAL eh_circ_eq2[eh_number_level_sets] TYPE=ARRAY DIM=1 TIMELEVELS=1 SIZE=maximum_surface_number GHOSTSIZE=0 DISTRIB=DEFAULT\n\n# Temporary storage for the event horizon polar circumferences.\n# This is used to trigger output.\nCCTK_REAL eh_circ_pol2[eh_number_level_sets] TYPE=ARRAY DIM=1 TIMELEVELS=1 SIZE=maximum_surface_number GHOSTSIZE=0 DISTRIB=DEFAULT\n\n# The X-position of the generators of the event horizons.\nCCTK_REAL xg[eh_number_level_sets] TYPE=ARRAY DIM=1 TIMELEVELS=3 SIZE=number_of_generators GHOSTSIZE=0 DISTRIB=DEFAULT\n\n# The Y-position of the generators of the event horizons.\nCCTK_REAL yg[eh_number_level_sets] TYPE=ARRAY DIM=1 TIMELEVELS=3 SIZE=number_of_generators GHOSTSIZE=0 DISTRIB=DEFAULT\n\n# The Z-position of the generators of the event horizons.\nCCTK_REAL zg[eh_number_level_sets] TYPE=ARRAY DIM=1 TIMELEVELS=3 SIZE=number_of_generators GHOSTSIZE=0 DISTRIB=DEFAULT\n\n# The right hand side of the X-position of the generators.\nCCTK_REAL dxg[eh_number_level_sets] TYPE=ARRAY DIM=1 TIMELEVELS=1 SIZE=number_of_generators GHOSTSIZE=0 DISTRIB=DEFAULT\n\n# The right hand side of the Y-position of the generators.\nCCTK_REAL dyg[eh_number_level_sets] TYPE=ARRAY DIM=1 TIMELEVELS=1 SIZE=number_of_generators GHOSTSIZE=0 DISTRIB=DEFAULT\n\n# The right hand side of the Z-position of the generators.\nCCTK_REAL dzg[eh_number_level_sets] TYPE=ARRAY DIM=1 TIMELEVELS=1 SIZE=number_of_generators GHOSTSIZE=0 DISTRIB=DEFAULT\n\n\nCCTK_REAL generator_arrays TYPE=ARRAY DIM=1 TIMELEVELS=1 SIZE=number_of_generators GHOSTSIZE=0 DISTRIB=DEFAULT\n{\n alpg, betaxg, betayg, betazg, gxxg, gxyg, gxzg, gyyg, gyzg, gzzg, dfxg, dfyg, dfzg, psig\n} \"Arrays to hold the interpolated metric, gauge and level set data\"\n\nCCTK_REAL generator_gf TYPE=GF TIMELEVELS=1 tags='Prolongation=\"None\"'\n{\n xgf, ygf, zgf\n} \"Temporary grid function used in calculating the right hand side of the generator evolution equation\"\n\n# The following is for a 2-d distribution of generators on the surface.\n\n# The X-position of the generators of the event horizons.\nCCTK_REAL xg2[eh_number_level_sets] TYPE=ARRAY DIM=2 TIMELEVELS=3 SIZE=number_of_generators_theta,number_of_generators_phi GHOSTSIZE=0,0 DISTRIB=DEFAULT\n\n# The Y-position of the generators of the event horizons.\nCCTK_REAL yg2[eh_number_level_sets] TYPE=ARRAY DIM=2 TIMELEVELS=3 SIZE=number_of_generators_theta,number_of_generators_phi GHOSTSIZE=0,0 DISTRIB=DEFAULT\n\n# The Z-position of the generators of the event horizons.\nCCTK_REAL zg2[eh_number_level_sets] TYPE=ARRAY DIM=2 TIMELEVELS=3 SIZE=number_of_generators_theta,number_of_generators_phi GHOSTSIZE=0,0 DISTRIB=DEFAULT\n\n# The right hand side of the X-position of the generators.\nCCTK_REAL dxg2[eh_number_level_sets] TYPE=ARRAY DIM=2 TIMELEVELS=1 SIZE=number_of_generators_theta,number_of_generators_phi GHOSTSIZE=0,0 DISTRIB=DEFAULT\n\n# The right hand side of the Y-position of the generators.\nCCTK_REAL dyg2[eh_number_level_sets] TYPE=ARRAY DIM=2 TIMELEVELS=1 SIZE=number_of_generators_theta,number_of_generators_phi GHOSTSIZE=0,0 DISTRIB=DEFAULT\n\n# The right hand side of the Z-position of the generators.\nCCTK_REAL dzg2[eh_number_level_sets] TYPE=ARRAY DIM=2 TIMELEVELS=1 SIZE=number_of_generators_theta,number_of_generators_phi GHOSTSIZE=0,0 DISTRIB=DEFAULT\n\n\nCCTK_REAL generator_arrays2 TYPE=ARRAY DIM=2 TIMELEVELS=1 SIZE=number_of_generators_theta,number_of_generators_phi GHOSTSIZE=0,0 DISTRIB=DEFAULT\n{\n alpg2, betaxg2, betayg2, betazg2, gxxg2, gxyg2, gxzg2, gyyg2, gyzg2, gzzg2, dfxg2, dfyg2, dfzg2, psig2\n} \"Arrays to hold the interpolated metric, gauge and level set data\"\n\nCCTK_REAL generator_gf2 TYPE=GF TIMELEVELS=1 tags='Prolongation=\"None\"'\n{\n xgf2, ygf2, zgf2\n} \"Temporary grid function used in calculating the right hand side of the generator evolution equation\"\n\n## Counter for re-initialization iterations.\n#CCTK_INT niter TYPE=SCALAR\n#\n## Counter for re-initialization iterations.\n#CCTK_INT niter2 TYPE=SCALAR\n", - "params": "", + "param": "# Parameter definitions for thorn EHFinder\n# $Header$\n\nprivate:\n\nINT eh_number_level_sets \"How many level set functions should we evolve\"\n{\n 1:10 :: \"Between 1 and 10\"\n} 1\n \nKEYWORD eh_metric_type \"Do we use numerical or analytic metric information\"\n{\n \"numerical\" :: \"Read in metric from numerical data\"\n \"analytic\" :: \"Use external analytic metric\"\n} \"numerical\"\n \nKEYWORD eh_lapse_type \"Do we use numerical or analytic metric information\"\n{\n \"numerical\" :: \"Read in metric from numerical data\"\n \"analytic\" :: \"Use external analytic metric\"\n} \"numerical\"\n\nKEYWORD eh_shift_type \"Do we use numerical or analytic metric information\"\n{\n \"numerical\" :: \"Read in metric from numerical data\"\n \"analytic\" :: \"Use external analytic metric\"\n} \"numerical\"\n\nKEYWORD file_type \"Are the timesteps in separate files or in one file?\"\n{\n \"one_file\" :: \"All timesteps are in the same file\"\n \"sep_time_files\" :: \"Timesteps are in separete files\"\n} \"one_file\"\n\nBOOLEAN read_conformal_factor_once \"Should the conformal factor only be read once\"\n{\n} \"yes\"\n\nBOOLEAN cheat \"Should we cheat and evolve using the last data set for a while?\"\n{\n} \"no\"\n\nCCTK_INT cheat_iterations \"For how many iterations should we cheat\"\n{\n0:* :: \"If you really want to cheat this should be positive\"\n} 0\n\nKEYWORD initial_f[10] \"Initial surface choice\"\n{\n \"sphere\" :: \"spherical surface\"\n \"ellipsoid\" :: \"ellipsoidal surface\"\n \"cassini\" :: \"ovaloid of cassini\"\n} \"sphere\"\n\nREAL initial_rad[10] \"Initial radius of surface\"\n{\n0.0: :: \"Positive please\"\n} 1.0\n\nREAL initial_a[10] \"Initial a coefficient of ellipsoid\"\n{\n0.0: :: \"Positive please\"\n} 1.0\n\nREAL initial_b[10] \"Initial b coefficient of ellipsoid\"\n{\n0.0: :: \"Positive please\"\n} 1.0\n\nREAL initial_c[10] \"Initial c coefficient of ellipsoid\"\n{\n0.0: :: \"Positive please\"\n} 1.0\n\nREAL rotation_alpha[10] \"Rotation angle around z-axis of ellipsoid\"\n{\n*:* :: \"Everything is possible\"\n} 0.0\n\nREAL rotation_beta[10] \"Rotation angle around y-axis of ellipsoid\"\n{\n*:* :: \"Everything is possible\"\n} 0.0\n\nREAL rotation_gamma[10] \"Rotation angle around x-axis of ellipsoid\"\n{\n*:* :: \"Everything is possible\"\n} 0.0\n\nREAL translate_x[10] \"Translation in x-direction\"\n{\n*:* :: \"Everything is possible\"\n} 0.0\n\nREAL translate_y[10] \"Translation in y-direction\"\n{\n*:* :: \"Everything is possible\"\n} 0.0\n\nREAL translate_z[10] \"Translation in z-direction\"\n{\n*:* :: \"Everything is possible\"\n} 0.0\n\nREAL cas_a[10] \"Initial a coefficient of ovaloid of cassini\"\n{\n: :: \"Any number (negative and positive are equivalent)\"\n} 2.0\n\nREAL cas_b[10] \"Initial b coefficient of ovaloid of cassini\"\n{\n: :: \"Any number (negative and positive are equivalent)\"\n} 2.05\n\nREAL shell_width \"Width of the evolution region in units of the grid spacing\"\n{\n0.0: :: \"Positive please\"\n} 7.0\n\nBOOLEAN use_inner_excision \"Should inner excision be used?\"\n{\n} \"yes\"\n\nBOOLEAN use_outer_excision \"Should outer excision be used?\"\n{\n} \"yes\"\n\nKEYWORD mode \"Mode of operation\"\n{\n \"normal\" :: \"Find event horizons\"\n \"analysis\" :: \"Provide storage for f without evolving\"\n \"generator\" :: \"Provide storage for f and initialize without evolving\"\n} \"normal\"\n\nKEYWORD upwind_type \"Type of upwinding used in evolving the ehfinder equations\"\n{\n \"intrinsic\" :: \"Use the values of f itself to determine upwind direction\"\n \"shift\" :: \"Use the shift to determine upwind direction\"\n \"characteristic\" :: \"Use characteristic information\"\n} \"characteristic\"\n\nKEYWORD surface_direction \"Should we track outward or inward moving surfaces\"\n{\n \"outward\" :: \"Track outward moving surfaces. Use for event horizon finding.\"\n \"inward\" :: \"Track inward moving surfaces.\"\n} \"outward\"\n\nBOOLEAN re_init_verbose \"Should re-initialization be verbose?\"\n{\n} \"no\"\n\nBOOLEAN re_init_undo \"Should re-initialization be undone at pinch-off\"\n{\n} \"yes\"\n\nKEYWORD re_init_int_method \"Integration method used in re-initialization\"\n{\n \"euler\" :: \"Standard euler scheme\"\n \"rk2\" :: \"Second order Runge-Kutta scheme\"\n} \"euler\"\n\nINT re_init_max_iter \"maximum number of iterations in the re-initialization\"\n{\n0: :: \"Positive please\"\n} 800\n\nKEYWORD pde_differences \"Type of finite diffencing used in pde re-initialization\"\n{\n \"centered\" :: \"Use 2nd order centered differences except at the boundaries\"\n \"upwind\" :: \"Use 1st order upwinded differences everywhere\"\n \"upwind2\" :: \"Use 2nd order upwinded differences everywhere\"\n} \"upwind2\"\n\nINT re_initialize_every \"How often to re-initialize the level set function\"\n{\n0: :: \"If 0 don't re-initialize\"\n} 10\n\nINT last_iteration_number \"The starting iteration number for the EH_Finder (last iteration number of the simulation)\"\n{\n0: :: \"Positive please\"\n} 0\n\nINT saved_iteration_every \"How often was the numerical data saved\"\n{\n1: :: \"Positive please\"\n} 1\n\nINT ntheta \"Number of points in the theta direction when finding points on the surface\"\n{\n1:*:2 :: \"Positive and odd please\"\n} 51\n\nINT nphi \"Number of points in the phi direction when finding points on the surface\"\n{\n1:*:2 :: \"Positive and odd please\"\n} 51\n\nINT n_array_ghosts \"Number of ghost points in the surface grid array\"\n{\n1: :: \"Positive please\"\n} 1\n\nINT maximum_surface_number \"The maximum number of surfaces expected in the data\"\n{\n 1:* :: \"Positive please\"\n} 1\n\nBOOLEAN use_user_center \"Should the user prescribed center be used\"\n{\n} \"no\"\n\nCCTK_REAL center_x \"The x-coordinate of the center\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nCCTK_REAL center_y \"The y-coordinate of the center\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nCCTK_REAL center_z \"The z-coordinate of the center\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nBOOLEAN evolve_generators \"Should the generators be evolved\"\n{\n} \"no\"\n\nCCTK_INT number_of_generators \"How many generators should be evolved\"\n{\n 1:* :: \"Postive please\"\n} 1\n\nCCTK_INT number_of_generators_theta \"How many generators in the theta direction\"\n{\n 1:* :: \"Positive please\"\n} 1\n\nCCTK_INT number_of_generators_phi \"How many generators in the phi direction\"\n{\n 1:* :: \"Positive please\"\n} 1\n\nKEYWORD generator_distribution \"What initial distribution should be used\"\n{\n \"line\"\t:: \"Put the generators on a line in the xz-plane\"\n \"2D array\" :: \"Put the generators on a surface with spherical topology\"\n} \"line\"\n\nSTRING surface_interpolator \"What interpolator should be used to locate the surface\"\n{\n \".+\" :: \"A valid interpolator name\"\n} \"Hermite polynomial interpolation\"\n\nCCTK_INT surface_interpolation_order \"What order should be used for the surface interpoation\"\n{\n 1:* :: \"A valid positive interpolation order\"\n} 2\n\nSTRING area_interpolator \"What interpolator should be used for the area\"\n{\n \".+\" :: \"A valid interpolator name\"\n} \"Lagrange polynomial interpolation\"\n\nCCTK_INT area_interpolation_order \"What order should be used for the area interpoation\"\n{\n 1:* :: \"A valid positive interpolation order\"\n} 3\n\nKEYWORD area_calculation_method \"How should the areas be calculated\"\n{\n \"standard\" :: \"Using a angular coordinate system on the surface\"\n \"isosurface\" :: \"Using an isosurface triangulation\"\n} \"standard\"\n\nSTRING generator_interpolator \"What interpolator should be used for the generators\"\n{\n \".+\" :: \"A valid interpolator name\"\n} \"Lagrange polynomial interpolation\"\n\nCCTK_INT generator_interpolation_order \"What order should be used for the generator interpoation\"\n{\n 1:* :: \"A valid positive interpolation order\"\n} 3\n\nKEYWORD generator_tracking_method \"What method should be used for tracking the generators\"\n{\n \"interpolate_before\" :: \"Interpolate first, then calculate\"\n \"interpolate_after\" :: \"Calculate first, then interpolate\"\n} \"interpolate_before\"\n\nshares: grid\n\nUSES KEYWORD domain\nUSES KEYWORD quadrant_direction\nUSES KEYWORD bitant_plane\n\nshares: admbase\n\nUSES KEYWORD metric_type\n\nEXTENDS KEYWORD initial_data\n{\n \"read from file\" :: \"Read in metric from a file\"\n}\n\nEXTENDS KEYWORD initial_lapse\n{\n \"read from file\" :: \"Read in lapse from a file\"\n}\n\nEXTENDS KEYWORD initial_shift\n{\n \"read from file\" :: \"Read in shift from a file\"\n}\n\nshares: spacemask\n\nUSES BOOLEAN use_mask\n\nshares: MethodOfLines\n\nUSES CCTK_INT MoL_Num_Evolved_Vars\nUSES CCTK_INT MoL_Max_Evolved_Array_Size\nUSES CCTK_INT MoL_Num_ArrayEvolved_Vars\n\nrestricted:\n\nCCTK_INT EHFinder_MaxNumEvolvedVars \"The maximum number of evolved variables used by EHFinder\" ACCUMULATOR-BASE=MethodOfLines::MoL_Num_Evolved_Vars\n{\n 1:10\t\t:: \"Only evolve the level set functions\"\n} 1\n\nCCTK_INT EHFinder_Max_Evolved_Array_Size \"The maximum size of evolved grid arrays used by EHFinder\" ACCUMULATOR-BASE=MethodOfLines::MoL_Max_Evolved_Array_Size\n{\n 1:*\t\t:: \"The size of the generator grid arrays\"\n} 1\n\nCCTK_INT EHFinder_Num_ArrayEvolved_Vars \"The maximum number of evolved grid arrays used by EHFinder\" ACCUMULATOR-BASE=MethodOfLines::MoL_Num_ArrayEvolved_Vars\n{\n 0:30\t\t:: \"Should be exactly zero or a multiple of three\"\n} 3\n", "schedule": "# Schedule definitions for thorn EHFinder\n# $Header$\n\nif (CCTK_Equals(mode,\"analysis\"))\n{\n STORAGE: f[1]\n}\nelse\n{\n STORAGE: f[2]\n STORAGE: sf\n STORAGE: ftmp\n STORAGE: sftmp\n STORAGE: eh_mask\n STORAGE: surface_arrays\n STORAGE: eh_area2, eh_centroid2_x, eh_centroid2_y, eh_centroid2_z\n STORAGE: eh_circ_eq2, eh_circ_pol2\n STORAGE: find_surface_status\n STORAGE: levelset_integers\n STORAGE: center_arrays\n if ( evolve_generators )\n {\n if (CCTK_Equals(generator_distribution,\"line\"))\n {\n STORAGE: xg[2], yg[2], zg[2]\n STORAGE: dxg, dyg, dzg\n }\n if (CCTK_Equals(generator_distribution,\"2D array\"))\n {\n STORAGE: xg2[2], yg2[2], zg2[2]\n STORAGE: dxg2, dyg2, dzg2\n }\n }\n}\n\n#if (CCTK_Equals(generator_tracking_method,\"interpolate_after\"))\n#{\n# STORAGE: generator_gf\n#}\n\n# Check for metric_state\n\n#if (!CCTK_EQUALS(mode,\"analysis\"))\n#{\n\nschedule EHFinder_ParamCheck at CCTK_PARAMCHECK\n{\n LANG: Fortran\n} \"Check parameters\"\n\n\nif (CCTK_Equals(initial_data,\"read from file\"))\n{\n schedule EHFinder_Read_Metric at CCTK_INITIAL\n {\n LANG: Fortran\n } \"Read in metric from file\"\n}\n\nif (CCTK_Equals(initial_lapse,\"read from file\"))\n{\n schedule EHFinder_Read_Lapse at CCTK_INITIAL\n {\n LANG: Fortran\n } \"Read in lapse from file\"\n}\n\nif (CCTK_Equals(initial_shift,\"read from file\"))\n{\n schedule EHFinder_Read_Shift at CCTK_INITIAL\n {\n LANG: Fortran\n } \"Read in shift from file\"\n}\n\nif (CCTK_Equals(metric_type,\"static conformal\") && CCTK_Equals(eh_metric_type,\"numerical\"))\n{\n schedule EHFinder_Read_Conformal at CCTK_INITIAL\n {\n LANG: Fortran\n } \"Read in conformal factor from file\"\n}\n\nif (use_mask)\n{\n schedule EHFinder_Read_Mask at CCTK_INITIAL after MaskOne\n {\n LANG: Fortran\n } \"Read in excision mask from file\"\n}\n\n# Set up the initial level set function\n\nschedule EHFinder_Init at CCTK_INITIAL\n{\n LANG: Fortran\n SYNC: f\n} \"Setup local variables\"\n\nschedule EHFinder_Init_F at CCTK_INITIAL\n{\n LANG: Fortran\n SYNC: f\n} \"Setup the initial surface\"\n\nschedule EHFinder_InitWeights at CCTK_INITIAL\n{\n LANG: Fortran\n} \"Setup weights for Simpson integration\"\n\nschedule EHFinder_Init at CCTK_POST_RECOVER_VARIABLES\n{\n LANG: Fortran\n SYNC: f\n} \"Setup local variables\"\n\nschedule EHFinder_InitWeights at CCTK_POST_RECOVER_VARIABLES\n{\n LANG: Fortran\n} \"Setup weights for Simpson integration\"\n\nif (CCTK_EQUALS(area_calculation_method,\"standard\"))\n{\n schedule GROUP EHFinder_Level_Sets at CCTK_ANALYSIS\n {\n TRIGGERS: eh_area, eh_centroid_x, eh_centroid_y, eh_centroid_z\n TRIGGERS: eh_circ_eq, eh_circ_pol\n } \"Loop over the level set functions\"\n \n schedule EHFinder_LevelSetLoopInit in EHFinder_Level_Sets\n {\n LANG: Fortran\n TRIGGERS: eh_area, eh_centroid_x, eh_centroid_y, eh_centroid_z\n TRIGGERS: eh_circ_eq, eh_circ_pol\n } \"Initialize the loop counter over the level set functions\"\n \n schedule GROUP EHFinder_Surfaces in EHFinder_Level_Sets while ehfinder::more_levelsets\n {\n STORAGE: surface_integers\n STORAGE: surface_reals\n STORAGE: surface_index\n TRIGGERS: eh_area, eh_centroid_x, eh_centroid_y, eh_centroid_z\n TRIGGERS: eh_circ_eq, eh_circ_pol\n } \"Count the number of surfaces and integrate over them\"\n \n \n schedule EHFinder_CountSurfacesInit in EHFinder_Surfaces\n {\n LANG: Fortran\n TRIGGERS: eh_area, eh_centroid_x, eh_centroid_y, eh_centroid_z\n TRIGGERS: eh_circ_eq, eh_circ_pol\n } \"Initialize while loop control\"\n \n schedule GROUP EHFinder_CountMarkSurfaces in EHFinder_Surfaces after EHFinder_CountSurfacesInit WHILE ehfinder::more_surfaces\n {\n TRIGGERS: eh_area, eh_centroid_x, eh_centroid_y, eh_centroid_z\n TRIGGERS: eh_circ_eq, eh_circ_pol\n } \"Counting and mark surfaces\"\n \n schedule EHFinder_CountSurfaces in EHFinder_CountMarkSurfaces\n {\n LANG: Fortran\n TRIGGERS: eh_area, eh_centroid_x, eh_centroid_y, eh_centroid_z\n TRIGGERS: eh_circ_eq, eh_circ_pol\n SYNC: surface_index\n } \"Check if there are more surfaces\"\n \n schedule GROUP EHFinder_MarkPoints in EHFinder_CountMarkSurfaces after EHFinder_CountSurfaces WHILE ehfinder::more_points\n {\n TRIGGERS: eh_area, eh_centroid_x, eh_centroid_y, eh_centroid_z\n TRIGGERS: eh_circ_eq, eh_circ_pol\n } \"Marking surfaces\"\n \n schedule EHFinder_MarkSurfaces in EHFinder_MarkPoints\n {\n LANG: Fortran\n TRIGGERS: eh_area, eh_centroid_x, eh_centroid_y, eh_centroid_z\n TRIGGERS: eh_circ_eq, eh_circ_pol\n SYNC: surface_index\n } \"Mark points inside the current surface\"\n \n schedule EHFinder_ApplySymSC in EHFinder_MarkPoints after EHFinder_MarkSurfaces\n {\n LANG: Fortran\n TRIGGERS: eh_area, eh_centroid_x, eh_centroid_y, eh_centroid_z\n TRIGGERS: eh_circ_eq, eh_circ_pol\n } \"Select the surface counter grid function for boundary conditions\"\n \n schedule GROUP ApplyBCs as EHFinderSC_ApplyBSc in EHFinder_MarkPoints after EHFinder_ApplySymSC\n {\n } \"Apply boundary conditions (symmetries)\"\n \n schedule EHFinder_InfoSurfaces in EHFinder_Surfaces after EHFinder_CountMarkSurfaces\n {\n LANG: Fortran\n TRIGGERS: eh_area, eh_centroid_x, eh_centroid_y, eh_centroid_z\n TRIGGERS: eh_circ_eq, eh_circ_pol\n } \"Output info about found surfaces\"\n \n schedule group EHFinder_Integration in EHFinder_Surfaces after EHFinder_InfoSurfaces while ehfinder::integrate_counter\n {\n TRIGGERS: eh_area, eh_centroid_x, eh_centroid_y, eh_centroid_z\n TRIGGERS: eh_circ_eq, eh_circ_pol\n } \"Find and integrate over surfaces\"\n \n schedule EHFinder_FindSurface in EHFinder_Integration\n {\n LANG: Fortran\n STORAGE: surface_tmp_arrays, surface_int_array\n TRIGGERS: eh_area, eh_centroid_x, eh_centroid_y, eh_centroid_z\n TRIGGERS: eh_circ_eq, eh_circ_pol\n SYNC: surface_arrays\n } \"Find Surface\"\n \n schedule EHFinder_FindSurfaceElement in EHFinder_Integration after EHFinder_FindSurface\n {\n LANG: Fortran\n STORAGE: surface_tmp_arrays, interp_metric_arrays \n TRIGGERS: eh_area, eh_centroid_x, eh_centroid_y, eh_centroid_z\n TRIGGERS: eh_circ_eq, eh_circ_pol\n } \"Find Surface Area Element\"\n \n schedule EHFinder_IntegrateArea in EHFinder_Integration after EHFinder_FindSurfaceElement\n {\n LANG: Fortran\n STORAGE: integrate_tmp_array \n TRIGGERS: eh_area, eh_centroid_x, eh_centroid_y, eh_centroid_z\n TRIGGERS: eh_circ_eq, eh_circ_pol\n } \"Calculate area integrals\"\n \n schedule EHFinder_IntegrateCentroid in EHFinder_Integration after EHFinder_IntegrateArea\n {\n LANG: Fortran\n STORAGE: surface_tmp_arrays, integrate_tmp_array\n TRIGGERS: eh_centroid_x, eh_centroid_y, eh_centroid_z\n } \"Calculate centroid integrals\"\n \n schedule EHFinder_IntegrateCircumference in EHFinder_Integration after EHFinder_IntegrateArea\n {\n LANG: Fortran\n STORAGE: surface_tmp_arrays, integrate_tmp_array\n TRIGGERS: eh_circ_eq, eh_circ_pol\n } \"Calculate circumferences\"\n \n schedule EHFinder_UpdateCounter in EHFinder_Surfaces\n {\n LANG: Fortran\n TRIGGERS: eh_area, eh_centroid_x, eh_centroid_y, eh_centroid_z\n TRIGGERS: eh_circ_eq, eh_circ_pol\n } \"Update the loop variables\"\n \n schedule EHFinder_CopyArea at CCTK_ANALYSIS after EHFinder_Level_Sets\n {\n LANG: Fortran\n STORAGE: eh_area\n TRIGGERS: eh_area\n } \"Copy areas to output variable\"\n \n schedule EHFinder_CopyCentroid at CCTK_ANALYSIS after EHFinder_Level_Sets\n {\n LANG: Fortran\n STORAGE: eh_centroid_x, eh_centroid_y, eh_centroid_z\n TRIGGERS: eh_centroid_x, eh_centroid_y, eh_centroid_z\n } \"Copy centroids to output variable\"\n \n schedule EHFinder_CopyCircumference at CCTK_ANALYSIS after EHFinder_Level_Sets\n {\n LANG: Fortran\n STORAGE: eh_circ_eq, eh_circ_pol\n TRIGGERS: eh_circ_eq, eh_circ_pol\n } \"Copy circumferences to output variable\"\n}\n\nif (CCTK_EQUALS(area_calculation_method,\"isosurface\"))\n{\n schedule GROUP EHFinder_IsoSurfaceArea at CCTK_ANALYSIS\n {\n TRIGGERS: eh_area\n } \"Find isosurfaces and calculate the area\"\n\n schedule EHFinder_IsoSurface in EHFinder_IsoSurfaceArea\n {\n LANG: Fortran\n STORAGE: eh_area\n TRIGGERS: eh_area\n } \"Find isosurfaces\"\n}\n\n# Read in the data used in reconstructing the 4-metric if necessary\n\nif (CCTK_Equals(eh_metric_type,\"numerical\"))\n{\n schedule EHFinder_Read_Metric at CCTK_PRESTEP\n {\n LANG: Fortran\n } \"Read in metric from file\"\n}\n\nif (CCTK_Equals(eh_lapse_type,\"numerical\"))\n{\n schedule EHFinder_Read_Lapse at CCTK_PRESTEP\n {\n LANG: Fortran\n } \"Read in lapse from file\"\n}\n\nif (CCTK_Equals(eh_shift_type,\"numerical\"))\n{\n schedule EHFinder_Read_Shift at CCTK_PRESTEP\n {\n LANG: Fortran\n } \"Read in shift from file\"\n}\n\nif (CCTK_Equals(metric_type,\"static conformal\") && CCTK_Equals(eh_metric_type,\"numerical\") && !read_conformal_factor_once)\n{\n schedule EHFinder_Read_Conformal at CCTK_PRESTEP\n {\n LANG: Fortran\n } \"Read in conformal factor from file\"\n}\n\nif (use_mask)\n{\n schedule EHFinder_Read_Mask at CCTK_PRESTEP\n {\n LANG: Fortran\n } \"Read in excision mask from file\"\n}\n\n# Register the level_set function and its right hand side source with MoL\n\nschedule EHFinder_MoLRegister in MoL_Register\n{\n LANG: Fortran\n} \"Register evolution variables\"\n\n\n# Register the symmetries for the level set function\n\nschedule EHFinder_SetSym at CCTK_BASEGRID\n{\n LANG: Fortran\n STORAGE: sftmp\n} \"Register the symmetries for the level set function\"\n\n\n# Set the initial eh_mask at the physical outer boundaries.\n\nschedule EHFinder_MaskInit at CCTK_POSTINITIAL after EHFinder_Init\n{\n LANG: Fortran\n} \"Setup the initial mask\"\n\n\n# Schedule the normal mode of operation\n\nif (CCTK_Equals(mode,\"normal\"))\n{\n\n # Schedule the calculation of the source terms\n\n schedule EHFinder_Sources in MoL_CalcRHS\n {\n LANG: Fortran\n STORAGE: dfx\n STORAGE: dfy\n STORAGE: dfz\n STORAGE: g3inv\n } \"Calculate the source terms\"\n\n if ( evolve_generators)\n {\n if (CCTK_Equals(generator_tracking_method,\"interpolate_before\"))\n {\n if (CCTK_Equals(generator_distribution,\"line\"))\n {\n schedule EHFinder_Generator_Sources in MoL_CalcRHS\n {\n LANG: Fortran\n STORAGE: generator_arrays\n } \"Calculate the source terms for the generator evolution\"\n }\n if (CCTK_Equals(generator_distribution,\"2D array\"))\n {\n schedule EHFinder_Generator_Sources_2D in MoL_CalcRHS\n {\n LANG: Fortran\n STORAGE: generator_arrays2\n } \"Calculate the source terms for the 2D generator evolution\"\n }\n }\n if (CCTK_Equals(generator_tracking_method,\"interpolate_after\"))\n {\n schedule EHFinder_Generator_Sources2 in MoL_CalcRHS after EHFinder_Sources\n {\n LANG: Fortran\n STORAGE: generator_arrays\n } \"Calculate the source terms2 for the generator evolution\"\n }\n }\n\n schedule GROUP EHFinder_PostStep in MoL_PostStep\n {\n } \"Schedule group for symmetry boundaries and syncing\"\n\n\n schedule EHFinder_ApplySymF in EHFinder_PostStep\n {\n LANG: Fortran\n SYNC: f\n SYNC: sftmp\n } \"Select f for boundary conditions\"\n\n schedule GROUP ApplyBCs as EHFinderF_ApplyBCs in EHFinder_PostStep after EHFinder_ApplySymF\n {\n } \"Apply boundary conditions (Symmetries)\"\n\n\n # Set up the schedule group for re-initialization\n\n schedule GROUP EHFinder_ReInitialize at CCTK_POSTSTEP\n {\n STORAGE: fbak\n STORAGE: eh_mask_bak\n# STORAGE: pugh_re_init_control, carpet_re_init_control\n STORAGE: re_init_control\n STORAGE: niter_reinit\n } \"Re-initialize the level set function\"\n\n # Schedule the control routine, that initializes *_re_init_control if it\n # is time for re-initialization.\n\n schedule GROUP EHFinder_PreReInitialize\n {\n } \"Routines for re-initialization control\"\n\n schedule EHFinder_ReInitializeControl in EHFinder_PreReInitialize\n {\n LANG: Fortran\n OPTIONS: global\n } \"Initializes the re-initialization control\"\n\n schedule EHFinder_ReInitializeInitialize in EHFinder_PreReInitialize after EHFinder_ReInitializeControl\n {\n LANG: Fortran\n } \"Initializes variables for ReInitialization\"\n\n if (CCTK_Equals(re_init_int_method,\"euler\"))\n {\n \n schedule GROUP Euler_ReInitializeEvolve\n {\n } \"Schedule group for Euler re-initialization evolution\"\n\n # Schedule the routine that does one Euler step \n\n schedule EHFinder_ReInitializeEuler in Euler_ReInitializeEvolve\n {\n LANG: Fortran\n STORAGE: dfx\n STORAGE: dfy\n STORAGE: dfz\n STORAGE: dfsq\n } \"Euler scheme\"\n\n # Then synchronize the level set and apply symmetry boundary conditions.\n \n schedule EHFinder_ApplySymFSFTMP in Euler_ReInitializeEvolve after EHFinder_ReInitializeEuler\n {\n LANG: Fortran\n SYNC: f\n SYNC: sftmp\n } \"Select f for boundary conditions\"\n \n schedule GROUP ApplyBCs as EHFinderF_ApplyBCs in Euler_ReInitializeEvolve after EHFinder_ApplySymF\n {\n } \"Apply boundary conditions (symmetries)\"\n\n schedule GROUP Euler_PostStep\n {\n } \"Schedule group for Euler re-initialization post step\"\n\n schedule EHFinder_ReInitializePostStep in Euler_PostStep \n {\n LANG: Fortran\n OPTIONS: global \n } \"Check if the re-initialization is done\"\n\n if (CCTK_IsThornActive(\"PUGH\" ))\n {\n schedule GROUP EHFinder_PreReInitialize as EHFinder_PreReInitializePugh in EHFinder_ReInitialize\n {\n } \"Pugh version of the pre-re-initialization routines\"\n\n # Set up the schedule group for euler re-initialization using \n # *_re_init_control to control the exit from the while loop.\n\n# schedule GROUP Euler_ReInitialize in EHFinder_ReInitialize AFTER EHFinder_PreReInitializePUGH WHILE ehfinder::pugh_re_init_control\n schedule GROUP Euler_ReInitialize in EHFinder_ReInitialize AFTER EHFinder_PreReInitializePUGH WHILE ehfinder::re_init_control\n {\n } \"Schedule group for Euler re-initialization\"\n \n schedule GROUP Euler_ReInitializeEvolve as Euler_ReInitializeEvolvePUGH in Euler_ReInitialize \n {\n } \"Schedule group for Euler re-initialization evolution with PUGH\"\n\n schedule GROUP Euler_PostStep as Euler_PostStepPUGH in Euler_ReInitialize after Euler_ReInitializeEvolve\n {\n } \"Schedule group for Euler re-initialization post step\"\n\n schedule EHFinder_ReInitialize_Check in EHFinder_ReInitialize AFTER Euler_ReInitialize\n {\n LANG: Fortran\n } \"Check to see if re-initialization has to be undone\"\n }\n\n if (CCTK_IsThornActive(\"Carpet\"))\n {\n schedule EHFinder_PreReInitialize_Carpet in EHFinder_ReInitialize\n {\n LANG: C\n OPTIONS: level\n } \"Carpet version of the pre-reinitialization routines\"\n\n# schedule EHFinder_ReInitialize_Wrapper in EHFinder_ReInitialize after EHFinder_PreReInitialize_Carpet WHILE ehfinder::carpet_re_init_control\n schedule EHFinder_ReInitialize_Wrapper in EHFinder_ReInitialize after EHFinder_PreReInitialize_Carpet WHILE ehfinder::re_init_control\n {\n LANG: C\n# OPTIONS: global\n OPTIONS: level\n } \"Wrapper routine for Euler re-initialization for Carpet\"\n } \n\n }\n\n# schedule GROUP Euler_RotateTimeLevels\n# {\n# } \"Schedule group for rotating timelevels\"\n#\n# schedule EHFinder_RotateTimeLevels in Euler_RotateTimeLevels\n# {\n# LANG: Fortran\n# } \"Rotate timelevels in Euler re-initialization\"\n\n if (CCTK_Equals(re_init_int_method,\"rk2\"))\n {\n\n # Set up the schedule group for rk2 re-initialization using \n # re_init_control to control the exit from the while loop.\n\n schedule GROUP RK2_ReInitialize in EHFinder_ReInitialize AFTER EHFinder_ReInitializeControl WHILE ehfinder::re_init_control\n {\n } \"Schedule group for RK2 re-initialization\"\n\n # Schedule the routine that does the first RK2 step\n\n schedule EHFinder_ReInitializeRK2_1 in RK2_ReInitialize \n {\n LANG: Fortran\n STORAGE: dfx\n STORAGE: dfy\n STORAGE: dfz\n STORAGE: dfsq\n } \"RK2 scheme step 1\"\n\n # Then synchronize the level set and apply symmetry boundary conditions.\n \n schedule EHFinder_ApplySymF AS Sym_RK2_1 in RK2_ReInitialize after EHFinder_ReInitializeRK2_1\n {\n LANG: Fortran\n SYNC: f\n } \"Select f for boundary conditions\"\n\n schedule GROUP ApplyBCs as EHFinderRK2_1_ApplyBCs in RK2_ReInitialize after Sym_RK2_1\n {\n } \"Apply boundary conditions (symmetries)\"\n\n # Schedule the routine that does the second RK2 step\n\n schedule EHFinder_ReInitializeRK2_2 in RK2_ReInitialize after Sym_RK2_1\n {\n LANG: Fortran\n STORAGE: dfx\n STORAGE: dfy\n STORAGE: dfz\n STORAGE: dfsq\n } \"RK2 scheme step 2\"\n\n # Then synchronize the level set and apply symmetry boundary conditions.\n \n schedule EHFinder_ApplySymF AS Sym_RK2_2 in RK2_ReInitialize after EHFinder_ReInitializeRK2_2\n {\n LANG: Fortran\n SYNC: f\n } \"Select f for boundary conditions\"\n\n schedule GROUP ApplyBCs as EHFinderRK2_2_ApplyBCs in RK2_ReInitialize after Sym_RK2_2\n {\n } \"Apply boundary conditions (symmetries)\"\n }\n\n # Schedule modifications of the mask in group EHFinder_SetMask\n\n schedule GROUP EHFinder_SetMask at CCTK_POSTSTEP after EHFinder_ReInitialize\n {\n STORAGE: tm_mask\n } \"Set the mask\"\n\n # First schedule the routine that adds or removes cells from the mask\n\n schedule EHFinder_SetMask1 in EHFinder_SetMask\n {\n LANG: Fortran\n SYNC: f\n SYNC: eh_mask, tm_mask\n } \"Start modifying the mask\"\n\n # Then apply the symmetry boundary conditions.\n\n schedule EHFinder_ApplySymAll in EHFinder_SetMask after EHFinder_SetMask1\n {\n LANG: Fortran\n } \"Select both f and eh_mask for boundary conditions\"\n\n schedule GROUP ApplyBCs as EHFinderAll_ApplyBCs in EHFinder_SetMask after EHFinder_ApplySymAll\n {\n } \"Apply boundary conditions (symmetries)\"\n # Finally locate the mask boundary and add values to distinguish different\n # directions.\n\n schedule EHFinder_SetMask2 in EHFinder_SetMask after EHFinderAll_ApplyBCs\n {\n LANG: Fortran\n SYNC: eh_mask, tm_mask\n } \"Find excision boundaries\"\n\n schedule EHFinder_ApplySymMask as ASM1 in EHFinder_SetMask after EHFinder_SetMask2\n {\n LANG: Fortran\n } \"Select eh_mask for boundary conditions\"\n\n schedule GROUP ApplyBCs as EHFinderMask1_ApplyBCs in EHFinder_SetMask after ASM1\n {\n } \"Apply boundary conditions (symmetries)\"\n\n schedule EHFinder_SetMask3 in EHFinder_SetMask after EHFinder_ASM1\n {\n LANG: Fortran\n SYNC: eh_mask, tm_mask\n } \"Check to see if the mask needs to be modified\"\n\n schedule EHFinder_ApplySymMask as ASM2 in EHFinder_SetMask after EHFinder_SetMask3\n {\n LANG: Fortran\n } \"Select eh_mask for boundary conditions\"\n \n schedule GROUP ApplyBCs as EHFinderMask2_ApplyBCs in EHFinder_SetMask after ASM2\n {\n } \"Apply boundary conditions (symmetries)\"\n\n schedule EHFinder_SetMask2 as SM2 in EHFinder_SetMask after ASM2\n {\n LANG: Fortran\n SYNC: eh_mask, tm_mask\n } \"Find excision boundaries\"\n\n schedule EHFinder_ApplySymMask as ASM3 in EHFinder_SetMask after SM2\n {\n LANG: Fortran\n } \"Select eh_mask for boundary conditions\"\n\n schedule GROUP ApplyBCs as EHFinderMask3_ApplyBCs in EHFinder_SetMask after ASM3\n {\n } \"Apply boundary conditions (symmetries)\"\n\n# if ( evolve_generators)\n# {\n# if (CCTK_Equals(generator_tracking_method,\"interpolate_before\"))\n# {\n# schedule EHFinder_Generator_Sources as EGS in MoL_CalcRHS\n# {\n# LANG: Fortran\n# STORAGE: generator_arrays\n# } \"Calculate the source terms for the generator evolution\"\n# }\n# if (CCTK_Equals(generator_tracking_method,\"interpolate_after\"))\n# {\n# schedule EHFinder_Generator_Sources2 as EGS2 in MoL_CalcRHS\n# {\n# LANG: Fortran\n# STORAGE: generator_arrays\n# } \"Calculate the source terms for the generator evolution\"\n# }\n# }\n}\n", "src": { "make.code.deps": "# Dependencies file for thorn EHFinder.\n# $Header$\n\nEHFinder_mod.F90.o:\t\t\tEHFinder_Constants.F90.o\nEHFinder_IsoSurface_mod.F90.o:\t\tEHFinder_Constants.F90.o\nEHFinder_fuzzy.F90.o:\t\t\tEHFinder_Constants.F90.o\nEHFinder_Init.F90.o:\t\t\tEHFinder_mod.F90.o\nEHFinder_Sources.F90.o:\t\t\tEHFinder_mod.F90.o\nEHFinder_Generator_Sources.F90.o:\tEHFinder_mod.F90.o\nEHFinder_Generator_Sources2.F90.o:\tEHFinder_mod.F90.o\nEHFinder_ReInitialize.F90.o:\t\tEHFinder_mod.F90.o\nEHFinder_Check.F90.o:\t\t\tEHFinder_mod.F90.o\nEHFinder_SetMask.F90.o:\t\t\tEHFinder_mod.F90.o\nEHFinder_SetSym.F90.o:\t\t\tEHFinder_mod.F90.o\nEHFinder_ReadData.F90.o:\t\tEHFinder_mod.F90.o\nEHFinder_Check.F90.o:\t\t\tEHFinder_mod.F90.o\nEHFinder_Integrate.F90.o:\t\tEHFinder_mod.F90.o\nEHFinder_FindSurface.F90.o:\t\tEHFinder_mod.F90.o EHFinder_fuzzy.F90.o\nEHFinder_IsoSurface.F90.o:\t\tEHFinder_mod.F90.o IsoSurface_mod.F90.o\n", diff --git a/EinsteinAnalysis_Extract.json b/EinsteinAnalysis_Extract.json index 758ecb87d84c69e7d7e0b3832cf82fd53ccae039..85e894dd3759f89191934df368500f76438fe88c 100644 --- a/EinsteinAnalysis_Extract.json +++ b/EinsteinAnalysis_Extract.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinanalysis.git", "configuration": "", "interface": "# Interface definition for thorn Extract\n# $Header$\n\nimplements: extract\ninherits: grid ADMBase staticconformal io\n\nprivate:\n\nREAL temps TYPE=GF DIM=3\n{\n temp3d\n g00\n}", - "params": "", + "param": "# Parameter definitions for thorn Extract\n# $Header$\n\nshares: grid\n\nUSES KEYWORD domain\n\nshares: io\n\nUSES STRING out_dir\n\nshares: ADMBase\n\nUSES KEYWORD metric_type\n\nprivate:\n\nKEYWORD timecoord \"Which time coordinate to use\"\n{\n \"proper\" :: \"\"\n \"coordinate\" :: \"\"\n \"both\" :: \"\"\n} \"both\"\n\nBOOLEAN all_modes \"Extract: all l,m modes up to l\"\n{\n} \"yes\"\n\n\nBOOLEAN Cauchy \"Do Cauchy data extraction at given timestep\"\n{\n} \"no\"\n\nBOOLEAN verbose \"Say what is happening\"\n{\n} \"no\"\n\nBOOLEAN doADMmass \"Calculate ADM mass at extraction radii\"\n{\n} \"no\"\n\n\nBOOLEAN do_momentum \"Calculate momentum at extraction radii\"\n{\n} \"no\"\n\nBOOLEAN do_spin \"Calculate spin at extraction radii\"\n{\n} \"no\"\n\nINT itout \"How often to extract, in iterations\" STEERABLE = ALWAYS\n{\n 0:* :: \"\"\n} 1\n\nINT l_mode \"l mode\"\n{\n0:* :: \"\"\n} 2\n\nINT m_mode \"m mode (ignore if extracting all modes\"\n{\n0:* :: \"\"\n} 0\n\nINT Nt \"Number of theta divisions\"\n{\n0:* :: \"\"\n} 100\n\nINT Np \"Number of phi divisions\"\n{\n0:* :: \"\"\n} 100\n\nINT Cauchy_timestep \"Timestep for Cauchy data extraction\"\n{\n0:* :: \"\"\n} 0\n\nINT num_detectors \"Number of detectors\"\n{\n0:* :: \"\"\n} 0\n\nREAL detector1 \"Coordinate radius of detector 1\"\n{\n0:* :: \"\"\n} 5.0\nREAL detector2 \"Coordinate radius of detector 2\"\n{\n0:* :: \"\"\n} 5.0\nREAL detector3 \"Coordinate radius of detector 3\"\n{\n0:* :: \"\"\n} 5.0\nREAL detector4 \"Coordinate radius of detector 4\"\n{\n0:* :: \"\"\n} 5.0\nREAL detector5 \"Coordinate radius of detector 5\"\n{\n0:* :: \"\"\n} 5.0\nREAL detector6 \"Coordinate radius of detector 6\"\n{\n0:* :: \"\"\n} 5.0\nREAL detector7 \"Coordinate radius of detector 7\"\n{\n0:* :: \"\"\n} 5.0\nREAL detector8 \"Coordinate radius of detector 8\"\n{\n0:* :: \"\"\n} 5.0\nREAL detector9 \"Coordinate radius of detector 9\"\n{\n0:* :: \"\"\n} 5.0\n\nREAL origin_x \"x-origin to extract about\"\n{\n*:* :: \"\"\n} 0.0\nREAL origin_y \"y-origin to extract about\"\n{\n*:* :: \"\"\n} 0.0\nREAL origin_z \"z-origin to extract about\"\n{\n*:* :: \"\"\n} 0.0\n\nREAL Cauchy_r1 \"First radius for Cauchy data extraction\"\n{\n*:* :: \"\"\n} 1.0\n\n\nREAL Cauchy_dr \"Gridspacing for Cauchy data extraction\"\n{\n*:* :: \"\"\n} 0.2\n\nSTRING interpolation_operator \"Interpolation operator to use (check LocalInterp)\"\n{\n .+ :: \"\"\n} \"uniform cartesian\"\n\nINT interpolation_order \"Order for interpolation\" STEERABLE = ALWAYS\n{\n 1:4 :: \"Choose between first and forth order interpolation\"\n} 1\n", "schedule": "# Schedule definitions for thorn Extract\n# $Header$\n\nschedule Extract_ParamCheck at PARAMCHECK\n{\n LANG: C\n OPTIONS: global\n} \"Check parameters\"\n\nschedule Extract at POSTSTEP\n{\n LANG: Fortran\n STORAGE: temps\n} \"Extract waveforms\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Extract\n# $Header$\n\n# Source files in this directory\nSRCS = D2_extract_int.F \\\n\tD3_extract_int.F \\\n\tD3_to_D2_int.F \\\n\tcartesian_to_spherical_int.F \\\n\tunphysical_to_physical_int.F \\\n\tADMmass_integrand3D_int.F \\\n\tmomentum_integrand3D_int.F\\\n\tspin_integrand3D_int.F\\\n\tmet_rad_der_int.F \\\n\tExtract.F \\\n\tD3_extract.F \\\n\tcartesian_to_spherical.F \\\n\tunphysical_to_physical.F \\\n\tD2_extract.F \\\n\tmet_rad_der.F \\\n\tD3_to_D2.F \\\n\tADMmass_integrand3D.F \\\n\tmomentum_integrand3D.F \\\n\tspin_integrand3D.F \\\n\tAdvertise.c \\\n ParamCheck.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/EinsteinAnalysis_Hydro_Analysis.json b/EinsteinAnalysis_Hydro_Analysis.json index 5e7eb17cce7ba2df2a605e73cf90632d4180e0f8..7abc52c3928dbde0994c38dccad6f1c046bda595 100644 --- a/EinsteinAnalysis_Hydro_Analysis.json +++ b/EinsteinAnalysis_Hydro_Analysis.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinanalysis.git", "configuration": "# Configuration definitions for thorn Hydro_Analysis\n\nREQUIRES LoopControl\n\nOPTIONAL Fortran\n{\n}\n", "interface": "# Interface definition for thorn HydroAnalysis\n\nimplements: Hydro_Analysis\n\ninherits: Grid, HydroBase, ADMBase \n\n\npublic:\n\nCCTK_REAL Hydro_Analysis_rho_max type = SCALAR \"value of the maximum of rho\"\n\nCCTK_REAL Hydro_Analysis_rho_sum type = SCALAR \"value of the sum of rho\"\n\nCCTK_REAL Hydro_Analysis_rho_max_loc[3] type = SCALAR \"coordinate location of the maximum of rho\"\n\nCCTK_REAL Hydro_Analysis_rho_center_volume_weighted_gf[3] type = GF Timelevels = 3 tags='checkpoint=\"no\" tensortypealias=\"u\"' \"temporary GF to obtain the coordinate location of the volume weighted center of mass via a reduction\"\n\nCCTK_REAL Hydro_Analysis_rho_center_volume_weighted[3] type = SCALAR \"coordinate location of the volume weightes center of mass\"\n\nCCTK_REAL Hydro_Analysis_rho_max_origin_distance type = SCALAR \"proper distance between the maximum of the density and the origin (along a straight coordinate line)\"\n\n# core center of mass\nCCTK_REAL Hydro_Analysis_core_rho_sum type = SCALAR \"value of the sum of rho in the core region\"\n\n# rho,rho*x,rho*y,rho*z\nCCTK_REAL Hydro_Analysis_core_rho_centroid_gf[4] type = GF Timelevels = 3 tags='checkpoint=\"no\" tensortypealias=\"4u\"' \"temporary GF to obtain the coordinate location of the centroid location of rho*x in the core region via a reduction\"\n\nCCTK_REAL Hydro_Analysis_core_rho_centroid[3] type = SCALAR \"coordinate location of the centroid of rho*x in the core region\"\n\n\n##################\n# Baryonic Masses\n##################\n\nprivate:\n\nreal grid_spacing_product type=SCALAR tags='checkpoint=\"no\"' \"product of cctk_delta_space, to be computed in local mode and later used in global mode\"\n\nreal Hydro_Analysis_masses[restmass_masses_nr] type=SCALAR tags='checkpoint=\"no\"' \"Baryonic masses at different radii\"\n\nreal Hydro_Analysis_masses_fractions[restmass_masses_nr] type=SCALAR tags='checkpoint=\"no\"' \"Fractional Baryonic masses at different radii\"\n\nreal Hydro_Analysis_total_rest_mass type=SCALAR tags='checkpoint=\"no\"'\n{\n total_rest_mass\n} \"Total Baryonic mass\"\n\nreal Hydro_Analysis_masses_temps[restmass_masses_nr+1] type=GF timelevels=3 tags='checkpoint=\"no\"' \"Temporaries for the mass calculation\" # the [0] is used for total_rest_mass\n\n", - "params": "", + "param": "# Parameter definitions for thorn Hydro_Analysis\n\nBOOLEAN Hydro_Analysis_comp_rho_max \"Look for the value and location of the maximum of rho\" STEERABLE = recover\n{\n} \"false\"\n\nINT Hydro_Analysis_comp_rho_max_every \"How often to look for the value and location of the maximum of rho\" STEERABLE = recover\n{\n 0:0 :: \"Never\"\n 1:* :: \"every so often\"\n} 1\n\n# the following is useful eg. when using cell-centering where there might not\n# be a grid point at the centre of the star and initially several equally valid\n# maxima might be clustered around it.\nBOOLEAN Hydro_Analysis_average_multiple_maxima_locations \"when finding more than one global maximum location, average position and use result\" STEERABLE = always\n{\n} \"false\"\n\nINT verbosity_level \"how much information to ouptut to the logs\" STEERABLE = always\n{\n 0 :: \"Output nothing\"\n 1 :: \"warn when finding multiple maxima\"\n 2 :: \"also output location of maxima\"\n} 1\n\nBOOLEAN Hydro_Analysis_rho_max_loc_only_positive_x \"Restrict location search for density maximum to positive values of x\" STEERABLE = always\n{\n} \"false\"\n\nBOOLEAN Hydro_Analysis_rho_max_loc_use_rotatingsymmetry180 \"Map found maxima into positive x half-plane assuming pi-symmetry\" STEERABLE = always\n{\n} \"false\"\n\n\nBOOLEAN Hydro_Analysis_comp_vol_weighted_center_of_mass \"Look for the location of the volume-weighted center of mass\" STEERABLE = recover\n{\n} \"false\"\n\nBOOLEAN Hydro_Analysis_comp_rho_max_origin_distance \"Look for the proper distance between the maximum of the density and the origin (along a straight coordinate line)\" STEERABLE = recover\n{\n} \"false\"\n\nCCTK_INT Hydro_Analysis_rho_max_origin_distance_npoints \"Number of points along the straight line for measuring proper distance\" STEERABLE = always\n{\n 1:* :: \"Any positive number\"\n} 100\n\n# Parameters for the interpolator in Hydro_Analysis_comp_rho_max_origin_distance\n\nSTRING Hydro_Analysis_interpolator_name \"Name of the interpolator\" STEERABLE=always\n{\n \"Lagrange polynomial interpolation (tensor product)\" :: \"from AEILocalInterp\"\n \"Lagrange polynomial interpolation (maximum degree)\" :: \"from AEILocalInterp\"\n \"Hermite polynomial interpolation\" :: \"from AEILocalInterp\"\n \"uniform cartesian\" :: \"from LocalInterp\"\n \".*\" :: \"must be a registered interpolator\"\n} \"uniform cartesian\"\n\nSTRING Hydro_Analysis_interpolator_options \"Options for the interpolator\" STEERABLE=always\n{\n \".*\" :: \"must be a valid option specification\"\n} \"order=2\"\n\nSTRING Hydro_Analysis_interpolator_coordinates \"Coordinate system\" STEERABLE=always\n{\n \".*\" :: \"must be a registered coordinate system\"\n} \"cart3d\"\n\nBOOLEAN Hydro_Analysis_comp_core_rho_centroid \"compute location of the centroid of rho*x in region r_core around densest point\" STEERABLE = recover\n{\n} \"no\"\n\nCCTK_REAL Hydro_Analysis_r_core \"size of region around densest point in which to compute the centroid of rho*x\" STEERABLE = always\n{\n 0:* :: \"any positive radius. suggested is 1/2 of stellar radius\"\n} 4.0\n\nCCTK_REAL Hydro_Analysis_core_rho_rel_min \"only include points where rho>rho_rel_min*rho_max when computing centroid of rho*x around densest point\" STEERABLE = always\n{\n 0:* :: \"any positive value. For best results should be such that the region selected is smaller than r_core. 1/10 of rho_max should be fine.\"\n} 0.01\n\nshares: HydroBase\n\nuses INT timelevels\n\n#########################################\n### Rest masses\n##########################################\n\nrestricted:\n\nREAL restmass_rho_min \"Points with rest-mass density below this value are excluded (it could be set equal to the atmosphere value)\" STEERABLE=ALWAYS\n{\n 0: :: \"\"\n} 1.e-9\n\nreal restmass_ref_radius_mass[101] \"Radii within which mass will be computed\" STEERABLE=ALWAYS\n{\n 0.0: :: \"Positive\"\n} 10.0\n\nint restmass_masses_nr \"number of radii within which to compute the rest mass\" STEERABLE=RECOVER\n{\n 0:100\t:: \"Positive and hard-limited\"\n} 0\n\nboolean restmass_compute_masses \"Should we compute the masses?\" STEERABLE=RECOVER\n{\n} \"no\"\n", "schedule": "# Schedule definitions for thorn HydroAnalysis\n\nif (Hydro_Analysis_comp_rho_max || Hydro_Analysis_comp_rho_max_origin_distance)\n{\n STORAGE: Hydro_Analysis_rho_max\n STORAGE: Hydro_Analysis_rho_max_loc\n}\nif (Hydro_Analysis_comp_vol_weighted_center_of_mass)\n{\n STORAGE: Hydro_Analysis_rho_sum\n STORAGE: Hydro_Analysis_rho_center_volume_weighted\n STORAGE: Hydro_Analysis_rho_center_volume_weighted_gf[3]\n}\nif (Hydro_Analysis_comp_rho_max_origin_distance)\n{\n STORAGE: Hydro_Analysis_rho_max_origin_distance\n}\nif (Hydro_Analysis_comp_core_rho_centroid)\n{\n STORAGE: Hydro_Analysis_core_rho_sum\n STORAGE: Hydro_Analysis_core_rho_centroid\n}\n\nschedule Hydro_Analysis_Init IN CCTK_BASEGRID\n{\n LANG: C\n OPTIONS: global\n} \"Initialize variables\"\n\n\nschedule group Hydro_Analysis AT POSTSTEP\n{\n} \"Group for Hydro_Analysis routines\"\n\nschedule Hydro_Analysis_PrepareReduction IN Hydro_Analysis\n{\n LANG: C\n OPTIONS: global-early loop-local\n} \"Compute the local reduction results\"\n\nschedule Hydro_Analysis_Reduction IN Hydro_Analysis AFTER Hydro_Analysis_PrepareReduction\n{\n LANG: C\n OPTIONS: global\n} \"Compute the global reduction results\"\n\nif (Hydro_Analysis_comp_rho_max || Hydro_Analysis_comp_rho_max_origin_distance)\n{\n schedule GROUP Hydro_Analysis_LocationSearch IN Hydro_Analysis AFTER Hydro_Analysis_Reduction\n {\n } \"Look for the location of the maximum density\"\n schedule Hydro_Analysis_LocationSearch_Setup IN Hydro_Analysis_LocationSearch\n {\n LANG: C\n OPTIONS: global\n } \"Prepare data structures for search\"\n # this is not perfect, loop-local calls us in all timelevels, not just\n # the ones that a local routine would be called on, so we are mixing\n # information from different times. Also not sure what happens if Carpet\n # performs time interpolation for the maximum reduction. Fine is the maximum\n # is on the finest level.\n schedule Hydro_Analysis_LocationSearch_Search IN Hydro_Analysis_LocationSearch AFTER Hydro_Analysis_LocationSearch_Setup\n {\n LANG: C\n OPTIONS: global loop-local\n } \"Search for the location of the maximum density\"\n schedule Hydro_Analysis_LocationSearch_Combine IN Hydro_Analysis_LocationSearch AFTER Hydro_Analysis_LocationSearch_Search\n {\n LANG: C\n OPTIONS: global\n } \"Communicate and verify the location of the maximum density\"\n}\n\nif (Hydro_Analysis_comp_rho_max_origin_distance)\n{\n schedule Hydro_Analysis_FindSeparation IN Hydro_Analysis AFTER Hydro_Analysis_LocationSearch\n {\n LANG: Fortran\n OPTIONS: global\n } \"Compute the proper distance between the maximum of the density and the origin (along a straight coordinate line)\"\n}\n\nif (Hydro_Analysis_comp_core_rho_centroid)\n{\n # we need to be AFTER Hydro_Analysis_LocationSearch since the core is\n # centered around the densest point\n # since Hydro_Analysis runs in POSTSTEP (why?) we can get away with global\n # and do not need global-early to run before OutputGH happens\n schedule GROUP Hydro_Analysis_CompCoreRhoCentroid IN Hydro_Analysis AFTER Hydro_Analysis_LocationSearch\n {\n } \"Compute center of mass of core region\"\n\n # STORAGE does not work since it allocates in LEVEL mode and thus only\n # changes the number of timelevels of the refinement level currently active\n # when we entered the group\n schedule Hydro_Analysis_CompCoreRhoCentroid_GetStorage IN Hydro_Analysis_CompCoreRhoCentroid BEFORE Hydro_Analysis_CompCoreRhoCentroid_PrepareReduction\n {\n LANG: C\n OPTIONS: global\n } \"Get temporary storage for duration of reduction\"\n\n schedule Hydro_Analysis_CompCoreRhoCentroid_PrepareReduction IN Hydro_Analysis_CompCoreRhoCentroid\n {\n LANG: C\n OPTIONS: global loop-local\n } \"Prepare core center of mass densities for reduction\"\n\n schedule Hydro_Analysis_CompCoreRhoCentroid_Reduction IN Hydro_Analysis_CompCoreRhoCentroid AFTER Hydro_Analysis_CompCoreRhoCentroid_PrepareReduction\n {\n LANG: C\n OPTIONS: global\n } \"Compute the global core center of mass reduction results\"\n\n schedule Hydro_Analysis_CompCoreRhoCentroid_FreeStorage IN Hydro_Analysis_CompCoreRhoCentroid AFTER Hydro_Analysis_CompCoreRhoCentroid_Reduction\n {\n LANG: C\n OPTIONS: global\n } \"Free temporary storage\"\n}\n\n\n\n\n###########################################################\n## Baryonic masses\n###########################################################\n\nif (restmass_compute_masses)\n{\n\n STORAGE: Hydro_Analysis_masses_temps[3]\n\tSTORAGE: Hydro_Analysis_masses\n\tSTORAGE: Hydro_Analysis_total_rest_mass\n\tSTORAGE: Hydro_Analysis_masses_fractions\n\tSTORAGE: grid_spacing_product\n\t\n\tschedule group Hydro_Analysis_Masses AT Poststep\n\t{\n\t} \"Computation of rest masses contained within given radii\"\n\n\n\n\tschedule Hydro_Analysis_Masses_Local IN Hydro_Analysis_Masses\n\t{\n\t LANG: Fortran\n\t} \"Rest masses within given radii, local calculations\"\n\n\tschedule Hydro_Analysis_Masses_Global IN Hydro_Analysis_Masses AFTER Hydro_Analysis_Masses_Local\n\t{\n\t LANG: Fortran\n\t OPTIONS: global\n\t} \"Rest masses within given radii, reduction operation\"\n\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Hydro_Analysis\n\n# Source files in this directory\nSRCS = Hydro_Analysis.c GRHydro_Separation.F90 CoreCentroid.c Hydro_Analysis_Masses.F90\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/EinsteinAnalysis_Multipole.json b/EinsteinAnalysis_Multipole.json index 00ddac79d023d5a2c0f5b4ec891e5ad74fa4c6a6..24ce8ea5210184d1640760d46d9ac68e9fddd5f0 100644 --- a/EinsteinAnalysis_Multipole.json +++ b/EinsteinAnalysis_Multipole.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinanalysis.git", "configuration": "OPTIONAL HDF5\n{\n}\n", "interface": "#interface.ccl for thorn Multipole\nimplements: multipole\ninherits: Grid \n\nCCTK_INT FUNCTION IO_TruncateOutputFiles \\\n (CCTK_POINTER_TO_CONST IN GH)\n\nREQUIRES FUNCTION IO_TruncateOutputFiles\n\npublic:\n\nCCTK_REAL harmonics type=GF timelevels=1\n{\n harmonic_re, harmonic_im\n} \"Spherical harmonics\"\n\nCCTK_REAL test_integration_convergence_orders type=SCALAR\n{\n test_midpoint_convergence_order,\n test_trapezoidal_convergence_order,\n test_simpson_convergence_order\n} \"Test integration convergence orders\"\n\nCCTK_REAL test_integration_results type=SCALAR\n{\n test_midpoint_result_low, test_midpoint_result_high,\n test_trapezoidal_result_low, test_trapezoidal_result_high,\n test_simpson_result_low, test_simpson_result_high\n} \"Test integration results\"\n\n\nCCTK_REAL test_integration_symmetries type=SCALAR\n{\n test_midpoint_pi_symmetry,\n test_trapezoidal_pi_symmetry,\n test_simpson_pi_symmetry,\n test_driscollhealy_pi_symmetry\n} \"Test integration symmetries\"\n\n# [0..max_l_modes) has N=max_l_modes^2\n# comparing each mode with each other but skipping the duplicates gives\n# N*(N+1)/2\n# only 1 spin-weight mode is tested\nCCTK_REAL test_orthonormality type=ARRAY distrib=constant dim=2 size=1,(10*10)*(10*10+1)/2 \"Test orthonormality of spherical harmonics\"\n", - "params": "", + "param": "#param.ccl for thorn Multipole\n\nrestricted:\n#Interpolator params:\nCCTK_STRING interpolator_name \"Which interpolator should I use\"\n{\n \".+\" :: \"Any nonempty string\"\n} \"Hermite polynomial interpolation\"\n\nCCTK_STRING interpolator_pars \"Parameters for the interpolator\"\n{\n \".*\" :: \"Any string that Util_TableSetFromString() will take\"\n} \"order=3 boundary_off_centering_tolerance={0.0 0.0 0.0 0.0 0.0 0.0} boundary_extrapolation_tolerance={0.0 0.0 0.0 0.0 0.0 0.0}\"\n\n# The above makes sure that the interpolator doesn't off-centre the\n# interpolation stencil if there are insufficient points to\n# interpolate, which can happen if there are insufficient ghost-zones\n# for the interpolation method used, and can lead to processor-number\n# dependent results.\n\nCCTK_STRING coord_system \"What is the coord system?\"\n{\n \".*\" :: \"Any smart string will do\"\n} \"cart3d\"\n\nKEYWORD integration_method \"How to do surface integrals\" STEERABLE=always\n{\n \"midpoint\" :: \"Midpoint rule (2nd order)\"\n \"trapezoidal\" :: \"Trapezoidal rule (2nd order)\"\n \"Simpson\" :: \"Simpson's rule (4th order) [requires even ntheta and nphi]\"\n \"DriscollHealy\" :: \"Driscoll & Healy (exponentially convergent) [requires even ntheta]\"\n} \"midpoint\"\n\n\nSTRING out_dir \"Output directory for Extract's files, overrides IO::out_dir\" STEERABLE = RECOVER\n{\n \".+\" :: \"A valid directory name\"\n \"^$\" :: \"An empty string to choose the default from IO::out_dir\"\n} \"\"\n\nCCTK_INT out_every \"How often to output\" \\\nSTEERABLE=recover\n{\n 0 :: \"no output\"\n 1:* :: \"output every to many iterations\"\n} 1\n\nCCTK_INT out_1d_every \"How often to output 1d data\" \\\nSTEERABLE=recover\n{\n 0 :: \"no output\"\n 1:* :: \"output every to many iterations\"\n} 0\n\n#physical params:\nCCTK_INT nradii \"How many extraction radii?\" \\\nSTEERABLE=recover\n{\n 0:100 :: \"\"\n} 1\n\n\nCCTK_REAL radius[101] \"The radii for extraction\" \\\nSTEERABLE=recover\n{\n 0.0:* :: \"Please keep it in the grid\"\n} 0.0\n\nCCTK_INT ntheta \"The number of points in the theta direction, minus one. (E.g., if this is set to 50, then 51 points will be chosen.)\" \\\nSTEERABLE=recover\n{\n 0:* :: \"Positive please\"\n} 50\n\nCCTK_INT nphi \"The number of points in the phi direction, minus one. (E.g., if this is set to 100, then 101 points will be chosen.)\" \\\nSTEERABLE=recover\n{\n 1:* :: \"\"\n} 100\n\nCCTK_STRING variables \"What variables to decompose\"\\\nSTEERABLE=recover\n{\n \".*\" :: \"A list of variables\"\n} \"\"\n\nCCTK_BOOLEAN verbose \"Output detailed information about what is happening\"\n{\n} \"no\"\n\n# this maximum must match max_l_modes-1 in multipole.cc\nCCTK_INT l_max \"The maximum l mode to extract\" STEERABLE=always\n{\n 0:* :: \"l >= 0\"\n} 2\n\nCCTK_BOOLEAN enable_test \"whether to set a spherical harmonic in the 'harmonic' grid functions\"\n{\n} \"no\"\n\nCCTK_INT test_l \"which mode to put into the test variables\"\n{\n * :: \"Any integer\"\n} 2\n\nCCTK_INT test_m \"which mode to put into the test variables\"\n{\n * :: \"Any integer\"\n} 2\n\nCCTK_INT test_sw \"which spin weight to put into the test variables\"\n{\n * :: \"Any integer\"\n} -2\n\nCCTK_BOOLEAN test_mode_proportional_to_r \"whether the test spherical harmonic coefficient is proportional to the radial coordinate\"\n{\n} \"no\"\n\n\n# This parameter is deprecated and is no longer used\nKEYWORD mode_type \"Which type of mode extraction do we have\" STEERABLE=always\n{\n \"all modes\" :: \"Extract all modes up to (l_mode, m_mode).\"\n \"specific mode\" :: \"Select one specific (l_mode, m_mode) mode\"\n \"deprecated\" :: \"Deprecated\"\n} \"deprecated\"\n\n# This parameter is deprecated and is no longer used\nCCTK_INT l_min \"all modes: above which l mode to calculate/ specific mode: which l mode to extract\" STEERABLE=always\n{\n -1:* :: \"Deprecated\"\n} -1\n\n# This parameter is deprecated and is only used if set to a nondefault\n# value, in which case it is a synonym for l_max.\nCCTK_INT l_mode \"The maximum l mode to extract\" STEERABLE=always\n{\n -1:* :: \"Deprecated\"\n} -1\n\n# This parameter is deprecated and is no longer used\nCCTK_INT m_mode \"all modes: Up to which m mode to calculate/ specific mode: which m mode to extract \" STEERABLE=always\n{\n -100:* :: \"Deprecated\"\n} -100\n\nCCTK_BOOLEAN output_ascii \"Output a simple ASCII file for each mode at each radius\"\n{\n} \"yes\"\n\nCCTK_BOOLEAN output_hdf5 \"Output an HDF5 file for each variable containing one dataset per mode at each radius\"\n{\n} \"no\"\n\nCCTK_INT hdf5_chunk_size \"How many iterations to preallocate in extensible HDF5 datasets\"\n{\n 1:* :: \"Any integer\"\n} 200\n\n\n#############################################################################\n### import IOUtil parameters\n#############################################################################\n\nshares: IO\nUSES STRING out_dir AS io_out_dir\n", "schedule": "#schedule.ccl for thorn Multipole\n\nif (enable_test)\n{\n STORAGE: harmonics[1]\n STORAGE: test_integration_convergence_orders\n STORAGE: test_integration_results\n STORAGE: test_integration_symmetries\n STORAGE: test_orthonormality\n}\n\nschedule Multipole_Calc at CCTK_ANALYSIS after (calc_np,PsiKadelia,Accelerator_CopyBack)\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Calculate Multipoles\"\n\nif (enable_test)\n{\n schedule Multipole_SetHarmonic at CCTK_INITIAL\n {\n Reads: Grid::coordinates(everywhere)\n Writes: Multipole::harmonics(interior)\n LANG: C\n } \"Populate grid functions with spherical harmonics\"\n\n schedule Multipole_TestOrthonormality at CCTK_INITIAL\n {\n LANG: C\n } \"Loop over modes and integrate them to check orthonormality\"\n}\n\nschedule Multipole_ParamCheck at CCTK_PARAMCHECK\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Check Multipole parameters\"\n\n# Tests\n\nif (enable_test)\n{\n schedule Multipole_TestIntegrationConvergence at CCTK_PARAMCHECK\n {\n LANG: C\n } \"Test convergence of integration\"\n\n schedule Multipole_TestIntegrationSymmetry at CCTK_PARAMCHECK\n {\n LANG: C\n } \"Test symmetry of integration\"\n}\n", "src": { "utils.cc": "#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Parameters.h\"\n\n#ifdef HAVE_CAPABILITY_HDF5\n// We currently support the HDF5 1.6 API (and when using 1.8 the\n// compatibility mode introduced by H5_USE_16_API). Several machines\n// in SimFactory use HDF5 1.6, so we cannot drop support for it. It\n// seems it is hard to support both the 1.6 and 1.8 API\n// simultaneously; for example H5Fopen takes a different number of\n// arguments in the two versions.\n#define H5_USE_16_API\n#include \n#endif\n\n#include \"utils.hh\"\n#include \"integrate.hh\"\n#include \"multipole.hh\"\n\n// check return code of HDF5 call abort with an error message if there was an error.\n// adapted from CarpetIOHDF5/src/CarpetIOHDF5.hh.\n#define HDF5_ERROR(fn_call) \\\n do { \\\n hid_t _error_code = fn_call; \\\n \\\n \\\n if (_error_code < 0) \\\n { \\\n CCTK_VWarn (0, __LINE__, __FILE__, CCTK_THORNSTRING, \\\n \"HDF5 call '%s' returned error code %d\", \\\n #fn_call, (int)_error_code); \\\n } \\\n } while (0)\n\n\nusing namespace std;\n\n////////////////////////////////////////////////////////////////////////\n// File manipulation\n////////////////////////////////////////////////////////////////////////\n\nFILE *Multipole_OpenOutputFile(CCTK_ARGUMENTS, const string &name)\n{\n DECLARE_CCTK_ARGUMENTS;\n DECLARE_CCTK_PARAMETERS;\n \n bool first_time = cctk_iteration == 0;\n const char *mode = first_time ? \"w\" : \"a\";\n const char *my_out_dir = strcmp(out_dir, \"\") ? out_dir : io_out_dir;\n const int err = CCTK_CreateDirectory(0755, my_out_dir);\n if (err < 0)\n CCTK_VWarn(CCTK_WARN_ABORT, __LINE__, __FILE__, CCTK_THORNSTRING, \n \"Multipole output directory %s could not be created (error code %d)\",\n my_out_dir, err);\n\n string output_name(string(my_out_dir) + \"/\" + name);\n\n FILE *fp = fopen(output_name.c_str(), mode);\n\n if (fp == 0)\n {\n CCTK_VWarn(1, __LINE__, __FILE__, CCTK_THORNSTRING, \"%s\", (string(\"Could not open output file \") + output_name).c_str());\n }\n\n return fp;\n}\n\n////////////////////////////////////////////////////////////////////////\n// Unused\n////////////////////////////////////////////////////////////////////////\n\nvoid Multipole_OutputArray(CCTK_ARGUMENTS, FILE *f,\n vector const &th, vector const &ph,\n vector const &xs, vector const &ys,\n vector const &zs, vector const &data)\n{\n DECLARE_CCTK_PARAMETERS;\n DECLARE_CCTK_ARGUMENTS;\n\n CCTK_REAL last_ph = ph[0];\n\n for (size_t i = 0; i < data.size(); i++)\n {\n if (ph[i] != last_ph) // Separate blocks for gnuplot\n fprintf(f, \"\\n\");\n fprintf(f, \"%f %f %f %f %f %f %.19g\\n\", cctk_time, th[i], ph[i], xs[i], ys[i], zs[i], data[i]);\n last_ph = ph[i];\n }\n}\n\n\nvoid Multipole_OutputArrayToFile(CCTK_ARGUMENTS, const string &name,\n vector const &th, vector const &ph,\n vector const &xs, vector const &ys,\n vector const &zs, vector const &data)\n{\n DECLARE_CCTK_ARGUMENTS;\n\n if (FILE *fp = Multipole_OpenOutputFile(CCTK_PASS_CTOC, name))\n {\n Multipole_OutputArray(CCTK_PASS_CTOC, fp, th, ph, xs, ys, zs, data);\n fclose(fp);\n }\n}\n\n////////////////////////////////////////////////////////////////////////\n// Misc\n////////////////////////////////////////////////////////////////////////\n\nvoid Multipole_Output1D(CCTK_ARGUMENTS, const string &name,\n vector const &th, vector const &ph,\n mp_coord coord, vector const &data)\n{\n DECLARE_CCTK_ARGUMENTS;\n DECLARE_CCTK_PARAMETERS;\n\n if (FILE *f = Multipole_OpenOutputFile(CCTK_PASS_CTOC, name))\n {\n fprintf(f, \"\\\"Time = %.19g\\n\", cctk_time);\n\n if (coord == mp_theta)\n {\n for (int i = 0; i <= ntheta; i++)\n {\n int idx = Multipole_Index(i, 0, ntheta);\n fprintf(f, \"%f %.19g\\n\", th[idx], data[idx]);\n }\n }\n else if (coord == mp_phi)\n {\n for (int i = 0; i <= nphi; i++)\n {\n int idx = Multipole_Index(ntheta / 4, i, ntheta);\n fprintf(f, \"%f %.19g\\n\", ph[idx], data[idx]);\n }\n }\n fprintf(f, \"\\n\\n\");\n fclose(f);\n }\n}\n\n////////////////////////////////////////////////////////////////////////\n// Complex IO\n////////////////////////////////////////////////////////////////////////\n\nvoid Multipole_OutputComplex(CCTK_ARGUMENTS, FILE *fp, CCTK_REAL redata, CCTK_REAL imdata)\n{\n DECLARE_CCTK_PARAMETERS;\n DECLARE_CCTK_ARGUMENTS;\n fprintf(fp, \"%f %.19g %.19g\\n\", cctk_time, redata, imdata);\n}\n\nvoid Multipole_OutputComplexToFile(CCTK_ARGUMENTS, const string &name, CCTK_REAL redata, CCTK_REAL imdata)\n{\n DECLARE_CCTK_ARGUMENTS;\n\n if (FILE *fp = Multipole_OpenOutputFile(CCTK_PASS_CTOC, name))\n {\n Multipole_OutputComplex(CCTK_PASS_CTOC, fp, redata, imdata);\n fclose(fp);\n }\n}\n\n////////////////////////////////////////////////////////////////////////\n// HDF5 complex output\n////////////////////////////////////////////////////////////////////////\n\n#ifdef HAVE_CAPABILITY_HDF5\n\nstatic bool file_exists(const string &name)\n{\n struct stat sts;\n return !(stat(name.c_str(), &sts) == -1 && errno == ENOENT);\n}\n\nstatic bool dataset_exists(hid_t file, const string &dataset_name)\n{\n // To test whether a dataset exists, the recommended way in API 1.6\n // is to use H5Gget_objinfo, but this prints an error to stderr if\n // the dataset does not exist. We explicitly avoid this by wrapping\n // the call in H5E_BEGIN_TRY/H5E_END_TRY statements. In 1.8,\n // H5Gget_objinfo is deprecated, and H5Lexists does the job. See\n // http://www.mail-archive.com/hdf-forum@hdfgroup.org/msg00125.html\n\n #if 1\n bool exists;\n H5E_BEGIN_TRY\n {\n exists = H5Gget_objinfo(file, dataset_name.c_str(), 1, NULL) >= 0;\n }\n H5E_END_TRY;\n return exists;\n #else\n return H5Lexists(file, dataset_name.c_str(), H5P_DEFAULT);\n #endif\n}\n\nvoid Multipole_OutputComplexToH5File(CCTK_ARGUMENTS, const vector &vars,\n const CCTK_REAL radii[], const Multipole::mode_array& modes)\n{\n DECLARE_CCTK_ARGUMENTS;\n DECLARE_CCTK_PARAMETERS;\n\n const char *my_out_dir = strcmp(out_dir, \"\") ? out_dir : io_out_dir;\n if (CCTK_CreateDirectory(0755, my_out_dir) < 0)\n CCTK_VWarn(CCTK_WARN_ABORT, __LINE__, __FILE__, CCTK_THORNSTRING, \n \"Multipole output directory %s could not be created\",\n my_out_dir);\n\n static map checked; // Has the given file been checked\n // for truncation? map<*,bool>\n // defaults to false\n for (int v = 0; v < modes.get_nvars(); v++)\n {\n string basename = \"mp_\" + vars[v].name + \".h5\";\n string output_name = my_out_dir + string(\"/\") + basename;\n\n hid_t file;\n\n if (!file_exists(output_name) || (!checked[output_name] && IO_TruncateOutputFiles(cctkGH)))\n {\n file = H5Fcreate(output_name.c_str(), H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);\n }\n else\n {\n file = H5Fopen(output_name.c_str(), H5F_ACC_RDWR, H5P_DEFAULT);\n }\n\n checked[output_name] = true;\n\n for(int i=0; i &vars,\n const CCTK_REAL radii[], const Multipole::mode_array& modes)\n{\n CCTK_WARN(0,\"HDF5 output has been requested but Cactus has been compiled without HDF5 support\");\n}\n\n#endif\n\n////////////////////////////////////////////////////////////////////////\n// Coordinates\n////////////////////////////////////////////////////////////////////////\n\nvoid Multipole_CoordSetup(vector &xhat, vector &yhat,\n vector &zhat, vector &th,\n vector &ph)\n{\n DECLARE_CCTK_PARAMETERS;\n\n const CCTK_REAL PI = acos(-1.0);\n\n // Add an offset for midpoint integration.\n CCTK_REAL is_midpoint = 0.0;\n if (CCTK_Equals(integration_method, \"midpoint\")) {\n is_midpoint = 1.0;\n }\n const CCTK_REAL dth = PI/(ntheta+is_midpoint);\n const CCTK_REAL dph = 2*PI/(nphi+is_midpoint);\n for (int it = 0; it <= ntheta; it++)\n {\n for (int ip = 0; ip <= nphi; ip++)\n {\n const int i = Multipole_Index(it, ip, ntheta);\n // Check for when midpoint enabled:\n // dth = PI/(ntheta+1) -> ntheta = PI/dth - 1\n // th[i] = i * dth + 0.5*dth\n // Therefore:\n // th[0] = 0.5*dth <- GOOD.\n // th[ntheta] = ntheta*dth + 0.5*dth\n // = ((PI/dth)-1)*dth + 0.5*dth\n // = PI - dth + 0.5*dth\n // = PI - 0.5*dth <- GOOD.\n // Similarly for ph.\n\n // Check for when midpoint disabled:\n // dth = PI/ntheta -> ntheta = PI/dth\n // th[i] = i * dth\n // Therefore:\n // th[0] = 0 <- GOOD.\n // th[ntheta] = ntheta*dth\n // = PI/dth*dth\n // = PI <- GOOD.\n // Similarly for ph.\n th[i] = it * dth + 0.5*dth*is_midpoint;\n ph[i] = ip * dph + 0.5*dph*is_midpoint;\n xhat[i] = cos(ph[i])*sin(th[i]);\n yhat[i] = sin(ph[i])*sin(th[i]);\n zhat[i] = cos(th[i]);\n }\n }\n}\n\nvoid Multipole_ScaleCartesian(const CCTK_REAL r,\n vector const &xhat, vector const &yhat,\n vector const &zhat,\n vector &x, vector &y,\n vector &z)\n{\n for (size_t i = 0; i < xhat.size(); i++)\n {\n x[i] = r * xhat[i];\n y[i] = r * yhat[i];\n z[i] = r * zhat[i];\n }\n}\n\n////////////////////////////////////////////////////////////////////////\n// Integration\n////////////////////////////////////////////////////////////////////////\n\nvoid Multipole_Integrate(\n vector const &array1r, vector const &array1i,\n vector const &array2r, vector const &array2i,\n vector const &th, vector const &ph,\n CCTK_REAL *outre, CCTK_REAL *outim)\n{\n DECLARE_CCTK_PARAMETERS\n\n int il = Multipole_Index(0,0,ntheta);\n int iu = Multipole_Index(1,0,ntheta);\n CCTK_REAL dth = th[iu] - th[il];\n iu = Multipole_Index(0,1,ntheta);\n CCTK_REAL dph = ph[iu] - ph[il];\n\n const size_t array_size = th.size();\n\n static vector fr(array_size);\n static vector fi(array_size);\n\n // the below calculations take the integral of conj(array1)*array2*sin(th)\n assert(th.size() == array_size);\n assert(ph.size() == array_size);\n assert(array1r.size() == array_size);\n assert(array1i.size() == array_size);\n assert(array2r.size() == array_size);\n assert(array2i.size() == array_size);\n for (size_t i = 0; i < array_size; i++)\n {\n fr[i] = (array1r[i] * array2r[i] + \n array1i[i] * array2i[i] ) * sin(th[i]);\n fi[i] = (array1r[i] * array2i[i] - \n array1i[i] * array2r[i] ) * sin(th[i]);\n }\n \n if (CCTK_Equals(integration_method, \"midpoint\"))\n {\n *outre = Midpoint2DIntegral(fr.data(), ntheta, nphi, dth, dph);\n *outim = Midpoint2DIntegral(fi.data(), ntheta, nphi, dth, dph);\n }\n else if (CCTK_Equals(integration_method, \"trapezoidal\"))\n {\n *outre = Trapezoidal2DIntegral(fr.data(), ntheta, nphi, dth, dph);\n *outim = Trapezoidal2DIntegral(fi.data(), ntheta, nphi, dth, dph);\n }\n else if (CCTK_Equals(integration_method, \"Simpson\"))\n {\n if (nphi % 2 != 0 || ntheta % 2 != 0)\n {\n CCTK_WARN (CCTK_WARN_ABORT, \"The Simpson integration method requires even ntheta and even nphi\");\n }\n *outre = Simpson2DIntegral(fr.data(), ntheta, nphi, dth, dph);\n *outim = Simpson2DIntegral(fi.data(), ntheta, nphi, dth, dph);\n }\n else if (CCTK_Equals(integration_method, \"DriscollHealy\"))\n {\n if (ntheta % 2 != 0)\n {\n CCTK_WARN (CCTK_WARN_ABORT, \"The Driscoll&Healy integration method requires even ntheta\");\n }\n *outre = DriscollHealy2DIntegral(fr.data(), ntheta, nphi, dth, dph);\n *outim = DriscollHealy2DIntegral(fi.data(), ntheta, nphi, dth, dph);\n }\n else\n {\n CCTK_WARN(CCTK_WARN_ABORT, \"internal error\");\n }\n} \n", diff --git a/EinsteinAnalysis_Outflow.json b/EinsteinAnalysis_Outflow.json index 8edcbae6c25cd069502b6a5858e6e2d668e84283..317794a84d6aa7246afd6720efb34caa11ff55b3 100644 --- a/EinsteinAnalysis_Outflow.json +++ b/EinsteinAnalysis_Outflow.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinanalysis.git", "configuration": "# Don't use inherit since we do not want to have HydroBase's variables pushed\n# into our context. On the other hand we always access them via the\n# interpolator so having Cactus warn if the thorn is not active is useful.\nREQUIRES THORNS: HydroBase\n", "interface": "# Interface definition for thorn Outflow\n# $Header:$\n\nimplements: outflow\ninherits: ADMBase HydroBase SphericalSurface\n\nCCTK_INT FUNCTION IO_TruncateOutputFiles \\\n (CCTK_POINTER_TO_CONST IN GH)\n\nREQUIRES FUNCTION IO_TruncateOutputFiles\n\n# translate SphericalSurface name into ID\nCCTK_INT \\\nFUNCTION sf_IdFromName (CCTK_INT IN id, CCTK_POINTER_TO_CONST IN name)\nUSES FUNCTION sf_IdFromName\n\nREAL outflow_flux[num_detectors] TYPE=scalar tags='checkpoint=\"no\"' \"flux of mass through the detectors\"\n\nREAL fluxdens_projected[num_detectors] TYPE=ARRAY DIM=2 SIZE=SphericalSurface::maxntheta,SphericalSurface::maxnphi DISTRIB=CONSTANT tags='checkpoint=\"no\"' \"2D (theta,phi) grid arrays for flux density\"\nREAL w_lorentz_projected[num_detectors] TYPE=ARRAY DIM=2 SIZE=SphericalSurface::maxntheta,SphericalSurface::maxnphi DISTRIB=CONSTANT tags='checkpoint=\"no\"' \"2D (theta,phi) grid arrays for Lorentz factor\"\nREAL eninf_projected[num_detectors] TYPE=ARRAY DIM=2 SIZE=SphericalSurface::maxntheta,SphericalSurface::maxnphi DISTRIB=CONSTANT tags='checkpoint=\"no\"' \"2D (theta,phi) grid arrays for the specific energy at infinity\"\n\n# extra variables projected onto the spherical surfaces\nREAL surface_projections[num_detectors] TYPE=ARRAY DIM=2 SIZE=SphericalSurface::maxntheta,SphericalSurface::maxnphi DISTRIB=CONSTANT tags='checkpoint=\"no\"'\n{\nsurface_projection_0, surface_projection_1, surface_projection_2, \nsurface_projection_3, surface_projection_4, surface_projection_5, \nsurface_projection_6, surface_projection_7, surface_projection_8, \nsurface_projection_9, surface_projection_10 surface_projection_11 \nsurface_projection_12 surface_projection_13 surface_projection_14 \nsurface_projection_15 surface_projection_16, surface_projection_17, \nsurface_projection_18, surface_projection_19\n} \"2D (theta,phi) grid arrays for points on the spherical surfaces\"\n", - "params": "", + "param": "# Parameter definitions for thorn Outflow\n\nINT compute_every \"How frequently to compute the outflow\" STEERABLE=always\n{\n 1:* :: \"number of iterations\"\n} 1\n\nINT compute_every_det[100] \"How frequently to compute the outflow\" STEERABLE=always\n{\n -1 :: \"take from compute_every\"\n 0 :: \"do not compute\"\n 1:* :: \"number of iterations\"\n} -1\n\n## Number of detector surfaces\nCCTK_INT num_detectors \"how many detectors do we have\" STEERABLE = RECOVER\n{\n 0:* :: \"number of detectors\"\n} 0\n\n## Surface parameters\nCCTK_INT surface_index[100] \"the indices of the sphericalsurfaces from which we take the surfaces to compute the outflow on\" STEERABLE = ALWAYS\n{\n -1 :: \"Invalid\"\n 0:* :: \"valid surface\" \n} -1\n\nCCTK_STRING surface_name[100] \"the indices of the sphericalsurfaces from which we take the surfaces to compute the outflow on\" STEERABLE=always\n{\n \"\" :: \"use surface_index\"\n \".*\" :: \"any string\"\n} \"\"\n\nBOOLEAN override_radius[100] \"do not take radius values from spherical surface\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nCCTK_REAL radius[100] \"spherical radius for this detector surface\" STEERABLE = ALWAYS\n{\n -1 :: \"Invalid\"\n (0:* :: \"any positive value\"\n} -1\n\nCCTK_REAL rad_rescale[100] \"Factor for scaling radius for this detector surface (e.g. for buffer around AH surface)\" STEERABLE = ALWAYS\n{\n (0:* :: \"Anything positive\"\n} 1\n\nCCTK_STRING coord_system \"What is the coord system?\" STEERABLE = ALWAYS\n{\n \".*\" :: \"Any smart string will do\"\n} \"cart3d\"\n\n## Interpolator information\nCCTK_STRING interpolator_name \"Which interpolator should I use\" STEERABLE = ALWAYS\n{\n \".+\" :: \"Any nonempty string\"\n} \"Hermite polynomial interpolation\"\n\nCCTK_STRING interpolator_pars \"Parameters for the interpolator\" STEERABLE = ALWAYS\n{\n \".*\" :: \"Any string that Util_TableSetFromString() will take\"\n} \"order=3\"\n\n## Output\nCCTK_INT verbose \"How verbose do you want it?\" STEERABLE = ALWAYS\n{\n 0:* :: \"0 is nothing, 1 is interesting, >1 is crazy\"\n} 1\n\nSTRING out_format \"Which format for Scalar floating-point number output\" STEERABLE = ALWAYS\n{\n ^(\\.[1]?[0-9])?[EGefg]$ :: \"output with given precision in exponential / floating point notation\"\n} \".19g\"\n\nBOOLEAN output_2d_data \"output 2d data on spherical surface\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nBOOLEAN output_relative_coordinates \"output coordinates on spheroid relative to sf_centroid, absolute coordinates otherwise\" STEERABLE = ALWAYS\n{\n} \"no\"\n\n# currently the maximum number of extras is hard-coded to 20\nCCTK_STRING extra_variables \"extra (scalar) variables to project onto the spherical surface\" STEERABLE = ALWAYS\n{\n \".*\" :: \"Any Cactus variables\"\n} \"\"\n\nKEYWORD threshold_on_var \"Which variable to use as threshold\"\n{\n \"eninf\" :: \"(Approximate) specific energy at infinity, - u_t - 1\"\n \"w_lorentz\" :: \"Lorentz factor\"\n} \"w_lorentz\"\n\nCCTK_INT num_thresholds \"how many thresholds to use\" STEERABLE = ALWAYS\n{\n 0 :: \"ignore thresholds, output only one flux\"\n 1:20 :: \"how many to use\"\n} 0\n\nCCTK_REAL threshold[20] \"compute fluxes with Lorentz factors / specific energy at infinity above these levels only\" STEERABLE = ALWAYS\n{\n *:* :: \"Any real number\"\n} 0\n\nSHARES: SphericalSurface\n\nUSES INT maxntheta\nUSES INT maxnphi\nUSES INT nghoststheta\nUSES INT nghostsphi\nUSES INT nsurfaces AS sphericalsurfaces_nsurfaces\n\nshares: IO\n\nUSES STRING out_dir\n", "schedule": "# Schedule definitions for thorn Outflow\n\nSTORAGE: outflow_flux\nSTORAGE: fluxdens_projected\nSTORAGE: w_lorentz_projected\nSTORAGE: eninf_projected\nSTORAGE: surface_projections\n\nschedule outflow at CCTK_ANALYSIS\n{\n lang: C\n options: global\n} \"compute outflow\"\n\nschedule outflow_setup at CCTK_STARTUP\n{\n lang: C\n options: global\n} \"set up global ompute data structures\"\n\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Outflow\n\n# Source files in this directory\nSRCS = outflow.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/EinsteinAnalysis_PunctureTracker.json b/EinsteinAnalysis_PunctureTracker.json index ab40bdc0d36aa80cc92f7b9df8db1d6dd454d1fd..54bdc664a323f78ec2204e33c4d1d304536b0b9d 100644 --- a/EinsteinAnalysis_PunctureTracker.json +++ b/EinsteinAnalysis_PunctureTracker.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinanalysis.git", "configuration": "", "interface": "# Interface definition for thorn PunctureTracker\n\nIMPLEMENTS: PunctureTracker\n\nINHERITS: ADMBase CarpetRegrid2 SphericalSurface\n\n\n\nCCTK_REAL pt_loc[10] TYPE=scalar\n{\n pt_loc_t pt_loc_x pt_loc_y pt_loc_z\n} \"Location of punctures\"\n\nCCTK_REAL pt_loc_p[10] TYPE=scalar\n{\n pt_loc_t_p pt_loc_x_p pt_loc_y_p pt_loc_z_p\n} \"Previous location of punctures\"\n\nCCTK_REAL pt_vel[10] TYPE=scalar\n{\n pt_vel_t pt_vel_x pt_vel_y pt_vel_z\n} \"Velocity of punctures\"\n\n\nCCTK_INT FUNCTION \\\n InterpGridArrays \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN order, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_POINTER_TO_CONST IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_POINTER IN output_arrays)\nUSES FUNCTION InterpGridArrays\n", - "params": "", + "param": "# Parameter definitions for thorn PunctureTracker\n\nBOOLEAN verbose \"speak up?\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN track[10] \"Track this puncture\"\n{\n} \"no\"\n\nREAL initial_x[10] \"Initial x coordinate positions of punctures\"\n{\n *:* :: \"\"\n} 0.0\n\nREAL initial_y[10] \"Initial y coordinate positions of punctures\"\n{\n *:* :: \"\"\n} 0.0\n\nREAL initial_z[10] \"Initial z coordinate positions of punctures\"\n{\n *:* :: \"\"\n} 0.0\n\nINT modify_puncture[2] \"Punctures to use for modification criteria\"\n{\n -1:9 :: \"One of the tracking punctures or negative for no modification\"\n} -1\n\nREAL modify_distance \"Modify levels when the distance is less than this\"\n{\n 0.0:* :: \"zero or positive\"\n} 0.0\n\nINT new_reflevel_number[2] \"The new number of refinement levels\"\n{\n -1:* :: \"Negative for no change\"\n} -1\n\n\nINT which_surface_to_store_info[10] \"A spherical surface index where we can store the puncture location\"\n{\n -1 :: \"don't store puncture location\"\n 0:* :: \"any spherical surface index\"\n} -1\n\nREAL shift_limit \"Shift components must be less than this in magnitude\"\n{\n 0.0:* :: \"zero or positive\"\n} 1.0e10\n\nPRIVATE:\n\nSHARES: SphericalSurface\n\nUSES CCTK_INT nsurfaces", "schedule": "# Schedule definitions for thorn PunctureTracker\n\nSTORAGE: pt_loc pt_loc_p pt_vel\n\nSCHEDULE PunctureTracker_Init AT initial\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Calculate initial location of punctures\"\n\nSCHEDULE PunctureTracker_Track AT evol AFTER MoL_Evolution\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Calculate new location of punctures\"\n\nSCHEDULE PunctureTracker_SetPositions AT POSTSTEP\n{\n LANG: C\n OPTIONS: global\n} \"Copy puncture positions to spherical surfaces\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn PunctureTracker -*-Makefile-*-\n\n# Source files in this directory\nSRCS = puncture_tracker.cc paramcheck.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/EinsteinAnalysis_QuasiLocalMeasures.json b/EinsteinAnalysis_QuasiLocalMeasures.json index 78c9b903f52d96faf67293f41d727f1880fd4bc7..f751917b742b32b99c1b07cd817fe4416f48531b 100644 --- a/EinsteinAnalysis_QuasiLocalMeasures.json +++ b/EinsteinAnalysis_QuasiLocalMeasures.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinanalysis.git", "configuration": "# Configuration definition for thorn QuasiLocalMeasures\n\nREQUIRES Boundary Fortran LAPACK TGRtensor\n\nOPTIONAL MPI\n{\n}\n", "interface": "# Interface definition for thorn QuasiLocalMeasures\n\nIMPLEMENTS: QuasiLocalMeasures\n\nINHERITS: ADMBase SphericalSurface TmunuBase\n\n\n\nCCTK_POINTER_TO_CONST \\\nFUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION GetMPICommWorld\n\n# translate SphericalSurface name into ID\nCCTK_INT \\\nFUNCTION sf_IdFromName (CCTK_INT IN id, CCTK_POINTER_TO_CONST IN name)\nUSES FUNCTION sf_IdFromName\n\n\n\nINT qlm_state[num_surfaces] TYPE=scalar\n{\n qlm_calc_error # some QLM information is invalid\n qlm_have_valid_data # interpolating from the AH was successful\n qlm_have_killing_vector # we found a Killing vector field\n qlm_timederiv_order # order of time derivatives\n qlm_iteration # iteration for current data\n} \"Status information\"\n\nINT qlm_state_p[num_surfaces] TYPE=scalar\n{\n qlm_have_valid_data_p qlm_have_valid_data_p_p\n qlm_have_killing_vector_p qlm_have_killing_vector_p_p\n} \"Previous status information\"\n \nINT qlm_grid_int[num_surfaces] TYPE=scalar\n{\n qlm_nghoststheta qlm_nghostsphi\n qlm_ntheta qlm_nphi\n} \"Grid description\"\n\nREAL qlm_grid_real[num_surfaces] TYPE=scalar\n{\n qlm_origin_x qlm_origin_y qlm_origin_z\n qlm_origin_theta qlm_origin_phi\n qlm_delta_theta qlm_delta_phi\n} \"Grid description\"\n\nREAL qlm_grid_real_p[num_surfaces] TYPE=scalar\n{\n qlm_origin_x_p qlm_origin_y_p qlm_origin_z_p\n qlm_origin_x_p_p qlm_origin_y_p_p qlm_origin_z_p_p\n} \"Previous grid description\"\n\nREAL qlm_shapes[num_surfaces] TYPE=array DIM=2 SIZE=SphericalSurface::maxntheta,SphericalSurface::maxnphi DISTRIB=constant TAGS='convergence_power=1'\n{\n qlm_shape\n} \"Shape of the surface\"\n\nREAL qlm_shapes_p[num_surfaces] TYPE=array DIM=2 SIZE=SphericalSurface::maxntheta,SphericalSurface::maxnphi DISTRIB=constant TAGS='convergence_power=1'\n{\n qlm_shape_p qlm_shape_p_p\n} \"Previous shapes of the surface\"\n\nREAL qlm_coordinates[num_surfaces] TYPE=array DIM=2 SIZE=SphericalSurface::maxntheta,SphericalSurface::maxnphi DISTRIB=constant TAGS='convergence_power=1'\n{\n qlm_x qlm_y qlm_z\n} \"Cartesian coordinates of the grid points on the surface\"\n\n# TODO: make this group private, i.e., move it into qlm_variables.F90\nREAL qlm_coordinates_p[num_surfaces] TYPE=array DIM=2 SIZE=SphericalSurface::maxntheta,SphericalSurface::maxnphi DISTRIB=constant TAGS='convergence_power=1'\n{\n qlm_x_p qlm_y_p qlm_z_p\n qlm_x_p_p qlm_y_p_p qlm_z_p_p\n} \"Past Cartesian coordinates of the grid points on the surface\"\n\nREAL qlm_tetrad_l[num_surfaces] TYPE=array DIM=2 SIZE=SphericalSurface::maxntheta,SphericalSurface::maxnphi DISTRIB=constant TAGS='convergence_power=1'\n{\n # all components are contravariant\n qlm_l0 qlm_l1 qlm_l2 qlm_l3 # outward null normal\n} \"Tetrad vector l^mu\"\n\nREAL qlm_tetrad_n[num_surfaces] TYPE=array DIM=2 SIZE=SphericalSurface::maxntheta,SphericalSurface::maxnphi DISTRIB=constant TAGS='convergence_power=1'\n{\n # all components are contravariant\n qlm_n0 qlm_n1 qlm_n2 qlm_n3 # inward null normal\n} \"Tetrad vector n^mu\"\n\nCOMPLEX qlm_tetrad_m[num_surfaces] TYPE=array DIM=2 SIZE=SphericalSurface::maxntheta,SphericalSurface::maxnphi DISTRIB=constant TAGS='convergence_power=1'\n{\n # all components are contravariant\n qlm_m0 qlm_m1 qlm_m2 qlm_m3 # null normal within surface\n} \"Tetrad vector m^mu\"\n\nCOMPLEX qlm_newman_penrose[num_surfaces] TYPE=array DIM=2 SIZE=SphericalSurface::maxntheta,SphericalSurface::maxnphi DISTRIB=constant TAGS='Checkpoint=\"no\",convergence_power=1'\n{\n qlm_npkappa qlm_nptau qlm_npsigma qlm_nprho\n qlm_npepsilon qlm_npgamma qlm_npbeta qlm_npalpha\n qlm_nppi qlm_npnu qlm_npmu qlm_nplambda\n# qlm_lie_l_npsigma\n# qlm_lie_n_npsigma # for the Bondi mass\n} \"Newman-Penrose quantities\"\n\nCOMPLEX qlm_weyl_scalars[num_surfaces] TYPE=array DIM=2 SIZE=SphericalSurface::maxntheta,SphericalSurface::maxnphi DISTRIB=constant TAGS='Checkpoint=\"no\",convergence_power=1'\n{\n qlm_psi0 # should be zero for an IH\n qlm_psi1 # should be zero for an IH\n qlm_psi2 # Im Psi_2 defines the angular momentum\n qlm_psi3\n qlm_psi4\n qlm_i qlm_j # curvature invariants I and J\n qlm_s # speciality index S = 27 J^2 / I^3\n qlm_sdiff # (27 J^2 - I^3) / L_2[Psi_n]^3\n} \"Weyl scalars (aka Newman-Penrose spin coefficients)\"\n\nREAL qlm_ricci_scalars[num_surfaces] TYPE=array DIM=2 SIZE=SphericalSurface::maxntheta,SphericalSurface::maxnphi DISTRIB=constant TAGS='Checkpoint=\"no\",convergence_power=1'\n{\n qlm_phi00 # Ricci tensor\n qlm_phi11\n qlm_phi01\n qlm_phi12\n qlm_phi10\n qlm_phi21\n qlm_phi02\n qlm_phi22\n qlm_phi20\n \n qlm_lambda # Ricci scalar\n \n qlm_lie_n_theta_l # Lie_n Theta_(l)\n} \"Ricci scalars\"\n\nREAL qlm_twometric[num_surfaces] TYPE=array DIM=2 SIZE=SphericalSurface::maxntheta,SphericalSurface::maxnphi DISTRIB=constant TAGS='Checkpoint=\"no\",convergence_power=1'\n{\n qlm_qtt qlm_qtp qlm_qpp\n qlm_rsc # 2-Ricci scalar\n} \"2-metric\"\n\nREAL qlm_killing_vector[num_surfaces] TYPE=array DIM=2 SIZE=SphericalSurface::maxntheta,SphericalSurface::maxnphi DISTRIB=constant TAGS='convergence_power=1'\n{\n qlm_xi_t qlm_xi_p\n qlm_chi\n} \"Killing vector field\"\n\nREAL qlm_killed_twometric[num_surfaces] TYPE=array DIM=2 SIZE=SphericalSurface::maxntheta,SphericalSurface::maxnphi DISTRIB=constant TAGS='Checkpoint=\"no\",convergence_power=1'\n{\n qlm_lqtt qlm_lqtp qlm_lqpp\n} \"Lie derivative of the 2-metric along the Killing vector field\"\n\nREAL qlm_invariant_coordinates[num_surfaces] TYPE=array DIM=2 SIZE=SphericalSurface::maxntheta,SphericalSurface::maxnphi DISTRIB=constant TAGS='Checkpoint=\"no\",convergence_power=1'\n{\n qlm_inv_z\n} \"Invariant coordinates on the surface, assuming axisymmetry\"\n\nREAL qlm_multipole_moments[num_surfaces] TYPE=scalar TAGS='Checkpoint=\"no\"'\n{\n qlm_mp_m0 qlm_mp_m1 qlm_mp_m2 qlm_mp_m3 qlm_mp_m4 qlm_mp_m5 qlm_mp_m6 qlm_mp_m7 qlm_mp_m8\n qlm_mp_j0 qlm_mp_j1 qlm_mp_j2 qlm_mp_j3 qlm_mp_j4 qlm_mp_j5 qlm_mp_j6 qlm_mp_j7 qlm_mp_j8\n} \"Mass and spin multipole moments\"\n\nREAL qlm_3determinant[num_surfaces] TYPE=array DIM=2 SIZE=SphericalSurface::maxntheta,SphericalSurface::maxnphi DISTRIB=constant TAGS='Checkpoint=\"no\",convergence_power=1'\n{\n qlm_3det\n} \"3-Determinant of H for a special choice of the triad\"\n\nREAL qlm_scalars[num_surfaces] TYPE=scalar\n{\n qlm_time\n qlm_equatorial_circumference\n qlm_polar_circumference_0\n qlm_polar_circumference_pi_2\n # area A and areal radius R\n qlm_area qlm_irreducible_mass qlm_radius\n qlm_spin_guess qlm_mass_guess\n qlm_killing_eigenvalue_re qlm_killing_eigenvalue_im\n # spin J: J = a M^2, i.e., angular momentum (spin is a misnomer)\n qlm_spin qlm_npspin qlm_wsspin qlm_cvspin\n qlm_coordspinx qlm_coordspiny qlm_coordspinz\n # mass M : total mass, i.e., including angular momentum\n qlm_mass\n qlm_adm_energy\n qlm_adm_momentum_x qlm_adm_momentum_y qlm_adm_momentum_z\n qlm_adm_angular_momentum_x qlm_adm_angular_momentum_y qlm_adm_angular_momentum_z\n qlm_w_energy\n qlm_w_momentum_x qlm_w_momentum_y qlm_w_momentum_z\n qlm_w_angular_momentum_x qlm_w_angular_momentum_y qlm_w_angular_momentum_z\n} \"Scalar quantities on the surface\"\n\nREAL qlm_scalars_p[num_surfaces] TYPE=scalar\n{\n qlm_time_p qlm_time_p_p\n qlm_radius_p qlm_radius_p_p\n} \"Some scalar quantities on the surface at previous times\"\n", - "params": "", + "param": "# Parameter definitions for thorn QuasiLocalMeasures\n\nBOOLEAN verbose \"Produce log output while running\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN veryverbose \"Produce much log output while running\" STEERABLE=always\n{\n} \"no\"\n\n\n\nINT num_surfaces \"Number of surfaces\"\n{\n 0:100 :: \"\"\n} 1\n\n\n\nINT surface_index[100] \"Spherical surface that contains the surface shape\"\n{\n -1 :: \"do not calculate\"\n 0:* :: \"surface index\"\n} -1\n\nSTRING surface_name[100] \"Spherical surface that contains the surface shape\"\n{\n \"\" :: \"use surface_index\"\n \".*\" :: \"surface name\"\n} \"\"\n\nSTRING coordsystem \"The coordinate system to use\" STEERABLE=always\n{\n \"\" :: \"must be a registered coordinate system\"\n} \"cart3d\"\n\nSTRING interpolator \"The interpolator to use\" STEERABLE=always\n{\n \"\" :: \"must be a registered interpolator\"\n} \"Lagrange polynomial interpolation\"\n\nSTRING interpolator_options \"Options for the interpolator\" STEERABLE=always\n{\n \"\" :: \"must be a valid options specification\"\n} \"order=2\"\n\n\n\nINT spatial_order \"Order of spatial differencing\"\n{\n 2 :: \"second order\"\n 4 :: \"fourth order\"\n} 2\n\n\n\nREAL begin_qlm_calculations_after[100] \"when should we start calculations?\" STEERABLE=always\n{\n *:* :: \"at/after this time (inclusively)\"\n} 0.0\n\n\n\n# this method requires the spin to be roughly aligned with the z-axes and\n# computes qlm_spin use qlm_coordspinx, qlm_coordspiny, qlm_coordspinz\n# otherwise\nKEYWORD killing_vector_method \"Method for finding the Killing vector field\" STEERABLE=always\n{\n \"axial\" :: \"Assume that d/dphi is a Killing vector\"\n \"eigenvector\" :: \"Solve the Killing vector equation as eigenvector equation\"\n \"gradient\" :: \"Calculate the normal to the gradient of a scalar\"\n} \"eigenvector\"\n\nKEYWORD killing_vector_normalisation \"Method for normalising the Killing vector field\" STEERABLE=always\n{\n \"average\" :: \"Average several integral lines\"\n \"median\" :: \"Use the median integral line\"\n} \"average\"\n\nINT output_vtk_every \"Output a VTK file with the main 2D\" STEERABLE=always\n{\n 0 :: \"don't output VTK file\"\n 1:* :: \"output every so many iterations\"\n} 0\n\n\nSHARES: ADMBase\n\nUSES KEYWORD metric_type\n\n\n\nSHARES: SphericalSurface\n\nUSES INT nsurfaces\n\nUSES BOOLEAN auto_res\n\nUSES INT maxntheta\nUSES INT maxnphi\n\nUSES INT ntheta\nUSES INT nphi\nUSES INT nghoststheta\nUSES INT nghostsphi\n\nUSES BOOLEAN symmetric_x\nUSES BOOLEAN symmetric_y\nUSES BOOLEAN symmetric_z\n", "schedule": "# Schedule definitions for thorn QuasiLocalMeasures\n\nSTORAGE: qlm_state qlm_scalars\nSTORAGE: qlm_state_p qlm_scalars_p\nSTORAGE: qlm_grid_int qlm_grid_real qlm_grid_real_p\nSTORAGE: qlm_shapes qlm_tetrad_l qlm_tetrad_n qlm_tetrad_m\nSTORAGE: qlm_shapes_p\nSTORAGE: qlm_killing_vector\n\n\n\n# These variables need storage so that they can be output\nSTORAGE: qlm_coordinates qlm_coordinates_p\nSTORAGE: qlm_newman_penrose qlm_weyl_scalars\nSTORAGE: qlm_ricci_scalars qlm_twometric qlm_killed_twometric\nSTORAGE: qlm_invariant_coordinates qlm_multipole_moments qlm_3determinant\n\n\n\nSCHEDULE qlm_paramcheck AT paramcheck\n{\n OPTIONS: global\n LANG: Fortran\n} \"Check quasi-local parameter settings\"\n\nSCHEDULE qlm_init AT initial\n{\n OPTIONS: global\n LANG: Fortran\n} \"Initialise quasi-local calculations\"\n\nSCHEDULE qlm_calculate AT analysis AFTER (SphericalSurface_HasBeenSet SetTmunu)\n{\n OPTIONS: global\n LANG: Fortran\n STORAGE: qlm_coordinates qlm_coordinates_p\n STORAGE: qlm_newman_penrose qlm_weyl_scalars\n STORAGE: qlm_ricci_scalars qlm_twometric qlm_killed_twometric \n STORAGE: qlm_invariant_coordinates qlm_multipole_moments qlm_3determinant\n TRIGGERS: qlm_state\n TRIGGERS: qlm_grid_int qlm_grid_real\n TRIGGERS: qlm_shapes qlm_tetrad_l qlm_tetrad_n qlm_tetrad_m\n TRIGGERS: qlm_coordinates\n TRIGGERS: qlm_newman_penrose qlm_weyl_scalars\n TRIGGERS: qlm_ricci_scalars qlm_twometric qlm_killing_vector qlm_killed_twometric\n TRIGGERS: qlm_invariant_coordinates qlm_multipole_moments qlm_3determinant\n TRIGGERS: qlm_scalars\n} \"Calculate quasi-local quantities\"\n", "src": { "qlm_init.F90": "#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Functions.h\"\n#include \"cctk_Parameters.h\"\n\n\n\nsubroutine qlm_init (CCTK_ARGUMENTS)\n use cctk\n implicit none\n DECLARE_CCTK_ARGUMENTS\n DECLARE_CCTK_FUNCTIONS\n DECLARE_CCTK_PARAMETERS\n \n integer :: hn\n \n if (verbose/=0 .or. veryverbose/=0) then\n call CCTK_INFO (\"Initialising Quasi-Local Measure calculations\")\n end if\n \n do hn = 1, num_surfaces\n \n qlm_calc_error(hn) = 1\n qlm_have_valid_data(hn) = 0\n qlm_have_valid_data_p(hn) = 0\n qlm_have_valid_data_p_p(hn) = 0\n qlm_have_killing_vector(hn) = 0\n qlm_have_killing_vector_p(hn) = 0\n qlm_have_killing_vector_p_p(hn) = 0\n qlm_iteration(hn) = -1\n \n end do\n \nend subroutine qlm_init\n", diff --git a/EinsteinAnalysis_WeylScal4.json b/EinsteinAnalysis_WeylScal4.json index 09c88dece820a5864c535b4ebc5b8ce8152d65be..da4408f71aadabc88bfc6838753cced0ba12b6dc 100644 --- a/EinsteinAnalysis_WeylScal4.json +++ b/EinsteinAnalysis_WeylScal4.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinanalysis.git", "configuration": "# File produced by Kranc\n\nREQUIRES GenericFD\nREQUIRES LoopControl\nREQUIRES Vectors\n", "interface": "# File produced by Kranc\n\nimplements: WeylScal4\n\ninherits: admbase Boundary GenericFD Grid methodoflines\n\n\n\nUSES INCLUDE: loopcontrol.h\nUSES INCLUDE: Symmetry.h\nUSES INCLUDE: vectors.h\nUSES INCLUDE: Boundary.h\n\nCCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex)\nUSES FUNCTION MoLRegisterEvolved\n\nSUBROUTINE Diff_coeff(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN dir, CCTK_INT IN nsize, CCTK_INT OUT ARRAY imin, CCTK_INT OUT ARRAY imax, CCTK_REAL OUT ARRAY q, CCTK_INT IN table_handle)\nUSES FUNCTION Diff_coeff\n\nCCTK_INT FUNCTION MultiPatch_GetMap(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n\nCCTK_INT FUNCTION MultiPatch_GetBbox(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN size, CCTK_INT OUT ARRAY bbox)\nUSES FUNCTION MultiPatch_GetBbox\n\nCCTK_INT FUNCTION GetBoundarySpecification(CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\nCCTK_INT FUNCTION MultiPatch_GetBoundarySpecification(CCTK_INT IN map, CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION MultiPatch_GetBoundarySpecification\n\nCCTK_INT FUNCTION SymmetryTableHandleForGrid(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION SymmetryTableHandleForGrid\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT FUNCTION Driver_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectGroupForBC\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectVarForBC\n\nCCTK_INT FUNCTION Driver_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectVarForBC\n\npublic:\nCCTK_REAL Psi0r_group type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0 tensorparity=1'\n{\n Psi0r\n} \"Psi0r_group\"\n\npublic:\nCCTK_REAL Psi0i_group type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0 tensorparity=-1'\n{\n Psi0i\n} \"Psi0i_group\"\n\npublic:\nCCTK_REAL Psi1r_group type=GF timelevels=3 tags='tensortypealias=\"ManualCartesian\" tensorweight=0 cartesianreflectionparities=\"++-\"'\n{\n Psi1r\n} \"Psi1r_group\"\n\npublic:\nCCTK_REAL Psi1i_group type=GF timelevels=3 tags='tensortypealias=\"ManualCartesian\" tensorweight=0 cartesianreflectionparities=\"--+\"'\n{\n Psi1i\n} \"Psi1i_group\"\n\npublic:\nCCTK_REAL Psi2r_group type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0 tensorparity=1'\n{\n Psi2r\n} \"Psi2r_group\"\n\npublic:\nCCTK_REAL Psi2i_group type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0 tensorparity=-1'\n{\n Psi2i\n} \"Psi2i_group\"\n\npublic:\nCCTK_REAL Psi3r_group type=GF timelevels=3 tags='tensortypealias=\"ManualCartesian\" tensorweight=0 cartesianreflectionparities=\"++-\"'\n{\n Psi3r\n} \"Psi3r_group\"\n\npublic:\nCCTK_REAL Psi3i_group type=GF timelevels=3 tags='tensortypealias=\"ManualCartesian\" tensorweight=0 cartesianreflectionparities=\"--+\"'\n{\n Psi3i\n} \"Psi3i_group\"\n\npublic:\nCCTK_REAL Psi4r_group type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0 tensorparity=1'\n{\n Psi4r\n} \"Psi4r_group\"\n\npublic:\nCCTK_REAL Psi4i_group type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0 tensorparity=-1'\n{\n Psi4i\n} \"Psi4i_group\"\n\npublic:\nCCTK_REAL curvIr_group type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0 tensorparity=1'\n{\n curvIr\n} \"curvIr_group\"\n\npublic:\nCCTK_REAL curvIi_group type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0 tensorparity=-1'\n{\n curvIi\n} \"curvIi_group\"\n\npublic:\nCCTK_REAL curvJr_group type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0 tensorparity=1'\n{\n curvJr\n} \"curvJr_group\"\n\npublic:\nCCTK_REAL curvJi_group type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0 tensorparity=-1'\n{\n curvJi\n} \"curvJi_group\"\n\npublic:\nCCTK_REAL curvJ1_group type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n curvJ1\n} \"curvJ1_group\"\n\npublic:\nCCTK_REAL curvJ2_group type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n curvJ2\n} \"curvJ2_group\"\n\npublic:\nCCTK_REAL curvJ3_group type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n curvJ3\n} \"curvJ3_group\"\n\npublic:\nCCTK_REAL curvJ4_group type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n curvJ4\n} \"curvJ4_group\"\n", - "params": "", + "param": "# File produced by Kranc\n\n\nshares: GenericFD\n\nUSES CCTK_INT assume_stress_energy_state\nUSES CCTK_INT assume_use_jacobian\nUSES CCTK_STRING jacobian_group\nUSES CCTK_STRING jacobian_determinant_group\nUSES CCTK_STRING jacobian_inverse_group\nUSES CCTK_STRING jacobian_derivative_group\nUSES CCTK_INT jacobian_identity_map\n\n\nshares: MethodOfLines\n\nUSES CCTK_INT MoL_Num_Evolved_Vars\nUSES CCTK_INT MoL_Num_ArrayEvolved_Vars\n\nrestricted:\nCCTK_INT verbose \"verbose\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT other_timelevels \"Number of active timelevels for non-evolved grid functions\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL offset \"offset\"\n{\n *:* :: \"\"\n} 1.e-15\n\nrestricted:\nCCTK_REAL xorig \"xorig\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL yorig \"yorig\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL zorig \"zorig\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT fdOrder \"fdOrder\"\n{\n 2 :: \"\"\n 4 :: \"\"\n 6 :: \"\"\n 8 :: \"\"\n} 2\n\nrestricted:\nCCTK_INT tile_size \"Loop tile size\"\n{\n *:* :: \"\"\n} -1\n\nprivate:\nCCTK_KEYWORD fd_order \"fd_order\"\n{\n \"Nth\" :: \"\"\n \"2nd\" :: \"\"\n \"4th\" :: \"\"\n} \"Nth\"\n\nprivate:\nCCTK_KEYWORD calc_scalars \"Which scalars to calculate\"\n{\n \"psi4\" :: \"\"\n \"psis\" :: \"\"\n} \"psi4\"\n\nprivate:\nCCTK_KEYWORD calc_invariants \"Compute invariants\"\n{\n \"always\" :: \"\"\n \"never\" :: \"\"\n} \"never\"\n\nrestricted:\nCCTK_INT WeylScal4_MaxNumEvolvedVars \"Number of evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Evolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT WeylScal4_MaxNumArrayEvolvedVars \"Number of Array evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_ArrayEvolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of Array evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT timelevels \"Number of active timelevels\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 3\n\nrestricted:\nCCTK_INT rhs_timelevels \"Number of active RHS timelevels\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 1\n\nrestricted:\nCCTK_INT WeylScal4_psi4_calc_Nth_calc_every \"WeylScal4_psi4_calc_Nth_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT WeylScal4_psi4_calc_2nd_calc_every \"WeylScal4_psi4_calc_2nd_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT WeylScal4_psi4_calc_4th_calc_every \"WeylScal4_psi4_calc_4th_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT WeylScal4_psis_calc_Nth_calc_every \"WeylScal4_psis_calc_Nth_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT WeylScal4_psis_calc_2nd_calc_every \"WeylScal4_psis_calc_2nd_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT WeylScal4_psis_calc_4th_calc_every \"WeylScal4_psis_calc_4th_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT WeylScal4_invars_calc_Nth_calc_every \"WeylScal4_invars_calc_Nth_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT WeylScal4_invars_calc_2nd_calc_every \"WeylScal4_invars_calc_2nd_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT WeylScal4_invars_calc_4th_calc_every \"WeylScal4_invars_calc_4th_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT WeylScal4_psi4_calc_Nth_calc_offset \"WeylScal4_psi4_calc_Nth_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT WeylScal4_psi4_calc_2nd_calc_offset \"WeylScal4_psi4_calc_2nd_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT WeylScal4_psi4_calc_4th_calc_offset \"WeylScal4_psi4_calc_4th_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT WeylScal4_psis_calc_Nth_calc_offset \"WeylScal4_psis_calc_Nth_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT WeylScal4_psis_calc_2nd_calc_offset \"WeylScal4_psis_calc_2nd_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT WeylScal4_psis_calc_4th_calc_offset \"WeylScal4_psis_calc_4th_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT WeylScal4_invars_calc_Nth_calc_offset \"WeylScal4_invars_calc_Nth_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT WeylScal4_invars_calc_2nd_calc_offset \"WeylScal4_invars_calc_2nd_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT WeylScal4_invars_calc_4th_calc_offset \"WeylScal4_invars_calc_4th_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\n", "schedule": "# File produced by Kranc\n\nSTORAGE: Psi0r_group[timelevels]\n\nSTORAGE: Psi0i_group[timelevels]\n\nSTORAGE: Psi1r_group[timelevels]\n\nSTORAGE: Psi1i_group[timelevels]\n\nSTORAGE: Psi2r_group[timelevels]\n\nSTORAGE: Psi2i_group[timelevels]\n\nSTORAGE: Psi3r_group[timelevels]\n\nSTORAGE: Psi3i_group[timelevels]\n\nSTORAGE: Psi4r_group[timelevels]\n\nSTORAGE: Psi4i_group[timelevels]\n\nSTORAGE: curvIr_group[timelevels]\n\nSTORAGE: curvIi_group[timelevels]\n\nSTORAGE: curvJr_group[timelevels]\n\nSTORAGE: curvJi_group[timelevels]\n\nSTORAGE: curvJ1_group[timelevels]\n\nSTORAGE: curvJ2_group[timelevels]\n\nSTORAGE: curvJ3_group[timelevels]\n\nSTORAGE: curvJ4_group[timelevels]\nschedule WeylScal4_Startup at STARTUP\n{\n LANG: C\n OPTIONS: meta\n} \"create banner\"\n\nschedule WeylScal4_RegisterSymmetries in SymmetryRegister\n{\n LANG: C\n OPTIONS: meta\n} \"register symmetries\"\n\nif (CCTK_EQUALS(calc_scalars, \"psi4\"))\n{\n if (CCTK_EQUALS(fd_order, \"Nth\"))\n {\n schedule group WeylScal4_psi4_calc_Nth_group in MoL_PseudoEvolution after ADMBase_SetADMVars\n {\n } \"WeylScal4_psi4_calc_Nth\"\n }\n}\n\nschedule WeylScal4_psi4_calc_Nth in WeylScal4_psi4_calc_Nth_group\n{\n LANG: C\n READS: admbase::kxx(Everywhere)\n READS: admbase::kxy(Everywhere)\n READS: admbase::kxz(Everywhere)\n READS: admbase::kyy(Everywhere)\n READS: admbase::kyz(Everywhere)\n READS: admbase::kzz(Everywhere)\n READS: admbase::gxx(Everywhere)\n READS: admbase::gxy(Everywhere)\n READS: admbase::gxz(Everywhere)\n READS: admbase::gyy(Everywhere)\n READS: admbase::gyz(Everywhere)\n READS: admbase::gzz(Everywhere)\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: WeylScal4::Psi4i(Interior)\n WRITES: WeylScal4::Psi4r(Interior)\n} \"WeylScal4_psi4_calc_Nth\"\n\nschedule WeylScal4_psi4_calc_Nth_SelectBCs in WeylScal4_psi4_calc_Nth_bc_group\n{\n LANG: C\n OPTIONS: level\n SYNC: Psi4i_group\n SYNC: Psi4r_group\n} \"WeylScal4_psi4_calc_Nth_SelectBCs\"\n\nschedule group ApplyBCs as WeylScal4_psi4_calc_Nth_ApplyBCs in WeylScal4_psi4_calc_Nth_bc_group after WeylScal4_psi4_calc_Nth_SelectBCs\n{\n} \"Apply BCs for groups set in WeylScal4_psi4_calc_Nth\"\n\nif (CCTK_EQUALS(calc_scalars, \"psi4\"))\n{\n if (CCTK_EQUALS(fd_order, \"Nth\"))\n {\n schedule group WeylScal4_psi4_calc_Nth_bc_group in WeylScal4_psi4_calc_Nth_group after WeylScal4_psi4_calc_Nth\n {\n } \"WeylScal4_psi4_calc_Nth\"\n }\n}\n\nif (CCTK_EQUALS(calc_scalars, \"psi4\"))\n{\n if (CCTK_EQUALS(fd_order, \"Nth\"))\n {\n schedule group WeylScal4_psi4_calc_Nth_bc_group in MoL_PseudoEvolutionBoundaries after MoL_PostStep\n {\n } \"WeylScal4_psi4_calc_Nth\"\n }\n}\n\nif (CCTK_EQUALS(calc_scalars, \"psi4\"))\n{\n if (CCTK_EQUALS(fd_order, \"2nd\"))\n {\n schedule group WeylScal4_psi4_calc_2nd_group in MoL_PseudoEvolution after ADMBase_SetADMVars\n {\n } \"WeylScal4_psi4_calc_2nd\"\n }\n}\n\nschedule WeylScal4_psi4_calc_2nd in WeylScal4_psi4_calc_2nd_group\n{\n LANG: C\n READS: admbase::kxx(Everywhere)\n READS: admbase::kxy(Everywhere)\n READS: admbase::kxz(Everywhere)\n READS: admbase::kyy(Everywhere)\n READS: admbase::kyz(Everywhere)\n READS: admbase::kzz(Everywhere)\n READS: admbase::gxx(Everywhere)\n READS: admbase::gxy(Everywhere)\n READS: admbase::gxz(Everywhere)\n READS: admbase::gyy(Everywhere)\n READS: admbase::gyz(Everywhere)\n READS: admbase::gzz(Everywhere)\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: WeylScal4::Psi4i(Interior)\n WRITES: WeylScal4::Psi4r(Interior)\n} \"WeylScal4_psi4_calc_2nd\"\n\nschedule WeylScal4_psi4_calc_2nd_SelectBCs in WeylScal4_psi4_calc_2nd_bc_group\n{\n LANG: C\n OPTIONS: level\n SYNC: Psi4i_group\n SYNC: Psi4r_group\n} \"WeylScal4_psi4_calc_2nd_SelectBCs\"\n\nschedule group ApplyBCs as WeylScal4_psi4_calc_2nd_ApplyBCs in WeylScal4_psi4_calc_2nd_bc_group after WeylScal4_psi4_calc_2nd_SelectBCs\n{\n} \"Apply BCs for groups set in WeylScal4_psi4_calc_2nd\"\n\nif (CCTK_EQUALS(calc_scalars, \"psi4\"))\n{\n if (CCTK_EQUALS(fd_order, \"2nd\"))\n {\n schedule group WeylScal4_psi4_calc_2nd_bc_group in WeylScal4_psi4_calc_2nd_group after WeylScal4_psi4_calc_2nd\n {\n } \"WeylScal4_psi4_calc_2nd\"\n }\n}\n\nif (CCTK_EQUALS(calc_scalars, \"psi4\"))\n{\n if (CCTK_EQUALS(fd_order, \"2nd\"))\n {\n schedule group WeylScal4_psi4_calc_2nd_bc_group in MoL_PseudoEvolutionBoundaries after MoL_PostStep\n {\n } \"WeylScal4_psi4_calc_2nd\"\n }\n}\n\nif (CCTK_EQUALS(calc_scalars, \"psi4\"))\n{\n if (CCTK_EQUALS(fd_order, \"4th\"))\n {\n schedule group WeylScal4_psi4_calc_4th_group in MoL_PseudoEvolution after ADMBase_SetADMVars\n {\n } \"WeylScal4_psi4_calc_4th\"\n }\n}\n\nschedule WeylScal4_psi4_calc_4th in WeylScal4_psi4_calc_4th_group\n{\n LANG: C\n READS: admbase::kxx(Everywhere)\n READS: admbase::kxy(Everywhere)\n READS: admbase::kxz(Everywhere)\n READS: admbase::kyy(Everywhere)\n READS: admbase::kyz(Everywhere)\n READS: admbase::kzz(Everywhere)\n READS: admbase::gxx(Everywhere)\n READS: admbase::gxy(Everywhere)\n READS: admbase::gxz(Everywhere)\n READS: admbase::gyy(Everywhere)\n READS: admbase::gyz(Everywhere)\n READS: admbase::gzz(Everywhere)\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: WeylScal4::Psi4i(Interior)\n WRITES: WeylScal4::Psi4r(Interior)\n} \"WeylScal4_psi4_calc_4th\"\n\nschedule WeylScal4_psi4_calc_4th_SelectBCs in WeylScal4_psi4_calc_4th_bc_group\n{\n LANG: C\n OPTIONS: level\n SYNC: Psi4i_group\n SYNC: Psi4r_group\n} \"WeylScal4_psi4_calc_4th_SelectBCs\"\n\nschedule group ApplyBCs as WeylScal4_psi4_calc_4th_ApplyBCs in WeylScal4_psi4_calc_4th_bc_group after WeylScal4_psi4_calc_4th_SelectBCs\n{\n} \"Apply BCs for groups set in WeylScal4_psi4_calc_4th\"\n\nif (CCTK_EQUALS(calc_scalars, \"psi4\"))\n{\n if (CCTK_EQUALS(fd_order, \"4th\"))\n {\n schedule group WeylScal4_psi4_calc_4th_bc_group in WeylScal4_psi4_calc_4th_group after WeylScal4_psi4_calc_4th\n {\n } \"WeylScal4_psi4_calc_4th\"\n }\n}\n\nif (CCTK_EQUALS(calc_scalars, \"psi4\"))\n{\n if (CCTK_EQUALS(fd_order, \"4th\"))\n {\n schedule group WeylScal4_psi4_calc_4th_bc_group in MoL_PseudoEvolutionBoundaries after MoL_PostStep\n {\n } \"WeylScal4_psi4_calc_4th\"\n }\n}\n\nif (CCTK_EQUALS(calc_scalars, \"psis\"))\n{\n if (CCTK_EQUALS(fd_order, \"Nth\"))\n {\n schedule group WeylScal4_psis_calc_Nth_group in MoL_PseudoEvolution after ADMBase_SetADMVars\n {\n } \"WeylScal4_psis_calc_Nth\"\n }\n}\n\nschedule WeylScal4_psis_calc_Nth in WeylScal4_psis_calc_Nth_group\n{\n LANG: C\n READS: admbase::kxx(Everywhere)\n READS: admbase::kxy(Everywhere)\n READS: admbase::kxz(Everywhere)\n READS: admbase::kyy(Everywhere)\n READS: admbase::kyz(Everywhere)\n READS: admbase::kzz(Everywhere)\n READS: admbase::gxx(Everywhere)\n READS: admbase::gxy(Everywhere)\n READS: admbase::gxz(Everywhere)\n READS: admbase::gyy(Everywhere)\n READS: admbase::gyz(Everywhere)\n READS: admbase::gzz(Everywhere)\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: WeylScal4::Psi0i(Interior)\n WRITES: WeylScal4::Psi0r(Interior)\n WRITES: WeylScal4::Psi1i(Interior)\n WRITES: WeylScal4::Psi1r(Interior)\n WRITES: WeylScal4::Psi2i(Interior)\n WRITES: WeylScal4::Psi2r(Interior)\n WRITES: WeylScal4::Psi3i(Interior)\n WRITES: WeylScal4::Psi3r(Interior)\n WRITES: WeylScal4::Psi4i(Interior)\n WRITES: WeylScal4::Psi4r(Interior)\n} \"WeylScal4_psis_calc_Nth\"\n\nschedule WeylScal4_psis_calc_Nth_SelectBCs in WeylScal4_psis_calc_Nth_bc_group\n{\n LANG: C\n OPTIONS: level\n SYNC: Psi0i_group\n SYNC: Psi0r_group\n SYNC: Psi1i_group\n SYNC: Psi1r_group\n SYNC: Psi2i_group\n SYNC: Psi2r_group\n SYNC: Psi3i_group\n SYNC: Psi3r_group\n SYNC: Psi4i_group\n SYNC: Psi4r_group\n} \"WeylScal4_psis_calc_Nth_SelectBCs\"\n\nschedule group ApplyBCs as WeylScal4_psis_calc_Nth_ApplyBCs in WeylScal4_psis_calc_Nth_bc_group after WeylScal4_psis_calc_Nth_SelectBCs\n{\n} \"Apply BCs for groups set in WeylScal4_psis_calc_Nth\"\n\nif (CCTK_EQUALS(calc_scalars, \"psis\"))\n{\n if (CCTK_EQUALS(fd_order, \"Nth\"))\n {\n schedule group WeylScal4_psis_calc_Nth_bc_group in WeylScal4_psis_calc_Nth_group after WeylScal4_psis_calc_Nth\n {\n } \"WeylScal4_psis_calc_Nth\"\n }\n}\n\nif (CCTK_EQUALS(calc_scalars, \"psis\"))\n{\n if (CCTK_EQUALS(fd_order, \"Nth\"))\n {\n schedule group WeylScal4_psis_calc_Nth_bc_group in MoL_PseudoEvolutionBoundaries after MoL_PostStep\n {\n } \"WeylScal4_psis_calc_Nth\"\n }\n}\n\nif (CCTK_EQUALS(calc_scalars, \"psis\"))\n{\n if (CCTK_EQUALS(fd_order, \"2nd\"))\n {\n schedule group WeylScal4_psis_calc_2nd_group in MoL_PseudoEvolution after ADMBase_SetADMVars\n {\n } \"WeylScal4_psis_calc_2nd\"\n }\n}\n\nschedule WeylScal4_psis_calc_2nd in WeylScal4_psis_calc_2nd_group\n{\n LANG: C\n READS: admbase::kxx(Everywhere)\n READS: admbase::kxy(Everywhere)\n READS: admbase::kxz(Everywhere)\n READS: admbase::kyy(Everywhere)\n READS: admbase::kyz(Everywhere)\n READS: admbase::kzz(Everywhere)\n READS: admbase::gxx(Everywhere)\n READS: admbase::gxy(Everywhere)\n READS: admbase::gxz(Everywhere)\n READS: admbase::gyy(Everywhere)\n READS: admbase::gyz(Everywhere)\n READS: admbase::gzz(Everywhere)\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: WeylScal4::Psi0i(Interior)\n WRITES: WeylScal4::Psi0r(Interior)\n WRITES: WeylScal4::Psi1i(Interior)\n WRITES: WeylScal4::Psi1r(Interior)\n WRITES: WeylScal4::Psi2i(Interior)\n WRITES: WeylScal4::Psi2r(Interior)\n WRITES: WeylScal4::Psi3i(Interior)\n WRITES: WeylScal4::Psi3r(Interior)\n WRITES: WeylScal4::Psi4i(Interior)\n WRITES: WeylScal4::Psi4r(Interior)\n} \"WeylScal4_psis_calc_2nd\"\n\nschedule WeylScal4_psis_calc_2nd_SelectBCs in WeylScal4_psis_calc_2nd_bc_group\n{\n LANG: C\n OPTIONS: level\n SYNC: Psi0i_group\n SYNC: Psi0r_group\n SYNC: Psi1i_group\n SYNC: Psi1r_group\n SYNC: Psi2i_group\n SYNC: Psi2r_group\n SYNC: Psi3i_group\n SYNC: Psi3r_group\n SYNC: Psi4i_group\n SYNC: Psi4r_group\n} \"WeylScal4_psis_calc_2nd_SelectBCs\"\n\nschedule group ApplyBCs as WeylScal4_psis_calc_2nd_ApplyBCs in WeylScal4_psis_calc_2nd_bc_group after WeylScal4_psis_calc_2nd_SelectBCs\n{\n} \"Apply BCs for groups set in WeylScal4_psis_calc_2nd\"\n\nif (CCTK_EQUALS(calc_scalars, \"psis\"))\n{\n if (CCTK_EQUALS(fd_order, \"2nd\"))\n {\n schedule group WeylScal4_psis_calc_2nd_bc_group in WeylScal4_psis_calc_2nd_group after WeylScal4_psis_calc_2nd\n {\n } \"WeylScal4_psis_calc_2nd\"\n }\n}\n\nif (CCTK_EQUALS(calc_scalars, \"psis\"))\n{\n if (CCTK_EQUALS(fd_order, \"2nd\"))\n {\n schedule group WeylScal4_psis_calc_2nd_bc_group in MoL_PseudoEvolutionBoundaries after MoL_PostStep\n {\n } \"WeylScal4_psis_calc_2nd\"\n }\n}\n\nif (CCTK_EQUALS(calc_scalars, \"psis\"))\n{\n if (CCTK_EQUALS(fd_order, \"4th\"))\n {\n schedule group WeylScal4_psis_calc_4th_group in MoL_PseudoEvolution after ADMBase_SetADMVars\n {\n } \"WeylScal4_psis_calc_4th\"\n }\n}\n\nschedule WeylScal4_psis_calc_4th in WeylScal4_psis_calc_4th_group\n{\n LANG: C\n READS: admbase::kxx(Everywhere)\n READS: admbase::kxy(Everywhere)\n READS: admbase::kxz(Everywhere)\n READS: admbase::kyy(Everywhere)\n READS: admbase::kyz(Everywhere)\n READS: admbase::kzz(Everywhere)\n READS: admbase::gxx(Everywhere)\n READS: admbase::gxy(Everywhere)\n READS: admbase::gxz(Everywhere)\n READS: admbase::gyy(Everywhere)\n READS: admbase::gyz(Everywhere)\n READS: admbase::gzz(Everywhere)\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: WeylScal4::Psi0i(Interior)\n WRITES: WeylScal4::Psi0r(Interior)\n WRITES: WeylScal4::Psi1i(Interior)\n WRITES: WeylScal4::Psi1r(Interior)\n WRITES: WeylScal4::Psi2i(Interior)\n WRITES: WeylScal4::Psi2r(Interior)\n WRITES: WeylScal4::Psi3i(Interior)\n WRITES: WeylScal4::Psi3r(Interior)\n WRITES: WeylScal4::Psi4i(Interior)\n WRITES: WeylScal4::Psi4r(Interior)\n} \"WeylScal4_psis_calc_4th\"\n\nschedule WeylScal4_psis_calc_4th_SelectBCs in WeylScal4_psis_calc_4th_bc_group\n{\n LANG: C\n OPTIONS: level\n SYNC: Psi0i_group\n SYNC: Psi0r_group\n SYNC: Psi1i_group\n SYNC: Psi1r_group\n SYNC: Psi2i_group\n SYNC: Psi2r_group\n SYNC: Psi3i_group\n SYNC: Psi3r_group\n SYNC: Psi4i_group\n SYNC: Psi4r_group\n} \"WeylScal4_psis_calc_4th_SelectBCs\"\n\nschedule group ApplyBCs as WeylScal4_psis_calc_4th_ApplyBCs in WeylScal4_psis_calc_4th_bc_group after WeylScal4_psis_calc_4th_SelectBCs\n{\n} \"Apply BCs for groups set in WeylScal4_psis_calc_4th\"\n\nif (CCTK_EQUALS(calc_scalars, \"psis\"))\n{\n if (CCTK_EQUALS(fd_order, \"4th\"))\n {\n schedule group WeylScal4_psis_calc_4th_bc_group in WeylScal4_psis_calc_4th_group after WeylScal4_psis_calc_4th\n {\n } \"WeylScal4_psis_calc_4th\"\n }\n}\n\nif (CCTK_EQUALS(calc_scalars, \"psis\"))\n{\n if (CCTK_EQUALS(fd_order, \"4th\"))\n {\n schedule group WeylScal4_psis_calc_4th_bc_group in MoL_PseudoEvolutionBoundaries after MoL_PostStep\n {\n } \"WeylScal4_psis_calc_4th\"\n }\n}\n\nif (CCTK_EQUALS(calc_invariants, \"always\"))\n{\n if (CCTK_EQUALS(calc_scalars, \"psis\"))\n {\n if (CCTK_EQUALS(fd_order, \"Nth\"))\n {\n schedule group WeylScal4_invars_calc_Nth_group in MoL_PseudoEvolution after WeylScal4_psis_calc_Nth_group\n {\n } \"WeylScal4_invars_calc_Nth\"\n }\n }\n}\n\nschedule WeylScal4_invars_calc_Nth in WeylScal4_invars_calc_Nth_group\n{\n LANG: C\n READS: WeylScal4::Psi0i(Everywhere)\n READS: WeylScal4::Psi0r(Everywhere)\n READS: WeylScal4::Psi1i(Everywhere)\n READS: WeylScal4::Psi1r(Everywhere)\n READS: WeylScal4::Psi2i(Everywhere)\n READS: WeylScal4::Psi2r(Everywhere)\n READS: WeylScal4::Psi3i(Everywhere)\n READS: WeylScal4::Psi3r(Everywhere)\n READS: WeylScal4::Psi4i(Everywhere)\n READS: WeylScal4::Psi4r(Everywhere)\n WRITES: WeylScal4::curvIi(Interior)\n WRITES: WeylScal4::curvIr(Interior)\n WRITES: WeylScal4::curvJ1(Interior)\n WRITES: WeylScal4::curvJ2(Interior)\n WRITES: WeylScal4::curvJ3(Interior)\n WRITES: WeylScal4::curvJ4(Interior)\n WRITES: WeylScal4::curvJi(Interior)\n WRITES: WeylScal4::curvJr(Interior)\n} \"WeylScal4_invars_calc_Nth\"\n\nif (CCTK_EQUALS(calc_invariants, \"always\"))\n{\n if (CCTK_EQUALS(calc_scalars, \"psis\"))\n {\n if (CCTK_EQUALS(fd_order, \"2nd\"))\n {\n schedule group WeylScal4_invars_calc_2nd_group in MoL_PseudoEvolution after WeylScal4_psis_calc_2nd_group\n {\n } \"WeylScal4_invars_calc_2nd\"\n }\n }\n}\n\nschedule WeylScal4_invars_calc_2nd in WeylScal4_invars_calc_2nd_group\n{\n LANG: C\n READS: WeylScal4::Psi0i(Everywhere)\n READS: WeylScal4::Psi0r(Everywhere)\n READS: WeylScal4::Psi1i(Everywhere)\n READS: WeylScal4::Psi1r(Everywhere)\n READS: WeylScal4::Psi2i(Everywhere)\n READS: WeylScal4::Psi2r(Everywhere)\n READS: WeylScal4::Psi3i(Everywhere)\n READS: WeylScal4::Psi3r(Everywhere)\n READS: WeylScal4::Psi4i(Everywhere)\n READS: WeylScal4::Psi4r(Everywhere)\n WRITES: WeylScal4::curvIi(Interior)\n WRITES: WeylScal4::curvIr(Interior)\n WRITES: WeylScal4::curvJ1(Interior)\n WRITES: WeylScal4::curvJ2(Interior)\n WRITES: WeylScal4::curvJ3(Interior)\n WRITES: WeylScal4::curvJ4(Interior)\n WRITES: WeylScal4::curvJi(Interior)\n WRITES: WeylScal4::curvJr(Interior)\n} \"WeylScal4_invars_calc_2nd\"\n\nif (CCTK_EQUALS(calc_invariants, \"always\"))\n{\n if (CCTK_EQUALS(calc_scalars, \"psis\"))\n {\n if (CCTK_EQUALS(fd_order, \"4th\"))\n {\n schedule group WeylScal4_invars_calc_4th_group in MoL_PseudoEvolution after WeylScal4_psis_calc_4th_group\n {\n } \"WeylScal4_invars_calc_4th\"\n }\n }\n}\n\nschedule WeylScal4_invars_calc_4th in WeylScal4_invars_calc_4th_group\n{\n LANG: C\n READS: WeylScal4::Psi0i(Everywhere)\n READS: WeylScal4::Psi0r(Everywhere)\n READS: WeylScal4::Psi1i(Everywhere)\n READS: WeylScal4::Psi1r(Everywhere)\n READS: WeylScal4::Psi2i(Everywhere)\n READS: WeylScal4::Psi2r(Everywhere)\n READS: WeylScal4::Psi3i(Everywhere)\n READS: WeylScal4::Psi3r(Everywhere)\n READS: WeylScal4::Psi4i(Everywhere)\n READS: WeylScal4::Psi4r(Everywhere)\n WRITES: WeylScal4::curvIi(Interior)\n WRITES: WeylScal4::curvIr(Interior)\n WRITES: WeylScal4::curvJ1(Interior)\n WRITES: WeylScal4::curvJ2(Interior)\n WRITES: WeylScal4::curvJ3(Interior)\n WRITES: WeylScal4::curvJ4(Interior)\n WRITES: WeylScal4::curvJi(Interior)\n WRITES: WeylScal4::curvJr(Interior)\n} \"WeylScal4_invars_calc_4th\"\n\nschedule WeylScal4_SelectBoundConds in MoL_PostStep\n{\n LANG: C\n OPTIONS: level\n} \"select boundary conditions\"\n\nschedule WeylScal4_CheckBoundaries at BASEGRID\n{\n LANG: C\n OPTIONS: meta\n} \"check boundaries treatment\"\n\nschedule WeylScal4_RegisterVars in MoL_Register\n{\n LANG: C\n OPTIONS: meta\n} \"Register Variables for MoL\"\nschedule group ApplyBCs as WeylScal4_ApplyBCs in MoL_PostStep after WeylScal4_SelectBoundConds\n{\n} \"Apply boundary conditions controlled by thorn Boundary\"\n", "src": { "make.code.defn": "# File produced by Kranc\n\nSRCS = Boundaries.cc Kranc.cc RegisterMoL.cc RegisterSymmetries.cc Startup.cc WeylScal4_invars_calc_2nd.cc WeylScal4_invars_calc_4th.cc WeylScal4_invars_calc_Nth.cc WeylScal4_psi4_calc_2nd.cc WeylScal4_psi4_calc_4th.cc WeylScal4_psi4_calc_Nth.cc WeylScal4_psis_calc_2nd.cc WeylScal4_psis_calc_4th.cc WeylScal4_psis_calc_Nth.cc \n", diff --git a/EinsteinBase_ADMBase.json b/EinsteinBase_ADMBase.json index 58052577ea8c5798aa5691d811ea6d4a005b6486..896ac178a4a0d08896845a89356432a41ddb13ec 100644 --- a/EinsteinBase_ADMBase.json +++ b/EinsteinBase_ADMBase.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinbase.git", "configuration": "# Configuration definition for thorn CactusEinstein/ADMBase\n# $Header$\n\nREQUIRES CartGrid3D \n", "interface": "# Interface definition for thorn ADMBase\n# $Header$\n\nimplements: ADMBase\ninherits: grid\nUSES INCLUDE HEADER: Symmetry.h\n\nCCTK_INT FUNCTION GetBoundarySpecification \\\n (CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nREQUIRES FUNCTION GetBoundarySpecification\n\npublic:\n\nINT shift_state TYPE = SCALAR \"state of storage for shift\"\nINT dtlapse_state TYPE = SCALAR \"state of storage for dtlapse\"\nINT dtshift_state TYPE = SCALAR \"state of storage for dtshift\"\n\nREAL metric TYPE = GF timelevels = 3 tags='tensortypealias=\"DD_sym\" ProlongationParameter=\"ADMBase::metric_prolongation_type\"'\n{\n gxx,gxy,gxz,gyy,gyz,gzz\n} \"ADM 3-metric g_ij\"\n\nREAL curv TYPE = GF timelevels = 3 tags='tensortypealias=\"DD_sym\" ProlongationParameter=\"ADMBase::metric_prolongation_type\"'\n{\n kxx,kxy,kxz,kyy,kyz,kzz\n} \"ADM extrinsic curvature K_ij\"\n\nREAL lapse TYPE = GF timelevels = 3 tags='tensortypealias=\"Scalar\" ProlongationParameter=\"ADMBase::lapse_prolongation_type\"'\n{\n alp\n} \"ADM lapse function alpha\"\n\nREAL shift TYPE = GF timelevels = 3 tags='tensortypealias=\"U\" ProlongationParameter=\"ADMBase::shift_prolongation_type\"'\n{\n betax,betay,betaz\n} \"ADM shift function beta^i\"\n\nREAL dtlapse TYPE = GF timelevels = 3 tags='tensortypealias=\"Scalar\" ProlongationParameter=\"ADMBase::lapse_prolongation_type\"'\n{\n dtalp\n} \"Time derivative of ADM lapse function alpha\"\n\nREAL dtshift TYPE = GF timelevels = 3 tags='tensortypealias=\"U\" ProlongationParameter=\"ADMBase::shift_prolongation_type\"'\n{\n dtbetax,dtbetay,dtbetaz\n} \"Time derivative of ADM shift function beta^i\"\n\n# Aliased function from thorn Carpet\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n", - "params": "", + "param": "# Parameter definitions for thorn ADMBase\n# $Header$\n\nrestricted:\n\nKEYWORD initial_data \"Initial metric and extrinsic curvature datasets\"\n{\n \"Cartesian Minkowski\" :: \"Minkowski values in cartesian coordinates\"\n} \"Cartesian Minkowski\"\n\nKEYWORD initial_lapse \"Initial lapse value\"\n{\n \"one\" :: \"Uniform lapse\"\n} \"one\"\n\nKEYWORD initial_shift \"Initial shift value\"\n{\n \"none\" :: \"Shift is inactive\"\n \"zero\" :: \"Shift is zero\"\n} \"zero\"\n\nKEYWORD initial_dtlapse \"Initial dtlapse value\"\n{\n \"none\" :: \"Dtlapse is inactive\"\n \"zero\" :: \"Dtlapse is zero\"\n} \"none\"\n\nKEYWORD initial_dtshift \"Initial dtshift value\"\n{\n \"none\" :: \"Dtshift is inactive\"\n \"zero\" :: \"Dtshift is zero\"\n} \"none\"\n\nKEYWORD evolution_method \"The metric an extrinsic curvature evolution method\"\n{\n \"none\" :: \"The metric and extrinsic curvature are not evolved\"\n \"static\" :: \"The metric and extrinsic curvature are not evolved\"\n \"ID-apply-regrid\" :: \"The metric and extrinsic curvature are not evolved and initial data is used to fill in new grid points after regridding\"\n \"ID-apply-always\" :: \"The metric and extrinsic curvature are not evolved and initial data is used to fill in new grid points before each step and after grid changes\"\n} \"static\"\n\nKEYWORD lapse_evolution_method \"The lapse evolution method\"\n{\n \"static\" :: \"lapse is not evolved\"\n \"ID-apply-regrid\" :: \"lapse is not evolved and initial data is used to fill in new grid points after regridding\"\n \"ID-apply-always\" :: \"lapse is not evolved and initial data is used to fill in new grid points before each step and after grid changes\"\n} \"static\"\n\nKEYWORD shift_evolution_method \"The shift evolution method\"\n{\n \"static\" :: \"shift is not evolved\"\n \"ID-apply-regrid\" :: \"shift is not evolved and initial data is used to fill in new grid points after regridding\"\n \"ID-apply-always\" :: \"shift is not evolved and initial data is used to fill in new grid points before each step and after grid changes\"\n} \"static\"\n\nKEYWORD dtlapse_evolution_method \"The dtlapse evolution method\"\n{\n \"static\" :: \"dtlapse is not evolved\"\n \"ID-apply-regrid\" :: \"dtlapse is not evolved and initial data is used to fill in new grid points after regridding\"\n \"ID-apply-always\" :: \"dtlapse is not evolved and initial data is used to fill in new grid points before each step and after grid changes\"\n} \"static\"\n\nKEYWORD dtshift_evolution_method \"The dtshift evolution method\"\n{\n \"static\" :: \"dtshift is not evolved\"\n \"ID-apply-regrid\" :: \"dtshift is not evolved and initial data is used to fill in new grid points after regridding\"\n \"ID-apply-always\" :: \"dtshift is not evolved and initial data is used to fill in new grid points before each step and after grid changes\"\n} \"static\"\n\n\n\nSTRING admbase_boundary_condition \"Boundary condition for ADMBase variables\"\n{\n \"\" :: \"must be a registered boundary condition\"\n} \"flat\"\n\n\n\nKEYWORD metric_type \"The semantics of the metric variables (physical, static conformal, etc)\"\n{\n \"physical\" :: \"metric and extrinsic curvature are the physical ones\"\n} \"physical\"\n\nKEYWORD lapse_prolongation_type \"The kind of boundary prolongation for the lapse\"\n{\n \"Lagrange\" :: \"standard prolongation (requires several time levels)\"\n \"none\" :: \"no prolongation (use this if you do not have enough time levels active)\"\n} \"Lagrange\"\n\nKEYWORD shift_prolongation_type \"The kind of boundary prolongation for the shift\"\n{\n \"Lagrange\" :: \"standard prolongation (requires several time levels)\"\n \"none\" :: \"no prolongation (use this if you do not have enough time levels active)\"\n} \"Lagrange\"\n\nKEYWORD metric_prolongation_type \"The kind of boundary prolongation for the metric and extrinsic curvature\"\n{\n \"Lagrange\" :: \"standard prolongation (requires several time levels)\"\n \"none\" :: \"no prolongation (use this if you do not have enough time levels active)\"\n} \"Lagrange\"\n\nINT lapse_timelevels \"Number of time levels for the lapse\" STEERABLE=recover\n{\n 0:3 :: \"\"\n} 1\n\nINT shift_timelevels \"Number of time levels for the shift\" STEERABLE=recover\n{\n 0:3 :: \"\"\n} 1\n\nINT metric_timelevels \"Number of time levels for the metric and extrinsic curvature\" STEERABLE=recover\n{\n 0:3 :: \"\"\n} 1\n", "schedule": "# Schedule definitions for thorn ADMBase\n# $Header$\n\nSTORAGE: shift_state dtlapse_state dtshift_state\n\nif (lapse_timelevels == 1)\n{\n STORAGE: lapse[1]\n}\nelse if (lapse_timelevels == 2)\n{\n STORAGE: lapse[2]\n}\nelse if (lapse_timelevels == 3)\n{\n STORAGE: lapse[3]\n}\n\nif (! CCTK_Equals(initial_shift, \"none\"))\n{\n if (shift_timelevels == 1)\n {\n STORAGE: shift[1]\n }\n else if (shift_timelevels == 2)\n {\n STORAGE: shift[2]\n }\n else if (shift_timelevels == 3)\n {\n STORAGE: shift[3]\n }\n}\n\nif (! CCTK_Equals(initial_dtlapse, \"none\"))\n{\n if (lapse_timelevels == 1)\n {\n STORAGE: dtlapse[1]\n }\n else if (lapse_timelevels == 2)\n {\n STORAGE: dtlapse[2]\n }\n else if (lapse_timelevels == 3)\n {\n STORAGE: dtlapse[3]\n }\n}\n\nif (! CCTK_Equals(initial_dtshift, \"none\"))\n{\n if (shift_timelevels == 1)\n {\n STORAGE: dtshift[1]\n }\n else if (shift_timelevels == 2)\n {\n STORAGE: dtshift[2]\n }\n else if (shift_timelevels == 3)\n {\n STORAGE: dtshift[3]\n }\n}\n\nif (metric_timelevels == 1)\n{\n STORAGE: metric[1], curv[1]\n}\nelse if (metric_timelevels == 2)\n{\n STORAGE: metric[2], curv[2]\n}\nelse if (metric_timelevels == 3)\n{\n STORAGE: metric[3], curv[3]\n}\n\n\n\nSCHEDULE ADMBase_ParamCheck at CCTK_PARAMCHECK\n{\n LANG: C\n OPTIONS: global\n} \"Check consistency of parameters\"\n\n# Schedule group for setting initial data\n\nSCHEDULE group ADMBase_InitialData at CCTK_INITIAL\n{\n} \"Schedule group for calculating ADM initial data\"\n\nSCHEDULE group ADMBase_InitialGauge at CCTK_INITIAL after ADMBase_InitialData\n{\n} \"Schedule group for the ADM initial gauge condition\"\n\nSCHEDULE group ADMBase_PostInitial at CCTK_INITIAL after (ADMBase_InitialData ADMBase_InitialGauge)\n{\n} \"Schedule group for modifying the ADM initial data, such as e.g. adding noise\"\n\n# Initial data for the spatial slices\n\nif (CCTK_Equals(initial_data, \"Cartesian Minkowski\"))\n{\n SCHEDULE ADMBase_CartesianMinkowski in ADMBase_InitialData\n {\n LANG: C\n WRITES: ADMBase::curv(Everywhere)\n WRITES: ADMBase::metric(Everywhere)\n WRITES: ADMBase::gxx_p(Everywhere), gxy_p, gxz_p, gyy_p, gyz_p, gzz_p\n WRITES: ADMBase::gxx_p_p(Everywhere), gxy_p_p, gxz_p_p, gyy_p_p, gyz_p_p, gzz_p_p\n WRITES: ADMBase::kxx_p(Everywhere), kxy_p, kxz_p, kyy_p, kyz_p, kzz_p\n WRITES: ADMBase::kxx_p_p(Everywhere), kxy_p_p, kxz_p_p, kyy_p_p, kyz_p_p, kzz_p_p\n WRITES: ADMBase::alp(Everywhere)\n WRITES: ADMBase::shift(Everywhere)\n WRITES: ADMBase::dtalp(Everywhere)\n WRITES: ADMBase::dtshift(Everywhere)\n WRITES: ADMBase::shift_state(Everywhere)\n WRITES: ADMBase::dtlapse_state(Everywhere)\n WRITES: ADMBase::dtshift_state(Everywhere)\n } \"Set the metric and extrinsic curvature to cartesian minkowski values\"\n}\n\n# Initial data for the lapse\n\nif (CCTK_Equals(initial_lapse, \"one\"))\n{\n SCHEDULE ADMBase_LapseOne in ADMBase_InitialGauge\n {\n LANG: C\n WRITES: ADMBase::alp(Everywhere), alp_p, alp_p_p\n } \"Set the lapse to 1 at all points\"\n}\n\n# Do we have storage for the shift?\nif (! CCTK_Equals(initial_shift, \"none\")) \n{\n SCHEDULE ADMBase_SetShiftStateOn at CCTK_BASEGRID\n {\n LANG: C\n WRITES: ADMBase::shift_state(Everywhere)\n } \"Set the shift_state variable to 1\"\n}\nelse\n{\n SCHEDULE ADMBase_SetShiftStateOff at CCTK_BASEGRID\n {\n LANG: C\n WRITES: ADMBase::shift_state(Everywhere)\n } \"Set the shift_state variable to 0\"\n}\n\n# Do we have storage for dtlapse?\nif (! CCTK_Equals(initial_dtlapse, \"none\")) \n{\n SCHEDULE ADMBase_SetDtLapseStateOn at CCTK_BASEGRID\n {\n LANG: C\n WRITES: ADMBase::dtlapse_state(Everywhere)\n } \"Set the dtlapse_state variable to 1\"\n}\nelse\n{\n SCHEDULE ADMBase_SetDtLapseStateOff at CCTK_BASEGRID\n {\n LANG: C\n WRITES: ADMBase::dtlapse_state(Everywhere)\n } \"Set the dtlapse_state variable to 0\"\n}\n\n# Do we have storage for dtshift?\nif (! CCTK_Equals(initial_dtshift, \"none\")) \n{\n SCHEDULE ADMBase_SetDtShiftStateOn at CCTK_BASEGRID\n {\n LANG: C\n WRITES: ADMBase::dtshift_state(Everywhere)\n } \"Set the dtshift_state variable to 1\"\n}\nelse\n{\n SCHEDULE ADMBase_SetDtShiftStateOff at CCTK_BASEGRID\n {\n LANG: C\n WRITES: ADMBase::dtshift_state(Everywhere)\n } \"Set the dtshift_state variable to 0\"\n}\n\n# Initial data for the shift\nif (CCTK_Equals(initial_shift, \"zero\"))\n{\n SCHEDULE ADMBase_ShiftZero in ADMBase_InitialGauge\n {\n LANG: C\n WRITES: ADMBase::shift(Everywhere)\n WRITES: ADMBase::betax_p(Everywhere), betay_p, betaz_p\n WRITES: ADMBase::betax_p_p(Everywhere), betay_p_p, betaz_p_p\n } \"Set the shift to 0 at all points\"\n}\n\n# Initial data for dtlapse\nif (CCTK_Equals(initial_dtlapse, \"zero\"))\n{\n SCHEDULE ADMBase_DtLapseZero in ADMBase_InitialGauge\n {\n LANG: C\n WRITES: ADMBASE::dtalp(everywhere), dtalp_p, dtalp_p_p\n } \"Set the dtlapse to 0 at all points\"\n}\n\n# Initial data for dtshift\nif (CCTK_Equals(initial_dtshift, \"zero\"))\n{\n SCHEDULE ADMBase_DtShiftZero in ADMBase_InitialGauge\n {\n LANG: C\n WRITES: ADMBASE::dtshift(everywhere)\n WRITES: ADMBASE::dtbetax_p(everywhere), dtbetay_p, dtbetaz_p\n WRITES: ADMBASE::dtbetax_p_p(everywhere), dtbetay_p_p, dtbetaz_p_p\n } \"Set the dtshift to 0 at all points\"\n}\n\n\n\nif (CCTK_Equals(lapse_evolution_method, \"static\") ||\n CCTK_Equals(lapse_evolution_method, \"ID-apply-always\"))\n{\n SCHEDULE ADMBase_LapseStatic in CCTK_PRESTEP\n {\n LANG: C\n READS: ADMBASE::alp_p(everywhere)\n READS: ADMBASE::dtalp_p(everywhere)\n WRITES: ADMBASE::alp(everywhere)\n WRITES: ADMBASE::dtalp(everywhere)\n } \"Copy the lapse to the current time level\"\n}\n \nif (CCTK_Equals(shift_evolution_method, \"static\") ||\n CCTK_Equals(shift_evolution_method, \"ID-apply-always\"))\n{\n SCHEDULE ADMBase_ShiftStatic in CCTK_PRESTEP\n {\n LANG: C\n READS: ADMBASE::betax_p(everywhere), betay_p, betaz_p\n READS: ADMBASE::dtbetax_p(everywhere), dtbetay_p, dtbetaz_p\n WRITES: ADMBASE::shift(everywhere)\n WRITES: ADMBASE::dtshift(everywhere)\n } \"Copy the shift to the current time level\"\n}\n\nif (CCTK_Equals(evolution_method, \"static\") ||\n CCTK_Equals(evolution_method, \"none\") ||\n CCTK_Equals(evolution_method, \"ID-apply-always\"))\n{\n SCHEDULE ADMBase_Static in CCTK_PRESTEP\n {\n LANG: C\n READS: ADMBase::kxx_p(Everywhere), kxy_p, kxz_p, kyy_p, kyz_p, kzz_p\n READS: ADMBase::gxx_p(Everywhere), gxy_p, gxz_p, gyy_p, gyz_p, gzz_p\n WRITES: ADMBase::curv(Everywhere)\n WRITES: ADMBase::metric(Everywhere)\n } \"Copy the metric and extrinsic curvature to the current time level\"\n}\n\n# FIXME: Remove this when symmetries done better \nschedule Einstein_InitSymBound at CCTK_WRAGH\n{\n LANG: C\n OPTIONS: global\n} \"Set up GF symmetries\"\n\n# For Mesh Refinement it is possible (eg Cowling approximation) that ADMBase variables will need synchronization even when not evolved (eg when a new refined grid appears)\nif (CCTK_Equals(evolution_method, \"static\") || CCTK_Equals(evolution_method, \"none\") || CCTK_Equals(lapse_evolution_method, \"static\") || CCTK_Equals(shift_evolution_method, \"static\") || CCTK_Equals(dtlapse_evolution_method, \"static\") || CCTK_Equals(dtshift_evolution_method, \"static\") )\n{\n SCHEDULE ADMBase_Boundaries IN MoL_PostStep BEFORE ADMBase_SetADMVars\n {\n LANG: C\n OPTIONS: LEVEL\n SYNC: lapse\n SYNC: dtlapse\n SYNC: shift\n SYNC: dtshift\n SYNC: metric\n SYNC: curv\n } \"Select ADMBase boundary conditions - may be required for mesh refinement\"\n SCHEDULE GROUP ApplyBCs as ADMBase_ApplyBCs IN MoL_PostStep AFTER ADMBase_Boundaries BEFORE ADMBase_SetADMVars\n {\n } \"Apply the boundary conditions of ADMBase\"\n}\n\nif (CCTK_Equals(evolution_method, \"ID-apply-regrid\") ||\n CCTK_Equals(evolution_method, \"ID-apply-always\"))\n{\n SCHEDULE group ADMBase_InitialData at CCTK_POSTREGRID\n {\n } \"Schedule group for calculating ADM initial data\"\n\n SCHEDULE group ADMBase_InitialData at CCTK_POSTREGRIDINITIAL\n {\n } \"Schedule group for calculating ADM initial data\"\n}\n\nif (CCTK_Equals(lapse_evolution_method, \"ID-apply-regrid\") ||\n CCTK_Equals(shift_evolution_method, \"ID-apply-regrid\") ||\n CCTK_Equals(dtlapse_evolution_method, \"ID-apply-regrid\") ||\n CCTK_Equals(dtshift_evolution_method, \"ID-apply-regrid\") ||\n CCTK_Equals(lapse_evolution_method, \"ID-apply-always\") ||\n CCTK_Equals(shift_evolution_method, \"ID-apply-always\") ||\n CCTK_Equals(dtlapse_evolution_method, \"ID-apply-always\") ||\n CCTK_Equals(dtshift_evolution_method, \"ID-apply-always\"))\n{\n SCHEDULE group ADMBase_InitialGauge at CCTK_POSTREGRID after ADMBase_InitialData BEFORE MoL_PostStep\n {\n } \"Schedule group for the ADM initial gauge condition\"\n\n SCHEDULE group ADMBase_InitialGauge at CCTK_POSTREGRIDINITIAL after ADMBase_InitialData BEFORE MoL_PostStep\n {\n } \"Schedule group for the ADM initial gauge condition\"\n}\n\n# TODO: Rename this group to \"ADMBase_HaveBeenSet\"?\nSCHEDULE GROUP ADMBase_SetADMVars IN MoL_PostStep\n{\n} \"Set the ADM variables before this group, and use them afterwards\"\n\nSCHEDULE GROUP ADMBase_SetADMVars IN MoL_PseudoEvolution\n{\n} \"Set the ADM variables before this group, and use them afterwards\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn ADMBase\n# $Header$\n\n# Source files in this directory\nSRCS = ParamCheck.c Initialisation.c Static.c InitSymBound.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/EinsteinBase_ADMCoupling.json b/EinsteinBase_ADMCoupling.json index fa40f409964bf457192e3d12de51181ff1163f54..92f8306c67006fba6ed95401c919930e63b59c2b 100644 --- a/EinsteinBase_ADMCoupling.json +++ b/EinsteinBase_ADMCoupling.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinbase.git", "configuration": "", "interface": "# Interface definition for thorn ADMCoupling\n# $Header$\n\nimplements: ADMCoupling\n", - "params": "", + "param": "# Parameter definitions for thorn ADMCoupling\n# $Header$\n", "schedule": "# Schedule definitions for thorn ADMCoupling\n# $Header$\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn ADMCoupling\n# $Header$\n\n# Source files in this directory\nSRCS = \n\n# Subdirectories containing source files\nSUBDIRS = \n\n" diff --git a/EinsteinBase_ADMMacros.json b/EinsteinBase_ADMMacros.json index 78619c445c16ff025b1fdaa39275343097f19c18..054e6c12826f118be10461441040d39254e6bfa7 100644 --- a/EinsteinBase_ADMMacros.json +++ b/EinsteinBase_ADMMacros.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinbase.git", "configuration": "# Configuration definitions for thorn CartGrid3D\n# $Header$\n\nPROVIDES ADMMacros\n{\n SCRIPT\n LANG\n}\n", "interface": "# Interface definition for thorn ADMMacros\n# $Header$\n\nimplements: ADMMacros\n\nUSES INCLUDE: CalcTmunu_temps.inc\nUSES INCLUDE: CalcTmunu.inc\n\npublic:\n\nint local_spatial_order type=SCALAR \\\n \"Can be set pointwise to change the finite differencing order\"\n", - "params": "", + "param": "# Parameter definitions for thorn ADMMacros\n# $Header$\n\nrestricted:\n \nINT spatial_order \"Order of spatial differencing\"\n{\n2 :: \"2nd order finite differencing\"\n4 :: \"4th order finite differencing\"\n} 2\n", "schedule": "# Schedule definitions for thorn ADMMacros\n# $Header$\n\nSTORAGE: local_spatial_order\n\nschedule ADMMacros_SetLocalSpatialOrder AT BASEGRID\n{\n LANG: C\n WRITES: ADMMACROS::local_spatial_order(everywhere)\n} \"Initialize the local_spatial_order\"\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn ADMMacros\n# $Header$\n\n# Source files in this directory\nSRCS = SetLocalSpatialOrder.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/EinsteinBase_Constants.json b/EinsteinBase_Constants.json index cc15e02d3f9a11dca88f48cd27d334f5603f93bc..feedab0cb24f47ee1bdb011ba5b0975a44eecec8 100644 --- a/EinsteinBase_Constants.json +++ b/EinsteinBase_Constants.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinbase.git", "configuration": "", "interface": "implements: Constants\n\nINCLUDE HEADER: constants.h in constants.h\n\n", - "params": "", + "param": "", "schedule": "", "src": { "make.code.defn": "", diff --git a/EinsteinBase_CoordGauge.json b/EinsteinBase_CoordGauge.json index afb07d5237c57e61000a2d0f40eb0580275b510e..3c054646e74a7b17f86da1e8a39f55356d8281b9 100644 --- a/EinsteinBase_CoordGauge.json +++ b/EinsteinBase_CoordGauge.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinbase.git", "configuration": "", "interface": "# Interface definition for thorn CoordGauge\n# $Header$\n\nimplements: CoordGauge\n\npublic:\n\nINT slicing_flags TYPE = SCALAR\n{\n active_slicing_handle\n} \"Slicing and shift stuff\"\n\n# Will be changed to.\n#INT selected_slicing_handles TYPE = SCALAR\n#{\n# selected_lapse\n# selected_shift\n#} \"Slicing Handles\"\n\n\n# FIXME: This will be removed when new slicing stuff is there\n\nINCLUDE HEADER: Slicing.h in Slicing.h\n\n", - "params": "", + "param": "# Parameter definitions for thorn CoordGauge\n# $Header$\n\nshares: ADMBase\n\nEXTENDS KEYWORD lapse_evolution_method\n{\n \"coordgauge\" :: \"Use dynamic stuff from CoordGauge\"\n}\n\nEXTENDS KEYWORD shift_evolution_method\n{\n \"coordgauge\" :: \"Use dynamic stuff from CoordGauge\"\n}\n\nrestricted:\n\nSTRING lapse_list \"List of allowed lapses to use\"\n{\n \".*\" :: \"Any string\"\n} \"\"\n\nSTRING shift_list \"List of allowed shifts to use\"\n{\n \".*\" :: \"Any string\"\n} \"\"\n\nprivate:\n\nKEYWORD slicing_verbose \"Print information on current slicing\"\n{\n \"yes\" :: \"print slicing info\"\n \"no\" :: \"do not print slicing info\"\n} \"no\"\n", "schedule": "# Schedule definitions for thorn CoordGauge\n# $Header$\n\nSTORAGE: slicing_flags\n\n# Old stuff\nschedule Einstein_ActivateSlicing at CCTK_WRAGH\n{\n LANG: C\n} \"Initialize slicing, setup priorities for mixed slicings\"\n\nschedule Einstein_SetNextSlicing at CCTK_WRAGH after Einstein_ActivateSlicing\n{\n LANG: C\n} \"Identify the slicing for the next iteration\"\n\nschedule Einstein_SetNextSlicing at CCTK_PRESTEP\n{\n LANG: C\n} \"Identify the slicing for the next iteration\"\n\n#New stuff\n\nif(CCTK_Equals(lapse_evolution_method, \"coordgauge\")||\n CCTK_Equals(shift_evolution_method, \"coordgauge\"))\n{\n SCHEDULE GROUP CoordGauge AT CCTK_PRESTEP\n {\n } \"Coordinate Gauge group\"\n\n\n if(CCTK_Equals(lapse_evolution_method, \"coordgauge\"))\n {\n SCHEDULE GROUP LapseSelect IN CoordGauge BEFORE PickCoordGauge\n {\n } \"Lapse Selection Group\"\n\n SCHEDULE GROUP LapseApply IN CoordGauge AFTER PickCoordGauge\n {\n } \"Lapse Application Group\"\n }\n\n if(CCTK_Equals(shift_evolution_method, \"coordgauge\"))\n {\n SCHEDULE GROUP ShiftSelect IN CoordGauge BEFORE PickCoordGauge\n {\n } \"Shift Selection Group\"\n\n SCHEDULE GROUP ShiftApply IN CoordGauge AFTER PickCoordGauge\n {\n } \"Shift Application Group\"\n }\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn CoordGauge\n# $Header$\n\n# Source files in this directory\nSRCS = Slicing.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/EinsteinBase_EOS_Base.json b/EinsteinBase_EOS_Base.json index 7d858b111e06472464c29c9f6d9e26ad4ba1b432..b175b2eed92c23b3c7ed83b0a1763ba36e6b4b98 100644 --- a/EinsteinBase_EOS_Base.json +++ b/EinsteinBase_EOS_Base.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinbase.git", "configuration": "# Configuration definitions for thorn CartGrid3D\n# $Header$\n\nPROVIDES EOS_Base\n{\n SCRIPT\n LANG\n}\n", "interface": "# Interface definition for thorn EOS_Base\n# $Header$\n\nimplements: EOS_Base\n\nINCLUDES: EOS_Base.h in EOS_Base.h\nINCLUDES: EOS_Base.inc in EOS_Base.inc\n", - "params": "", + "param": "# Parameter definitions for thorn EOS_Base\n# $Header$\n", "schedule": "# Schedule definitions for thorn EOS_Base\n# $Header$\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn EOS_Base\n# $Header$\n\n# Source files in this directory\nSRCS = Register.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/EinsteinBase_HydroBase.json b/EinsteinBase_HydroBase.json index 6a6775a4b5266794875ab785cc5116f0db7c735c..bd296c45e91ad9385a613d7e6cba840c1bd89a4c 100644 --- a/EinsteinBase_HydroBase.json +++ b/EinsteinBase_HydroBase.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinbase.git", "configuration": "# Configuration definition for thorn HydroBase\n", "interface": "# Interface definition for thorn HydroBase\n\nimplements: HydroBase\n\ninherits: InitBase\n\nUSES INCLUDE: HydroBase.h\n\nINCLUDE HEADER: HydroBase.h in HydroBase.h\n\npublic:\n\n# These variables correspond to the Valencia formulation\n\n# HydroBase uses the following conventions:\n# M = M_sun\n# c = G = 1\n\n# We also assume the following constants of nature:\n# c = 299792458.0 m/s\n# G = 6.67428e-11 m^3/kg/s^2\n# mu0 = 4 pi 1.0e-7 N/A^2\n# eps0 = 1 / (mu0 c^2)\n# M_sun = 1.98892e+30 kg\n\n# This corresponds to the following units:\n# [M] = M_sun\n# [L] = [M] (G / c^2)\n# [T] = [L] / c\n# [B] = 1 / [L] / sqrt(eps0 G / c^2))\n\nCCTK_REAL rho type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"Scalar\" interpolator=\"matter\"' \"rest mass density\"\nCCTK_REAL press type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"Scalar\" interpolator=\"matter\"' \"gas pressure\"\nCCTK_REAL eps type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"Scalar\" interpolator=\"matter\"' \"specific internal energy\"\n\nCCTK_REAL vel[3] type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"U\" interpolator=\"matter\"' \"velocity v^i\"\n\nCCTK_REAL w_lorentz type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"Scalar\" interpolator=\"matter\"' \"Lorentz Factor\"\n\nCCTK_REAL Y_e type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"Scalar\" interpolator=\"matter\"' \"Electron Fraction\"\nCCTK_REAL Abar type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"Scalar\" interpolator=\"matter\"' \"Average atomic mass [atomic mass unit]\"\nCCTK_REAL temperature type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"Scalar\" interpolator=\"matter\"' \"Temperature [MeV]\"\nCCTK_REAL entropy type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"Scalar\" interpolator=\"matter\"' \"Specific Entropy [k_b/baryon]\"\n\nCCTK_REAL Bvec[3] type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"U\" tensorparity=-1 interpolator=\"matter\"' \"Magnetic field components B^i\"\nCCTK_REAL Avec[3] type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"D\" jacobian=\"jacobian\" interpolator=\"matter\"' \"Vector potential\"\nCCTK_REAL Aphi type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"Scalar\" jacobian=\"jacobian\" interpolator=\"matter\"' \"Electric potential for Lorentz Gauge\"\n\n\n# This may become CCTK_BYTE when Carpet enables it by default\nCCTK_INT hydro_excision_mask type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"' \"Mask for hydro excision\"\n", - "params": "", + "param": "# Parameter definitions for thorn HydroBase\n\nSHARES: InitBase\n\nUSES KEYWORD initial_data_setup_method\n\nSHARES: IO\n\nUSES STRING filereader_ID_vars\n\nRESTRICTED:\n\nKEYWORD initial_hydro \"The hydro initial data\"\n{\n \"zero\" :: \"hydro variables are set to vacuum (without atmosphere)\"\n \"read from file\" :: \"Read the initial data using the IOUtil file reader. Note that this only allows you to read the data from a file, it does not actually do it. You still have to programme the IOUtil file reader accordingly.\"\n} \"zero\"\n\nKEYWORD evolution_method \"The hydro evolution method\"\n{\n \"none\" :: \"hydro variables are not evolved\"\n} \"none\"\n\nINT timelevels \"Number of time levels in evolution scheme\" STEERABLE=recover\n{\n 1:3 :: \"\"\n} 1\n\nSTRING prolongation_type \"The prolongation operator used by Carpet for HydroBase variables\"\n{\n \"ENO\" :: \"Third order ENO operators; only third order is implemented\"\n \"WENO\" :: \"Fifth order WENO operators; only fifth order is implemented\"\n \".*\" :: \"Anything else\"\n} \"ENO\"\n\n# Settings for electron fraction Y_e\n\nKEYWORD initial_Y_e \"Initial value for Y_e\"\n{\n \"none\" :: \"inactive\"\n \"one\" :: \"initially set to one\"\n \"read from file\" :: \"Read the initial data using the IOUtil file reader. Note that this only allows you to read the data from a file, it does not actually do it. You still have to programme the IOUtil file reader accordingly.\"\n} \"none\"\n\nKEYWORD initial_Abar \"Initial value for Abar\"\n{\n \"none\" :: \"inactive\"\n \"zero\" :: \"initially set to zero\"\n \"read from file\" :: \"Read the initial data using the IOUtil file reader. Note that this only allows you to read the data from a file, it does not actually do it. You still have to programme the IOUtil file reader accordingly.\"\n} \"none\"\n\nKEYWORD Y_e_evolution_method \"Evolution method for Y_e\"\n{\n \"none\" :: \"Evolution for Y_e is disabled\"\n} \"none\"\n\nKEYWORD Abar_evolution_method \"Evolution method for Abar\"\n{\n \"none\" :: \"Evolution for Abar is disabled\"\n} \"none\"\n\nKEYWORD temperature_evolution_method \"Evolution method for temperature\"\n{\n \"none\" :: \"Evolution for temperature is disabled\"\n} \"none\"\n\nKEYWORD entropy_evolution_method \"Evolution method for entropy\"\n{\n \"none\" :: \"Evolution for entropy is disabled\"\n} \"none\"\n\n# Settings for magnetic field B^i\n\nKEYWORD initial_Bvec \"Initial value for Bvec\"\n{\n \"none\" :: \"inactive\"\n \"zero\" :: \"initially set to zero\"\n \"read from file\" :: \"Read the initial data using the IOUtil file reader. Note that this only allows you to read the data from a file, it does not actually do it. You still have to programme the IOUtil file reader accordingly.\"\n} \"none\"\n\nKEYWORD initial_Avec \"Initial value for Avec\"\n{\n \"none\" :: \"inactive\"\n \"zero\" :: \"initially set to zero\"\n \"read from file\" :: \"Read the initial data using the IOUtil file reader. Note that this only allows you to read the data from a file, it does not actually do it. You still have to programme the IOUtil file reader accordingly.\"\n} \"none\"\n\nKEYWORD initial_Aphi \"Initial value for Aphi\"\n{\n \"none\" :: \"inactive\"\n \"zero\" :: \"initially set to zero\"\n \"read from file\" :: \"Read the initial data using the IOUtil file reader. Note that this only allows you to read the data from a file, it does not actually do it. You still have to programme the IOUtil file reader accordingly.\"\n} \"none\"\n\nKEYWORD Bvec_evolution_method \"Evolution method for Bvec\"\n{\n \"none\" :: \"Evolution for Bvec is disabled\"\n} \"none\"\n\nINT hydro_excision \"Turn on of off (default) storage for hydro excision\" ACCUMULATOR = (x+y)\n{\n 0:* :: \"Anything else than 0 turns hydro_excision on, added to by other thorns\"\n} 0\n\n# Settings for temperature and electron fraction\n\nKEYWORD initial_temperature \"Initial value for temperature\"\n{\n \"none\" :: \"inactive\"\n \"zero\" :: \"initially set to zero\"\n \"read from file\" :: \"Read the initial data using the IOUtil file reader. Note that this only allows you to read the data from a file, it does not actually do it. You still have to programme the IOUtil file reader accordingly.\"\n} \"none\"\n\nKEYWORD initial_entropy \"Initial value for entropy\"\n{\n \"none\" :: \"inactive\"\n \"zero\" :: \"initially set to zero\"\n \"read from file\" :: \"Read the initial data using the IOUtil file reader. Note that this only allows you to read the data from a file, it does not actually do it. You still have to programme the IOUtil file reader accordingly.\"\n} \"none\"\n\n\n", "schedule": "# Schedule definitions for thorn HydroBase\n\nif (timelevels == 1)\n{\n STORAGE: rho[1]\n STORAGE: press[1]\n STORAGE: eps[1]\n STORAGE: vel[1]\n STORAGE: w_lorentz[1]\n if (!CCTK_EQUALS(initial_Y_e, \"none\"))\n {\n STORAGE: Y_e[1]\n }\n if (!CCTK_EQUALS(initial_Abar, \"none\"))\n {\n STORAGE: Abar[1]\n }\n if (!CCTK_EQUALS(initial_Bvec, \"none\"))\n {\n STORAGE: Bvec[1]\n }\n if (!CCTK_EQUALS(initial_Avec, \"none\"))\n {\n STORAGE: Avec[1]\n }\n if (!CCTK_EQUALS(initial_Aphi, \"none\"))\n {\n STORAGE: Aphi[1]\n }\n if (!CCTK_EQUALS(initial_temperature, \"none\"))\n {\n STORAGE: temperature[1]\n }\n if (!CCTK_EQUALS(initial_entropy, \"none\"))\n {\n STORAGE: entropy[1]\n }\n}\nelse if (timelevels == 2)\n{\n STORAGE: rho[2]\n STORAGE: press[2]\n STORAGE: eps[2]\n STORAGE: vel[2]\n STORAGE: w_lorentz[2]\n if (!CCTK_EQUALS(initial_Y_e, \"none\"))\n {\n STORAGE: Y_e[2]\n }\n if (!CCTK_EQUALS(initial_Abar, \"none\"))\n {\n STORAGE: Abar[2]\n }\n if (!CCTK_EQUALS(initial_Bvec, \"none\"))\n {\n STORAGE: Bvec[2]\n }\n if (!CCTK_EQUALS(initial_Avec, \"none\"))\n {\n STORAGE: Avec[2]\n }\n if (!CCTK_EQUALS(initial_Aphi, \"none\"))\n {\n STORAGE: Aphi[2]\n }\n if (!CCTK_EQUALS(initial_temperature, \"none\"))\n {\n STORAGE: temperature[2]\n }\n if (!CCTK_EQUALS(initial_entropy, \"none\"))\n {\n STORAGE: entropy[2]\n }\n}\nelse if (timelevels == 3)\n{\n STORAGE: rho[3]\n STORAGE: press[3]\n STORAGE: eps[3]\n STORAGE: vel[3]\n STORAGE: w_lorentz[3]\n if (!CCTK_EQUALS(initial_Y_e, \"none\"))\n {\n STORAGE: Y_e[3]\n }\n if (!CCTK_EQUALS(initial_Abar, \"none\"))\n {\n STORAGE: Abar[3]\n }\n if (!CCTK_EQUALS(initial_Bvec, \"none\"))\n {\n STORAGE: Bvec[3]\n }\n if (!CCTK_EQUALS(initial_Avec, \"none\"))\n {\n STORAGE: Avec[3]\n }\n if (!CCTK_EQUALS(initial_Aphi, \"none\"))\n {\n STORAGE: Aphi[3]\n }\n if (!CCTK_EQUALS(initial_temperature, \"none\"))\n {\n STORAGE: temperature[3]\n }\n if (!CCTK_EQUALS(initial_entropy, \"none\"))\n {\n STORAGE: entropy[3]\n }\n}\n\nif (hydro_excision)\n{\n STORAGE: hydro_excision_mask\n}\n\nschedule group HydroBase_Initial at CCTK_INITIAL \\\n after (ADMBase_InitialData ADMBase_InitialGauge \\\n IOUtil_RecoverIDFromDatafiles) \\\n before (ADMBase_PostInitial SetTmunu)\n{\n} \"HydroBase initial data group\"\n\nschedule HydroBase_StartUp at CCTK_STARTUP\n{\n LANG: C\n} \"Startup banner\"\n\nif(CCTK_EQUALS(initial_hydro, \"read from file\") ||\n CCTK_EQUALS(initial_Aphi, \"read from file\") ||\n CCTK_EQUALS(initial_Avec, \"read from file\") ||\n CCTK_EQUALS(initial_Bvec, \"read from file\") ||\n CCTK_EQUALS(initial_Y_e, \"read from file\") ||\n CCTK_EQUALS(initial_temperature, \"read from file\") ||\n CCTK_EQUALS(initial_entropy, \"read from file\"))\n{\nschedule HydroBase_ParamCheck AT PARAMCHECK\n{\n LANG: C\n} \"check that hydrobase parameters are consistent\"\n}\n\nschedule group HydroBase_RHS in MoL_CalcRHS\n{\n} \"Groups for scheduling tasks for calculating RHS of hydro variables\"\n\nschedule group HydroBase_PostStep in MoL_PostStep before SetTmunu after ADMBase_SetADMVars\n{\n} \"Post step tasks for hydro thorns\"\n\n# Hydro thorns should not schedule anything in group\n# HydroBase_Boundaries; they should schedule in\n# HydroBase_Select_Boundaries instead. However, they may refer to\n# HydroBase_Boundaries in order to schedule own routines before or\n# after the boundary treatment, or in order to schedule the whole\n# group.\nschedule group HydroBase_Boundaries in HydroBase_PostStep \\\n before HydroBase_Con2Prim\n{\n} \"HydroBase-internal Boundary conditions group\"\n\n# This is where hydro thorns schedule functions that select which\n# boundary conditions should be applied to which variables.\nschedule group HydroBase_Select_Boundaries in HydroBase_Boundaries\n{\n} \"Group to schedule the boundary condition functions\"\n\n# This group actually applies all selected boundary conditions. Hydro\n# thorns should not need to change anything here.\nschedule group ApplyBCs as HydroBase_ApplyBCs in HydroBase_Boundaries \\\n after HydroBase_Select_Boundaries\n{\n} \"Apply the boundary conditions of HydroBase\"\n\n# Hydro thorns should schedule their Con2Prim routines in this group.\n# This group is then scheduled at different times during an evolution.\nschedule group HydroBase_Con2Prim in HydroBase_PostStep\n{\n} \"Convert from conservative to primitive variables\"\n\nschedule group HydroBase_Con2Prim at CCTK_PostPostInitial as Con2Prim \\\n before ADMConstraintsGroup\n{\n} \"Convert from conservative to primitive variables (might be redundant)\"\n\n# Hydro thorns should schedule their Prim2Con routines in this group.\n# This group is then scheduled at different times during an evolution.\nschedule group HydroBase_Prim2ConInitial at CCTK_INITIAL \\\n after HydroBase_Initial before SetTmunu\n{\n} \"Recover the conservative variables from the primitive variables\"\n\n\n\nif (CCTK_EQUALS(initial_hydro, \"zero\"))\n{\n schedule HydroBase_Zero in HydroBase_Initial\n {\n LANG: C\n WRITES: HYDROBASE::rho(everywhere), rho_p, rho_p_p\n WRITES: HYDROBASE::vel(everywhere), vel_p, vel_p_p\n WRITES: HYDROBASE::w_lorentz(everywhere), w_lorentz_p, w_lorentz_p_p\n WRITES: HYDROBASE::eps(everywhere), eps_p, eps_p_p\n WRITES: HYDROBASE::Abar(everywhere), Abar_p, Abar_p_p\n WRITES: HYDROBASE::temperature(everywhere), temperature_p, temperature_p_p\n WRITES: HYDROBASE::entropy(everywhere), entropy_p, entropy_p_p\n } \"Set up vacuum hydro initial data\"\n}\n\nif (CCTK_Equals(initial_Y_e, \"one\"))\n{\n SCHEDULE HydroBase_Y_e_one in HydroBase_Initial\n {\n LANG: C\n WRITES: HYDROBASE::Y_e(everywhere), Y_e_p, Y_e_p_p\n } \"Set electron fraction to 1\"\n}\n\nif (CCTK_Equals(initial_Bvec, \"zero\"))\n{\n SCHEDULE HydroBase_Bvec_zero in HydroBase_Initial\n {\n LANG: C\n WRITES: HYDROBASE::Bvec(everywhere), Bvec_p, Bvec_p_p\n } \"Set magnetic field to 0\"\n}\n\nif (CCTK_Equals(initial_Avec, \"zero\"))\n{\n SCHEDULE HydroBase_Avec_zero in HydroBase_Initial\n {\n LANG: C\n WRITES: HYDROBASE::Avec(everywhere), Avec_p, Avec_p_p\n } \"Set vector potential to 0\"\n}\n\nif (CCTK_Equals(initial_Aphi, \"zero\"))\n{\n SCHEDULE HydroBase_Aphi_zero in HydroBase_Initial\n {\n LANG: C\n WRITES: HYDROBASE::Aphi(everywhere), Aphi_p, Aphi_p_p\n } \"Set vector potential Phi to 0\"\n}\n\nif (hydro_excision)\n{\n schedule GROUP HydroBase_ExcisionMaskSetup in HydroBase_Initial\n {\n } \"Set up hydro excision mask\"\n schedule GROUP HydroBase_ExcisionMaskSetup at PostRegridInitial BEFORE MoL_PostStep\n {\n } \"Set up hydro excision mask\"\n schedule GROUP HydroBase_ExcisionMaskSetup at PostRegrid BEFORE MoL_PostStep\n {\n } \"Set up hydro excision mask\"\n schedule GROUP HydroBase_ExcisionMaskSetup at Post_Recover_Variables BEFORE MoL_PostStep\n {\n } \"Set up hydro excision mask\"\n\n schedule HydroBase_InitExcisionMask in HydroBase_ExcisionMaskSetup\n {\n LANG: C\n WRITES: HYDROBASE::hydro_excision_mask(everywhere)\n } \"Initialize hydro excision mask to 'no excision everywhere'\"\n\n schedule GROUP HydroBase_ExcisionHasBeenSet at CCTK_PostStep\n {\n } \"Group to schedule thorns changing the mask before and thorns using the mask after\"\n}\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn HydroBase\n\n# Source files in this directory\nSRCS = StartUp.c Initialisation.c ParamCheck.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/EinsteinBase_StaticConformal.json b/EinsteinBase_StaticConformal.json index c9d6a956b2077395e9df92aa79e5c1eada608ec2..903338d37c538ced193ea92d6858c34873b31406 100644 --- a/EinsteinBase_StaticConformal.json +++ b/EinsteinBase_StaticConformal.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinbase.git", "configuration": "", "interface": "# Interface definition for thorn StaticConformal\n# $Header$\n\nimplements: StaticConformal\ninherits: grid\n\npublic:\n\nINT conformal_state type = SCALAR\n\nREAL confac TYPE = GF timelevels = 1 tags='tensortypealias=\"Scalar\" Prolongation=\"None\" InterpNumTimelevels=1'\n{\n psi\n} \"Conformal factor\"\n\nREAL confac_1derivs TYPE = GF timelevels = 1 tags='tensortypealias=\"U\" Prolongation=\"None\" InterpNumTimelevels=1'\n{\n psix, psiy, psiz\n} \"First spatial derivatives of conformal factor divided by psi\"\n\n# Will be changed to.\n#REAL confac_1derivs TYPE = GF\n#{\n# psi_1, psi_2, psi_3\n#} \"First spatial derivatives of conformal factor divided by psi\"\n\nREAL confac_2derivs TYPE = GF timelevels = 1 tags='tensortypealias=\"dd_sym\" Prolongation=\"None\" InterpNumTimelevels=1'\n{\n psixx, psixy, psixz, psiyy, psiyz, psizz\n} \"Second spatial derivatives of conformal factor divided by psi\"\n\n# Will be changed to.\n#REAL confac_2derivs TYPE = GF\n#{\n# psi_11, psi_12, psi_13, psi_22, psi_23, psi_33\n#} \"Second spatial derivatives of conformal factor divided by psi\"\n\n\n\nvoid FUNCTION ConfToPhysInPlace (CCTK_INT IN nx, \\\n CCTK_INT IN ny, \\\n CCTK_INT IN nz, \\\n CCTK_REAL ARRAY IN psi, \\\n CCTK_REAL ARRAY INOUT gxx, \\\n CCTK_REAL ARRAY INOUT gxy, \\\n CCTK_REAL ARRAY INOUT gxz, \\\n CCTK_REAL ARRAY INOUT gyy, \\\n CCTK_REAL ARRAY INOUT gyz, \\\n CCTK_REAL ARRAY INOUT gzz)\nPROVIDES FUNCTION ConfToPhysInPlace WITH StaticConf_ConfToPhysInPlace LANGUAGE C\n\nvoid FUNCTION PhysToConfInPlace (CCTK_INT IN nx, \\\n CCTK_INT IN ny, \\\n CCTK_INT IN nz, \\\n CCTK_REAL ARRAY IN psi, \\\n CCTK_REAL ARRAY INOUT gxx, \\\n CCTK_REAL ARRAY INOUT gxy, \\\n CCTK_REAL ARRAY INOUT gxz, \\\n CCTK_REAL ARRAY INOUT gyy, \\\n CCTK_REAL ARRAY INOUT gyz, \\\n CCTK_REAL ARRAY INOUT gzz)\nPROVIDES FUNCTION PhysToConfInPlace WITH StaticConf_PhysToConfInPlace LANGUAGE C\n", - "params": "", + "param": "# Parameter definitions for thorn StaticConformal\n# $Header$\n\nshares: ADMBase\n\nEXTENDS KEYWORD metric_type\n{\n \"static conformal\" :: \"Metric is conformal with static conformal factor, extrinsic curvature is physical\"\n}\n\nrestricted:\n\nKEYWORD conformal_storage \"How much conformal storage do we have ?\"\n{\n \"factor\" :: \"Just the conformal factor\"\n \"factor+derivs\" :: \"Conformal factor plus first derivatives\"\n \"factor+derivs+2nd derivs\" :: \"Conformal factor plus first and second derivatives\"\n} \"factor+derivs+2nd derivs\"\n\nprivate:\n\n", "schedule": "# Schedule definitions for thorn StaticConformal\n# $Header$\n\n\n\n# Putting in an else here because people want to use conformal_state\n# even if the metric is not \"static conformal\". They should still\n# check the metric_type and know they can deal with it, 'though.\nSTORAGE: conformal_state\n\nSCHEDULE StaticConformal_InitialiseState at CCTK_INITIAL before ADMBase_InitialData\n{\n LANG: C\n WRITES: STATICCONFORMAL::conformal_state(everywhere)\n} \"Set the conformal_state variable to 0\"\n\n\n\nif(CCTK_Equals(metric_type,\"static conformal\"))\n{\n\n if(CCTK_Equals(conformal_storage, \"factor\"))\n {\n STORAGE: confac[1]\n }\n \n if(CCTK_Equals(conformal_storage, \"factor+derivs\"))\n {\n STORAGE: confac[1], confac_1derivs[1]\n }\n \n if(CCTK_Equals(conformal_storage, \"factor+derivs+2nd derivs\"))\n {\n STORAGE: confac[1], confac_1derivs[1], confac_2derivs[1]\n }\n\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn StaticConformal\n# $Header$\n\n# Source files in this directory\nSRCS = Initialise.c ConfPhys.c\n#SRCS = Initialise.c Evolve.c ConfPhys.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/EinsteinBase_TmunuBase.json b/EinsteinBase_TmunuBase.json index 70921e51a9f3261262926b9f15d5d1ff719d977d..54d6c562811c68274b45c445d836fdaee3b25f44 100644 --- a/EinsteinBase_TmunuBase.json +++ b/EinsteinBase_TmunuBase.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinbase.git", "configuration": "# Configuration definition for thorn TmunuBase\n", "interface": "# Interface definition for thorn TmunuBase\n\nIMPLEMENTS: TmunuBase\n\nINHERITS: ADMBase StaticConformal\n\n\n\n# These are our grid functions.\n# They contain T_munu, the complete stress energy tensor.\n\nPUBLIC:\n\nINT stress_energy_state TYPE=scalar \"State of storage for stress-energy tensor\"\n\nREAL stress_energy_scalar TYPE=gf TIMELEVELS=3 TAGS='tensortypealias=\"Scalar\" ProlongationParameter=\"TmunuBase::prolongation_type\"'\n{\n eTtt\n} \"Stress-energy tensor, 3-scalar part T_00\"\n\nREAL stress_energy_vector TYPE=gf TIMELEVELS=3 TAGS='tensortypealias=\"D\" ProlongationParameter=\"TmunuBase::prolongation_type\"'\n{\n eTtx eTty eTtz\n} \"Stress-energy tensor, 3-vector part T_0i\"\n\nREAL stress_energy_tensor TYPE=gf TIMELEVELS=3 TAGS='tensortypealias=\"DD_sym\" ProlongationParameter=\"TmunuBase::prolongation_type\"'\n{\n eTxx eTxy eTxz eTyy eTyz eTzz \n} \"Stress-energy tensor, 3-tensor part T_ij\"\n", - "params": "", + "param": "# Parameter definitions for thorn TmunuBase\n\nBOOLEAN stress_energy_storage \"Should the stress-energy tensor have storage?\"\n{\n} no\n\nRESTRICTED:\n\nBOOLEAN stress_energy_at_RHS \"Should the stress-energy tensor be calculated for the RHS evaluation?\"\n{\n} no\n\nBOOLEAN support_old_CalcTmunu_mechanism \"Should the old CalcTmunu.inc mechanism be supported? This is deprecated.\"\n{\n} no\n\nPRIVATE:\n\nINT timelevels \"Number of time levels\" STEERABLE=recover\n{\n 0:3 :: \"\"\n} 1\n\nSTRING prolongation_type \"The kind of boundary prolongation for the stress-energy tensor\"\n{\n \"^Lagrange$\" :: \"standard prolongation (requires several time levels)\"\n \"^none$\" :: \"no prolongation (use this if you do not have enough time levels active)\"\n \"\" :: \"any other supported prolongation type\"\n} \"Lagrange\"\n", "schedule": "# Schedule definitions for thorn TmunuBase\n\nSTORAGE: stress_energy_state\n\n\n\n# Initialise stuff\n\nSCHEDULE TmunuBase_SetStressEnergyState AT Wragh BEFORE MoL_Register\n{\n LANG: Fortran\n OPTIONS: global\n WRITES: TmunuBase::stress_energy_state(everywhere)\n} \"Set the stress_energy_state variable\"\n\nSCHEDULE TmunuBase_ParamCheck AT ParamCheck\n{\n LANG: C\n OPTIONS: global\n} \"Check that no deprecated parameters are used.\"\n\n\n# Do nothing unless storage is requested\n\nif (stress_energy_storage)\n{\n\n # Storage management\n \n if (timelevels == 1)\n {\n STORAGE: stress_energy_scalar[1]\n STORAGE: stress_energy_vector[1]\n STORAGE: stress_energy_tensor[1]\n }\n else if (timelevels == 2)\n {\n STORAGE: stress_energy_scalar[2]\n STORAGE: stress_energy_vector[2]\n STORAGE: stress_energy_tensor[2]\n }\n else if (timelevels == 3)\n {\n STORAGE: stress_energy_scalar[3]\n STORAGE: stress_energy_vector[3]\n STORAGE: stress_energy_tensor[3]\n }\n \n \n \n if (stress_energy_at_RHS)\n {\n SCHEDULE GROUP SetTmunu IN MoL_PostStep AFTER ADMBase_SetADMVars\n {\n } \"Group for calculating the stress-energy tensor\"\n }\n \n \n \n SCHEDULE TmunuBase_ZeroTmunu IN SetTmunu\n {\n LANG: Fortran\n WRITES: TMUNUBASE::stress_energy_scalar(everywhere)\n WRITES: TMUNUBASE::stress_energy_vector(everywhere)\n WRITES: TMUNUBASE::stress_energy_tensor(everywhere)\n } \"Initialise the stress-energy tensor to zero\"\n \n SCHEDULE GROUP AddToTmunu IN SetTmunu AFTER (TmunuBase_SetTmunu,TmunuBase_ZeroTmunu)\n {\n } \"Add to the stress-energy tensor here\"\n \n} # if stress_energy_storage\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TmunuBase\n\n# Source files in this directory\nSRCS = ParamWarn.c SetStressEnergyState.F90 ZeroTmunu.F90\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/EinsteinEOS_EOS_Hybrid.json b/EinsteinEOS_EOS_Hybrid.json index 326472e055ec6bcf7ca4d698ba1db25300fdf0e9..76f3b197763e96713e40341e8a2c28662a20f0fa 100644 --- a/EinsteinEOS_EOS_Hybrid.json +++ b/EinsteinEOS_EOS_Hybrid.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteineos.git", "configuration": "# Configuration definition for thorn EOS_Hybrid\n\nREQUIRES EOS_Base EOS_Polytrope\n\n", "interface": "# Interface definition for thorn EOS_Hybrid\n\nimplements: EOS_Hybrid\ninherits: HydroBase,EOS_2d_Polytrope\n\nreal pressure_contributions type = GF tags='Prolongation=\"None\"'\n{\n pressure_poly, pressure_th\n} \"Polytropic and thermal contributions to the pressure\"\n", - "params": "", + "param": "# Parameter definitions for thorn EOS_Hybrid\n\nshares: EOS_2d_Polytrope\n\nUSES REAL eos_k\nUSES REAL eos_gamma\nUSES REAL gamma_ini\n\nrestricted:\n\nREAL eos_gamma_th \"Gamma_th for EOS\"\n{\n : :: \"\"\n} 1.5\n\nREAL eos_gamma_supernuclear \"Gamma_2 for EOS\"\n{\n : :: \"\"\n} 1.66666666666666\n\nREAL rho_nuc \"Nuclear matter density\"\n{\n : :: \"\"\n} 1.e-10\n", "schedule": "# Schedule definitions for thorn EOS_Hybrid\n\nschedule EOS_Hybrid_Startup AT startup AFTER EOS_Polytrope_Startup\n{\n LANG: Fortran\n} \"Setup the EOS used by Dimmelmeier et al. in core collapse\"\n\nschedule Check_Poly_Contrib AT analysis\n{\n LANG: Fortran\n STORAGE: pressure_contributions\n TRIGGERS: pressure_contributions\n} \"Output the polytropic and thermal contributions\"\n", "src": { "make.code.deps": "# Module dependencies for thorn EOS_Hybrid\n\nEOS_Hybrid.F.o:\t\t\tEOS_Hybrid_Scalars.F.o\nEOS_Hybrid_Analysis.F.o:\tEOS_Hybrid_Scalars.F.o\nEOS_Hybrid_Startup.F.o:\t\tEOS_Hybrid_Scalars.F.o", diff --git a/EinsteinEOS_EOS_IdealFluid.json b/EinsteinEOS_EOS_IdealFluid.json index f78118fc55bb264e842459a53217a7a06ef1cd58..483978cccb8ae09a9ee256389b28bef47399209e 100644 --- a/EinsteinEOS_EOS_IdealFluid.json +++ b/EinsteinEOS_EOS_IdealFluid.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteineos.git", "configuration": "", "interface": "# Interface definition for thorn EOS_Ideal_Fluid\n# $Header$\n\nimplements: EOS_Ideal_Fluid\ninherits: EOS_Base\n\nUSES INCLUDE: EOS_Base.h\nUSES INCLUDE: EOS_Base.inc\n\nprivate:\n\n\n", - "params": "", + "param": "# Parameter definitions for thorn EOS_Ideal_Fluid\n# $Header$\n\nrestricted:\n\nREAL eos_ideal_fluid_gamma \"Adiabatic Index for Ideal Fluid\"\n{\n : :: \"\"\n} 2.0\n\n", "schedule": "# Schedule definitions for thorn EOS_Ideal_Fluid\n# $Header$\n\nSCHEDULE EOS_Ideal_Fluid_Startup AT startup\n{\n LANG: Fortran\n} \"Setup EOS test in Fortran\"\n\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn EOS_Ideal_Fluid\n# $Header$\n\n# Source files in this directory\nSRCS = EOS_Ideal_Fluid.F EOS_Ideal_Fluid_Startup.F\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/EinsteinEOS_EOS_Omni.json b/EinsteinEOS_EOS_Omni.json index dda58054526b42d108ebf5f2cbcffe0958cedfd9..e03c4996b83ed9fedfffe6eb103db2e60636338a 100644 --- a/EinsteinEOS_EOS_Omni.json +++ b/EinsteinEOS_EOS_Omni.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteineos.git", "configuration": "REQUIRES HDF5\nPROVIDES EOS_Omni\n{\n SCRIPT\n LANG\n}\n\nOPTIONAL MPI\n{\n}\n", "interface": "# Interface definition for thorn EOS_Omni\n\nimplements: EOS_Omni\n\ninherits: \n\nCCTK_INT FUNCTION EOS_Omni_GetHandle(CCTK_STRING IN name)\n\nPROVIDES FUNCTION EOS_Omni_GetHandle with EOS_Omni_GetHandle_ LANGUAGE C\n\nvoid FUNCTION EOS_Omni_press(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n\t\t\t CCTK_REAL IN ARRAY rho, \\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \\\n\t\t\t CCTK_REAL IN ARRAY ye, \\\n\t\t\t CCTK_REAL OUT ARRAY press, \\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \\\n CCTK_INT OUT anyerr)\n\nPROVIDES FUNCTION EOS_Omni_press WITH EOS_Omni_EOS_Press LANGUAGE Fortran\n\nvoid FUNCTION EOS_Omni_press_cs2(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n\t\t\t CCTK_REAL IN ARRAY rho, \\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \\\n\t\t\t CCTK_REAL IN ARRAY ye, \\\n\t\t\t CCTK_REAL OUT ARRAY press, \\\n\t\t\t CCTK_REAL OUT ARRAY cs2, \\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \\\n CCTK_INT OUT anyerr)\n\nPROVIDES FUNCTION EOS_Omni_press_cs2 WITH EOS_Omni_EOS_Press_cs2 LANGUAGE Fortran\n\nvoid FUNCTION EOS_Omni_pressOMP(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n\t\t\t CCTK_REAL IN ARRAY rho, \\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \\\n\t\t\t CCTK_REAL IN ARRAY ye, \\\n\t\t\t CCTK_REAL OUT ARRAY press, \\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \\\n CCTK_INT OUT anyerr)\n\nPROVIDES FUNCTION EOS_Omni_pressOMP WITH EOS_Omni_EOS_PressOMP LANGUAGE Fortran\n\n\nvoid FUNCTION EOS_Omni_DPressByDEps(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n\t\t\t CCTK_REAL IN ARRAY rho, \\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \\\n\t\t\t CCTK_REAL IN ARRAY ye, \\\n\t\t\t CCTK_REAL OUT ARRAY DPressByDEps, \\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \\\n CCTK_INT OUT anyerr)\n\nPROVIDES FUNCTION EOS_Omni_DPressByDEps WITH EOS_Omni_EOS_DPressByDEps LANGUAGE Fortran\n\n\nvoid FUNCTION EOS_Omni_DPressByDRho(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n\t\t\t CCTK_REAL IN ARRAY rho, \t\\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \t\\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \t\\\n\t\t\t CCTK_REAL IN ARRAY ye, \t\\\n\t\t\t CCTK_REAL OUT ARRAY DPressByDRho, \\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \t\\\n CCTK_INT OUT anyerr)\n\nPROVIDES FUNCTION EOS_Omni_DPressByDRho WITH EOS_Omni_EOS_DPressByDRho LANGUAGE Fortran\n\nvoid FUNCTION EOS_Omni_dpderho_dpdrhoe(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n\t\t\t CCTK_REAL IN ARRAY rho, \\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \\\n\t\t\t CCTK_REAL IN ARRAY ye, \\\n\t\t\t CCTK_REAL OUT ARRAY dpderho, \\\n\t\t\t CCTK_REAL OUT ARRAY dpdrhoe, \\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \\\n CCTK_INT OUT anyerr)\n\nPROVIDES FUNCTION EOS_Omni_dpderho_dpdrhoe WITH EOS_Omni_EOS_dpderho_dpdrhoe LANGUAGE Fortran\n\n\n\nvoid FUNCTION EOS_Omni_cs2(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n\t\t\t CCTK_REAL IN ARRAY rho, \t\\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \t\\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \t\\\n\t\t\t CCTK_REAL IN ARRAY ye, \t\\\n\t\t\t CCTK_REAL OUT ARRAY cs2, \t\t\\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \t\\\n CCTK_INT OUT anyerr)\n\nPROVIDES FUNCTION EOS_Omni_cs2 WITH EOS_Omni_EOS_cs2 LANGUAGE Fortran\n\n\nvoid FUNCTION EOS_Omni_EpsFromPress(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \t\\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \t\\\n\t\t\t CCTK_REAL IN ARRAY rho, \t\\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \t\\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \t\\\n\t\t\t CCTK_REAL IN ARRAY ye, \t\\\n\t\t\t CCTK_REAL IN ARRAY press, \t\\\n\t\t\t CCTK_REAL OUT ARRAY xeps, \t\\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \t\\\n CCTK_INT OUT anyerr)\n\nPROVIDES FUNCTION EOS_Omni_EpsFromPress WITH EOS_Omni_EOS_eps_from_press LANGUAGE Fortran\n\n\nvoid FUNCTION EOS_Omni_RhoFromPressEpsTempEnt(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \t\t \\\n\t\t\t CCTK_REAL IN rf_precision, \t \\\n CCTK_INT IN npoints, \t\t \\\n\t\t\t CCTK_REAL OUT ARRAY rho, \t\t \\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \t\t \\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \t\t \\\n\t\t\t CCTK_REAL INOUT ARRAY ent, \t\t \\\n\t\t\t CCTK_REAL IN ARRAY ye, \t\t \\\n\t\t\t CCTK_REAL IN ARRAY press, \t\t \\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \t\t \\\n CCTK_INT OUT anyerr)\n\nPROVIDES FUNCTION EOS_Omni_RhoFromPressEpsTempEnt WITH EOS_Omni_EOS_RhoFromPressEpsTempEnt LANGUAGE Fortran\n\nvoid FUNCTION EOS_Omni_PressEpsTempYe_from_Rho(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n\t\t\t CCTK_REAL IN ARRAY rho, \\\n\t\t\t CCTK_REAL OUT ARRAY eps, \\\n\t\t\t CCTK_REAL OUT ARRAY temp, \\\n\t\t\t CCTK_REAL OUT ARRAY ye, \\\n\t\t\t CCTK_REAL OUT ARRAY press, \\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \\\n CCTK_INT OUT anyerr)\n\nPROVIDES FUNCTION EOS_Omni_PressEpsTempYe_from_Rho WITH EOS_Omni_EOS_PressEpsTempYe_from_Rho LANGUAGE Fortran\n\n\n################################################################################\n# short and long and specific calls\n\nvoid FUNCTION EOS_Omni_short(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n\t\t\t CCTK_REAL IN ARRAY rho, \t\\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \t\\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \t\\\n\t\t\t CCTK_REAL IN ARRAY ye, \t\\\n\t\t\t CCTK_REAL OUT ARRAY press,\t\t\\\n\t\t\t CCTK_REAL INOUT ARRAY entropy,\t\\\n\t\t\t CCTK_REAL OUT ARRAY cs2, \t\t\\\n\t\t\t CCTK_REAL OUT ARRAY dedt, \t\t\\\n\t\t\t CCTK_REAL OUT ARRAY dpderho,\t\\\n\t\t\t CCTK_REAL OUT ARRAY dpdrhoe,\t\\\n\t\t\t CCTK_REAL OUT ARRAY munu, \t\\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \t\\\n CCTK_INT OUT anyerr)\n\nPROVIDES FUNCTION EOS_Omni_short WITH EOS_Omni_EOS_short LANGUAGE Fortran\n\nvoid FUNCTION EOS_Omni_full(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n\t\t\t CCTK_REAL IN ARRAY rho, \t\\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \t\\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \t\\\n\t\t\t CCTK_REAL IN ARRAY ye, \t\\\n\t\t\t CCTK_REAL OUT ARRAY press,\t\t\\\n\t\t\t CCTK_REAL INOUT ARRAY entropy,\t\\\n\t\t\t CCTK_REAL OUT ARRAY cs2, \t\t\\\n\t\t\t CCTK_REAL OUT ARRAY dedt, \t\t\\\n\t\t\t CCTK_REAL OUT ARRAY dpderho,\t\\\n\t\t\t CCTK_REAL OUT ARRAY dpdrhoe,\t\\\n\t\t\t CCTK_REAL OUT ARRAY xa,\t \t\\\n\t\t\t CCTK_REAL OUT ARRAY xh,\t \t\\\n\t\t\t CCTK_REAL OUT ARRAY xn,\t \t\\\n\t\t\t CCTK_REAL OUT ARRAY xp,\t \t\\\n\t\t\t CCTK_REAL OUT ARRAY abar,\t \t\\\n\t\t\t CCTK_REAL OUT ARRAY zbar,\t \t\\\n\t\t\t CCTK_REAL OUT ARRAY mue,\t \t\\\n\t\t\t CCTK_REAL OUT ARRAY mun, \t\t\\\n\t\t\t CCTK_REAL OUT ARRAY mup, \t\t\\\n\t\t\t CCTK_REAL OUT ARRAY muhat, \t\\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \t\\\n CCTK_INT OUT anyerr)\n\nPROVIDES FUNCTION EOS_Omni_full WITH EOS_Omni_EOS_full LANGUAGE Fortran\n\n################################################################################\n# the following routines are needed for MHD con2prim using the 2D Z-P scheme\n\nvoid FUNCTION EOS_Omni_DEpsByDRho_DEpsByDPress(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n\t\t\t CCTK_REAL IN ARRAY rho, \t\\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \t\\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \t\\\n\t\t\t CCTK_REAL IN ARRAY ye, \t\\\n\t\t\t CCTK_REAL OUT ARRAY DEpsByDRho, \\\n\t\t\t CCTK_REAL OUT ARRAY DEpsByDPress, \\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \t\\\n CCTK_INT OUT anyerr)\n\nPROVIDES FUNCTION EOS_Omni_DEpsByDRho_DEpsByDPress WITH EOS_Omni_EOS_DEpsByDRho_DEpsByDPress LANGUAGE Fortran\n################################################################################\n# the following routines are needed for MHD con2prim based on the Harm Code\n\nvoid FUNCTION EOS_Omni_press_f_hrho_v2_rhoW(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n\t\t\t CCTK_REAL IN ARRAY hrho, \\\n\t\t\t CCTK_REAL IN ARRAY v2, \\\n\t\t\t\t\t CCTK_REAL IN ARRAY rhoW, \\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \\\n\t\t\t CCTK_REAL IN ARRAY ye, \\\n\t\t\t CCTK_REAL OUT ARRAY press, \\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \\\n CCTK_INT OUT anyerr)\n\nPROVIDES FUNCTION EOS_Omni_press_f_hrho_v2_rhoW WITH EOS_Omni_EOS_Press_f_hrho_v2_rhoW LANGUAGE Fortran\n\n\nvoid FUNCTION EOS_Omni_dpdhrho_f_hrho_v2_rhoW(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n\t\t\t CCTK_REAL IN ARRAY hrho, \\\n\t\t\t CCTK_REAL IN ARRAY v2, \\\n\t\t\t\t\t CCTK_REAL IN ARRAY rhoW, \\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \\\n\t\t\t CCTK_REAL IN ARRAY ye, \\\n\t\t\t CCTK_REAL OUT ARRAY dpdhrho,\\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \\\n CCTK_INT OUT anyerr)\n\nPROVIDES FUNCTION EOS_Omni_dpdhrho_f_hrho_v2_rhoW WITH EOS_Omni_EOS_dpdhrho_f_hrho_v2_rhoW LANGUAGE Fortran\n\nvoid FUNCTION EOS_Omni_dpdv2_f_hrho_v2_rhoW(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n\t\t\t CCTK_REAL IN ARRAY hrho, \\\n\t\t\t CCTK_REAL IN ARRAY v2, \\\n\t\t\t\t\t CCTK_REAL IN ARRAY rhoW, \\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \\\n\t\t\t CCTK_REAL IN ARRAY ye, \\\n\t\t\t CCTK_REAL OUT ARRAY dpdv2, \\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \\\n CCTK_INT OUT anyerr)\n\nPROVIDES FUNCTION EOS_Omni_dpdv2_f_hrho_v2_rhoW WITH EOS_Omni_EOS_dpdv2_f_hrho_v2_rhoW LANGUAGE Fortran\n\n################################################################################\n", - "params": "", + "param": "# Parameter definitions for thorn EOS_Omni\n\n\nrestricted:\n\n# poly EOS\nREAL poly_gamma \"Adiabatic Index for poly EOS\" STEERABLE=RECOVER\n{\n (0:* :: \"any positive number\"\n} 2.0\n\n\nREAL poly_gamma_initial \"Initial Adiabatic Index for poly and hybrid EOS\" STEERABLE=RECOVER\n{\n -1 :: \"use poly_gamma/hybrid_gamma, ie no change in gamma during ID\"\n (0:* :: \"assume that ID used this adiabiatic index, change K accordingly\"\n} -1\n\nREAL poly_k \"Polytropic constant in c=G=Msun=1\" STEERABLE=RECOVER\n{\n : :: \"\"\n} 100.0\n\n# gamma-law EOS\nREAL gl_gamma \"Adiabatic Index for gamma-law EOS\" STEERABLE=RECOVER\n{\n (0:* :: \"any positive number\"\n} 2.0\n\nREAL gl_k \"Polytropic constant in c=G=Msun=1 for gamma-law EOS\" STEERABLE=RECOVER \n{\n (0:* :: \"any positive number\"\n} 100.0\n\n########################################################\n# hybrid EOS\n#\n# Now up to ten polytropic pieces\n########################################################\n\nREAL hybrid_gamma_th \"Thermal gamma for hybrid EOS\" STEERABLE=RECOVER\n{\n (0:* :: \"any positive number\"\n} 1.5\n\n\nINT n_pieces \"Number of polytropic pieces\" STEERABLE=RECOVER\n{\n 1:10 :: \"Max 10 pieces\"\n} 2\n\nREAL hybrid_gamma[10] \"Adiabatic index of each piece\" STEERABLE=RECOVER\n{\n 0 :: \"unset\"\n (0:* :: \"Any positive\"\n} 0.0\n\nREAL hybrid_k0 \"K coefficent of the first piece\" STEERABLE=RECOVER\n{\n 0 :: \"unset\"\n (0:* :: \"Any positive\"\n} 0.0\n\nREAL hybrid_rho[9] \"Density values at separation points\" STEERABLE=RECOVER\n{\n 0 :: \"unset\"\n (0:* :: \"Any positive\"\n} 0.0\n\n\n####################################################\n# Legacy parameter fow two polytropic pices \n#\n# To be used if n_piece = 2 and hybrid_gamma[0]=0\n####################################################\n\nREAL hybrid_gamma1 \"subnuclear adiabatic Index for hybrid EOS\" STEERABLE=RECOVER\n {\n (0:* :: \"Any positive\"\n} 1.325\n \nREAL hybrid_gamma2 \"subnuclear adiabatic Index for hybrid EOS\" STEERABLE=RECOVER\n{\n (0:* :: \"Any positive\"\n} 2.5\n\nREAL hybrid_k1 \"Polytropic constant in c=G=Msun=1 for hybrid EOS\" STEERABLE=RECOVER \n{\n (0:* :: \"Any positive\"\n} 0.4640517\n\nREAL hybrid_rho_nuc \"Density at which to switch between gammas; c=G=Msun=1\" STEERABLE=RECOVER \n{\n (0:* :: \"Any positive\"\n} 3.238607e-4\n\n\n##############################################################\n################ cold tabulated EOS + gamma-Law\n##############################################################\n\nSTRING coldeos_table_name \"table name for cold EOS (ASCII)\" \n{\n .+ :: \"Can be anything\"\n} \"blah.asc\"\n\nBOOLEAN coldeos_read_table \"Read in cold EOS table?\" \n{\n} \"No\"\n\nBOOLEAN coldeos_use_thermal_gamma_law \"use an additional thermal gamma?\"\n{\n} \"Yes\"\n\n##############################################################\n################ barotropic tabulated EOS + gamma-Law\n##############################################################\n\nSTRING barotropiceos_table_name \"table name for barotropic EOS (ASCII)\" \n{\n .+ :: \"Can be anything\"\n} \"blah.asc\"\n\nBOOLEAN barotropiceos_read_table \"Read in barotropic EOS table?\" \n{\n} \"No\"\n\nBOOLEAN barotropiceos_use_thermal_gamma_law \"use an additional thermal gamma?\"\n{\n} \"Yes\"\n\nREAL barotropiceos_gammath \"thermal gamma for barotropic EOS\"\n{\n 1.0:* :: \"something\"\n} 2.0\n\n##############################################################\n################ Finite-Temperature Nuclear EOS\n##############################################################\n\nBOOLEAN nuceos_read_table \"Read in EOS table?\" STEERABLE=RECOVER\n{\n} \"No\"\n\nBOOLEAN do_energy_shift \"shift energies around?\" STEERABLE=ALWAYS\n{\n} \"yes\"\n\nBOOLEAN dump_nuceos_table \"Dump table in ASCII at beginning\" STEERABLE=RECOVER\n{\n} \"No\"\n\nSTRING dump_nuceos_table_name \"nuceos dump table name (ASCII)\" STEERABLE=RECOVER\n{\n .+ :: \"Can be anything\"\n} \"blah.asc\"\n\nSTRING nuceos_table_name \"nuceos table name (hdf5)\" STEERABLE=RECOVER\n{\n .+ :: \"Can be anything\"\n} \"blah.h5\"\n\nBOOLEAN read_table_on_single_process \"read table on one process only and bcast data\" STEERABLE=ALWAYS\n{\n} \"no\"\n\nINT reader_process \"read table on this process and bcast data\" STEERABLE=ALWAYS\n{\n 0:* :: \"read on process N\"\n} 0\n\nshares: IO\n\nUSES STRING out_dir\n", "schedule": "# Schedule definitions for thorn EOS_Omni\n\n\nschedule EOS_Omni_Startup AT STARTUP\n{\n LANG: Fortran\n OPTIONS: global\n} \"Set up conversion factors and other fun stuff\"\n\nif (nuceos_read_table)\n{\n SCHEDULE nuc_eos_readtable_cactus_wrapper AT CCTK_BASEGRID\n {\n LANG: C\n OPTIONS: global\n } \"Read EOS HDF5 table\"\n\n SCHEDULE EOS_OMNI_get_energy_shift AT CCTK_BASEGRID AFTER nuc_eos_readtable_cactus_wrapper\n {\n LANG: Fortran\n OPTIONS: global\n } \"setup energy_shift in EOS_Omni_Module\"\n\n if (dump_nuceos_table)\n {\n SCHEDULE EOS_Omni_dumptable after nuc_eos_readtable_cactus_wrapper AT CCTK_BASEGRID\n {\n LANG: C\n OPTIONS: global\n } \"Dump EOS HDF5 table in ASCII\"\t\n }\n}\n\nif (coldeos_read_table)\n{\n SCHEDULE EOS_Omni_ReadColdTable AT CCTK_BASEGRID\n {\n LANG: Fortran\n OPTIONS: global\n } \"Read Cold EOS ASCII table\"\n}\n\nif (barotropiceos_read_table)\n{\n SCHEDULE EOS_Omni_BarotropicReadTable AT CCTK_BASEGRID\n {\n LANG: Fortran\n OPTIONS: global\n } \"Read barotropic EOS ASCII table\"\n}\n", "src": { "EOS_Omni_SingleVarCalls.F90": "#include \"cctk.h\"\n#include \"cctk_Parameters.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Functions.h\"\n\n! eoskey:\n! 1 --- polytropic EOS\n! 2 --- gamma-law EOS\n! 3 --- hybrid EOS\n! 4 --- finite-T microphysical NSE EOS\n\nsubroutine EOS_Omni_EOS_Press(eoskey,keytemp,rf_precision,npoints,&\n rho,eps,temp,ye,press,keyerr,anyerr)\n\n use EOS_Omni_Module\n implicit none\n DECLARE_CCTK_PARAMETERS\n \n\n CCTK_INT, intent(in) :: eoskey,keytemp,npoints\n CCTK_INT, intent(out) :: keyerr(npoints)\n CCTK_INT, intent(out) :: anyerr\n CCTK_REAL, intent(in) :: rf_precision\n CCTK_REAL, intent(in) :: rho(npoints),ye(npoints)\n CCTK_REAL, intent(inout) :: eps(npoints), temp(npoints)\n CCTK_REAL, intent(out) :: press(npoints)\n\n ! local vars\n integer :: i,p\n character(256) :: warnstring\n real*8 :: hybrideos_local_gamma, hybrideos_local_k\n real*8 :: hybrideos_local_eps, hybrideos_p_poly, hybrideos_p_th\n real*8,parameter :: zero = 0.0d0\n ! temporary vars for nuc_eos\n real*8, dimension(1) :: xrho,xye,xtemp,xenr,xent\n real*8, dimension(1) :: xprs,xmunu,xcs2\n real*8, dimension(1) :: xdedt,xdpderho,xdpdrhoe\n ! temporary vars for coldeos + gamma law\n integer :: ir\n real*8 :: press_cold, press_th\n real*8 :: eps_cold, eps_th\n real*8 :: gamma\n\n anyerr = 0\n keyerr(:) = 0\n\n select case (eoskey)\n case (1)\n ! polytropic EOS\n if(keytemp.eq.1) then\n do i=1,npoints\n eps(i) = press_gf * poly_k_cgs * &\n (rho(i)*inv_rho_gf)**(poly_gamma) / &\n (poly_gamma - 1.0d0) / rho(i)\n enddo\n endif\n do i=1,npoints\n press(i) = press_gf * poly_k_cgs * &\n (rho(i)*inv_rho_gf)**poly_gamma\n enddo\n case (2)\n ! gamma-law EOS\n if(keytemp.eq.1) then\n do i=1,npoints\n eps(i) = press_gf * gl_k_cgs * &\n (rho(i)*inv_rho_gf)**(gl_gamma) / &\n (gl_gamma - 1.0d0) / rho(i)\n enddo\n endif\n do i=1,npoints\n press(i) = (gl_gamma - 1.0d0) * rho(i) * eps(i)\n\n enddo\n case (3)\n ! hybrid EOS\n do i=1,npoints\n hybrideos_local_gamma = hybrideos_gamma(1)\n hybrideos_local_k = hybrideos_k(1)\n hybrideos_local_eps = hybrideos_eps(1)\n if (n_pieces .gt. 1) then\n do p = 1,n_pieces-1\n if (rho(i) .gt. hybrideos_rho(p)) then\n hybrideos_local_gamma = hybrideos_gamma(p+1)\n hybrideos_local_k = hybrideos_k(p+1)\n hybrideos_local_eps = hybrideos_eps(p+1)\n end if\n end do\n end if\n if (keytemp .eq. 1) then\n !Set epsilon to the cold part only\n eps(i)=hybrideos_local_k/(hybrideos_local_gamma - 1.0)*rho(i)**(hybrideos_local_gamma - 1.0) + hybrideos_local_eps\n end if\n hybrideos_p_poly = hybrideos_local_k * (rho(i))**hybrideos_local_gamma\n hybrideos_p_th = (hybrid_gamma_th-1.0)* (rho(i)*eps(i) - &\n hybrideos_p_poly/(hybrideos_local_gamma-1) - &\n hybrideos_local_eps * rho(i))\n hybrideos_p_th = max(zero, hybrideos_p_th)\n press(i) = hybrideos_p_poly + hybrideos_p_th\n enddo\n\n case (4)\n ! nuc eos\n if(keytemp.eq.1) then\n call nuc_eos_m_kt1_press_eps(npoints,rho,temp,ye,&\n eps,press,keyerr,anyerr)\n else if(keytemp.eq.0) then\n call nuc_eos_m_kt0_press(npoints,rho,temp,ye,eps,press,&\n rf_precision,keyerr,anyerr)\n else\n call CCTK_ERROR(\"This keytemp is not suppported!\")\n STOP\n endif\n case (5)\n ! cold tabular EOS with gamma law\n do i=1,npoints\n if(rho(i).lt.coldeos_rhomin) then\n press(i) = coldeos_low_kappa * rho(i)**coldeos_low_gamma\n eps(i) = press(i) / (coldeos_low_gamma - 1.0) / rho(i) \n cycle\n else if(rho(i).gt.coldeos_rhomax) then\n keyerr(i) = 103\n anyerr = 1\n else\n xrho(1) = log10(rho(i))\n ir = 2 + INT( (xrho(1) - coldeos_logrho(1) - 1.0d-10) * coldeos_dlrhoi )\n endif\n ir = max(2, min(ir,coldeos_nrho))\n\n gamma = (coldeos_gamma(ir) - coldeos_gamma(ir-1)) / &\n (coldeos_logrho(ir) - coldeos_logrho(ir-1)) * &\n (xrho(1) - coldeos_logrho(ir-1)) + coldeos_gamma(ir-1)\n\n eps_cold = (coldeos_eps(ir) - coldeos_eps(ir-1)) / &\n (coldeos_logrho(ir) - coldeos_logrho(ir-1)) * &\n (xrho(1) - coldeos_logrho(ir-1)) + coldeos_eps(ir-1)\n\n if(keytemp.eq.0) then\n eps_th = max(0.0d0,eps(i) - eps_cold)\n else if (keytemp.eq.1) then\n eps_th = 0.0d0\n eps(i) = eps_cold\n endif\n\n press_cold = coldeos_kappa * rho(i)**gamma\n press_th = coldeos_thfac*(coldeos_gammath - 1.0d0)*rho(i)*eps_th\n press(i) = press_cold + press_th\n enddo\n\n case (6)\n ! barotropic tabular EOS with gamma law\n do i=1,npoints\n if(rho(i).lt.barotropiceos_rhomin) then\n press(i) = barotropiceos_low_kappa * rho(i)**barotropiceos_low_gamma\n eps(i) = press(i) / (barotropiceos_low_gamma - 1.0) / rho(i) \n cycle\n else if(rho(i).gt.barotropiceos_rhomax) then\n keyerr(i) = 103\n anyerr = 1\n else\n xrho(1) = log10(rho(i))\n ir = 2 + &\n INT( (xrho(1) - barotropiceos_logrho(1) - 1.0d-10) &\n * barotropiceos_dlrhoi )\n endif\n ir = max(2, min(ir,barotropiceos_nrho))\n\n xprs(1) = (barotropiceos_logpress(ir) - barotropiceos_logpress(ir-1)) / &\n (barotropiceos_logrho(ir) - barotropiceos_logrho(ir-1)) * &\n (xrho(1) - barotropiceos_logrho(ir-1)) + barotropiceos_logpress(ir-1)\n\n xenr(1) = (barotropiceos_logeps(ir) - barotropiceos_logeps(ir-1)) / &\n (barotropiceos_logrho(ir) - barotropiceos_logrho(ir-1)) * &\n (xrho(1) - barotropiceos_logrho(ir-1)) + barotropiceos_logeps(ir-1)\n\n xtemp(1) = (barotropiceos_temp(ir) - barotropiceos_temp(ir-1)) / &\n (barotropiceos_logrho(ir) - barotropiceos_logrho(ir-1)) * &\n (xrho(1) - barotropiceos_logrho(ir-1)) + barotropiceos_temp(ir-1)\n\n xye(1) = (barotropiceos_ye(ir) - barotropiceos_ye(ir-1)) / &\n (barotropiceos_logrho(ir) - barotropiceos_logrho(ir-1)) * &\n (xrho(1) - barotropiceos_logrho(ir-1)) + barotropiceos_ye(ir-1)\n\n press_cold = 10.0**xprs(1)\n eps_cold = 10.0**xenr(1) - barotropiceos_energyshift\n\n if(keytemp.eq.0) then\n eps_th = max(0.0d0,eps(i) - eps_cold)\n else if (keytemp.eq.1) then\n eps_th = 0.0d0\n eps(i) = eps_cold\n endif\n press_th = coldeos_thfac*(barotropiceos_gammath - 1.0d0)*rho(i)*eps_th\n press(i) = press_cold + press_th\n\n enddo\n\n case DEFAULT\n write(warnstring,*) \"eoskey \",eoskey,\" not implemented!\"\n call CCTK_ERROR(warnstring)\n STOP\n end select\n\nend subroutine EOS_Omni_EOS_Press\n\nsubroutine EOS_Omni_EOS_PressOMP(eoskey,keytemp,rf_precision,npoints,&\n rho,eps,temp,ye,press,keyerr,anyerr)\n\n use EOS_Omni_Module\n#ifdef _OPENMP\n use OMP_LIB\n#endif\n\n implicit none\n DECLARE_CCTK_PARAMETERS\n\n CCTK_INT, intent(in) :: eoskey,keytemp,npoints\n CCTK_INT, intent(out) :: keyerr(npoints)\n CCTK_INT, intent(out) :: anyerr\n CCTK_REAL, intent(in) :: rf_precision\n CCTK_REAL, intent(in) :: rho(npoints),ye(npoints)\n CCTK_REAL, intent(inout) :: eps(npoints), temp(npoints)\n CCTK_REAL, intent(out) :: press(npoints)\n\n ! local vars\n integer :: i,p\n character(256) :: warnstring\n real*8 :: hybrideos_local_gamma, hybrideos_local_k_cgs, hybrideos_local_k, hybrideos_local_eps, &\n hybrideos_p_poly, hybrideos_p_th\n real*8,parameter :: zero = 0.0d0\n ! temporary vars for nuc_eos\n real*8, dimension(1) :: xrho,xye,xtemp,xenr,xent\n real*8, dimension(1) :: xprs,xmunu,xcs2\n real*8, dimension(1) :: xdedt,xdpderho,xdpdrhoe\n ! temporary vars for coldeos + gamma law\n integer :: ir\n real*8 :: press_cold, press_th\n real*8 :: eps_cold, eps_th\n real*8 :: gamma\n integer :: num_threads, my_thread_num, slice_len, slice_min, slice_max\n \n CCTK_INT :: my_anyerr\n\n anyerr = 0\n keyerr(:) = 0\n\n select case (eoskey)\n case (1)\n ! polytropic EOS\n if(keytemp.eq.1) then\n !$OMP PARALLEL DO\n do i=1,npoints\n eps(i) = press_gf * poly_k_cgs * &\n (rho(i)*inv_rho_gf)**(poly_gamma) / &\n (poly_gamma - 1.0d0) / rho(i)\n enddo\n !$OMP END PARALLEL DO\n endif\n !$OMP PARALLEL DO\n do i=1,npoints\n press(i) = press_gf * poly_k_cgs * &\n (rho(i)*inv_rho_gf)**poly_gamma\n enddo\n !$OMP END PARALLEL DO\n case (2)\n ! gamma-law EOS\n if(keytemp.eq.1) then\n !$OMP PARALLEL DO\n do i=1,npoints\n eps(i) = press_gf * gl_k_cgs * &\n (rho(i)*inv_rho_gf)**(gl_gamma) / &\n (gl_gamma - 1.0d0) / rho(i)\n enddo\n !$OMP END PARALLEL DO\n endif\n !$OMP PARALLEL DO\n do i=1,npoints\n press(i) = (gl_gamma - 1.0d0) * rho(i) * eps(i)\n enddo\n !$OMP END PARALLEL DO\n\n case (3)\n ! hybrid EOS\n !$OMP PARALLEL DO PRIVATE(hybrideos_local_gamma,hybrideos_local_k_cgs, hybrideos_local_k, &\n !$OMP hybrideos_local_eps, hybrideos_p_poly, hybrideos_p_th)\n do i=1,npoints\n hybrideos_local_gamma = hybrideos_gamma(1)\n hybrideos_local_k = hybrideos_k(1)\n hybrideos_local_eps = hybrideos_eps(1)\n if (n_pieces .gt. 1) then\n do p = 1,n_pieces-1\n if (rho(i) .gt. hybrideos_rho(p)) then\n hybrideos_local_gamma = hybrideos_gamma(p+1)\n hybrideos_local_k = hybrideos_k(p+1)\n hybrideos_local_eps = hybrideos_eps(p+1)\n end if\n end do\n end if\n if (keytemp .eq. 1) then\n !Set epsilon to the cold part only\n eps(i)=hybrideos_local_k/(hybrideos_local_gamma - 1.0)* &\n rho(i)**(hybrideos_local_gamma - 1.0) + hybrideos_local_eps\n end if\n hybrideos_p_poly = hybrideos_local_k * (rho(i))**hybrideos_local_gamma\n hybrideos_p_th = (hybrid_gamma_th-1)* (rho(i)*eps(i) - &\n hybrideos_p_poly/(hybrideos_local_gamma-1) - &\n hybrideos_local_eps * rho(i))\n hybrideos_p_th = max(zero, hybrideos_p_th)\n press(i) = hybrideos_p_poly + hybrideos_p_th\n enddo\n !$OMP END PARALLEL DO\n\n case (4)\n ! nuc eos\n my_anyerr = 0\n !$OMP PARALLEL REDUCTION(+: my_anyerr)\n#ifdef _OPENMP\n num_threads = omp_get_num_threads()\n my_thread_num = omp_get_thread_num()\n#else\n num_threads = 1\n my_thread_num = 0\n#endif\n slice_len = (npoints + num_threads-1)/num_threads\n slice_min = 1 + my_thread_num * slice_len\n slice_max = min(slice_min + slice_len - 1, npoints)\n if(keytemp.eq.1) then\n call nuc_eos_m_kt1_press_eps(slice_max-slice_min+1,&\n rho(slice_min:slice_max),temp(slice_min:slice_max),&\n ye(slice_min:slice_max),eps(slice_min:slice_max),&\n press(slice_min:slice_max),keyerr(slice_min:slice_max),&\n my_anyerr)\n else\n call nuc_eos_m_kt0_press(slice_max-slice_min+1,&\n rho(slice_min:slice_max),temp(slice_min:slice_max),&\n ye(slice_min:slice_max),eps(slice_min:slice_max),&\n press(slice_min:slice_max),&\n rf_precision,keyerr(slice_min:slice_max),anyerr)\n endif\n !$OMP END PARALLEL\n ! return 0/1 for false/true rather than zero/nonzero just in case a\n ! caller relied on this\n if(my_anyerr.ne.0) then\n anyerr = 1\n end if\n case (5)\n ! cold tabular EOS with gamma law\n !$OMP PARALLEL DO PRIVATE(xrho,ir,gamma,eps_cold,eps_th, &\n !$OMP press_cold,press_th)\n do i=1,npoints\n if(rho(i).lt.coldeos_rhomin) then\n press(i) = coldeos_low_kappa * rho(i)**coldeos_low_gamma\n eps(i) = press(i) / (coldeos_low_gamma - 1.0) / rho(i) \n cycle\n else if(rho(i).gt.coldeos_rhomax) then\n keyerr(i) = 103\n !$OMP CRITICAL\n anyerr = 1\n !$OMP END CRITICAL\n else\n xrho(1) = log10(rho(i))\n ir = 2 + INT( (xrho(1) - coldeos_logrho(1) - 1.0d-10) * coldeos_dlrhoi )\n endif\n ir = max(2, min(ir,coldeos_nrho))\n\n gamma = (coldeos_gamma(ir) - coldeos_gamma(ir-1)) / &\n (coldeos_logrho(ir) - coldeos_logrho(ir-1)) * &\n (xrho(1) - coldeos_logrho(ir-1)) + coldeos_gamma(ir-1)\n\n eps_cold = (coldeos_eps(ir) - coldeos_eps(ir-1)) / &\n (coldeos_logrho(ir) - coldeos_logrho(ir-1)) * &\n (xrho(1) - coldeos_logrho(ir-1)) + coldeos_eps(ir-1)\n\n if(keytemp.eq.0) then\n eps_th = max(0.0d0,eps(i) - eps_cold)\n else if (keytemp.eq.1) then\n eps_th = 0.0d0\n eps(i) = eps_cold\n endif\n\n press_cold = coldeos_kappa * rho(i)**gamma\n press_th = coldeos_thfac*(coldeos_gammath - 1.0d0)*rho(i)*eps_th\n press(i) = press_cold + press_th\n enddo\n !$OMP END PARALLEL DO\n\n case (6)\n ! barotropic tabular EOS with gamma law\n !$OMP PARALLEL DO PRIVATE(xrho,xprs,xenr,xye,ir, &\n !$OMP press_cold,eps_cold,eps_th,press_th)\n do i=1,npoints\n if(rho(i).lt.barotropiceos_rhomin) then\n press(i) = barotropiceos_low_kappa * rho(i)**barotropiceos_low_gamma\n eps(i) = press(i) / (barotropiceos_low_gamma - 1.0) / rho(i) \n cycle\n else if(rho(i).gt.barotropiceos_rhomax) then\n keyerr(i) = 103\n anyerr = 1\n else\n xrho(1) = log10(rho(i))\n ir = 2 + &\n INT( (xrho(1) - barotropiceos_logrho(1) - 1.0d-10) &\n * barotropiceos_dlrhoi )\n endif\n ir = max(2, min(ir,barotropiceos_nrho))\n\n xprs(1) = (barotropiceos_logpress(ir) - barotropiceos_logpress(ir-1)) / &\n (barotropiceos_logrho(ir) - barotropiceos_logrho(ir-1)) * &\n (xrho(1) - barotropiceos_logrho(ir-1)) + barotropiceos_logpress(ir-1)\n\n xenr(1) = (barotropiceos_logeps(ir) - barotropiceos_logeps(ir-1)) / &\n (barotropiceos_logrho(ir) - barotropiceos_logrho(ir-1)) * &\n (xrho(1) - barotropiceos_logrho(ir-1)) + barotropiceos_logeps(ir-1)\n\n xtemp(1) = (barotropiceos_temp(ir) - barotropiceos_temp(ir-1)) / &\n (barotropiceos_logrho(ir) - barotropiceos_logrho(ir-1)) * &\n (xrho(1) - barotropiceos_logrho(ir-1)) + barotropiceos_temp(ir-1)\n\n xye(1) = (barotropiceos_ye(ir) - barotropiceos_ye(ir-1)) / &\n (barotropiceos_logrho(ir) - barotropiceos_logrho(ir-1)) * &\n (xrho(1) - barotropiceos_logrho(ir-1)) + barotropiceos_ye(ir-1)\n\n press_cold = 10.0**xprs(1)\n eps_cold = 10.0**xenr(1) - barotropiceos_energyshift\n\n if(keytemp.eq.0) then\n eps_th = max(0.0d0,eps(i) - eps_cold)\n else if (keytemp.eq.1) then\n eps_th = 0.0d0\n eps(i) = eps_cold\n endif\n press_th = coldeos_thfac*(barotropiceos_gammath - 1.0d0)*rho(i)*eps_th\n press(i) = press_cold + press_th\n\n enddo\n !$OMP END PARALLEL DO\n\n\n case DEFAULT\n write(warnstring,*) \"eoskey \",eoskey,\" not implemented!\"\n call CCTK_ERROR(warnstring)\n STOP\n end select\n\nend subroutine EOS_Omni_EOS_PressOMP\n\n\nsubroutine EOS_Omni_EOS_DPressByDRho(eoskey,keytemp,rf_precision,npoints,&\n rho,eps,temp,ye,dpdrhoe,keyerr,anyerr)\n\n use EOS_Omni_Module\n implicit none\n DECLARE_CCTK_PARAMETERS\n\n CCTK_INT, intent(in) :: eoskey,keytemp,npoints\n CCTK_INT, intent(out) :: keyerr(npoints)\n CCTK_INT, intent(out) :: anyerr\n CCTK_REAL, intent(in) :: rf_precision\n CCTK_REAL, intent(in) :: rho(npoints),ye(npoints)\n CCTK_REAL, intent(inout) :: eps(npoints), temp(npoints)\n CCTK_REAL, intent(out) :: dpdrhoe(npoints)\n\n ! local vars\n integer :: i,p\n character(256) :: warnstring\n real*8 :: hybrideos_local_gamma, hybrideos_local_k_cgs, hybrideos_local_k, hybrideos_local_eps, &\n hybrideos_dp_poly, hybrideos_dp_th1, hybrideos_dp_th2, hybrideos_dp_th\n real*8,parameter :: zero = 0.0d0\n ! temporary vars for nuc_eos\n real*8, dimension(1) :: xrho,xye,xtemp,xenr,xent\n real*8, dimension(1) :: xprs,xmunu,xcs2\n real*8, dimension(1) :: xdedt,xdpderho,xdpdrhoe\n ! temporary vars for cold tabulated EOS + gamma law\n integer :: ir\n real*8 :: press_cold, press_th\n real*8 :: eps_cold, eps_th\n real*8 :: gamma, cs2, h\n\n anyerr = 0\n keyerr(:) = 0\n\n select case (eoskey)\n case (1)\n ! polytropic EOS\n if(keytemp.eq.1) then\n do i=1,npoints\n eps(i) = press_gf * poly_k_cgs * &\n (rho(i)*inv_rho_gf)**(poly_gamma) / &\n (poly_gamma - 1.0d0) / rho(i)\n enddo\n endif\n do i=1,npoints\n dpdrhoe(i) = press_gf * poly_k_cgs * &\n poly_gamma * inv_rho_gf * & \n (rho(i)*inv_rho_gf) ** (poly_gamma - 1.d0)\n enddo\n case (2)\n ! gamma-law EOS\n if(keytemp.eq.1) then\n do i=1,npoints\n eps(i) = press_gf * gl_k_cgs * &\n (rho(i)*inv_rho_gf)**(gl_gamma) / &\n (gl_gamma - 1.0d0) / rho(i)\n enddo\n endif\n do i=1,npoints\n dpdrhoe(i) = (gl_gamma-1.0d0) * &\n eps(i)\n enddo\n case (3)\n ! hybrid EOS\n do i=1,npoints\n hybrideos_local_gamma = hybrideos_gamma(1)\n hybrideos_local_k = hybrideos_k(1)\n hybrideos_local_eps = hybrideos_eps(1)\n if (n_pieces .gt. 1) then\n do p = 1,n_pieces-1\n if (rho(i) .gt. hybrideos_rho(p)) then\n hybrideos_local_gamma = hybrideos_gamma(p+1)\n hybrideos_local_k = hybrideos_k(p+1)\n hybrideos_local_eps = hybrideos_eps(p+1)\n end if\n end do\n end if\n if (keytemp .eq. 1) then\n !Set epsilon to the cold part only\n eps(i)=hybrideos_local_k/(hybrideos_local_gamma - 1.0)* &\n rho(i)**(hybrideos_local_gamma - 1.0) + hybrideos_local_eps\n end if\n hybrideos_dp_poly = hybrideos_local_gamma * hybrideos_local_k * &\n rho(i)**(hybrideos_local_gamma - 1.0d0)\n \n hybrideos_dp_th = (hybrid_gamma_th - 1.0d0) * (eps(i) - &\n hybrideos_dp_poly/(hybrideos_local_gamma - 1.0d0) - &\n hybrideos_local_eps)\n\n dpdrhoe(i) = hybrideos_dp_poly + max(0.0d0,hybrideos_dp_th)\n\n enddo\n\n case (4)\n if(keytemp.eq.1) then\n call nuc_eos_m_kt1_short(npoints,rho,temp,ye,&\n eps,xprs,xent,xcs2,xdedt,xdpderho,dpdrhoe,xmunu,&\n keyerr,anyerr)\n else if(keytemp.eq.0) then\n call nuc_eos_m_kt0_short(npoints,rho,temp,ye,&\n eps,xprs,xent,xcs2,xdedt,xdpderho,dpdrhoe,xmunu,rf_precision,&\n keyerr,anyerr)\n else\n call CCTK_ERROR(\"This keytemp is not supported!\")\n STOP\n endif\n \n case (5)\n ! with the cold eos we have to assume P = P(rho), so\n ! by definition dPdrho is at constant internal energy\n ! and entropy (the latter, because T=0)\n do i=1,npoints\n if(rho(i).lt.coldeos_rhomin) then\n dpdrhoe(i) = coldeos_low_kappa * coldeos_low_gamma * &\n rho(i)**(coldeos_low_gamma-1.0d0)\n cycle\n else if(rho(i).gt.coldeos_rhomax) then\n keyerr(i) = 103\n anyerr = 1\n else\n xrho(1) = log10(rho(i))\n ir = 2 + INT( (xrho(1) - coldeos_logrho(1) - 1.0d-10) * coldeos_dlrhoi )\n endif\n ir = max(2, min(ir,coldeos_nrho))\n\n gamma = (coldeos_gamma(ir) - coldeos_gamma(ir-1)) / &\n (coldeos_logrho(ir) - coldeos_logrho(ir-1)) * &\n (xrho(1) - coldeos_logrho(ir-1)) + coldeos_gamma(ir-1)\n \n ! this is the cold speed of sound squared\n cs2 = (coldeos_cs2(ir) - coldeos_cs2(ir-1)) / &\n (coldeos_cs2(ir) - coldeos_cs2(ir-1)) * &\n (xrho(1) - coldeos_logrho(ir-1)) + coldeos_cs2(ir-1)\n\n eps_cold = (coldeos_eps(ir) - coldeos_eps(ir-1)) / &\n (coldeos_logrho(ir) - coldeos_logrho(ir-1)) * &\n (xrho(1) - coldeos_logrho(ir-1)) + coldeos_eps(ir-1)\n\n if(keytemp.eq.0) then\n eps_th = max(0.0d0,eps(i) - eps_cold)\n else if (keytemp.eq.1) then\n eps_th = 0.0d0\n eps(i) = eps_cold\n endif\n\n press_cold = coldeos_kappa * rho(i)**gamma\n press_th = coldeos_thfac*(coldeos_gammath - 1.0d0)*rho(i)*eps_th\n \n ! this is the cold enthalpy, because it belongs to the\n ! cold speed of sound squared\n h = 1.0d0 + eps_cold + press_cold / rho(i)\n dpdrhoe(i) = cs2*h + press_th / rho(i)\n\n enddo\n\n case DEFAULT\n write(warnstring,*) \"eoskey \",eoskey,\" not implemented!\"\n call CCTK_ERROR(warnstring)\n STOP\n end select\n \nend subroutine EOS_Omni_EOS_DPressByDRho\n\nsubroutine EOS_Omni_EOS_DPressByDEps(eoskey,keytemp,rf_precision,npoints,&\n rho,eps,temp,ye,dpdepsrho,keyerr,anyerr)\n\n use EOS_Omni_Module\n implicit none\n DECLARE_CCTK_PARAMETERS\n\n CCTK_INT, intent(in) :: eoskey,keytemp,npoints\n CCTK_INT, intent(out) :: keyerr(npoints)\n CCTK_INT, intent(out) :: anyerr\n CCTK_REAL, intent(in) :: rf_precision\n CCTK_REAL, intent(in) :: rho(npoints),ye(npoints)\n CCTK_REAL, intent(inout) :: eps(npoints), temp(npoints)\n CCTK_REAL, intent(out) :: dpdepsrho(npoints)\n\n ! local vars\n integer :: i,p\n character(256) :: warnstring\n ! temporary vars for nuc_eos\n real*8, dimension(1) :: xrho,xye,xtemp,xenr,xent\n real*8, dimension(1) :: xprs,xmunu,xcs2\n real*8, dimension(1) :: xdedt,xdpderho,xdpdrhoe\n ! temporary vars for coldeos + gamma law \n integer :: ir\n real*8 :: eps_cold, eps_th\n\n anyerr = 0\n keyerr(:) = 0\n\n select case (eoskey)\n case (1)\n ! polytropic EOS\n if(keytemp.eq.1) then\n do i=1,npoints\n eps(i) = press_gf * poly_k_cgs * &\n (rho(i)*inv_rho_gf)**(poly_gamma) / &\n (poly_gamma - 1.0d0) / rho(i)\n enddo\n endif\n do i=1,npoints\n dpdepsrho(i) = 0.0d0\n enddo\n case (2)\n ! gamma-law EOS\n if(keytemp.eq.1) then\n do i=1,npoints\n eps(i) = press_gf * gl_k_cgs * &\n (rho(i)*inv_rho_gf)**(gl_gamma) / &\n (gl_gamma - 1.0d0) / rho(i)\n enddo\n endif\n do i=1,npoints\n dpdepsrho(i) = (gl_gamma - 1.0d0) * &\n rho(i)\n enddo\n case (3)\n ! hybrid EOS\n do i=1,npoints\n dpdepsrho(i) = (hybrid_gamma_th - 1.0d0) * rho(i)\n enddo\n case (4)\n if(keytemp.eq.1) then\n call nuc_eos_m_kt1_short(npoints,rho,temp,ye,&\n eps,xprs,xent,xcs2,xdedt,dpdepsrho,xdpdrhoe,xmunu,&\n keyerr,anyerr)\n else if(keytemp.eq.0) then\n call nuc_eos_m_kt0_short(npoints,rho,temp,ye,&\n eps,xprs,xent,xcs2,xdedt,dpdepsrho,xdpdrhoe,xmunu,rf_precision,&\n keyerr,anyerr)\n else \n call CCTK_ERROR(\"This keytemp is not supported!\")\n STOP\n endif\n case (5)\n ! with the cold eos we have to assume P = P(rho), so\n ! only the gamma law has non-zero dPdeps\n do i=1,npoints\n if(rho(i).lt.coldeos_rhomin) then\n dpdepsrho(i) = 0.0d0\n cycle\n else if(rho(i).gt.coldeos_rhomax) then\n keyerr(i) = 103\n anyerr = 1\n else\n xrho(1) = log10(rho(i))\n ir = 2 + INT( (xrho(1) - coldeos_logrho(1) - 1.0d-10) * coldeos_dlrhoi )\n endif\n ir = max(2, min(ir,coldeos_nrho))\n\n eps_cold = (coldeos_eps(ir) - coldeos_eps(ir-1)) / &\n (coldeos_logrho(ir) - coldeos_logrho(ir-1)) * &\n (xrho(1) - coldeos_logrho(ir-1)) + coldeos_eps(ir-1)\n\n if(keytemp.eq.0) then\n eps_th = max(0.0d0,eps(i) - eps_cold)\n else if (keytemp.eq.1) then\n eps_th = 0.0d0\n eps(i) = eps_cold\n endif\n\n dpdepsrho(i) = coldeos_thfac * (coldeos_gammath - 1.0d0)*rho(i)\n\n enddo\n case DEFAULT\n write(warnstring,*) \"eoskey \",eoskey,\" not implemented!\"\n call CCTK_ERROR(warnstring)\n STOP\n end select\n \nend subroutine EOS_Omni_EOS_DPressByDEps\n\nsubroutine EOS_Omni_EOS_cs2(eoskey,keytemp,rf_precision,npoints,&\n rho,eps,temp,ye,cs2,keyerr,anyerr)\n\n use EOS_Omni_Module\n implicit none\n DECLARE_CCTK_PARAMETERS\n\n CCTK_INT, intent(in) :: eoskey,keytemp,npoints\n CCTK_INT, intent(out) :: keyerr(npoints)\n CCTK_INT, intent(out) :: anyerr\n CCTK_REAL, intent(in) :: rf_precision\n CCTK_REAL, intent(in) :: rho(npoints),ye(npoints)\n CCTK_REAL, intent(inout) :: eps(npoints), temp(npoints)\n CCTK_REAL, intent(out) :: cs2(npoints)\n\n ! local vars\n integer :: i,p\n character(256) :: warnstring\n real*8, dimension(1) :: xpress,xdpdrhoe,xdpderho\n real*8 :: hybrideos_local_gamma, hybrideos_local_k, hybrideos_local_eps, &\n hybrideos_p_poly, hybrideos_p_th\n real*8,parameter :: zero = 0.0d0\n ! temporary vars for nuc_eos\n real*8, dimension(1) :: xrho,xye,xtemp,xenr,xent\n real*8, dimension(1) :: xprs,xmunu,xcs2\n real*8, dimension(1) :: xdedt\n ! temporary vars for cold tabulated EOS + gamma law \n integer :: ir\n real*8 :: press_cold, press_th\n real*8 :: eps_cold, eps_th\n real*8 :: gamma, cs2_cold, cs2_th, h, h_cold\n\n anyerr = 0\n keyerr(:) = 0\n\n select case (eoskey)\n case (1)\n ! polytropic EOS\n if(keytemp.eq.1) then\n do i=1,npoints\n eps(i) = press_gf * poly_k_cgs * &\n (rho(i)*inv_rho_gf)**(poly_gamma) / &\n (poly_gamma - 1.0d0) / rho(i)\n enddo\n endif\n do i=1,npoints\n xpress = press_gf*poly_k_cgs * &\n (rho(i)*inv_rho_gf)**(poly_gamma)\n cs2(i) = poly_gamma * xpress(1) / rho(i) / &\n (1 + eps(i) + xpress(1)/rho(i))\n enddo\n case (2)\n ! gamma-law EOS\n if(keytemp.eq.1) then\n do i=1,npoints\n eps(i) = press_gf * gl_k_cgs * &\n (rho(i)*inv_rho_gf)**(gl_gamma) / &\n (gl_gamma - 1.0d0) / rho(i)\n enddo\n endif\n do i=1,npoints\n xpress(1) = (gl_gamma-1.0d0)*rho(i)*eps(i)\n xdpdrhoe(1) = (gl_gamma-1.0d0)*eps(i)\n xdpderho(1) = (gl_gamma-1.0d0)*rho(i)\n cs2(i) = (xdpdrhoe(1) + xpress(1) * xdpderho(1) / (rho(i)**2)) / &\n (1.0d0 + eps(i) + xpress(1)/rho(i))\n enddo\n case(3)\n ! hybrid EOS\n do i=1,npoints\n hybrideos_local_gamma = hybrideos_gamma(1)\n hybrideos_local_k = hybrideos_k(1)\n hybrideos_local_eps = hybrideos_eps(1)\n if (n_pieces .gt. 1) then\n do p = 1,n_pieces-1\n if (rho(i) .gt. hybrideos_rho(p)) then\n hybrideos_local_gamma = hybrideos_gamma(p+1)\n hybrideos_local_k = hybrideos_k(p+1)\n hybrideos_local_eps = hybrideos_eps(p+1)\n end if\n end do\n end if\n if (keytemp .eq. 1) then\n !Set epsilon to the cold part only\n eps(i)=hybrideos_local_k/(hybrideos_local_gamma - 1.0)* &\n rho(i)**(hybrideos_local_gamma - 1.0) + hybrideos_local_eps\n end if\n hybrideos_p_poly = hybrideos_local_k * (rho(i))**hybrideos_local_gamma\n hybrideos_p_th = (hybrid_gamma_th-1)* (rho(i)*eps(i) - &\n hybrideos_p_poly/(hybrideos_local_gamma-1) - &\n hybrideos_local_eps * rho(i))\n hybrideos_p_th = max(zero, hybrideos_p_th)\n xpress(1) = hybrideos_p_poly + hybrideos_p_th\n cs2(i) = (hybrideos_local_gamma * hybrideos_p_poly + &\n hybrid_gamma_th * hybrideos_p_th) / rho(i) / &\n (1.0d0 + eps(i) + xpress(1)/rho(i))\n enddo\n case(4)\n ! nuc_eos\n if(keytemp.eq.1) then\n call nuc_eos_m_kt1_press_eps_cs2(npoints,rho,temp,ye,&\n eps,xprs,cs2,keyerr,anyerr)\n else if(keytemp.eq.0) then\n call nuc_eos_m_kt0_press_cs2(npoints,rho,temp,ye,&\n eps,xprs,cs2,rf_precision,keyerr,anyerr)\n else\n call CCTK_ERROR(\"This keytemp is not supported!\")\n STOP\n endif\n case (5)\n ! with the cold eos we have to assume P = P(rho), so\n ! by definition dPdrho is at constant internal energy\n ! and entropy (the latter, because T=0)\n do i=1,npoints\n if(rho(i).lt.coldeos_rhomin) then\n xprs(1) = coldeos_low_kappa * rho(i)**coldeos_low_gamma\n eps(i) = xprs(1) / (coldeos_low_gamma - 1.0d0) / rho(i)\n cs2(i) = coldeos_low_kappa * coldeos_low_gamma * &\n rho(i)**(coldeos_low_gamma-1.0d0) / &\n (1.0d0 + eps(i) + xprs(1))\n cycle\n else if(rho(i).gt.coldeos_rhomax) then\n keyerr(i) = 103\n anyerr = 1\n else\n xrho(1) = log10(rho(i))\n ir = 2 + INT( (xrho(1) - coldeos_logrho(1) - 1.0d-10) * coldeos_dlrhoi )\n endif\n ir = max(2, min(ir,coldeos_nrho))\n\n gamma = (coldeos_gamma(ir) - coldeos_gamma(ir-1)) / &\n (coldeos_logrho(ir) - coldeos_logrho(ir-1)) * &\n (xrho(1) - coldeos_logrho(ir-1)) + coldeos_gamma(ir-1)\n\n ! this is the cold speed of sound squared \n cs2_cold = (coldeos_cs2(ir) - coldeos_cs2(ir-1)) / &\n (coldeos_cs2(ir) - coldeos_cs2(ir-1)) * &\n (xrho(1) - coldeos_logrho(ir-1)) + coldeos_cs2(ir-1)\n\n eps_cold = (coldeos_eps(ir) - coldeos_eps(ir-1)) / &\n (coldeos_logrho(ir) - coldeos_logrho(ir-1)) * &\n (xrho(1) - coldeos_logrho(ir-1)) + coldeos_eps(ir-1)\n\n if(keytemp.eq.0) then\n eps_th = max(0.0d0,eps(i) - eps_cold)\n else if (keytemp.eq.1) then\n eps_th = 0.0d0\n eps(i) = eps_cold\n endif\n\n press_cold = coldeos_kappa * rho(i)**gamma\n press_th = coldeos_thfac*(coldeos_gammath - 1.0d0)*rho(i)*eps_th\n\n xdpdrhoe(1) = coldeos_thfac*(coldeos_gammath - 1.0d0)*eps_th\n xdpderho(1) = coldeos_thfac*(coldeos_gammath - 1.0d0)*rho(i)\n cs2_th = (xdpdrhoe(1) + press_th * xdpderho(1) / (rho(i)**2))\n\n h = 1.0d0 + eps(i) + (press_cold+press_th) / rho(i)\n h_cold = 1.0d0 + eps_cold + press_cold / rho(i)\n \n cs2(i) = (cs2_cold * h_cold + cs2_th) / h\n enddo\n \n case DEFAULT\n write(warnstring,*) \"eoskey \",eoskey,\" not implemented!\"\n call CCTK_ERROR(warnstring)\n STOP\n end select\n \nend subroutine EOS_Omni_EOS_cs2\n\n\nsubroutine EOS_Omni_EOS_eps_from_press(eoskey,keytemp,rf_precision,npoints,&\n rho,eps,temp,ye,press,xeps,keyerr,anyerr)\n\n use EOS_Omni_Module\n implicit none\n DECLARE_CCTK_PARAMETERS\n\n CCTK_INT, intent(in) :: eoskey,keytemp,npoints\n CCTK_INT, intent(out) :: keyerr(npoints)\n CCTK_INT, intent(out) :: anyerr\n CCTK_REAL, intent(in) :: rf_precision\n CCTK_REAL, intent(in) :: rho(npoints),ye(npoints),press(npoints)\n CCTK_REAL, intent(inout) :: eps(npoints), temp(npoints)\n CCTK_REAL, intent(out) :: xeps(npoints)\n\n ! local vars\n integer :: i,p\n character(256) :: warnstring\n ! temporary vars for nuc_eos\n real*8, dimension(1) :: xrho,xye,xtemp,xenr,xent\n real*8, dimension(1) :: xprs,xmunu,xcs2\n real*8, dimension(1) :: xdedt,xdpderho,xdpdrhoe\n\n if(keytemp.eq.1) then\n anyerr = 1\n keyerr(:) = -1\n else\n anyerr = 0\n keyerr(:) = 0\n endif\n\n select case (eoskey)\n case (1)\n ! polytropic EOS\n do i=1,npoints\n xeps(i) = press(i) / (poly_gamma - 1.0d0) / rho(i)\n enddo\n case (2)\n ! gamma-law EOS\n do i=1,npoints\n xeps(i) = press(i) / (gl_gamma - 1.0d0) / rho(i)\n enddo\n case (3)\n ! hybrid EOS\n write(warnstring,*) \"EOS_Omni_EpsFromPress call not supported for hybrid EOS\"\n call CCTK_ERROR(warnstring)\n STOP\n case (4)\n ! nuc EOS\n write(warnstring,*) \"EOS_Omni_EpsFromPress call not supported for nuc_eos yet\"\n call CCTK_ERROR(warnstring)\n STOP\n case DEFAULT\n write(warnstring,*) \"eoskey \",eoskey,\" not implemented!\"\n call CCTK_ERROR(warnstring)\n STOP\n end select\n\nend subroutine EOS_Omni_EOS_eps_from_press\n\n\nsubroutine EOS_Omni_EOS_RhoFromPressEpsTempEnt(eoskey,&\n ikeytemp,rf_precision,&\n npoints,rho,eps,temp,entropy,ye,press,keyerr,anyerr)\n\n ! This routine returns the density and spec. internal energy based on inputs of\n ! pressure, temperature, and Y_e.\n ! The current implementation is robust, but very slow; it should be used only\n ! for initial data where speed does not matter.\n\n use EOS_Omni_Module\n implicit none\n DECLARE_CCTK_PARAMETERS\n\n CCTK_INT, intent(in) :: eoskey,ikeytemp,npoints\n CCTK_INT, intent(out) :: keyerr(npoints)\n CCTK_INT, intent(out) :: anyerr\n CCTK_REAL, intent(in) :: rf_precision\n CCTK_REAL, intent(in) :: ye(npoints),press(npoints)\n CCTK_REAL, intent(inout) :: rho(npoints),temp(npoints),eps(npoints)\n CCTK_REAL, intent(inout) :: entropy(npoints)\n\n\n ! local vars\n integer :: i,p\n character(256) :: warnstring\n integer :: keytemp\n ! temporary vars for nuc_eos\n real*8, dimension(1) :: xrho,xye,xtemp,xenr,xent\n real*8, dimension(1) :: xprs,xmunu,xcs2\n real*8, dimension(1) :: xdedt,xdpderho,xdpdrhoe\n ! temporary vars for cold tabulated EOS\n integer :: ir\n real*8 :: gamma\n \n ! helper vars\n logical :: cont\n integer :: counter\n real*8, dimension(1) :: rho_guess, rho_guess2\n real*8, dimension(1) :: press_guess,press_guess2, mydpdrho\n real*8 :: fac\n keytemp = ikeytemp\n\n anyerr = 0\n keyerr(:) = 0\n\n select case (eoskey)\n case (1)\n ! polytropic EOS\n do i=1,npoints\n rho(i) = (press(i) / poly_k)**(1.0/poly_gamma)\n eps(i) = press(i) / (poly_gamma - 1.0d0) / rho(i)\n enddo\n case (2)\n ! gamma-law EOS\n do i=1,npoints\n rho(i) = press(i) / ((gl_gamma - 1.0d0)*eps(i))\n enddo\n case (3)\n ! hybrid EOS\n write(warnstring,*) \"EOS_Omni_RestMassDensityFromPressEpsTemp not supported for hybrid EOS\"\n call CCTK_ERROR(warnstring)\n STOP\n case (4)\n ! nuc EOS\n if(ikeytemp.eq.2) then\n call CCTK_ERROR(\"This function does not work yet when coming in with entropy\")\n STOP\n else if(ikeytemp.eq.1) then\n keytemp = 1\n else\n call CCTK_ERROR(\"This function does not work yet when coming in with this keytemp\")\n STOP\n endif\n \n call CCTK_ERROR(\"This routine does not work with the new nuc_eos_cxx [yet]\")\n STOP\n\n keytemp = 1\n do i=1,npoints\n fac = 1.0d0\n counter = 0\n cont = .true.\n xprs(1) = press(i)\n press_guess(1) = xprs(1)\n rho_guess(1) = rho(i)\n xprs(1) = press(i)\n xtemp(1) = temp(i)\n xye(1) = ye(i)\n do while(cont)\n counter = counter + 1\n rho_guess2 = rho_guess * 1.0001d0\n call nuc_eos_m_kt1_short(1,rho_guess2,xtemp,xye,xenr,&\n press_guess2,xent,xcs2,xdedt,xdpderho,xdpdrhoe,xmunu,&\n keyerr(i),anyerr)\n call nuc_eos_m_kt1_short(1,rho_guess2,xtemp,xye,xenr,&\n press_guess2,xent,xcs2,xdedt,xdpderho,xdpdrhoe,xmunu,&\n keyerr(i),anyerr)\n mydpdrho(1) = (press_guess2(1)-press_guess(1))/(rho_guess2(1)-rho_guess(1))\n if (mydpdrho(1).lt.0.0d0) then\n !$OMP CRITICAL\n write(warnstring,\"(A25,1P10E15.6)\") \"Issue with table, dpdrho.lt.0\",&\n rho_guess,xtemp,xye\n call CCTK_ERROR(warnstring)\n !$OMP END CRITICAL\n STOP\n endif\n \n if (abs(1.0d0-press_guess(1)/xprs(1)).lt.rf_precision) then\n cont = .false.\n rho(i) = rho_guess(1)\n eps(i) = xenr(1)\n else\n if (fac*(xprs(1)-press_guess(1))/mydpdrho(1)/rho_guess(1).gt.0.1d0) then\n rho_guess = 0.99d0*rho_guess\n else\n rho_guess(1) = rho_guess(1) + fac*(xprs(1)-press_guess(1))/mydpdrho(1)\n endif\n endif\n\n if (counter.gt.100) then\n fac = 0.01d0\n endif\n\n if (rho_guess(1).lt.1.0d3.or.counter.gt.100000) then\n keyerr(i) = 473\n anyerr = 1\n return\n endif\n enddo\n enddo\n \n case (5)\n ! cold tabulated EOS\n ! deal only with case in which thermal pressure is zero\n if(keytemp.ne.1) then\n call CCTK_ERROR(\"finding rho(press) for tabulated cold EOS only possible if keytemp=1\")\n STOP\n endif\n\n do i=1,npoints\n fac = 1.0d0\n counter = 0\n cont = .true.\n xprs(1) = press(i)\n press_guess(1) = xprs(1)\n rho_guess(1) = rho(i)\n xprs(1) = press(i)\n do while(cont)\n counter = counter + 1\n rho_guess2(1) = rho_guess(1) * 1.0001d0\n\n ! press 2\n if(rho_guess2(1).lt.coldeos_rhomin) then\n keyerr(i) = 104\n anyerr = 1\n else if(rho_guess2(1).gt.coldeos_rhomax) then\n keyerr(i) = 103\n anyerr = 1\n else\n xrho(1) = log10(rho_guess2(1))\n ir = 2 + INT( (xrho(1) - coldeos_logrho(1) - 1.0d-10) * coldeos_dlrhoi )\n endif\n ir = max(2, min(ir,coldeos_nrho))\n \n gamma = (coldeos_gamma(ir) - coldeos_gamma(ir-1)) / &\n (coldeos_logrho(ir) - coldeos_logrho(ir-1)) * &\n (xrho(1) - coldeos_logrho(ir-1)) + coldeos_gamma(ir-1)\n\n press_guess2(1) = coldeos_kappa * rho_guess2(1)**gamma\n ! end press 2\n ! press 1\n if(rho_guess(1).lt.coldeos_rhomin) then\n keyerr(i) = 104\n anyerr = 1\n else if(rho_guess(1).gt.coldeos_rhomax) then\n keyerr(i) = 103\n anyerr = 1\n else\n xrho(1) = log10(rho_guess(1))\n ir = 2 + INT( (xrho(1) - coldeos_logrho(1) - 1.0d-10) * coldeos_dlrhoi )\n endif\n ir = max(2, min(ir,coldeos_nrho))\n \n gamma = (coldeos_gamma(ir) - coldeos_gamma(ir-1)) / &\n (coldeos_logrho(ir) - coldeos_logrho(ir-1)) * &\n (xrho(1) - coldeos_logrho(ir-1)) + coldeos_gamma(ir-1)\n\n press_guess(1) = coldeos_kappa * rho_guess(1)**gamma\n ! end press 1\n\n ! derivative\n mydpdrho(1) = (press_guess2(1)-press_guess(1))/(rho_guess2(1)-rho_guess(1))\n if (mydpdrho(1).lt.0.0d0) then\n !$OMP CRITICAL\n write(warnstring,\"(A25,1P10E15.6)\") \"Issue with table, dpdrho.lt.0\",&\n rho_guess(1),rho_guess2(1)\n call CCTK_ERROR(warnstring)\n !$OMP END CRITICAL\n STOP\n endif\n \n if (abs(1.0d0-press_guess(1)/xprs(1)).lt.rf_precision) then\n cont = .false.\n rho(i) = rho_guess(1)\n eps(i) = (coldeos_eps(ir) - coldeos_eps(ir-1)) / &\n (coldeos_logrho(ir) - coldeos_logrho(ir-1)) * &\n (xrho(1) - coldeos_logrho(ir-1)) + coldeos_eps(ir-1)\n else\n if (fac*(xprs(1)-press_guess(1))/mydpdrho(1)/rho_guess(1).gt.0.1d0) then\n rho_guess(1) = 0.99d0*rho_guess(1)\n else\n rho_guess(1) = rho_guess(1) + fac*(xprs(1)-press_guess(1))/mydpdrho(1)\n endif\n endif\n\n if (counter.gt.100) then\n fac = 0.01d0\n endif\n\n if (rho_guess(1).lt.1.0d-15.or.counter.gt.100000) then\n keyerr(i) = 473\n anyerr = 1\n return\n endif\n enddo\n\n enddo\n\n case (6)\n ! barotropic tabulated EOS\n ! deal only with case in which thermal pressure is zero\n if(keytemp.ne.1) then\n call CCTK_ERROR(\"finding rho(press) for tabulated barotropic EOS only possible if keytemp=1\")\n STOP\n endif\n\n do i=1,npoints\n fac = 1.0d0\n counter = 0\n cont = .true.\n xprs(1) = press(i)\n press_guess(1) = xprs(1)\n rho_guess(1) = rho(i)\n do while(cont)\n counter = counter + 1\n rho_guess2(1) = rho_guess(1) * 1.0001d0\n\n ! press 2\n if(rho_guess2(1).lt.barotropiceos_rhomin) then\n keyerr(i) = 104\n anyerr = 1\n else if(rho_guess2(1).gt.barotropiceos_rhomax) then\n keyerr(i) = 103\n anyerr = 1\n else\n xrho(1) = log10(rho_guess2(1))\n ir = 2 + INT( (xrho(1) - barotropiceos_logrho(1) - 1.0d-10) * barotropiceos_dlrhoi )\n endif\n ir = max(2, min(ir,barotropiceos_nrho))\n \n xprs(1) = (barotropiceos_logpress(ir) - barotropiceos_logpress(ir-1)) / &\n (barotropiceos_logrho(ir) - barotropiceos_logrho(ir-1)) * &\n (xrho(1) - barotropiceos_logrho(ir-1)) + barotropiceos_logpress(ir-1)\n \n press_guess2(1) = 10.0d0**xprs(1)\n ! end press 2\n ! press 1\n if(rho_guess(1).lt.barotropiceos_rhomin) then\n keyerr(i) = 104\n anyerr = 1\n else if(rho_guess(1).gt.barotropiceos_rhomax) then\n keyerr(i) = 103\n anyerr = 1\n else\n xrho(1) = log10(rho_guess(1))\n ir = 2 + INT( (xrho(1) - barotropiceos_logrho(1) - 1.0d-10) * barotropiceos_dlrhoi )\n endif\n ir = max(2, min(ir,barotropiceos_nrho))\n \n xprs(1) = (barotropiceos_logpress(ir) - barotropiceos_logpress(ir-1)) / &\n (barotropiceos_logrho(ir) - barotropiceos_logrho(ir-1)) * &\n (xrho(1) - barotropiceos_logrho(ir-1)) + barotropiceos_logpress(ir-1)\n\n press_guess(1) = 10.0d0**xprs(1)\n ! end press 1\n\n ! write(6,\"(i7,1P10E15.6)\") counter, rho_guess, press_guess, press_guess2, press(i)\n\n ! derivative\n mydpdrho(1) = (press_guess2(1)-press_guess(1))/(rho_guess2(1)-rho_guess(1))\n if (mydpdrho(1).lt.0.0d0) then\n !$OMP CRITICAL\n write(warnstring,\"(A25,1P10E15.6)\") \"Issue with table, dpdrho.lt.0\",&\n rho_guess(1),rho_guess2(1)\n call CCTK_ERROR(warnstring)\n !$OMP END CRITICAL\n STOP\n endif\n \n if (abs(1.0d0-press_guess(1)/press(i)).lt.rf_precision) then\n cont = .false.\n rho(i) = rho_guess(1)\n xenr(1) = (barotropiceos_logeps(ir) - barotropiceos_logeps(ir-1)) / &\n (barotropiceos_logrho(ir) - barotropiceos_logrho(ir-1)) * &\n (xrho(1) - barotropiceos_logrho(ir-1)) + barotropiceos_logeps(ir-1)\n eps(i) = 10.0d0**xenr(1) - barotropiceos_energyshift\n else\n if (fac*(press(i)-press_guess(1))/mydpdrho(1)/rho_guess(1).gt.0.1d0) then\n rho_guess(1) = 0.99d0*rho_guess(1)\n else\n rho_guess(1) = rho_guess(1) + fac*(press(i)-press_guess(1))/mydpdrho(1)\n endif\n endif\n\n if (counter.gt.100) then\n fac = 0.01d0\n endif\n\n if (rho_guess(1).lt.1.0d-15.or.counter.gt.100000) then\n! !$OMP CRITICAL\n! write(warnstring,\"(A25,1P10E15.6)\") \"rho(p) issue\", rho_guess,press(i),press_guess\n! call CCTK_ERROR(warnstring)\n! STOP\n! !$OMP END CRITICAL\n keyerr(i) = 473\n anyerr = 1\n return\n endif\n enddo\n\n enddo\n\n case DEFAULT\n write(warnstring,*) \"eoskey \",eoskey,\" not implemented!\"\n call CCTK_ERROR(warnstring)\n STOP\n end select\n\nend subroutine EOS_Omni_EOS_RhoFromPressEpsTempEnt\n\n\nsubroutine EOS_Omni_EOS_PressEpsTempYe_from_Rho(eoskey,keytemp,rf_precision,npoints,&\n rho,eps,temp,ye,press,keyerr,anyerr)\n\n use EOS_Omni_Module\n implicit none\n DECLARE_CCTK_PARAMETERS\n\n CCTK_INT, intent(in) :: eoskey,keytemp,npoints\n CCTK_INT, intent(out) :: keyerr(npoints)\n CCTK_INT, intent(out) :: anyerr\n CCTK_REAL, intent(in) :: rf_precision\n CCTK_REAL, intent(in) :: rho(npoints)\n CCTK_REAL, intent(out) :: eps(npoints), ye(npoints) \n CCTK_REAL, intent(out) :: temp(npoints),press(npoints)\n\n ! local vars\n integer :: i,p\n character(256) :: warnstring\n ! temporary vars for nuc_eos\n real*8, dimension(1):: xrho,xye,xtemp,xenr\n real*8, dimension(1):: xprs\n integer :: ir\n real*8 :: press_cold, press_th\n real*8 :: eps_cold, eps_th\n\n anyerr = 0\n keyerr(:) = 0\n\n select case (eoskey)\n case (6)\n ! barotropic tabular EOS with gamma law\n do i=1,npoints\n if(rho(i).lt.barotropiceos_rhomin) then\n press(i) = barotropiceos_low_kappa * rho(i)**barotropiceos_low_gamma\n eps(i) = press(i) / (barotropiceos_low_gamma - 1.0) / rho(i) \n cycle\n else if(rho(i).gt.barotropiceos_rhomax) then\n keyerr(i) = 103\n anyerr = 1\n else\n xrho(1) = log10(rho(i))\n ir = 2 + &\n INT( (xrho(1) - barotropiceos_logrho(1) - 1.0d-10) &\n * barotropiceos_dlrhoi )\n endif\n ir = max(2, min(ir,barotropiceos_nrho))\n\n xprs(1) = (barotropiceos_logpress(ir) - barotropiceos_logpress(ir-1)) / &\n (barotropiceos_logrho(ir) - barotropiceos_logrho(ir-1)) * &\n (xrho(1) - barotropiceos_logrho(ir-1)) + barotropiceos_logpress(ir-1)\n\n xenr(1) = (barotropiceos_logeps(ir) - barotropiceos_logeps(ir-1)) / &\n (barotropiceos_logrho(ir) - barotropiceos_logrho(ir-1)) * &\n (xrho(1) - barotropiceos_logrho(ir-1)) + barotropiceos_logeps(ir-1)\n\n xtemp(1) = (barotropiceos_temp(ir) - barotropiceos_temp(ir-1)) / &\n (barotropiceos_logrho(ir) - barotropiceos_logrho(ir-1)) * &\n (xrho(1) - barotropiceos_logrho(ir-1)) + barotropiceos_temp(ir-1)\n\n xye(1) = (barotropiceos_ye(ir) - barotropiceos_ye(ir-1)) / &\n (barotropiceos_logrho(ir) - barotropiceos_logrho(ir-1)) * &\n (xrho(1) - barotropiceos_logrho(ir-1)) + barotropiceos_ye(ir-1)\n\n press_cold = 10.0**xprs(1)\n eps_cold = 10.0**xenr(1) - barotropiceos_energyshift\n\n if(keytemp.eq.0) then\n eps_th = max(0.0d0,eps(i) - eps_cold)\n else if (keytemp.eq.1) then\n eps_th = 0.0d0\n eps(i) = eps_cold\n endif\n press_th = coldeos_thfac*(barotropiceos_gammath - 1.0d0)*rho(i)*eps_th\n press(i) = press_cold + press_th\n\n temp(i) = xtemp(1)\n ye(i) = xye(1)\n\n enddo\n\n case DEFAULT\n write(warnstring,*) \"eoskey \",eoskey,\" not implemented for EOS_Omni_EOS_PressEpsTempYe_from_Rho!\"\n call CCTK_ERROR(warnstring)\n STOP\n end select\n\n end subroutine EOS_Omni_EOS_PressEpsTempYe_from_Rho\n", diff --git a/EinsteinEOS_EOS_Polytrope.json b/EinsteinEOS_EOS_Polytrope.json index c2eda5f3073e7eebb5ebd2cc15766613de77baa1..4e04b1dbb790a4c42460842354e91ef5cfb31473 100644 --- a/EinsteinEOS_EOS_Polytrope.json +++ b/EinsteinEOS_EOS_Polytrope.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteineos.git", "configuration": "# Configuration definition for thorn EOS_Polytrope\n# $Header$\n\nPROVIDES EOS_Polytrope\n{\n SCRIPT\n LANG\n}\n\nREQUIRES EOS_Base \n\n", "interface": "# Interface definition for thorn EOS_Polytrope\n# $Header$\n\nimplements: EOS_2d_Polytrope\ninherits: EOS_Base\n\nUSES INCLUDE: EOS_Base.h\nUSES INCLUDE: EOS_Base.inc\n\nprivate:\n\n\n\n", - "params": "", + "param": "# Parameter definitions for thorn EOS_Polytrope\n# $Header$\n\nrestricted:\n\nREAL eos_gamma \"Adiabatic Index for Ideal Fluid\"\n{\n : :: \"\"\n} 2.0\n\nREAL eos_k \"Polytropic constant\" STEERABLE=ALWAYS\n{\n : :: \"\"\n} 80.0\n\nBOOLEAN use_cgs \"Use the CGS units\"\n{\n} \"no\"\n\nREAL gamma_ini \"Polytropic Gamma used for the initial model (e.g., by RNSID)\"\n{\n : :: \"\"\n} 2.0\n", "schedule": "# Schedule definitions for thorn EOS_Polytrope\n# $Header$\n\n\nschedule EOS_Polytrope_Startup AT startup\n{\n LANG: Fortran\n} \"Setup the polytropic EOS\"\n\n", "src": { "make.code.deps": "# Module dependencies for thorn EOS_Polytrope\n\nEOS_Polytrope.F.o:\t\tEOS_Polytrope_Scalars.F.o\nEOS_Polytrope_Startup.F.o:\tEOS_Polytrope_Scalars.F.o\n", diff --git a/EinsteinEvolve_GRHydro.json b/EinsteinEvolve_GRHydro.json index df44e5d1de23bf5fe3dee0d6e125275bf0b34837..71bf18abd8b87df373b9fbeb7beb2b1d1a659c4a 100644 --- a/EinsteinEvolve_GRHydro.json +++ b/EinsteinEvolve_GRHydro.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinevolve.git", "configuration": "# Configuration definition for thorn GRHydro\n# $Header$\n\nREQUIRES EOS_Omni Boundary CartGrid3D SpaceMask\n\nOPTIONAL_IFACTIVE Carpet\n{\n}\n\nOPTIONAL EOS_Polytrope\n{\n}\n", "interface": "# Interface definition for thorn GRHydro\n\n####################################################################\n### GRHydro needs to inherit the metric from Einstein. ###\n### Other thorns will need to know what EOS we're using. They ###\n### inherit to get the handle. ###\n####################################################################\n\nimplements: GRHydro\ninherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase\n\nUSES INCLUDE: SpaceMask.h\nUSES INCLUDE HEADER: carpet.hh\n\n###############################################################\n### Provided functions. These are mainly to allow RNSID ###\n### to convert back to primitive / conservative variables ###\n### without having an explicit coupling to GRHydro. ###\n### NOTE: the function that converts conservative to ###\n### primitive variables requires pointers to the conserved ###\n### variables as well as these variables are reset if ###\n### we're in the atmosphere. ###\n###############################################################\n\nvoid FUNCTION SpatialDet(CCTK_REAL IN gxx, CCTK_REAL IN gxy, \\\n CCTK_REAL IN gxz, CCTK_REAL IN gyy, \\\n CCTK_REAL IN gyz, CCTK_REAL IN gzz, \\\n CCTK_REAL OUT det)\n\nvoid FUNCTION UpperMet(CCTK_REAL OUT uxx, CCTK_REAL OUT uxy, \\\n CCTK_REAL OUT uxz, CCTK_REAL OUT uyy, \\\n CCTK_REAL OUT uyz, CCTK_REAL OUT uzz, \\\n CCTK_REAL IN det, CCTK_REAL IN gxx, CCTK_REAL IN gxy, \\\n CCTK_REAL IN gxz, CCTK_REAL IN gyy, CCTK_REAL IN gyz, \\\n CCTK_REAL IN gzz)\n\nvoid FUNCTION Con2PrimGen(CCTK_INT IN handle, CCTK_REAL INOUT dens, \\\n CCTK_REAL INOUT sx, CCTK_REAL INOUT sy, CCTK_REAL INOUT sz, \\\n CCTK_REAL INOUT tau, CCTK_REAL INOUT rho, \\\n CCTK_REAL INOUT velx, CCTK_REAL INOUT vely, CCTK_REAL INOUT velz, \\\n CCTK_REAL INOUT epsilon, CCTK_REAL INOUT pressure, \\\n CCTK_REAL INOUT w_lorentz, \\\n CCTK_REAL IN uxx, CCTK_REAL IN uxy, CCTK_REAL IN uxz, \\\n CCTK_REAL IN uyy, CCTK_REAL IN uyz, CCTK_REAL IN uzz, \\\n CCTK_REAL IN det, \\\n CCTK_REAL IN x, CCTK_REAL IN y, CCTK_REAL IN z, \\\n CCTK_REAL IN r, \\\n CCTK_INT OUT epsnegative, \\\n\t\t CCTK_REAL IN GRHydro_rho_min, CCTK_REAL IN pmin, \\\n\t\t CCTK_REAL IN epsmin, \\\n CCTK_INT IN GRHydro_reflevel, \\\n CCTK_REAL OUT retval)\n\nvoid FUNCTION Con2PrimGenMee(CCTK_INT IN handle, CCTK_INT IN keytemp, \\\n CCTK_REAL IN prec, CCTK_REAL IN gamma_eos, \\\n CCTK_REAL INOUT dens, \\\n CCTK_REAL INOUT sx, CCTK_REAL INOUT sy, CCTK_REAL INOUT sz, \\\n CCTK_REAL INOUT tau, \\\n CCTK_REAL IN Bconsx, CCTK_REAL IN Bconsy, CCTK_REAL IN Bconsz, \\\n CCTK_REAL INOUT entropycons, \\\n CCTK_REAL INOUT y_e, CCTK_REAL INOUT temp, CCTK_REAL INOUT rho, \\\n CCTK_REAL INOUT velx, CCTK_REAL INOUT vely, CCTK_REAL INOUT velz, \\\n CCTK_REAL INOUT epsilon, CCTK_REAL INOUT pressure, \\\n CCTK_REAL OUT Bvecx, CCTK_REAL OUT Bvecy, CCTK_REAL OUT Bvecz, \\\n CCTK_REAL OUT Bvecsq, \\\n CCTK_REAL INOUT w_lorentz, \\\n CCTK_REAL IN gxx, CCTK_REAL IN gxy, CCTK_REAL IN gxz, \\\n CCTK_REAL IN gyy, CCTK_REAL IN gyz, CCTK_REAL IN gzz, \\\n CCTK_REAL IN uxx, CCTK_REAL IN uxy, CCTK_REAL IN uxz, \\\n CCTK_REAL IN uyy, CCTK_REAL IN uyz, CCTK_REAL IN uzz, \\\n CCTK_REAL IN det, \\\n CCTK_INT OUT epsnegative, \\\n CCTK_REAL OUT retval)\n\nvoid FUNCTION Con2PrimGenM(CCTK_INT IN handle, CCTK_INT IN keytemp, CCTK_REAL IN prec,CCTK_REAL IN gamma_eos, CCTK_REAL INOUT dens, \\\n CCTK_REAL INOUT sx, CCTK_REAL INOUT sy, CCTK_REAL INOUT sz, \\\n CCTK_REAL INOUT tau, CCTK_REAL IN Bconsx, CCTK_REAL IN Bconsy, CCTK_REAL IN Bconsz, \\\n\t\t\t CCTK_REAL INOUT y_e, CCTK_REAL INOUT temp, CCTK_REAL INOUT rho, \\\n CCTK_REAL INOUT velx, CCTK_REAL INOUT vely, CCTK_REAL INOUT velz, \\\n CCTK_REAL INOUT epsilon, CCTK_REAL INOUT pressure, \\\n CCTK_REAL OUT Bvecx, CCTK_REAL OUT Bvecy, CCTK_REAL OUT Bvecz, \\\n CCTK_REAL OUT bvecsq, \\\n CCTK_REAL INOUT w_lorentz, \\\n CCTK_REAL IN gxx, CCTK_REAL IN gxy, CCTK_REAL IN gxz, \\\n CCTK_REAL IN gyy, CCTK_REAL IN gyz, CCTK_REAL IN gzz, \\\n CCTK_REAL IN uxx, CCTK_REAL IN uxy, CCTK_REAL IN uxz, \\\n CCTK_REAL IN uyy, CCTK_REAL IN uyz, CCTK_REAL IN uzz, \\\n CCTK_REAL IN det, \\\n CCTK_INT OUT epsnegative, \\\n CCTK_REAL OUT retval)\n\nvoid FUNCTION Con2PrimPoly(CCTK_INT IN handle, CCTK_REAL INOUT dens, \\\n CCTK_REAL INOUT sx, CCTK_REAL INOUT sy, \\\n CCTK_REAL INOUT sz, CCTK_REAL OUT tau, \\\n CCTK_REAL INOUT rho, CCTK_REAL INOUT velx, \\\n CCTK_REAL INOUT vely, CCTK_REAL INOUT velz, \\\n CCTK_REAL INOUT epsilon, CCTK_REAL INOUT press, \\\n CCTK_REAL INOUT w_lorentz, CCTK_REAL IN uxx, \\\n CCTK_REAL IN uxy, CCTK_REAL IN uxz, \\\n CCTK_REAL IN uyy, CCTK_REAL IN uyz, \\\n CCTK_REAL IN uzz, CCTK_REAL IN det, \\\n CCTK_REAL IN x, CCTK_REAL IN y, CCTK_REAL IN z, \\\n CCTK_REAL IN r, CCTK_REAL IN rho_min, \\\n\t\t\t CCTK_INT IN GRHydro_reflevel, CCTK_REAL OUT GRHydro_C2P_failed)\n\nvoid FUNCTION Con2PrimPolyM(CCTK_INT IN handle, CCTK_REAL IN gamma_eos, CCTK_REAL INOUT dens, \\\n CCTK_REAL INOUT sx, CCTK_REAL INOUT sy, CCTK_REAL INOUT sz, \\\n CCTK_REAL INOUT sc, CCTK_REAL IN Bconsx, CCTK_REAL IN Bconsy, CCTK_REAL IN Bconsz, \\\n\t\t\t CCTK_REAL INOUT rho, \\\n CCTK_REAL INOUT velx, CCTK_REAL INOUT vely, CCTK_REAL INOUT velz, \\\n CCTK_REAL INOUT epsilon, CCTK_REAL INOUT pressure, \\\n CCTK_REAL OUT Bvecx, CCTK_REAL OUT Bvecy, CCTK_REAL OUT Bvecz, \\\n CCTK_REAL OUT Bvecsq, \\\n CCTK_REAL INOUT w_lorentz, \\\n CCTK_REAL IN gxx, CCTK_REAL IN gxy, CCTK_REAL IN gxz, \\\n CCTK_REAL IN gyy, CCTK_REAL IN gyz, CCTK_REAL IN gzz, \\\n CCTK_REAL IN uxx, CCTK_REAL IN uxy, CCTK_REAL IN uxz, \\\n CCTK_REAL IN uyy, CCTK_REAL IN uyz, CCTK_REAL IN uzz, \\\n CCTK_REAL IN det, \\\n CCTK_INT OUT epsnegative, \\\n CCTK_REAL OUT retval)\n\nvoid FUNCTION Prim2ConGen(CCTK_INT IN handle, \\\n CCTK_REAL IN gxx, CCTK_REAL IN gxy, \\\n CCTK_REAL IN gxz, CCTK_REAL IN gyy, \\\n CCTK_REAL IN gyz, CCTK_REAL IN gzz, \\\n CCTK_REAL IN det, CCTK_REAL OUT dens, \\\n CCTK_REAL OUT sx, CCTK_REAL OUT sy, \\\n CCTK_REAL OUT sz, CCTK_REAL OUT tau, \\\n CCTK_REAL IN rho, CCTK_REAL IN velx, \\\n CCTK_REAL IN vely, \\\n CCTK_REAL IN velz, CCTK_REAL IN epsilon, \\\n CCTK_REAL OUT press, CCTK_REAL OUT w_lorentz)\n\nvoid FUNCTION Prim2ConPoly(CCTK_INT IN handle, \\\n CCTK_REAL IN gxx, CCTK_REAL IN gxy, \\\n CCTK_REAL IN gxz, CCTK_REAL IN gyy, \\\n CCTK_REAL IN gyz, CCTK_REAL IN gzz, \\\n CCTK_REAL IN det, CCTK_REAL OUT dens, \\\n CCTK_REAL OUT sx, CCTK_REAL OUT sy, \\\n CCTK_REAL OUT sz, CCTK_REAL OUT tau, \\\n CCTK_REAL IN rho, CCTK_REAL IN velx, \\\n CCTK_REAL IN vely, \\\n CCTK_REAL IN velz, CCTK_REAL OUT epsilon, \\\n CCTK_REAL OUT press, CCTK_REAL OUT w_lorentz)\n\nvoid FUNCTION Prim2ConGenM(CCTK_INT IN handle, \\\n CCTK_REAL IN gxx, CCTK_REAL IN gxy, \\\n CCTK_REAL IN gxz, CCTK_REAL IN gyy, \\\n CCTK_REAL IN gyz, CCTK_REAL IN gzz, \\\n CCTK_REAL IN det, CCTK_REAL OUT dens, \\\n CCTK_REAL OUT sx, CCTK_REAL OUT sy, \\\n CCTK_REAL OUT sz, CCTK_REAL OUT tau, \\\n CCTK_REAL OUT Bconsx, CCTK_REAL OUT Bconsy, \\\n CCTK_REAL OUT Bconsz, CCTK_REAL IN rho, CCTK_REAL IN velx, \\\n CCTK_REAL IN vely, \\\n CCTK_REAL IN velz, CCTK_REAL IN epsilon, \\\n CCTK_REAL OUT press, CCTK_REAL IN Bvecx, CCTK_REAL IN Bvecy, \\\n CCTK_REAL IN Bvecz, CCTK_REAL OUT w_lorentz)\n\nvoid FUNCTION Prim2ConGenM_hot(CCTK_INT IN handle, CCTK_INT IN GRHydro_reflevel, CCTK_INT IN i, CCTK_INT IN j, CCTK_INT IN k, \\\n CCTK_REAL IN x, CCTK_REAL IN y, CCTK_REAL IN z, \\\n CCTK_REAL IN gxx, CCTK_REAL IN gxy, \\\n CCTK_REAL IN gxz, CCTK_REAL IN gyy, \\\n CCTK_REAL IN gyz, CCTK_REAL IN gzz, \\\n CCTK_REAL IN det, CCTK_REAL OUT dens, \\\n CCTK_REAL OUT sx, CCTK_REAL OUT sy, \\\n CCTK_REAL OUT sz, CCTK_REAL OUT tau, \\\n CCTK_REAL OUT Bconsx, CCTK_REAL OUT Bconsy, \\\n CCTK_REAL OUT Bconsz, CCTK_REAL IN rho, CCTK_REAL IN velx, \\\n CCTK_REAL IN vely, \\\n CCTK_REAL IN velz, CCTK_REAL IN epsilon, \\\n CCTK_REAL OUT press, CCTK_REAL IN Bvecx, CCTK_REAL IN Bvecy, \\\n CCTK_REAL IN Bvecz, CCTK_REAL OUT w_lorentz, \\\n CCTK_REAL INOUT temperature, CCTK_REAL IN Y_e)\n\nvoid FUNCTION Prim2ConPolyM(CCTK_INT IN handle, \\\n CCTK_REAL IN gxx, CCTK_REAL IN gxy, \\\n CCTK_REAL IN gxz, CCTK_REAL IN gyy, \\\n CCTK_REAL IN gyz, CCTK_REAL IN gzz, \\\n CCTK_REAL IN det, CCTK_REAL OUT dens, \\\n CCTK_REAL OUT sx, CCTK_REAL OUT sy, \\\n CCTK_REAL OUT sz, CCTK_REAL OUT tau, \\\n CCTK_REAL OUT Bconsx, CCTK_REAL OUT Bconsy, \\\n CCTK_REAL OUT Bconsz, CCTK_REAL IN rho, CCTK_REAL IN velx, \\\n CCTK_REAL IN vely, \\\n CCTK_REAL IN velz, CCTK_REAL OUT epsilon, \\\n CCTK_REAL OUT press, CCTK_REAL IN Bvecx, CCTK_REAL IN Bvecy, \\\n CCTK_REAL IN Bvecz, CCTK_REAL OUT w_lorentz)\n\nPROVIDES FUNCTION SpatialDet WITH SpatialDeterminant LANGUAGE Fortran\nPROVIDES FUNCTION UpperMet WITH UpperMetric LANGUAGE Fortran\nPROVIDES FUNCTION Con2PrimPoly WITH Con2PrimPolyWrapper LANGUAGE Fortran\nPROVIDES FUNCTION Con2PrimGenM WITH Con2PrimGenMWrapper LANGUAGE Fortran\nPROVIDES FUNCTION Con2PrimGenMee WITH Con2PrimGenMeeWrapper LANGUAGE Fortran\nPROVIDES FUNCTION Con2PrimGen WITH Con2PrimGenWrapper LANGUAGE Fortran\nPROVIDES FUNCTION Con2PrimPolyM WITH Con2PrimPolyMWrapper LANGUAGE Fortran\nPROVIDES FUNCTION Prim2ConGen WITH Prim2ConGenWrapper LANGUAGE Fortran\nPROVIDES FUNCTION Prim2ConPoly WITH Prim2ConPolyWrapper LANGUAGE Fortran\nPROVIDES FUNCTION Prim2ConGenM WITH Prim2ConGenMWrapper LANGUAGE Fortran\nPROVIDES FUNCTION Prim2ConGenM_hot WITH Prim2ConGenM_hotWrapper LANGUAGE Fortran\nPROVIDES FUNCTION Prim2ConPolyM WITH Prim2ConPolyMWrapper LANGUAGE Fortran\n\n####################################################\n### Functions provided by MoL for registration ###\n####################################################\n\nCCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\nCCTK_INT FUNCTION MoLRegisterEvolvedSlow(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndexSlow)\nCCTK_INT FUNCTION MoLRegisterConstrained(CCTK_INT IN ConstrainedIndex)\nCCTK_INT FUNCTION MoLRegisterEvolvedGroup(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\nCCTK_INT FUNCTION MoLRegisterEvolvedGroupSlow(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndexSlow)\nCCTK_INT FUNCTION MoLRegisterConstrainedGroup(CCTK_INT IN ConstrainedIndex)\nCCTK_INT FUNCTION MoLRegisterSaveAndRestoreGroup(CCTK_INT IN SandRIndex)\n\nUSES FUNCTION MoLRegisterEvolved\nUSES FUNCTION MoLRegisterEvolvedSlow\nUSES FUNCTION MoLRegisterConstrained\nUSES FUNCTION MoLRegisterEvolvedGroup\nUSES FUNCTION MoLRegisterEvolvedGroupSlow\nUSES FUNCTION MoLRegisterConstrainedGroup\nUSES FUNCTION MoLRegisterSaveAndRestoreGroup\n\n#########################################\n### Aliased functions from Boundary ###\n#########################################\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\n\nUSES FUNCTION Boundary_SelectVarForBC\nUSES FUNCTION Boundary_SelectGroupForBC\n\n############################################\n### Aliased function from DriftCorrect ###\n############################################\n\nvoid FUNCTION SetDriftCorrectPosition ( CCTK_POINTER_TO_CONST IN GH_Pointer, \\\n CCTK_REAL IN x, \\\n CCTK_REAL IN y, \\\n CCTK_REAL IN z )\nUSES FUNCTION SetDriftCorrectPosition\n\n\n#######################################################\n### Functions provided by the Omni EOS interface ###\n#######################################################\n\nCCTK_INT FUNCTION EOS_Omni_GetHandle(CCTK_STRING IN name)\nUSES FUNCTION EOS_Omni_GetHandle\n\n\nvoid FUNCTION EOS_Omni_pressOMP(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n\t\t\t CCTK_REAL IN ARRAY rho, \\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \\\n\t\t\t CCTK_REAL IN ARRAY ye, \\\n\t\t\t CCTK_REAL OUT ARRAY press, \\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \\\n\t\t\t CCTK_INT OUT anyerr)\n\nUSES FUNCTION EOS_Omni_pressOMP\n\nvoid FUNCTION EOS_Omni_press(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n\t\t\t CCTK_REAL IN ARRAY rho, \\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \\\n\t\t\t CCTK_REAL IN ARRAY ye, \\\n\t\t\t CCTK_REAL OUT ARRAY press, \\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \\\n\t\t\t CCTK_INT OUT anyerr)\n\nUSES FUNCTION EOS_Omni_press\n\nvoid FUNCTION EOS_Omni_press_cs2(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n\t\t\t CCTK_REAL IN ARRAY rho, \\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \\\n\t\t\t CCTK_REAL IN ARRAY ye, \\\n\t\t\t CCTK_REAL OUT ARRAY press, \\\n\t\t\t CCTK_REAL OUT ARRAY cs2, \\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \\\n\t\t\t CCTK_INT OUT anyerr)\n\nUSES FUNCTION EOS_Omni_press_cs2\n\n\nvoid FUNCTION EOS_Omni_DPressByDEps(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n\t\t\t CCTK_REAL IN ARRAY rho, \\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \\\n\t\t\t CCTK_REAL IN ARRAY ye, \\\n\t\t\t CCTK_REAL OUT ARRAY dpdepsrho, \\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \\\n\t\t\t CCTK_INT OUT anyerr)\n\nUSES FUNCTION EOS_Omni_DPressByDEps\n\n\nvoid FUNCTION EOS_Omni_DPressByDRho(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \t\\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \t\\\n\t\t\t CCTK_REAL IN ARRAY rho, \t\\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \t\\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \t\\\n\t\t\t CCTK_REAL IN ARRAY ye, \t\\\n\t\t\t CCTK_REAL OUT ARRAY dpdrhoeps, \t\\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \t\\\n\t\t\t CCTK_INT OUT anyerr)\n\nUSES FUNCTION EOS_Omni_DPressByDRho\n\nvoid FUNCTION EOS_Omni_dpderho_dpdrhoe(CCTK_INT IN eoskey, \\\n CCTK_INT IN havetemp, \\\n CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n CCTK_REAL IN ARRAY rho, \\\n CCTK_REAL INOUT ARRAY eps, \\\n CCTK_REAL INOUT ARRAY temp, \\\n CCTK_REAL IN ARRAY ye, \\\n CCTK_REAL OUT ARRAY dpderho, \\\n CCTK_REAL OUT ARRAY dpdrhoe, \\\n CCTK_INT OUT ARRAY keyerr, \\\n CCTK_INT OUT anyerr)\n\nUSES FUNCTION EOS_Omni_dpderho_dpdrhoe\n\nvoid FUNCTION EOS_Omni_cs2(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n\t\t\t CCTK_REAL IN ARRAY rho, \t\\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \t\\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \t\\\n\t\t\t CCTK_REAL IN ARRAY ye, \t\\\n\t\t\t CCTK_REAL OUT ARRAY cs2, \t\t\\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \t\\\n CCTK_INT OUT anyerr)\n\nUSES FUNCTION EOS_Omni_cs2 \n\nvoid FUNCTION EOS_Omni_EpsFromPress(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \t\\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \t\\\n\t\t\t CCTK_REAL IN ARRAY rho, \t\\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \t\\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \t\\\n\t\t\t CCTK_REAL IN ARRAY ye, \t\\\n\t\t\t CCTK_REAL IN ARRAY press, \t\\\n\t\t\t CCTK_REAL OUT ARRAY xeps, \t\\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \t\\\n CCTK_INT OUT anyerr)\n\nUSES FUNCTION EOS_Omni_EpsFromPress \n\n \npublic:\n\nint GRHydro_eos_scalars type = SCALAR\n{\n GRHydro_eos_handle\n GRHydro_polytrope_handle\n} \"Handle number for EOS\"\n\nCCTK_REAL GRHydro_minima type = SCALAR\n{\n GRHydro_rho_min\n GRHydro_tau_min\n# GRHydro_dens_min\n} \"Atmosphere values\"\n\nreal dens type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"Scalar\" tensorweight=+1.0 jacobian=\"inverse_jacobian\" interpolator=\"matter\"' \"generalized particle number\"\n\nreal tau type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"Scalar\" tensorweight=+1.0 jacobian=\"inverse_jacobian\" interpolator=\"matter\"' \"internal energy\"\n\nreal scon[3] type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"D\" tensorweight=+1.0 jacobian=\"inverse_jacobian\" interpolator=\"matter\"' \"generalized momenta\"\n\nreal Bcons[3] type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"U\" tensorparity=-1 tensorweight=+1.0 jacobian=\"jacobian\" interpolator=\"matter\"' \"B-field conservative variable\"\n\nreal Evec[3] type = GF Timelevels = 1 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"U\" tensorweight=+1.0 jacobian=\"jacobian\" interpolator=\"matter\"' \"Electric field at edges\"\n\nreal Y_e_con type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"Scalar\" tensorweight=+1.0 jacobian=\"inverse_jacobian\" interpolator=\"matter\"' \"Conserved electron fraction\"\n\nreal entropycons type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"Scalar\" tensorweight=+1.0 jacobian=\"inverse_jacobian\" interpolator=\"matter\"' \"Conserved entropy density\"\n\nreal GRHydro_tracers[number_of_tracers] type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"Scalar\"'\n{\n tracer\n} \"Tracers\"\n\n#real w_lorentz type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"Scalar\" tensorweight=+1.0 interpolator=\"matter\"' \"Lorentz factor\"\n\nreal sdetg type = GF Timelevels = 1 tags='Prolongation=\"None\" tensortypealias=\"Scalar\" tensorweight=+1.0 interpolator=\"matter\" checkpoint=\"no\"' \"Sqrt of the determinant of the 3-metric\"\n\nreal psidc type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"Scalar\" tensorweight=+1.0 tensorparity=-1 jacobian=\"inverse_jacobian\" interpolator=\"matter\"' \"Psi parameter for divergence cleaning\"\n\nreal densrhs type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"' \"Update term for dens\"\nreal taurhs type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"' \"Update term for tau\"\nreal srhs[3] type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"' \"Update term for s\"\nreal Bconsrhs[3] type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"' \"Update term for Bcons\"\nreal Avecrhs[3] type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"' \"Update term for Avec\"\nreal Aphirhs type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"' \"Update term for Aphi\"\n\nreal psidcrhs type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"' \"Update term for psidc\"\n\nreal entropyrhs type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"' \"Update term for entropycons\"\n\nreal divB type = GF Timelevels = 1 tags='Prolongation=\"Restrict\" checkpoint=\"no\" tensorparity=-1' \"Magnetic field constraint\"\n\nreal bcom[3] type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"U\" tensorparity=-1 interpolator=\"matter\"' \"b^i: comoving contravariant magnetic field 4-vector spatial components\"\nreal bcom0 type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"Scalar\" interpolator=\"matter\"' \"b^0 component of the comoving contravariant magnetic field 4-vector\"\nreal bcom_sq type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"Scalar\" interpolator=\"matter\"' \"half of magnectic pressure: contraction of b_a b^a \"\n\n##################################################\n### variables in the local tensor basis\n##################################################\n\nCCTK_REAL lvel[3] type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"U\" jacobian=\"jacobian\" interpolator=\"matter\"' \"local velocity v^i\"\nCCTK_REAL lBvec[3] type = GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"U\" jacobian=\"jacobian\" tensorparity=-1 interpolator=\"matter\"' \"local Magnetic field components B^i\"\n\n# We should only need one timelevel. However, InitialAtmosphereReset also wants to set past timelevels!\n# There must be a better way!\nCCTK_REAL local_metric type = GF Timelevels = 3 tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n gaa, gab, gac\n gbb, gbc\n gcc\n} \"local ADM metric g_ij\"\n\nCCTK_REAL local_extrinsic_curvature type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n kaa, kab, kac\n kbb, kbc\n kcc\n} \"local extrinsic curvature K_ij\"\n\n\nCCTK_REAL local_shift type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"' \n{\n betaa, betab, betac\n} \"local ADM shift \\beta^i\"\n\n##################################################\n### These variables are only protected so that ###\n### the tests in init_data work. Should fix. ###\n##################################################\n\nreal GRHydro_prim_bext type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n rhoplus, velxplus, velyplus, velzplus, pressplus, epsplus, w_lorentzplus, \n cs2plus, rhominus, velxminus, velyminus, velzminus, pressminus, epsminus, \n w_lorentzminus, cs2minus\n} \"Primitive variables extended to the cell boundaries\"\n\nint GRHydro_scalars type = SCALAR tags='checkpoint=\"no\"'\n{\n flux_direction, xoffset, yoffset, zoffset\n} \"Which direction are we taking the fluxes in and the offsets\"\n\nint GRHydro_atmosphere_mask type = GF Timelevels = 1 tags='Prolongation=\"None\"'\n{\n atmosphere_mask\n} \"Flags to say whether a point needs to be reset to the atmosphere\"\n\n# This real mask is set during UpdateAtmosphereMask and sync'ed afterwards (including possible interpatch interpolation)\n# After syn'ing and before any con2prim fun, we set the integer mask above based on the real-valued mask.\n# This ensures that any routine using the int mask is still correctly working.\nreal GRHydro_atmosphere_mask_real type = GF Timelevels = 1 tags='Prolongation=\"sync\" checkpoint=\"no\"'\n{\n atmosphere_mask_real\n} \"Flags to say whether a point needs to be reset to the atmosphere. This is sync'ed (and possibly interpolated)!\"\n\nint GRHydro_atmosphere_descriptors type=SCALAR\n{\n atmosphere_field_descriptor\n atmosphere_atmosp_descriptor\n atmosphere_normal_descriptor\n}\n\nreal GRHydro_cons_tracers[number_of_tracers] TYPE=GF Timelevels = 3 tags='ProlongationParameter=\"HydroBase::prolongation_type\" tensortypealias=\"Scalar\"'\n{\n cons_tracer\n} \"The conserved tracer variable\"\n\n# For measuring separations\nCCTK_REAL GRHydro_maxima_position TYPE=SCALAR tags='checkpoint=\"no\"'\n{\n maxima_x\n maxima_y\n maxima_z\n maximum_density\n} \"The position (coordinate values) of the maximum value of rho\"\n\nCCTK_REAL maxrho_global TYPE=SCALAR tags='checkpoint=\"no\"' \"store the global maximum of rho, for refinment-grid steering\"\n\n# functions can be prolonged only if they are real (not integer).\nCCTK_REAL GRHydro_C2P_failed TYPE=GF Timelevels = 1 tags='Prolongation=\"restrict\" tensortypealias=\"Scalar\" checkpoint=\"no\"' \"Mask that stores the points where C2P has failed\"\n\n# Should we do the same for the atmo masks?\n\nreal GRHydro_fluxes type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n densflux, sxflux, syflux, szflux, tauflux\n} \"Fluxes for each conserved variable\"\n\nreal GRHydro_Bfluxes type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n Bconsxflux, Bconsyflux, Bconszflux\n} \"Fluxes for each B-field variable\"\n\nreal GRHydro_psifluxes type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n psidcflux\n} \"Fluxes for the divergence cleaning parameter\"\n\nreal GRHydro_entropyfluxes type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n entropyflux\n} \"Fluxes for the conserved entropy density\"\n\nreal GRHydro_Avecfluxes type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n Avecxflux, Avecyflux, Aveczflux\n} \"Fluxes for each Avec variable\"\n\nreal GRHydro_Aphifluxes type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n Aphiflux\n} \"Fluxes for Aphi\"\n\nint evolve_Y_e type = SCALAR tags='checkpoint=\"no\"' \"Are we evolving Y_e? Set in Paramcheck\"\n\nint evolve_temper type = SCALAR tags='checkpoint=\"no\"' \"Are we evolving temperature? Set in Paramcheck\"\n\nint evolve_entropy type = SCALAR tags='checkpoint=\"no\"' \"Are we evolving entropy? Set in Paramcheck\"\n\nint evolve_MHD type = SCALAR tags='checkpoint=\"no\"' \"Are we doing MHD? Set in ParamCheck\"\n\nint evolve_Lorenz_gge type = SCALAR tags='checkpoint=\"no\"' \"Are we evolving the Lorenz gauge?\"\n\nint GRHydro_reflevel type = SCALAR tags='checkpoint=\"no\"' \"Refinement level GRHydro is working on right now\"\n\nprivate:\n\nint InLastMoLPostStep type = SCALAR tags='checkpoint=\"no\"' \"Flag to indicate if we are currently in the last MoL_PostStep\"\n\nint execute_MoL_Step type = SCALAR tags='checkpoint=\"no\"' \"Flag indicating whether we use the slow sector of multirate RK time integration\"\nint execute_MoL_PostStep type = SCALAR tags='checkpoint=\"no\"' \"Flag indicating whether we use the slow sector of multirate RK time integration\"\n\nreal GRHydro_con_bext type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n densplus, sxplus, syplus, szplus, tauplus,\n densminus, sxminus, syminus, szminus, tauminus\n} \"Conservative variables extended to the cell boundaries\"\n\nreal GRHydro_MHD_con_bext type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n Bconsxplus,Bconsyplus,Bconszplus,Bconsxminus,Bconsyminus,Bconszminus\n} \"Conservative variables extended to the cell boundaries\"\n\nreal GRHydro_MHD_prim_bext type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n Bvecxplus,Bvecyplus,Bveczplus,Bvecxminus,Bvecyminus,Bveczminus\n} \"Primitive mhd variables extended to the cell boundaries\"\n\nreal GRHydro_Avec_bext type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n Avecxplus,Avecyplus,Aveczplus,Avecxminus,Avecyminus,Aveczminus\n} \"Vector potential extended to the cell boundaries\"\n\nreal GRHydro_Aphi_bext type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n Aphiplus,Aphiminus\n} \"Vector potential phi extended to the cell boundaries\"\n\nreal GRHydro_MHD_psidc_bext type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n psidcplus,psidcminus\n} \"Divergence cleaning variable extended to the cell boundaries for diverence cleaning\"\n\nreal GRHydro_entropy_prim_bext type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n entropyplus,entropyminus\n} \"Primitive entropy extended to the cell boundaries\"\n\nreal GRHydro_entropy_con_bext type = GF Timelevels = 1 tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n entropyconsplus,entropyconsminus\n} \"Conservative entropy extended to the cell boundaries\"\n\nint whichpsidcspeed type = SCALAR tags='checkpoint=\"no\"' \"Which speed to set for psidc? Set in ParamCheck\"\n\nreal GRHydro_coords type=GF timelevels=3 \n{\n GRHydro_x\n GRHydro_y\n GRHydro_z\n} \"Coordinates to use with the comoving shift\"\n\nreal GRHydro_coords_rhs type=GF timelevels=1 tags='Prolongation=\"None\"'\n{\n GRHydro_x_rhs\n GRHydro_y_rhs\n GRHydro_z_rhs\n} \"RHS for coordinates to use with the comoving shift\"\n\n#real GRHydro_hamiltonian type=GF tags='tensortypealias=\"Scalar\"'\n#{\n# GRHydro_hamnormalized\n# GRHydro_ham\n#} \"GRHydro hamiltonian constraints\"\n\n#real GRHydro_momentum type=GF tags='tensortypealias=\"U\" checkpoint=\"no\"'\n#{\n# GRHydro_momx,\n# GRHydro_momy,\n# GRHydro_momz \n#} \"GRHydro momentum constraints\"\n\nint GRHydro_trivial_rp_gf_group type=GF timelevels=1 tags='Prolongation=\"None\"'\n{\n GRHydro_trivial_rp_gf_x\n GRHydro_trivial_rp_gf_y\n GRHydro_trivial_rp_gf_z\n} \"set gf for triv. rp (only for debugging)\"\n\n\nreal flux_splitting TYPE=GF tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n densfplus, densfminus\n sxfplus, sxfminus\n syfplus, syfminus\n szfplus, szfminus\n taufplus, taufminus\n} \"Fluxes for use in the flux splitting\"\n\nreal fs_alpha TYPE=SCALAR\n{\n fs_alpha1\n fs_alpha2\n fs_alpha3\n fs_alpha4\n fs_alpha5\n} \"Maximum characteristic speeds for the flux splitting\"\n\npublic:\nreal Y_e_con_rhs TYPE=GF tags='Prolongation=\"None\" checkpoint=\"no\"' \"RHS for the electron fraction\"\nreal Y_e_con_flux TYPE=GF tags='Prolongation=\"None\" checkpoint=\"no\"' \"Flux for the electron fraction\"\nprivate:\nreal Y_e_plus TYPE=GF tags='Prolongation=\"None\" checkpoint=\"no\"' \"Plus state for the electron fraction\"\nreal Y_e_minus TYPE=GF tags='Prolongation=\"None\" checkpoint=\"no\"' \"Minus state for the electron fraction\"\nreal tempplus TYPE=GF tags='Prolongation=\"None\" checkpoint=\"no\"' \"Plus state for the temperature\"\nreal tempminus TYPE=GF tags='Prolongation=\"None\" checkpoint=\"no\"' \"Minus state for the temperature\"\n\nreal GRHydro_tracer_rhs[number_of_tracers] TYPE=GF tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n cons_tracerrhs\n} \"RHS for the tracer\"\n\nreal GRHydro_tracer_flux[number_of_tracers] TYPE=GF tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n cons_tracerflux\n} \"Flux for the tracer\"\n\nreal GRHydro_tracer_cons_bext[number_of_tracers] TYPE=GF tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n cons_tracerplus, cons_tracerminus\n} \"Cell boundary values for the tracer\"\n\nreal GRHydro_tracer_prim_bext[number_of_tracers] TYPE=GF tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n tracerplus, tracerminus\n} \"Primitive cell boundary values for the tracer\"\n\nreal GRHydro_tracer_flux_splitting[number_of_tracers] TYPE=GF tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n tracerfplus, tracerfminus\n} \"Flux splitting for the tracer\"\n\nreal GRHydro_mppm_eigenvalues TYPE=GF tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n GRHydro_mppm_eigenvalue_x_left, GRHydro_mppm_eigenvalue_x_right\n GRHydro_mppm_eigenvalue_y_left, GRHydro_mppm_eigenvalue_y_right\n GRHydro_mppm_eigenvalue_z_left, GRHydro_mppm_eigenvalue_z_right\n GRHydro_mppm_xwind\n} \"debug variable for flux eigenvalues in mppm\"\n\n\nCCTK_REAL particles TYPE=ARRAY DIM=1 TIMELEVELS=3 SIZE=number_of_particles GHOSTSIZE=0 DISTRIB=DEFAULT\n{\n particle_x\n particle_y\n particle_z\n} \"Coordinates of particles to be tracked\"\n\nCCTK_REAL particle_rhs TYPE=ARRAY DIM=1 TIMELEVELS=1 SIZE=number_of_particles GHOSTSIZE=0 DISTRIB=DEFAULT\n{\n particle_x_rhs\n particle_y_rhs\n particle_z_rhs\n} \"RHS functions for particles to be tracked\"\n\nCCTK_REAL particle_arrays TYPE=ARRAY DIM=1 TIMELEVELS=1 SIZE=number_of_particles GHOSTSIZE=0 DISTRIB=DEFAULT tags='checkpoint=\"no\"'\n{\n particle_vx\n particle_vy\n particle_vz\n particle_alp\n particle_betax\n particle_betay\n particle_betaz\n} \"Temporaries to hold interpolated values for particle tracking\"\n\n# For measuring separations\n\nCCTK_REAL GRHydro_maxima_location TYPE=SCALAR tags='checkpoint=\"no\"'\n{\n maxima_i\n maxima_j\n maxima_k\n} \"The location (point index) of the maximum value of rho\"\n\nCCTK_INT GRHydro_maxima_iteration TYPE=SCALAR \"Iteration on which maximum was last set\"\n\nCCTK_REAL GRHydro_maxima_separation TYPE=SCALAR tags='checkpoint=\"no\"'\n{\n GRHydro_separation\n GRHydro_proper_separation\n} \"The distance between the centres (locations of maximum density) of a binary NS\"\n\nCCTK_REAL DiffRho TYPE=GF tags='Prolongation=\"None\" checkpoint=\"no\"' \"The first difference in rho\"\n\n# For the new EOS interface a couple of temporaries are required\n\nCCTK_REAL EOS_temps TYPE=GF tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n eos_cs2_p, eos_cs2_m\n eos_dpdeps_p, eos_dpdeps_m\n} \"Temporaries for the EOS calls\"\n\nCCTK_REAL RoeAverage_temps TYPE=GF tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n rho_ave, velx_ave, vely_ave, velz_ave, eps_ave, press_ave\n eos_cs2_ave, eos_dpdeps_ave\n} \"Temporaries for the Roe solver\"\n\nCCTK_REAL Con2Prim_temps TYPE=GF tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n press_old, press_new\n eos_dpdeps_temp, eos_dpdrho_temp\n} \"Temporaries for the conservative to primitive conversion\"\n\nCCTK_REAL H_viscosity_temps TYPE=GF tags='Prolongation=\"None\" checkpoint=\"no\"'\n{\n eos_c\n} \"Temporaries for H viscosity\"\n\n\n", - "params": "", + "param": "# Parameter definitions for thorn GRHydro\n# $Header$\n\nshares:ADMBase\n\nUSES KEYWORD initial_shift\nUSES KEYWORD metric_type \n \nEXTENDS KEYWORD shift_evolution_method \"\"\n{\n \"Comoving\" :: \"Set the shift so the matter is approximately comoving\"\n}\n\n\n#########################################\n### PARAMETRES SHARED FROM HydroBase ###\n#########################################\n\nshares: HydroBase\n\nUSES CCTK_INT timelevels\nUSES STRING prolongation_type\nUSES INT hydro_excision\nEXTENDS KEYWORD evolution_method \"\"\n{\n \"GRHydro\" :: \"Use GRHydro to evolve the hydro variables\"\n}\nEXTENDS KEYWORD Bvec_evolution_method \"\"\n{\n \"GRHydro\" :: \"Use GRHydro to evolve the MHD variables, evolving the Magnetic Field\"\n \"GRHydro_Avec\" :: \"Use GRHydro to evolve the MHD variables, evolving the Vector Potential\"\n}\nEXTENDS KEYWORD Y_e_evolution_method \"\"\n{\n \"GRHydro\" :: \"Use GRHydro to evolve Y_e\"\n}\nEXTENDS KEYWORD temperature_evolution_method \"\"\n{\n \"GRHydro\" :: \"Use GRHydro to evolve temperature\"\n}\nEXTENDS KEYWORD entropy_evolution_method \"\"\n{\n \"GRHydro\" :: \"Use GRHydro to evolve entropy\"\n}\nEXTENDS KEYWORD initial_Bvec \"\"\n{\n \"Bvec_from_Avec\" :: \"Calculate B^i for an initially specified A_i\"\n}\n\n#########################################\n### PARAMETRES SHARED FROM MoL ###\n#########################################\n\nshares: MethodOfLines\n\nUSES CCTK_INT MoL_Num_Evolved_Vars\nUSES CCTK_INT MoL_Num_Evolved_Vars_Slow\nUSES CCTK_INT MoL_Num_Constrained_Vars\nUSES CCTK_INT MoL_Num_SaveAndRestore_Vars\nUSES CCTK_INT MoL_Max_Evolved_Array_Size \nUSES CCTK_INT MoL_Num_ArrayEvolved_Vars\n\nshares:SpaceMask\n\nUSES boolean use_mask\n\n#########################################\n### PARAMETRES SHARED FROM EOS_Omni ###\n#########################################\n\nSHARES: EOS_Omni\n\nUSES REAL poly_k\n\nrestricted:\n\nKEYWORD use_evolution_mask \"Set this to 'always' to skip validity tests in regions where CarpetEvolutionMask::evolution_mask vanishes.\" STEERABLE=ALWAYS\n{\n \"always\" :: \"use the mask\"\n \"auto\" :: \"check if CarpetEvolutionMask is active, then use the mask\"\n \"never\" :: \"do not use the mask\"\n} \"never\"\n\nBOOLEAN GRHydro_enable_internal_excision \"Set this to 'false' to disable the thorn-internal excision.\" STEERABLE=ALWAYS\n{\n} \"true\"\n\nCCTK_INT GRHydro_hydro_excision \"Turns excision automatically on in HydroBase\" ACCUMULATOR-BASE=HydroBase::hydro_excision\n{\n 1:1 :: \"Only '1' allowed\"\n} 1\n\nINT sources_spatial_order \"Order of spatial differencing of the source terms\"\n{\n2 :: \"2nd order finite differencing\"\n4 :: \"4th order finite differencing\"\n} 2\n\nCCTK_INT GRHydro_MaxNumEvolvedVars \"The maximum number of evolved variables used by GRHydro\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Evolved_Vars\n{\n 0 :: \"when using multirate\"\n 5:12\t\t:: \"dens scon[3] tau (B/A)vec[3] psidc ye entropy Aphi\"\n} 5\n\nCCTK_INT GRHydro_MaxNumEvolvedVarsSlow \"The maximum number of evolved variables used by GRHydro\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Evolved_Vars_Slow\n{\n 0 :: \"do not use multirate\"\n 5:12\t\t:: \"dens scon[3] tau (B/A)vec[3] psidc ye entropy Aphi\"\n} 0\n\n# 7 primitives (rho,press,eps,w_lorentz,vel)\n# 10 Tmunu\n# 3 Bvec\n# 1 tau (polytype EOS)\n# 1 Y_e\n# 1 temperature\n# 1 entropy\n# 3 comoving shift\n# 3 lvel\n# 3 local_shift\n# 6 local_metric\n# 6 local_extrinsic_curvature\n# 3 lBvec\nCCTK_INT GRHydro_MaxNumConstrainedVars \"The maximum number of constrained variables used by GRHydro\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Constrained_Vars\n{\n 7:48\t\t:: \"A small range, depending on testing or not\"\n} 37\n \nCCTK_INT GRHydro_MaxNumSandRVars \"The maximum number of save and restore variables used by GRHydro\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_SaveAndRestore_Vars\n{\n 0:16\t\t:: \"A small range, depending on testing or not\"\n} 16\n\nkeyword recon_method \"Which reconstruction method to use\" STEERABLE=RECOVER\n{\n \"tvd\"\t :: \"Slope limited TVD\"\n \"ppm\" :: \"PPM reconstruction\"\n \"eno\" :: \"ENO reconstruction\"\n \"weno\" :: \"WENO reconstruction\"\n \"weno-z\" :: \"WENO-Z reconstruction\"\n \"mp5\" :: \"MP5 reconstruction\"\n} \"tvd\"\n\nkeyword method_type \"Which type of method to use\"\n{\n \"RSA FV\" :: \"Reconstruct-Solve-Average finite volume method\"\n \"Flux Split FD\" :: \"Finite difference using Lax-Friedrichs flux splitting\"\n} \"RSA FV\"\n\n\nboolean check_for_trivial_rp \"Do check for trivial Riemann Problem\"\n{\n} \"yes\"\n\nkeyword recon_vars \"Which type of variables to reconstruct\"\n{\n \"primitive\" \t\t:: \"Reconstruct the primitive variables\"\n \"conservative\" \t:: \"Reconstruct the conserved variables\"\n} \"primitive\"\n\nkeyword tvd_limiter \"Which slope limiter to use\"\n{\n \"minmod\" \t:: \"Minmod\"\n \"vanleerMC2\"\t:: \"Van Leer MC - Luca\"\n \"Superbee\"\t:: \"Superbee\"\n} \"minmod\"\n\nreal myfloor \"A minimum number for the TVD reconstruction routine\"\n{\n 0.0:\t\t:: \"Must be positive\"\n} 1.e-10\n\nboolean use_optimized_ppm \"use C++ templated version of PPM. Experimental\"\n{\n} \"no\"\n\nboolean ppm_detect \"Should the PPM solver use shock detection?\"\n{\n} \"no\"\n\nkeyword ppm_flatten \"Which flattening procedure should the PPM solver use?\"\n{\n \"stencil_3\" :: \"our flattening procedure, which requires only stencil 3 and which may work\"\n \"stencil_4\" :: \"original C&W flattening procedure, which requires stencil 4\"\n} \"stencil_3\"\n\nreal ppm_epsilon \"Epsilon for PPM zone flattening\"\n{\n 0.0: \t\t:: \"Must be positive. Default is from Colella & Woodward\"\n} 0.33\n\nreal ppm_omega1 \"Omega1 for PPM zone flattening\"\n{\n : \t\t:: \"Anything goes. Default is from Colella & Woodward\"\n} 0.75\n\nreal ppm_omega2 \"Omega2 for PPM zone flattening\"\n{\n :\t\t:: \"Anything goes. Default is from Colella & Woodward\"\n} 10.0\n\nreal ppm_omega_tracer \"Omega for tracer PPM zone flattening\"\n{\n :\t\t:: \"Anything goes. Default is from Plewa & Mueller\"\n} 0.50\n\nreal ppm_epsilon_shock \"Epsilon for PPM shock detection\"\n{\n :\t\t:: \"Anything goes. Default is from Colella & Woodward\"\n} 0.01\n\nreal ppm_eta1 \"Eta1 for PPM shock detection\"\n{\n :\t\t:: \"Anything goes. Default is from Colella & Woodward\"\n} 20.0\n\nreal ppm_eta2 \"Eta2 for PPM shock detection\"\n{\n :\t\t:: \"Anything goes. Default is from Colella & Woodward\"\n} 0.05\n\nreal ppm_k0 \"K0 for PPM shock detection\"\n{\n :\t\t:: \"Anything goes. Default suggested by Colella & Woodward is: (polytropic constant)/10.0\"\n} 0.2\n\nreal ppm_small \"A floor used by PPM shock detection\"\n{\n 0.0:1.0\t:: \"In [0,1]\"\n} 1.e-7\n\nint ppm_mppm \"Use modified (enhanced) ppm scheme\"\n{\n 0:1 :: \"0 (off, default) or 1 (on)\" \n} 0\n\nint ppm_mppm_debug_eigenvalues \"write eigenvalues into debug grid variables\"\n{\n 0:1 :: \"0 (off, default) or 1 (on)\" \n} 0\n\nreal mp5_alpha \"alpha parameter for MP5 reconstruction\"\n{\n 0:* :: \"positive\"\n} 4.0\n\nreal mp5_eps \"epsilon parameter for MP5 reconstruction\"\n{\n 0:* :: \"0.0 or very small and positive. 1e-10 is suggested by Suresh&Huynh. TOV star requires 0.0\"\n} 0.0\n\nboolean mp5_adaptive_eps \"Same as WENO adaptive epsilon: adaptively reduce mp5_eps according to norm of stencil. Original algorithm does not use this.\"\n{\n} no\n\nboolean use_enhanced_ppm \"Use the enhanced ppm reconstruction method proposed by Colella & Sekora 2008 and McCorquodale & Colella 2011\" STEERABLE=RECOVER\n{\n} no\n\nint GRHydro_oppm_reflevel \"Ref level where oPPM is used instead of ePPM (used with use_enhaced_ppm=yes).\"\n{\n -1:10 :: \"0-10 (the reflevel number) or -1 (off)\" \n} -1\n\nreal enhanced_ppm_C2 \"Parameter for enhancecd ppm limiter. Default from McCorquodale & Colella 2011\" STEERABLE=ALWAYS\n{\n *:* :: \"must be greater than 1. According to Colella&Sekora 2008, enhanced ppm is insensitive to C in [1.25,5]\"\n} 1.25\n\nreal enhanced_ppm_C3 \"Parameter for enhancecd ppm limiter. Default from McCorquodale & Colella 2011\" STEERABLE=ALWAYS\n{\n 0:* :: \"must be greater than 0.\"\n} 0.1\n\nboolean reconstruct_Wv \"Reconstruct the primitive velocity W_Lorentz*vel, rather than just vel.\" STEERABLE=ALWAYS\n{\n} no\n\nint eno_order \"The order of accuracy of the ENO reconstruction\"\n{\n 1:*\t\t:: \"Anything above 1, but above 5 is pointless\"\n} 2\n\nint WENO_order \"The order of accuracy of the WENO reconstruction\"\n{\n 5 :: \"Fifth-order\"\n} 5\n\nreal weno_eps \"WENO epsilon parameter. For WENO-z, 1e-40 is recommended\" STEERABLE=ALWAYS\n{\n 0:* :: \"small and positive\"\n} 1e-26\n\nboolean weno_adaptive_epsilon \"use modified smoothness indicators that take into account scale of solution (adaptive epsilon)\"\n{\n} yes\n\nkeyword riemann_solver \"Which Riemann solver to use\" STEERABLE=always\n{\n \"Roe\"\t\t:: \"Standard Roe solver\"\n \"Marquina\"\t:: \"Marquina flux\"\n \"HLLE\"\t:: \"HLLE\"\n \"HLLC\"\t:: \"HLLC\"\n \"LLF\"\t:: \"Local Lax-Friedrichs (MHD only at the moment)\"\n} \"HLLE\"\n\n\nkeyword HLLE_type \"Which HLLE type to use\"\n{\n \"Standard\"\t:: \"Standard HLLE solver\"\n \"Tadmor\"\t:: \"Tadmor's simplification of HLLE\"\n} \"Standard\"\n\n\n\nkeyword left_eigenvectors \"How to compute the left eigenvectors\"\n{\n \"analytical\"\t:: \"Analytical left eigenvectors\"\n \"numerical\"\t:: \"Numerical left eigenvectors\"\n} \"analytical\"\n\nkeyword numerical_viscosity \"How to compute the numerical viscosity\"\n{\n \"fast\"\t:: \"Fast numerical viscosity\"\n \"normal\"\t:: \"Normal numerical viscosity\"\n} \"fast\"\n\nboolean apply_H_viscosity \"H viscosity is useful to fix the carbuncle instability seen at strong shocks\"\n{\n} no\n\nkeyword bound \"Which boundary condition to use - FIXME\"\n{\n \"flat\"\t:: \"Zero order extrapolation\"\n \"none\"\t:: \"None\"\n \"static\"\t:: \"Static, no longer supported\"\n \"scalar\"\t:: \"Constant\"\n} \"none\"\n\nint GRHydro_stencil \"Width of the stencil\"\n{\n 0:\t\t:: \"Must be positive\"\n} 2\n\nkeyword GRHydro_eos_type \"Type of Equation of State\"\n{\n \"Polytype\"\t:: \"P = P(rho) or P = P(eps)\"\n \"General\"\t:: \"P = P(rho, eps)\"\n} \"General\"\n\nstring GRHydro_eos_table \"Name for the Equation of State\"\n{\n .*\t\t:: \"Can be anything\"\n} \"Ideal_Fluid\"\n\n\nreal GRHydro_eos_rf_prec \"Precision to which root finding should be carried out\" STEERABLE=ALWAYS\n{\n (0.0:* :: \"anything larger than 0 goes\"\n} 1.0e-8\n\n# cott@tapir.caltech.edu:\n# The below parameter controls the handling of EOS_Omni keyerr=667\n# failures. In these failures, no new temperature can be found for the\n# eps it was called with. This may happen, for example, when a strong\n# shock appears for the first time. Code checking this parameter will,\n# if it is set to true, locally inject heat to fix the problem.\n# This normally happens only very rarely, but one must monitor total energy\n# conservation to check that this does ruin energy conservation.\nboolean GRHydro_eos_hot_eps_fix \"Activate quasi-failsafe mode for hot EOSs\" STEERABLE=ALWAYS\n{\n} \"no\"\n\nboolean GRHydro_eos_hot_prim2con_warn \"Warn about temperature workaround in prim2con\" STEERABLE=ALWAYS\n{\n} \"yes\"\n\nboolean GRHydro_c2p_reset_eps_tau_hot_eos \"As a last resort, reset tau\" STEERABLE=ALWAYS\n{\n} \"no\"\n\nboolean reconstruct_temper \"if set to true, temperature will be reconstructed\" STEERABLE=ALWAYS\n{\n} \"no\"\n \nREAL GRHydro_hot_atmo_temp \"Temperature of the hot atmosphere in MeV\" STEERABLE=ALWAYS\n{\n (0.0:* :: \"Larger than 0 MeV\"\n} 0.1e0\n\nREAL GRHydro_max_temp \"maximum temperature we allow\" STEERABLE=ALWAYS\n{\n (0.0:* :: \"Larger than 0 MeV\"\n} 90.0e0\n\nREAL GRHydro_hot_atmo_Y_e \"Y_e of the hot atmosphere\" STEERABLE=ALWAYS\n{\n 0.0:* :: \"Larger than 0\"\n} 0.5e0\n\nREAL GRHydro_Y_e_min \"minimum allowed Y_e\" STEERABLE=ALWAYS\n{\n 0.0:* :: \"Larger than or equal to zero\"\n} 0.0\n\nREAL GRHydro_Y_e_max \"maximum allowed Y_e\" STEERABLE=ALWAYS\n{\n 0.0:* :: \"Larger than or equal to zero; 1 is default\"\n} 1.0\n\n\n####################### Other Parameters ##############################\n\n#Parameters controlling conservative <-> primitive change.\nint GRHydro_c2p_warnlevel \"Warnlevel for Con2Prim warnings\" STEERABLE=ALWAYS\n{\n 0:1 :: \"Either 0 or 1\"\n} 0\n\nkeyword GRHydro_c2p_failed_action \"what to do when we detect a c2p failure\"\n{\n \"abort\" :: \"abort with error\"\n \"terminate\" :: \"request termination\"\n} \"abort\"\n\nREAL sqrtdet_thr \"Threshold to apply cons rescalings deep inside the horizon\" STEERABLE=ALWAYS\n{\n 1.0: :: \"Larger values guarantees this sort of rescaling only deep inside the horizon\"\n -1.0 :: \"Do not apply limit\"\n} -1.0\n\nREAL max_magnetic_to_gas_pressure_ratio \"consider pressure to be magnetically dominated if magnetic pressure to gas pressure ratio is higher than this\" STEERABLE=ALWAYS\n{\n (0:* :: \"any positive value, eg. 100.\"\n -1.0 :: \"disable\"\n} -1.0\n\nboolean c2p_reset_pressure \"If the pressure guess is unphysical should we recompute it?\"\n{\n} \"no\"\n\nreal c2p_reset_pressure_to_value \"The value to which the pressure is reset to when a failure occurrs in C2P\"\n{\n 0: :: \"greater than zero\"\n} 1.e-20\n\nboolean c2p_resort_to_bisection \"If the pressure guess is unphysical, should we try with bisection (slower, but more robust)\" STEERABLE=ALWAYS\n{\n} no\n\nreal GRHydro_eps_min \"Minimum value of specific internal energy - this is now only used in GRHydro_InitData's GRHydro_Only_Atmo routine\"\n{\n 0: :: \"Positive\"\n} 1.e-10\n\nreal GRHydro_perc_ptol \"Tolerance for primitive variable solve (percent)\" STEERABLE=ALWAYS\n{\n 0: :: \"Do we really want both tolerances?\"\n} 1.e-8\n\nreal GRHydro_del_ptol \"Tolerance for primitive variable solve (absolute)\" STEERABLE=ALWAYS\n{\n 0: :: \"Do we really want both tolerances?\"\n} 1.e-18\n\nint GRHydro_countmax \"Maximum number of iterations for Con2Prim solve\"\n{\n 1:*\t\t:: \"Must be positive\"\n} 100\n\nint GRHydro_countmin \"Minimum number of iterations for Con2Prim solve\"\n{\n 0:*\t\t:: \"Must be non negative\"\n} 1\n\nint GRHydro_polish \"Number of extra iterations after root found\"\n{\n 0:*\t\t:: \"Must be non negative\"\n} 0\n\n###Parameters for compact fluid objects\n\nREAL GRHydro_rho_central \"Central Density for Star\"\n{\n : :: \"\"\n} 1.e-5\n\n##Parameters for the atmosphere.\n\nREAL tau_rel_min \"A minimum relative tau (taumin = maxtau(t=0) * tau_rel_min) below which tau is reschaled\"\n{\n 0: :: \"\"\n} 1.e-10\n\nREAL rho_abs_min \"A minimum rho below which evolution is turned off (atmosphere). If negative, the relative minimum will be used instead.\" STEERABLE=recover\n{\n -1.0: :: \"\"\n} -1.0\n\nREAL rho_rel_min \"A minimum relative rho (rhomin = centden * rho_rel_min) below which evolution is turned off (atmosphere). Only used if rho_abs_min < 0.0\" STEERABLE=recover\n{\n 0: :: \"\"\n} 1.e-9\n\nREAL initial_rho_abs_min \"An absolute value for rho in the atmosphere. To be used by initial data routines only. Unused if negative.\"\n{\n -1.0: :: \"\"\n} -1.0\n\nREAL initial_rho_rel_min \"A relative (to the central density) value for rho in the atmosphere. To be used by initial data routines only. Unused if negative.\"\n{\n -1.0: :: \"\"\n} -1.0\n\nREAL initial_atmosphere_factor \"A relative (to the initial atmosphere) value for rho in the atmosphere. This is used at initial time only. Unused if negative.\"\n{\n -1.0: :: \"\"\n} -1.0\n\nREAL rho_abs_min_after_recovery \"A new absolute value for rho in the atmosphere. To be used after recovering. Unused if negative.\" STEERABLE=ALWAYS\n{\n -1.0: :: \"\"\n} -1.0\n\nREAL GRHydro_atmo_tolerance \"A point is set to atmosphere in the Con2Prim's if its rho < GRHydro_rho_min *(1+GRHydro_atmo_tolerance). This avoids occasional spurious oscillations in carpet buffer zones lying in the atmosphere (because prolongation happens on conserved variables)\" STEERABLE=ALWAYS\n{\n 0.0: :: \"Zero or larger. A useful value could be 0.0001\"\n} 0.0\n\nREAL atmo_falloff_radius \"The radius for which the atmosphere starts to falloff as (atmo_falloff_radius/r)**atmo_falloff_power\"\n{\n 0:* :: \"Anything positive\"\n} 50.0\n\nREAL atmo_falloff_power \"The power at which the atmosphere level falls off as (atmo_falloof_radius/r)**atmo_falloff_power\"\n{\n 0:* :: \"Anything positive\"\n} 0.0\n\nREAL atmo_tolerance_radius \"The radius for which the atmosphere tolerance starts to increase as (r/atmo_tolerance_radius)**atmo_tolerance_power\"\n{\n 0:* :: \"Anything positive\"\n} 50.0\n\nREAL atmo_tolerance_power \"The power at which the atmosphere tolerance increases as (r/atmo_tolerance_radius)**atmo_tolerance_power\"\n{\n 0:* :: \"Anything positive\"\n} 0.0\n\nBOOLEAN wk_atmosphere \"Use some of Wolfgang Kastauns atmosphere tricks\"\n{\n} \"no\"\n\nBOOLEAN Check_Rho_Minimum \"Should a check on rho < GRHydro_rho_min be performed and written as WARNING level 2?\"\n{\n} \"no\"\n\nboolean EoS_Change \"Recalculate fluid quantities if changing the EoS\"\n{\n} \"no\"\n\nkeyword EoS_Change_type \"Change polytropic K or Gamma?\"\n{\n \"K\" :: \"Change the K\"\n \"Gamma\" :: \"Change the Gamma\"\n \"GammaKS\" :: \"Change K and Gamma, Shibata et al. 2004 3-D GR Core Collapse style\"\n} \"Gamma\"\n\nreal initial_Gamma \"If changing Gamma, what was the value used in the initial data routine?\"\n{\n (0.0: :: \"Positive\"\n} 1.3333\n\nreal initial_k \"If changing K, what was the value used in the initial data routine?\"\n{\n (0.0: :: \"Positive\"\n} 100.0\n\n#If you want to use FishEye, you need the weighted fluxes\n\nBOOLEAN use_weighted_fluxes \"Weight the flux terms by the cell surface areas\"\n{\n} \"no\"\n\n#For the comoving shift \n \nreal comoving_factor \"Factor multiplying the velocity for the comoving shift\"\n{\n 0.0:2.0 :: \"[0,2] is allowed, but [0,1] is probably reasonable\"\n} 0.0\n\nkeyword comoving_attenuate \"Which attenuation method for the comoving shift\"\n{\n \"sqrt\" :: \"Multiply by sqrt(rho/rho_max)\"\n \"tanh\" :: \"Multiply by 1/2*(1+tanh(factor*(rho/rho_max - offset)))\"\n} \"tanh\"\n\nkeyword comoving_v_method \"Which method for getting the radial velocity\"\n{\n \"projected\" :: \"vr = x_i . v^i / r\"\n \"components\" :: \"vr = sqrt(v_i v^i)\"\n} \"projected\"\n\nreal comoving_tanh_factor \"The factor in the above tanh attenuation\"\n{\n (0.0:* :: \"Any positive number\"\n} 10.0\n\nreal comoving_tanh_offset \"The offset in the above tanh attenuation\"\n{\n 0.0:1.0 :: \"Only makes sense in [0,1]\"\n} 0.05\n\nint set_trivial_rp_grid_function \"set gf for triv. rp (only for debugging)\"\n{\n 0:1 :: \"0 for no (default), 1 for yes\"\n} 0\n\n#Advect a tracer?\n\nboolean evolve_tracer \"Should we advect tracers?\"\n{\n} \"no\"\n\nint number_of_tracers \"Number of tracer variables to be advected\"\n{\n 0:* :: \"positive or zero\"\n} 0\n\nboolean use_min_tracer \"Should there be a floor on the tracer?\"\n{\n} \"no\"\n\nreal min_tracer \"The floor placed on the tracer\"\n{\n *:* :: \"Anything\"\n} 0.0\n\n#Track particles?\nint number_of_particles \"Number of particles to track\" ACCUMULATOR-BASE=MethodOfLines::MoL_Max_Evolved_Array_Size\n{\n 0:* :: \"0 switches off particle tracking\"\n} 0\n\nint number_of_arrays \"Number of arrays to evolve\" ACCUMULATOR-BASE=MethodOfLines::MoL_Num_ArrayEvolved_Vars\n{\n 0:3 :: \"Either zero or three, depending on the particles\"\n} 0\n\nSTRING particle_interpolator \"What interpolator should be used for the particles\"\n{\n \".+\" :: \"A valid interpolator name\"\n} \"Lagrange polynomial interpolation\"\n\nCCTK_INT particle_interpolation_order \"What order should be used for the particle interpolation\"\n{\n 1:* :: \"A valid positive interpolation order\"\n} 2\n\n#Finding the local gradient\n\nkeyword gradient_method \"Which method is used to set GRHydro::DiffRho?\"\n{\n \"First diff\" :: \"Standard first differences\"\n \"Curvature\" :: \"Curvature based method of Paramesh / FLASH\"\n \"Rho weighted\" :: \"Based on the size of rho\"\n} \"First diff\"\n\n\n# NaN detection level\n\nINT GRHydro_NaN_verbose \"The warning level for NaNs occuring within GRHydro\" STEERABLE=always\n{\n 0:* :: \"The warning level\"\n} 2\n\nCCTK_REAL GRHydro_lorentz_overshoot_cutoff \"Set the Lorentz factor to this value in case it overshoots (1/0)\"\n{\n 0:* :: \"Some big value\"\n} 1.e100\n\nboolean clean_divergence \"Use hyperbolic divergence cleaning\"\n{\n} \"no\"\n\nCCTK_REAL kap_dc \"The kap parameter for divergence cleaning\"\n{\n 0:* :: \"Any non-negative value, but 1.0 to 10.0 seems preferred\"\n} 10.0\n\nKEYWORD psidcspeed \"Which speed to set for psidc\"\n{\n \"char speed\" :: \"Based on the characteristic speeds\"\n \"light speed\" :: \"Set the characteristic speeds to speed of light\"\n \"set speed\" :: \"Manually set the characteristic speeds: [setcharmin,setcharmax]\"\n} \"light speed\"\n\nCCTK_REAL setcharmax \"Maximum characteristic speed for psidc if psidcspeed is set\"\n{\n 0:1 :: \"Any value smaller than speed of light\"\n} 1.0\n\nCCTK_REAL setcharmin \"Minimum characteristic speed for psidc if psidcspeed is set\"\n{\n -1:0 :: \"Any value smaller than speed of light - sign should be negative\"\n} -1.0\n\nBOOLEAN decouple_normal_Bfield \"when using divergence cleaning properly decouple Bx,psidc subsystem\"\n{\n} yes\n\nboolean track_divB \"Track the magnetic field constraint violations\"\n{\n} \"no\"\n\nboolean transport_constraints \"Use constraint transport for magnetic field\"\n{\n} \"no\"\n\nboolean calculate_bcom \"Calculate the comoving contravariant magnetic 4-vector b^a?\"\n{\n} \"no\"\n\n############### Parameters for Avec evolution ###########################################\n\nKEYWORD Avec_gauge \"Which gauge condition to use when evolving the vector potential\" \n{\n \"algebraic\" :: \"Algebraic gauge\"\n \"lorenz\" :: \"Lorenz gauge\"\n} \"lorenz\"\n\n############### Parameters for Tmunu damping (useful in atmosphere) #####################\n\nCCTK_REAL Tmunu_damping_radius_min \"damping radius at which we start to damp with a tanh function\"\n{\n -1 :: \"damping switched off\"\n 0:* :: \"damping radius at which we start to damp\"\n} -1\n\n\nCCTK_REAL Tmunu_damping_radius_max \"damping radius at which Tmunu becomes 0\"\n{\n -1 :: \"damping switched off\"\n 0:* :: \"greater than minimum radius above\"\n} -1\n\n\n############### temporary parameters to be removed once connected issues are fixed.\n\nboolean con2prim_oct_hack \"Disregard c2p failures in oct/rotsym90 boundary cells with xyz < 0\" STEERABLE=ALWAYS\n{\n} \"no\"\n\nint GRHydro_c2p_warn_from_reflevel \"Start warning on given refinement level and on higher levels\" STEERABLE=ALWAYS\n{\n 0: :: \"Greater or equal to 0\"\n} 0\n\n\n\n############### Optimization options ###################################################\n\n\n\n# This can improve the performance on many cores, but may be dangerous \n# (it seems to work in simple testcases, but morde complicated settings may fail)\n# If you encounter strange behavior, switch this OFF\nBOOLEAN sync_conserved_only \"Only sync evolved conserved quantities during evolution.\" STEERABLE = recover\n{\n} no\n\n\nrestricted:\n# This uses the slow sector of MoL multirate methods.\n# Since the CFL requirements for hydro are less demanding,\n# it is possible to get a significant speed up by\n# using a lower order time integration such as RK2, while the spacetime\n# is still integrated with an RK4\nBOOLEAN use_MoL_slow_multirate_sector \"Whether to make use of MoL's slow multirate sector\"\n{\n} no\nprivate:\n\n\n\nBOOLEAN verbose \"Some debug output\" STEERABLE = always\n{\n} no\n\n\n\n\n\n############### Testing options ###################################################\n\n\n# This constrains the flux velicity vectors to spherical symmetry.\n# Only the radial contribution to the velocity vectors is considered.\n# This is due to Kotake et al 2012.\nBOOLEAN constrain_to_1D \"Set fluid velocities to zero for non-radial motion\"\n{\n} no\n\n\n\n# use_cxx_code is used in schedule.ccl so cannot be STEERABLE=ALWAYS\nBOOLEAN use_cxx_code \"Use experimental C++ code?\" STEERABLE = RECOVER\n{\n} yes\n", "schedule": "# Schedule definitions for thorn GRHydro\n# $Header$\n\n#######################################################################\n### We leave the storage on all the time for the variables required ###\n### by MoL. There is probably a better way of doing this. ###\n#######################################################################\n\n#################################################\n### Storage for MoL execution flag ###\n#################################################\n\nSTORAGE: execute_MoL_Step\nSTORAGE: execute_MoL_PostStep\n\n# Set execution flags initially to \"True\"\nSCHEDULE GRHydro_Reset_Execution_Flags AT CCTK_BASEGRID\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Initially set execution flags to 'YEAH, Execute'!\"\n\n# When using MoL with multirate, we need to set execution flags for each MoL step!\nif (use_MoL_slow_multirate_sector)\n{\n SCHEDULE GRHydro_Set_Execution_Flags IN MoL_Step AFTER MoL_DecrementCounter BEFORE MoL_PostStepModify\n {\n LANG: C\n OPTIONS: LEVEL\n } \"Check if we need to execute RHS / Post-step calculation\"\n \n SCHEDULE GRHydro_Reset_Execution_Flags IN MoL_StartStep AFTER MoL_SetCounter\n {\n LANG: C\n OPTIONS: LEVEL\n } \"Reset execution flags to 'YEAH, Execute'!\"\n \n SCHEDULE GRHydro_Reset_Execution_Flags IN MoL_Evolution AFTER MoL_FinishLoop\n {\n LANG: C\n OPTIONS: LEVEL\n } \"Reset execution flags to 'YEAH, Execute'!\"\n}\n\n\n\n#################################################\n### Storage for the extra timelevels for the ###\n### use of MoL with Einstein ###\n#################################################\n\nSTORAGE:dens[timelevels]\nSTORAGE:tau[timelevels]\nSTORAGE:scon[timelevels]\nif (number_of_particles)\n{\n STORAGE:particles[timelevels]\n}\nif(CCTK_Equals(Y_e_evolution_method,\"GRHydro\"))\n{\n STORAGE: Y_e_con[timelevels]\t\n STORAGE: Y_e_con_rhs, Y_e_con_flux, Y_e_plus, Y_e_minus\n STORAGE: HydroBase::Y_e[timelevels]\n}\nif(CCTK_Equals(temperature_evolution_method,\"GRHydro\"))\n{\n STORAGE: tempplus, tempminus\n STORAGE: HydroBase::temperature[timelevels]\n STORAGE: HydroBase::entropy[timelevels]\n}\nif(CCTK_Equals(Bvec_evolution_method,\"GRHydro\"))\n{\n STORAGE: HydroBase::Bvec[timelevels]\t\n STORAGE: GRHydro::Bcons[timelevels]\t\n STORAGE: Bconsrhs\n if (clean_divergence)\n {\n STORAGE:psidc[timelevels]\n }\n} else if(CCTK_Equals(Bvec_evolution_method,\"GRHydro_Avec\")) {\n STORAGE: HydroBase::Bvec[timelevels]\n STORAGE: HydroBase::Avec[timelevels]\n if (CCTK_Equals(Avec_gauge,\"Lorenz\")) \n {\n STORAGE: HydroBase::Aphi[timelevels]\n } \n}\nSTORAGE:evolve_MHD\nSTORAGE:evolve_Y_e\nSTORAGE:evolve_temper\nSTORAGE:GRHydro_reflevel\nSTORAGE:InLastMoLPostStep\nSTORAGE:sdetg\nSTORAGE:densrhs\nSTORAGE:taurhs\nSTORAGE:srhs\nif(CCTK_Equals(Bvec_evolution_method,\"GRHydro\"))\n{\n STORAGE:Bconsrhs\n if (clean_divergence)\n {\n STORAGE:psidcrhs\n STORAGE:whichpsidcspeed \n }\n if (track_divB)\n {\n STORAGE:divB\n }\n if (calculate_bcom)\n {\n STORAGE:GRHydro::bcom[timelevels]\n STORAGE:GRHydro::bcom0[timelevels]\n STORAGE:GRHydro::bcom_sq[timelevels]\n }\n} else if(CCTK_Equals(Bvec_evolution_method,\"GRHydro_Avec\")) {\n STORAGE:Avecrhs\n STORAGE:evolve_Lorenz_gge\n if (CCTK_Equals(Avec_gauge,\"Lorenz\"))\n {\n STORAGE:Aphirhs\n }\n if (track_divB)\n {\n STORAGE:divB\n }\n if (calculate_bcom)\n {\n STORAGE:GRHydro::bcom[timelevels]\n STORAGE:GRHydro::bcom0[timelevels]\n STORAGE:GRHydro::bcom_sq[timelevels]\n }\n}\nif(CCTK_Equals(entropy_evolution_method,\"GRHydro\"))\n{\n STORAGE: HydroBase::entropy[timelevels]\t\n STORAGE: GRHydro::entropycons[timelevels]\t\n STORAGE: entropyrhs\n}\nSTORAGE:evolve_MHD\nSTORAGE:evolve_Y_e\nSTORAGE:evolve_temper\nSTORAGE:evolve_entropy\nSTORAGE:GRHydro_reflevel\nSTORAGE:InLastMoLPostStep\nSTORAGE:densrhs\nSTORAGE:taurhs\nSTORAGE:srhs\nSTORAGE:GRHydro_eos_scalars\nSTORAGE:GRHydro_minima\nSTORAGE:GRHydro_scalars\n#STORAGE:fluxweightvolume\n#STORAGE:cell_surface\nif (number_of_particles)\n{\n STORAGE:particle_rhs\n STORAGE:particle_arrays\n}\n\nif (evolve_tracer)\n{\n STORAGE:GRHydro_tracers[timelevels]\n STORAGE:GRHydro_cons_tracers[timelevels]\n STORAGE:GRHydro_tracer_rhs\n}\n\n# FIXME: make temporary storage in FluxTerms or remove altogether, rename to be\n# _not_ Evec which will likely collide with a future HydroBase electric field\n# variable\nif (transport_constraints)\n{\n STORAGE:Evec\n}\n\n# leave this here for compatibility with older code, should not be used anymore\n# and go out at some point\nschedule group GRHydro_Initial IN HydroBase_Initial\n{\n} \"GRHydro initial data group\"\n\nif(CCTK_Equals(Bvec_evolution_method,\"GRHydro\") || CCTK_Equals(Bvec_evolution_method,\"GRHydro_Avec\"))\n{\n if (clean_divergence)\n {\n schedule GRHydro_InitDivergenceClean IN HydroBase_Initial\n {\n LANG: Fortran\n } \"Set psi for divergence cleaning initially to zero\"\n }\n if (track_divB)\n {\n schedule GRHydro_DivBInit IN HydroBase_Initial\n {\n LANG: Fortran\n } \"Set divB initially to zero\"\n }\n}\n\nif(CCTK_Equals(Bvec_evolution_method,\"GRHydro_Avec\") && CCTK_Equals(initial_Bvec,\"Bvec_from_Avec\") )\n{\n# schedule GRHydro_BvecfromAvec AT CCTK_POSTINITIAL\n schedule GRHydro_BvecfromAvec IN HydroBase_Initial\n {\n LANG: Fortran\n } \"Populate Bvec from Avec\"\n# SCHEDULE group HydroBase_Boundaries AT CCTK_POSTINITIAL AFTER GRHydro_PoloidalMagFieldM AFTER GRHydro_BvecfromAvec\n SCHEDULE group HydroBase_Boundaries IN HydroBase_Initial AFTER GRHydro_PoloidalMagFieldM AFTER GRHydro_Bvec_from_Avec\n {\n } \"Call boundary conditions after magnetic field initial data setup\"\n}\n\n#################################################\n### Storage for the extra timelevels for the ###\n### use of MoL with Einstein ###\n#################################################\n\nSTORAGE: ADMBase::metric[timelevels], ADMBase::curv[timelevels]\nSTORAGE: ADMBase::lapse[timelevels]\nif (!CCTK_Equals(initial_shift,\"none\")) \n{\n STORAGE: ADMBase::shift[timelevels]\n if (CCTK_Equals(shift_evolution_method,\"Comoving\"))\n {\n STORAGE: GRHydro_coords[timelevels]\n STORAGE: GRHydro_coords_rhs\n\n schedule GRHydro_SetUpCoords IN HydroBase_Initial\n {\n LANG: Fortran\n } \"Set up the coordinates for use with the comoving shift\"\n\n schedule GRHydro_EvolveCoords IN GRHydroRHS\n {\n LANG: Fortran\n } \"Evolve the coordinates for the comoving shift\"\n\n schedule GRHydro_ComovingShift IN HydroBase_PostStep AFTER HydroBase_Con2Prim\n {\n LANG: Fortran\n } \"Comoving shift\"\n\n } \n}\n\n##############################################\n### Storage for local tensor quantities ###\n##############################################\n\n# the official test is to test Coordinates::general_coordinates, however\n# at schedule time, this is not yet set or accessible if we really insist on\n# running with Coordinates but with a Cartesian (trivial) coordinate system\n# _and_ we really want to safe this memory then it has to be turned off at\n# runtime via CCTK_GroupStorageDecrease\nif(CCTK_IsImplementationActive(\"Coordinates\")) {\n STORAGE: lvel[timelevels]\n if(CCTK_Equals(Bvec_evolution_method,\"GRHydro\") ||\n CCTK_Equals(Bvec_evolution_method,\"GRHydro_Avec\")) {\n STORAGE: lBvec[timelevels]\n }\n STORAGE: local_metric[timelevels]\n STORAGE: local_extrinsic_curvature\n STORAGE: local_shift\n}\n\n##############################################\n### Storage for the conformal state scalar ###\n##############################################\n\nSTORAGE: conformal_state\n\n\n###############################################\n### Storage for the H viscosity temporaries ###\n###############################################\n\nif (apply_H_viscosity)\n{\n STORAGE: H_viscosity_temps\n}\n\n###############################\n### Register startup banner ###\n###############################\n\nschedule GRHydro_Startup AT WRAGH\n{\n LANG: Fortran\n} \"Startup banner\"\n\n#########################################\n### Register the masks with SpaceMask ###\n#########################################\n\nschedule GRHydro_RegisterMask AT STARTUP\n{\n LANG: C\n} \"Register the hydro masks\"\n\n\n####################################\n### Check the parameters are ok. ###\n####################################\n\nschedule GRHydro_ParamCheck AT PARAMCHECK\n{\n LANG: Fortran\n} \"Check parameters\"\n\nif(CCTK_IsImplementationActive(\"Coordinates\")) {\n schedule GRHydro_check_Jacobian_state AT BASEGRID AFTER (TmunuBase_SetStressEnergyState Coordinates_SetGlobalCoords_Group)\n {\n LANG: C\n OPTIONS: GLOBAL\n } \"Test state of Jacobians\"\n}\n\n######################################\n### Standard symmetry registration ###\n######################################\n\nschedule GRHydro_InitSymBound AT BASEGRID AFTER (ADMBase_SetShiftStateOn,ADMBase_SetShiftStateOff)\n{\n LANG: Fortran\n} \"Schedule symmetries and check shift state\"\n\n##########################################################\n### Schedule the flux weighting calculation at initial ###\n##########################################################\n\n# schedule GRHydro_Weights AT CCTK_INITIAL\n# {\n# LANG: C\n# } \"Set up the weighting terms for the fluxes\"\n\n\n#################################\n### Set the handle for the EOS ###\n##################################\n\nschedule GRHydro_EOSHandle AT CCTK_INITIAL before HydroBase_Initial\n{\n LANG: C\n OPTIONS: global\n} \"Set the EOS number\"\n\nschedule GRHydro_EOSHandle AT CCTK_POST_RECOVER_VARIABLES\n{\n LANG: C\n OPTIONS: global\n} \"Set the EOS number\"\n\n####################################\n### Setup of rho minima scalars ###\n####################################\n\nschedule GRHydro_Rho_Minima_Setup AT CCTK_Initial BEFORE HydroBase_Initial\n{\n LANG: Fortran\n} \"Set up minimum for the rest-mass density in the atmosphere (before intial data)\"\n\nif (rho_abs_min_after_recovery > 0.0)\n{\n schedule GRHydro_Change_Rho_Minimum_At_Recovery AT CCTK_POST_RECOVER_VARIABLES\n {\n LANG: Fortran\n } \"Set up minimum for the rest-mass density in the atmosphere (before intial data)\"\n}\n\n\nif (CCTK_IsThornActive(\"PUGH\" ))\n{\n schedule GRHydro_Rho_Minima_Setup_Final_PUGH AT CCTK_PostInitial BEFORE (MoL_PostStepModify MoL_PostStep)\n {\n LANG: C\n } \"Set the value of the rest-mass density of the atmosphere which will be used during the evolution (PUGH)\"\n}\nelse if (CCTK_IsThornActive(\"Carpet\"))\n{\n schedule GRHydro_Rho_Minima_Setup_Final AT CCTK_PostPostInitial BEFORE Con2Prim\n {\n LANG: C\n } \"Set the value of the rest-mass density of the atmosphere which will be used during the evolution\"\n}\n\n\nschedule GRHydro_SqrtSpatialDeterminant AT CCTK_INITIAL AFTER (HydroBase_Initial,GRHydroTransformADMToLocalBasis,ADMBase_PostInitial) BEFORE HydroBase_Prim2ConInitial\n{\n LANG: Fortran\n} \"Calculate sdetg\"\n\nif(CCTK_Equals(Bvec_evolution_method,\"GRHydro\"))\n{\n\n if (CCTK_IsThornActive(\"PUGH\" ))\n {\n schedule GRHydro_InitialAtmosphereResetM AT CCTK_PostInitial BEFORE (MoL_PostStepModify MoL_PostStep) AFTER GRHydro_Rho_Minima_Setup_Final_PUGH\n {\n LANG: Fortran\n } \"Use mask to enforce atmosphere at initial time\"\n }\n else if (CCTK_IsThornActive(\"Carpet\"))\n {\n schedule GRHydro_InitialAtmosphereResetM AT CCTK_PostPostInitial BEFORE Con2Prim AFTER GRHydro_Rho_Minima_Setup_Final\n {\n LANG: Fortran\n } \"Use mask to enforce atmosphere at initial time\"\n }\n\n} else if(CCTK_Equals(Bvec_evolution_method,\"GRHydro_Avec\")) {\n\n if (CCTK_IsThornActive(\"PUGH\" ))\n {\n schedule GRHydro_InitialAtmosphereResetAM AT CCTK_PostInitial BEFORE (MoL_PostStepModify MoL_PostStep) AFTER GRHydro_Rho_Minima_Setup_Final_PUGH\n {\n LANG: Fortran\n } \"Use mask to enforce atmosphere at initial time\"\n }\n else if (CCTK_IsThornActive(\"Carpet\"))\n {\n schedule GRHydro_InitialAtmosphereResetAM AT CCTK_PostPostInitial BEFORE Con2Prim AFTER GRHydro_Rho_Minima_Setup_Final\n {\n LANG: Fortran\n } \"Use mask to enforce atmosphere at initial time\"\n }\n\n} else if(CCTK_EQUALS(evolution_method, \"GRHydro\")){\n\n if (CCTK_IsThornActive(\"PUGH\" ))\n {\n schedule GRHydro_InitialAtmosphereReset AT CCTK_PostInitial BEFORE (MoL_PostStepModify MoL_PostStep) AFTER GRHydro_Rho_Minima_Setup_Final_PUGH\n {\n LANG: Fortran\n } \"Use mask to enforce atmosphere at initial time\"\n }\n else if (CCTK_IsThornActive(\"Carpet\"))\n {\n schedule GRHydro_InitialAtmosphereReset AT CCTK_PostPostInitial BEFORE Con2Prim AFTER GRHydro_Rho_Minima_Setup_Final\n {\n LANG: Fortran\n } \"Use mask to enforce atmosphere at initial time\"\n }\n\n}\n\n\n# this is a temporary hack, because carpet does allow only one loop over the levels for Basegrid-Iniital-Postinitial\n# so we must compute GRHydro_rho_min at postpostinitial and the constraints after this (and afer C2P)\n# schedule GROUP ADMConstraintsGroup at CCTK_POSTINITIAL after (MoL_PostStep MoL_PostInitial)\n schedule GROUP ADMConstraintsGroup at CCTK_POSTPOSTINITIAL\n {\n } \"Evaluate ADM constraints, and perform symmetry boundary conditions\"\n\n###########################################################################\n### Setup and remove the coefficient arrays for ENO/WENO reconstruction ###\n###########################################################################\n\nif (CCTK_Equals(recon_method,\"eno\")) \n{\n\n schedule GRHydro_ENOSetup AT CCTK_Basegrid\n {\n OPTIONS: global\n LANG:Fortran\n } \"Coefficients for ENO reconstruction\"\n\n schedule GRHydro_ENOShutdown AT CCTK_Terminate BEFORE Driver_Terminate\n {\n OPTIONS: global\n LANG:Fortran\n } \"Deallocate ENO coefficients\"\n\n}\n\nif (CCTK_Equals(recon_method,\"weno\") || CCTK_Equals(recon_method,\"weno-z\"))\n{\n\n schedule GRHydro_WENOSetup AT CCTK_Basegrid\n {\n OPTIONS: global\n LANG:Fortran\n } \"Coefficients for WENO reconstruction\"\n\n schedule GRHydro_WENOShutdown AT CCTK_Terminate BEFORE Driver_Terminate\n {\n OPTIONS: global\n LANG:Fortran\n } \"Deallocate WENO coefficients\"\n\n}\n\n\n######################################################################\n### This routine is a bit strangely situated, as it's really to do ###\n### with initial data. There may be a better place for it later. ###\n### What it does is reset the hydrodynamical quantities if we have ###\n### changed the EoS between constructing the initial model and ###\n### evolving. Essentially, we assume that the polytropic EoS that ###\n### we are using for the atmosphere is correct, and reset eps ###\n### given the values for rho. We then can call the primitive to ###\n### conservative routine to get the pressure. ###\n######################################################################\nif (EoS_Change)\n{\n if (CCTK_Equals(EoS_Change_type,\"Gamma\"))\n {\n schedule GRHydro_EoSChangeGamma AT CCTK_Initial AFTER HydroBase_Initial BEFORE GRHydro_IVP\n { \n LANG: Fortran\n } \"Reset the specific internal energy if the EoS changes between ID and evolution\"\n }\n if (CCTK_Equals(EoS_Change_type,\"K\"))\n {\n schedule GRHydro_EoSChangeK AT CCTK_Initial AFTER HydroBase_Initial BEFORE GRHydro_IVP\n { \n LANG: Fortran\n } \"Reset the hydro variables if the EoS (K) changes between ID and evolution\"\n }\n if (CCTK_Equals(EoS_Change_type,\"GammaKS\"))\n {\n schedule GRHydro_EoSChangeGammaK_Shibata AT CCTK_Initial AFTER HydroBase_Initial BEFORE GRHydro_IVP\n { \n LANG: Fortran\n SYNC: dens\n SYNC: tau\n SYNC: scon\n SYNC: hydrobase::w_lorentz\n SYNC: hydrobase::rho\n SYNC: hydrobase::press\n SYNC: hydrobase::eps\n SYNC: hydrobase::vel\n SYNC: lvel\n SYNC: hydrobase::temperature\n SYNC: hydrobase::entropy\n SYNC: hydrobase::Y_e\n SYNC: Y_e_con\n } \"Reset the hydro variables if the EoS Gamma and K change between ID and evolution\"\n }\n}\n\n#####################################\n### Setup of dens minima scalars ###\n#####################################\n# commented out, since unused for a long time\n#schedule GRHydro_Dens_Minima_Setup AT CCTK_Postinitial\n#{\n# LANG: Fortran\n#} \"Set up and check minima for dens\"\n\n#################################################\n### Standard registration of variables to MoL ###\n#################################################\n\nschedule GRHydro_Register IN MoL_Register\n{\n LANG: C\n} \"Register variables for MoL\"\n\n####################################################\n### Setup of any scalars for efficiency purposes ###\n####################################################\n\nschedule GRHydro_Scalar_Setup IN MoL_PreStep\n{\n LANG: Fortran\n} \"Set up and check scalars for efficiency\"\n\nschedule GRHydro_Scalar_Setup IN CCTK_POSTINITIAL\n{\n LANG: Fortran\n} \"Set up and check scalars for efficiency\"\n\n################################################\n### We might want to switch off evolution... ###\n################################################\n\nif (CCTK_EQUALS(evolution_method, \"GRHydro\")) {\n\nSTORAGE:GRHydro_atmosphere_mask\nSTORAGE:GRHydro_atmosphere_mask_real\nSTORAGE:GRHydro_atmosphere_descriptors\n\nschedule GRHydro_SetupMask AT CCTK_Initial BEFORE HydroBase_Initial\n{\n LANG: Fortran\n} \"Initialize the atmosphere mask\"\n\n# alternatively drop support for wk_atmosphere and schedule GRHydro_SetupMask\n# only in CCTK_BaseGrid\nschedule GRHydroCopyIntegerMask AT CCTK_POST_RECOVER_VARIABLES BEFORE MoL_PostStep\n{\n LANG: Fortran\n} \"Initialize the real valued atmosphere mask after checkpoint recovery\"\n\n# If using mesh refinement\nschedule GRHydro_SetupMask AT POSTREGRID BEFORE MoL_PostStep AFTER (MaskOne,MaskZero)\n{\n LANG: Fortran\n} \"Initialize the atmosphere mask\"\n\nschedule GRHydro_SetupMask AT POSTREGRIDINITIAL BEFORE MoL_PostStep AFTER (MaskOne,MaskZero)\n{\n LANG: Fortran\n} \"Initialize the atmosphere mask\"\n\n# Early atmosphere reset. This will not capture relative atmosphere settings (rho_rel_min) which\n# is scheduled later. However, this will ensure that all time and refinement levels are handled\n# correctly for rho_abs_min set.\nschedule GRHydro_InitialAtmosphereReset AT CCTK_Initial AFTER HydroBase_Initial BEFORE HydroBase_Prim2ConInitial AFTER GRHydro_SqrtSpatialDeterminant \n{\n LANG: Fortran\n} \"Use mask to enforce atmosphere at initial time\"\n\nif (wk_atmosphere)\n{\n schedule GRHydro_InitAtmosMask AT CCTK_PostInitial\n {\n LANG: Fortran\n } \"Set the atmosphere mask\"\n\n schedule GRHydro_InitAtmosMask AT POSTREGRID AFTER GRHydro_SetupMask BEFORE MoL_PostStep\n {\n LANG: Fortran\n } \"Set the atmosphere mask\"\n\n schedule GRHydro_InitAtmosMask AT POSTREGRIDINITIAL AFTER GRHydro_SetupMask BEFORE HydroBase_PostStep\n {\n LANG: Fortran\n } \"Set the atmosphere mask\"\n}\n\n# If using mesh refinement\n\n\n#####################################################################\n### The group to calculate the update term for MoL. This contains ###\n### the calculation of the source terms and the flux update. ###\n#####################################################################\n\n\nif(CCTK_IsImplementationActive(\"Coordinates\")) {\n schedule GRHydroTransformPrimToLocalBasis AT INITIAL AFTER (HydroBase_Initial, ADMBase_PostInitial) BEFORE HydroBase_Prim2ConInitial\n {\n LANG: C\n } \"Transform primitive vars to local tensor basis.\"\n\n\n schedule GRHydroTransformADMToLocalBasis AT INITIAL AFTER HydroBase_Initial BEFORE GRHydroTransformPrimToLocalBasis\n {\n LANG: C\n } \"Transform ADM metric, extr. curv. and shift to local tensor basis.\"\n\n\n schedule GRHydroTransformADMToLocalBasis IN ADMBase_SetADMVars IF GRHydro::execute_MoL_Step\n {\n LANG: C\n } \"Transform metric and shift to local tensor basis.\"\n\n\n schedule GRHydroTransformPrimToGlobalBasis IN HydroBase_PostStep AFTER HydroBase_Con2Prim IF GRHydro::execute_MoL_PostStep\n {\n LANG: C\n } \"Transform primitive vars to global tensor basis.\"\n}\n\n\nschedule group GRHydroRHS IN HydroBase_RHS IF GRHydro::execute_MoL_Step\n{\n STORAGE:GRHydro_scalars\n} \"Calculate the update terms\"\n\n#============================================\n# Uncomment the following lines for debugging\n#\n# schedule GRHydro_Scalar_Setup AT CCTK_Initial\n# {\n# LANG: Fortran\n# } \"Set up and check scalars for efficiency\"\n# \n# schedule group GRHydroRHS AT CCTK_Analysis\n# {\n# STORAGE:GRHydro_scalars\n# TRIGGERS: densrhs\n# TRIGGERS: srhs\n# TRIGGERS: taurhs\n# if(CCTK_Equals(Bvec_evolution_method,\"GRHydro\"))\n# {\n# TRIGGERS: Bvecrhs\n# } \n# } \"Calculate the update terms\"\n# \n# STORAGE:GRHydro_fluxes\n# STORAGE:GRHydro_con_bext\n# STORAGE:GRHydro_prim_bext\n# if(CCTK_Equals(Bvec_evolution_method,\"GRHydro\"))\n# {\n# STORAGE:GRHydro_MHD_con_bext\n# } \n# STORAGE:EOS_temps\n# \n# if(CCTK_Equals(Bvec_evolution_method,\"GRHydro\"))\n# {\n# schedule Primitive2ConservativeCellsM AT CCTK_POSTINITIAL AFTER GZPatchSystem_cxform BEFORE MoL_PostStep\n# {\n# LANG: Fortran\n# } \"Convert to conserved variables - MHD version\"\n# } else {\n# schedule Primitive2ConservativeCells AT CCTK_POSTINITIAL AFTER GZPatchSystem_cxform BEFORE MoL_PostStep\n# {\n# LANG: Fortran\n# } \"Convert to conserved variables\"\n# }\n#\n#==============================================\n\nif (number_of_particles)\n{\n schedule GRHydroParticleInitial AT CCTK_Initial BEFORE HydroBase_Initial\n {\n OPTIONS: GLOBAL\n LANG: Fortran\n } \"Initial data for the particle arrays\"\n\n schedule GRHydroParticleRHS IN GRHydroRHS\n {\n OPTIONS: GLOBAL\n LANG: Fortran\n } \"Update terms for the particles\"\n}\n\n####################################################################\n### Do the source terms first, as this does not require the loop ###\n### over the different directions ###\n####################################################################\n\nif(use_cxx_code) {\n schedule SourceTerms IN GRHydroRHS BEFORE FluxTerms\n {\n LANG: C\n } \"Source term calculation\"\n} else {\n if(CCTK_Equals(Bvec_evolution_method,\"GRHydro\"))\n {\n schedule SourceTermsM IN GRHydroRHS BEFORE FluxTerms \n {\n LANG: Fortran\n } \"Source term calculation - MHD version\"\n } else if(CCTK_Equals(Bvec_evolution_method,\"GRHydro_Avec\")) {\n schedule SourceTermsAM IN GRHydroRHS BEFORE FluxTerms\n {\n LANG: Fortran\n } \"Source term calculation - Vector Potential MHD version\"\n } else {\n schedule SourceTerms IN GRHydroRHS BEFORE FluxTerms\n {\n LANG: Fortran\n } \"Source term calculation\"\n }\n}\n#################################################################\n### Initial setup for the loop over the different directions. ###\n#################################################################\n\nschedule GRHydroStartLoop IN GRHydroRHS BEFORE FluxTerms\n{\n LANG: Fortran\n OPTIONS: level\n} \"Set the flux_direction variable\"\n\n###################################################################\n### The group to calculate the update terms from the fluxes. We ###\n### do this as a loop over each direction to reduce coding and ###\n### hopefully to reduce bugs. The parameter flux_direction runs ###\n### from (3->0) corresponding to (z->x) and stopping. At each ###\n### step in the loop the data is reconstructed and then the ###\n### fluxes are computed by the Riemann solve. ###\n###################################################################\n\n#######################################################\n### Switch between RSA FV and flux split FD methods ###\n#######################################################\n\nif (CCTK_Equals(method_type, \"RSA FV\"))\n{\n \t\n if (evolve_tracer)\n { \n if(CCTK_Equals(Bvec_evolution_method,\"GRHydro\"))\n {\n \n schedule group FluxTerms IN GRHydroRHS WHILE GRHydro::flux_direction\n {\n STORAGE:GRHydro_prim_bext\n STORAGE:GRHydro_con_bext\n STORAGE:GRHydro_fluxes\n STORAGE:GRHydro_MHD_con_bext\n STORAGE:GRHydro_MHD_prim_bext\n STORAGE:GRHydro_MHD_psidc_bext\n STORAGE:GRHydro_entropy_prim_bext\n STORAGE:GRHydro_entropy_con_bext\n STORAGE:GRHydro_Bfluxes\n STORAGE:GRHydro_psifluxes\n STORAGE:GRHydro_entropyfluxes\n STORAGE:GRHydro_tracer_cons_bext\n STORAGE:GRHydro_tracer_prim_bext\n STORAGE:GRHydro_tracer_flux\n } \"Calculation of intercell fluxes\"\n } else if(CCTK_Equals(Bvec_evolution_method,\"GRHydro_Avec\") && CCTK_Equals(Avec_gauge,\"Algebraic\")) {\n\n schedule group FluxTerms IN GRHydroRHS WHILE GRHydro::flux_direction\n {\n STORAGE:GRHydro_prim_bext\n STORAGE:GRHydro_con_bext\n STORAGE:GRHydro_fluxes\n STORAGE:GRHydro_MHD_con_bext\n STORAGE:GRHydro_MHD_prim_bext\n\tSTORAGE:GRHydro_Avec_bext\n STORAGE:GRHydro_Avecfluxes\n STORAGE:GRHydro_tracer_cons_bext\n STORAGE:GRHydro_tracer_prim_bext\n STORAGE:GRHydro_tracer_flux\n } \"Calculation of intercell fluxes\"\n\n } else if(CCTK_Equals(Bvec_evolution_method,\"GRHydro_Avec\") && CCTK_Equals(Avec_gauge,\"Lorenz\")) {\n\n schedule group FluxTerms IN GRHydroRHS WHILE GRHydro::flux_direction\n {\n STORAGE:GRHydro_prim_bext\n STORAGE:GRHydro_con_bext\n STORAGE:GRHydro_fluxes\n STORAGE:GRHydro_MHD_con_bext\n STORAGE:GRHydro_MHD_prim_bext\n\tSTORAGE:GRHydro_Avec_bext\n\tSTORAGE:GRHydro_Aphi_bext\n STORAGE:GRHydro_Avecfluxes\n\tSTORAGE:GRHydro_Aphifluxes\n STORAGE:GRHydro_tracer_cons_bext\n STORAGE:GRHydro_tracer_prim_bext\n STORAGE:GRHydro_tracer_flux\n } \"Calculation of intercell fluxes\"\n\n } else {\n schedule group FluxTerms IN GRHydroRHS WHILE GRHydro::flux_direction\n {\n STORAGE:GRHydro_prim_bext\n STORAGE:GRHydro_con_bext\n STORAGE:GRHydro_fluxes\n STORAGE:GRHydro_tracer_cons_bext\n STORAGE:GRHydro_tracer_prim_bext\n STORAGE:GRHydro_tracer_flux\n } \"Calculation of intercell fluxes\"\n\n }\n }\n else\n {\n if(CCTK_Equals(Bvec_evolution_method,\"GRHydro\"))\n {\n schedule group FluxTerms IN GRHydroRHS WHILE GRHydro::flux_direction\n {\n STORAGE:GRHydro_prim_bext\n STORAGE:GRHydro_con_bext\n STORAGE:GRHydro_fluxes\n STORAGE:GRHydro_MHD_con_bext\n STORAGE:GRHydro_MHD_prim_bext\n STORAGE:GRHydro_MHD_psidc_bext\n STORAGE:GRHydro_entropy_con_bext\n STORAGE:GRHydro_entropy_prim_bext\n STORAGE:GRHydro_Bfluxes\n STORAGE:GRHydro_psifluxes\n STORAGE:GRHydro_entropyfluxes\n } \"Calculation of intercell fluxes\"\n } else if(CCTK_Equals(Bvec_evolution_method,\"GRHydro_Avec\")) {\n\n schedule group FluxTerms IN GRHydroRHS WHILE GRHydro::flux_direction\n {\n STORAGE:GRHydro_prim_bext\n STORAGE:GRHydro_con_bext\n STORAGE:GRHydro_fluxes\n STORAGE:GRHydro_MHD_con_bext\n STORAGE:GRHydro_MHD_prim_bext\n STORAGE:GRHydro_Avec_bext\n STORAGE:GRHydro_Aphi_bext\n STORAGE:GRHydro_Avecfluxes\n STORAGE:GRHydro_Aphifluxes\n } \"Calculation of intercell fluxes\"\n\n } else {\n schedule group FluxTerms IN GRHydroRHS WHILE GRHydro::flux_direction\n {\n STORAGE:GRHydro_prim_bext\n STORAGE:GRHydro_con_bext\n STORAGE:GRHydro_fluxes\n } \"Calculation of intercell fluxes\"\n }\n }\n \n##############################################################\n### This is a wrapper call to the reconstruction routines. ###\n##############################################################\n\n if (CCTK_Equals(GRHydro_eos_type,\"General\")) {\n\n if (use_cxx_code && ! CCTK_EQUALS(recon_method,\"eno\")) {\n \n schedule Reconstruction_cxx IN FluxTerms AS Reconstruct\n {\n LANG: C\n } \"Reconstruct the functions at the cell boundaries\"\n \n } else {\n\n schedule Reconstruction IN FluxTerms AS Reconstruct\n {\n LANG: Fortran\n } \"Reconstruct the functions at the cell boundaries\"\n \n }\n }\n else if (CCTK_Equals(GRHydro_eos_type,\"Polytype\")) {\n \n schedule ReconstructionPolytype IN FluxTerms AS Reconstruct\n {\n LANG: Fortran\n } \"Reconstruct the functions at the cell boundaries\"\n }\n \n if (set_trivial_rp_grid_function)\n {\n schedule Set_Trivial_Riemann_Problem_Grid_Function \\\n IN FluxTerms AFTER Reconstruct\n {\n LANG: C\n SYNC: GRHydro_trivial_rp_gf_group\n } \"Set the gridfunction for the trp (for debugging only)\"\n }\n \n######################################################\n### This is a wrapper call to the Riemann solvers. ###\n######################################################\n\n if (CCTK_Equals(GRHydro_eos_type,\"General\")) {\n if(CCTK_Equals(Bvec_evolution_method,\"GRHydro\"))\n {\n schedule RiemannSolveM IN FluxTerms AFTER Reconstruct AS Riemann\n {\n LANG: Fortran\n STORAGE: EOS_temps\n } \"Solve the local Riemann problems - MHD version\"\n } else if(CCTK_Equals(Bvec_evolution_method,\"GRHydro_Avec\")) {\n schedule RiemannSolveAM IN FluxTerms AFTER Reconstruct AS Riemann\n {\n LANG: Fortran\n STORAGE: EOS_temps\n } \"Solve the local Riemann problems - Vector Potential MHD version\"\n } else {\n schedule RiemannSolve IN FluxTerms AFTER Reconstruct AS Riemann\n {\n LANG: Fortran\n STORAGE: EOS_temps\n } \"Solve the local Riemann problems\"\n } \n }\n else if (CCTK_Equals(GRHydro_eos_type,\"Polytype\")) {\n \n schedule RiemannSolvePolytype IN FluxTerms AFTER Reconstruct AS Riemann\n {\n LANG: Fortran\n STORAGE: EOS_temps\n } \"Solve the local Riemann problems\"\n }\n \n}\nelse if (CCTK_Equals(method_type, \"Flux split FD\"))\n{\n\n\n##########################################\n### MHD not implemented yet for Flux split FD !!!\n##########################################\n STORAGE:fs_alpha\n\n if (evolve_tracer)\n {\n\n schedule group FluxTerms IN GRHydroRHS WHILE GRHydro::flux_direction \n {\n STORAGE: GRHydro_fluxes\n STORAGE: GRHydro_tracer_flux\n } \"Calculation of intercell fluxes\"\n\n schedule GRHydro_FSAlpha IN FluxTerms BEFORE GRHydro_SplitFlux\n {\n LANG: Fortran\n } \"Compute the maximum characteristic speeds\"\n\n schedule GRHydro_SplitFlux IN FluxTerms AS Reconstruct\n {\n LANG: Fortran\n STORAGE: flux_splitting\n STORAGE: GRHydro_tracer_flux_splitting\n SYNC: GRHydro_fluxes\n } \"Compute the fluxes using WENO5 FD + Lax-Friedrichs splitting\"\n\n }\n else\n {\n\n schedule group FluxTerms IN GRHydroRHS WHILE GRHydro::flux_direction \n {\n STORAGE: GRHydro_fluxes\n } \"Calculation of intercell fluxes\"\n\n schedule GRHydro_FSAlpha IN FluxTerms BEFORE GRHydro_SplitFlux\n {\n LANG: Fortran\n } \"Compute the maximum characteristic speeds\"\n\n schedule GRHydro_SplitFlux IN FluxTerms AS Reconstruct\n {\n LANG: Fortran\n STORAGE: flux_splitting\n SYNC: GRHydro_fluxes\n } \"Compute the fluxes using WENO5 FD + Lax-Friedrichs splitting\"\n\n }\n\n}\n\n###########################################################\n### After calculating the fluxes, calculate the update. ###\n###########################################################\n\nschedule UpdateCalculation IN FluxTerms AFTER Riemann AS UpdateCalcul\n{\n LANG: Fortran\n} \"Calculate the update term from the fluxes\"\n \n#################################\n### Advance the loop counter. ###\n#################################\n\nschedule GRHydroAdvanceLoop IN FluxTerms AFTER UpdateCalcul\n{\n LANG: Fortran\n OPTIONS: level\n} \"Decrement the flux_direction variable\"\n\n###########################################################\n### If we're in the atmosphere or inside the excision ###\n### region then we don't want to do any updating (in ###\n### fact if we're inside the excision region we don't ###\n### want to calculate the fluxes, but we'll worry about ###\n### that later). Just zero the update terms where ###\n### certain conditions are violated. ###\n###########################################################\n\nschedule GRHydroUpdateAtmosphereMask IN GRHydroRHS AFTER FluxTerms\n{\n LANG: Fortran\n} \"Alter the update terms if inside the atmosphere region\"\n\n###############################################################\n### After we've done the update, there's a few things to do ###\n###############################################################\n\n# This should not be used anymore and be removed after some time\nschedule group GRHydro_PostStep IN HydroBase_PostStep\n{\n} \"Post step tasks for GRHydro\"\n\n#################################################################\n### After MoL has updated the conserved variables, we need to ###\n### convert back to primitive variables. This is a wrapper ###\n### over the entire grid. ###\n#################################################################\n\n########################################################\n### Find the refinement level that is being computed ###\n########################################################\n\nschedule GRHydro_RefinementLevel IN MoL_PostStep BEFORE HydroBase_PostStep\n{\n LANG: Fortran\n} \"Calculate current refinement level\"\n\nschedule GRHydro_RefinementLevel IN FluxTerms BEFORE Reconstruct\n{\n LANG: Fortran\n} \"Calculate current refinement level\"\n\n########################### Sqrt(detg) #################\n\n# recompute root of metric determinant whenever metric is updated we could alse\n# abuse ADMBase_SetADMVars the way GRHydroTransformADMToLocalBasis does. Abuse\n# since the group description says to \"Set the ADM variables before this group,\n# and use them afterwards\" it does not say to schedule anything in it.\n# If we ever face trouble with the current placement we will ignore the\n# description and do so anyway.\nschedule GRHydro_SqrtSpatialDeterminant IN HydroBase_Con2Prim BEFORE Con2Prim IF GRHydro::execute_MoL_Step\n{\n LANG: Fortran\n} \"Calculate sdetg\"\n\nschedule GRHydro_SqrtSpatialDeterminant AT CCTK_POST_RECOVER_VARIABLES\n{\n LANG: Fortran\n} \"Calculate sdetg\"\n\n\n#debug\n###schedule GRHydro_Debug IN HydroBase_PostStep\n###{\n### LANG: Fortran\n###} \"debug\"\n\nschedule GRHydro_RefinementLevel AT CCTK_PostStep\n{\n LANG: Fortran\n} \"Calculate current refinement level (for the check of the C2P mask)\"\n\nschedule GRHydro_RefinementLevel AT POSTREGRIDINITIAL \n{\n LANG: Fortran\n} \"Calculate current refinement level\"\n\nschedule GRHydro_RefinementLevel AT INITIAL BEFORE HydroBase_Initial\n{\n LANG: Fortran\n} \"Calculate current refinement level\"\n\n\nif (CCTK_Equals(GRHydro_eos_type,\"General\")) \n{\n\n if(CCTK_Equals(Bvec_evolution_method,\"GRHydro\"))\n {\n schedule Conservative2PrimitiveM IN HydroBase_Con2Prim AS Con2Prim IF GRHydro::execute_MoL_PostStep\n {\n LANG: Fortran\n } \"Convert back to primitive variables (general) - MHD version\"\n \n schedule Primitive2ConservativeCellsM IN HydroBase_Prim2ConInitial\n {\n LANG: Fortran\n } \"Convert initial data given in primive variables to conserved variables - MHD version\"\n } else if(CCTK_Equals(Bvec_evolution_method,\"GRHydro_Avec\")) \n {\n schedule GRHydro_BvecfromAvec IN HydroBase_Con2Prim\n {\n LANG: Fortran\n } \"Populate Bvec from Avec\"\n# SCHEDULE group HydroBase_Boundaries AT CCTK_POSTINITIAL AFTER GRHydro_PoloidalMagFieldM AFTER GRHydro_BvecfromAvec\n SCHEDULE group HydroBase_Boundaries IN HydroBase_Con2Prim AFTER GRHydro_BvecfromAvec\n {\n } \"Call boundary conditions after magnetic field initial data setup\"\n schedule Conservative2PrimitiveAM IN HydroBase_Con2Prim AS Con2Prim AFTER HydroBase_Boundaries IF GRHydro::execute_MoL_PostStep\n {\n LANG: Fortran\n } \"Convert back to primitive variables (general) - MHD with Avec version\"\n \n schedule Primitive2ConservativeCellsAM IN HydroBase_Prim2ConInitial\n {\n LANG: Fortran\n } \"Convert initial data given in primive variables to conserved variables - MHD with Avec version\"\n } else {\n schedule Conservative2Primitive IN HydroBase_Con2Prim AS Con2Prim IF GRHydro::execute_MoL_PostStep\n {\n LANG: Fortran\n } \"Convert back to primitive variables (general)\"\n \n schedule Primitive2ConservativeCells IN HydroBase_Prim2ConInitial\n {\n LANG: Fortran\n } \"Convert initial data given in primive variables to conserved variables\"\n }\n\n}\nelse if (CCTK_Equals(GRHydro_eos_type,\"Polytype\")) \n{\n \n if(CCTK_Equals(Bvec_evolution_method,\"GRHydro\"))\n {\n schedule Conservative2PrimitivePolytypeM IN HydroBase_Con2Prim AS Con2Prim IF GRHydro::execute_MoL_PostStep\n {\n LANG: Fortran\n } \"Convert back to primitive variables (polytype) - MHD version\"\n \n schedule Primitive2ConservativePolyCellsM IN HydroBase_Prim2ConInitial\n {\n LANG: Fortran\n } \"Convert initial data given in primive variables to conserved variables - MHD version\"\n } else if(CCTK_Equals(Bvec_evolution_method,\"GRHydro_Avec\")) {\n schedule Conservative2PrimitivePolytypeAM IN HydroBase_Con2Prim AS Con2Prim IF GRHydro::execute_MoL_PostStep\n {\n LANG: Fortran\n } \"Convert back to primitive variables (polytype) - MHD with Avec version\"\n \n schedule Primitive2ConservativePolyCellsAM IN HydroBase_Prim2ConInitial\n {\n LANG: Fortran\n } \"Convert initial data given in primive variables to conserved variables - MHD with Avec version\"\n } else {\n schedule Conservative2PrimitivePolytype IN HydroBase_Con2Prim AS Con2Prim IF GRHydro::execute_MoL_PostStep\n {\n LANG: Fortran\n } \"Convert back to primitive variables (polytype)\"\n \n schedule Primitive2ConservativePolyCells IN HydroBase_Prim2ConInitial\n {\n LANG: Fortran\n } \"Convert initial data given in primive variables to conserved variables\"\n }\n}\n\n#################################################################\n### Having finished all the updates, we apply the boundary ###\n### conditions and synchronize the conservative and primitive ###\n### variables. All other grid functions are reset only in the ###\n### interior of the grid and are totally reset at every step, ###\n### and so synchronization is not necessary. ###\n#################################################################\n\n#schedule GRHydro_Boundaries IN HydroBase_PostStep AFTER Con2Prim\n\nif (evolve_tracer)\n{\n STORAGE:GRHydro_tracers[timelevels]\n STORAGE:GRHydro_cons_tracers[timelevels]\n STORAGE:GRHydro_tracer_rhs\n}\n\n# This should not be used anymore and should be removed after some time\nschedule group Do_GRHydro_Boundaries IN HydroBase_Boundaries\n{\n} \"GRHydro Boundary conditions group\"\n\n\n# Synchronize the atmosphere mask before doing other boundaries!\nschedule group GRHydro_AtmosphereMaskBoundaries IN HydroBase_PostStep BEFORE (HydroBase_Boundaries,GRHydro_PrimitiveInitialGuessesBoundaries)\n{\n} \"Apply boundary conditions to primitives\"\n\nschedule GRHydro_SelectAtmosphereMaskBoundaries IN GRHydro_AtmosphereMaskBoundaries\n{\n LANG: Fortran\n OPTIONS: LEVEL\n SYNC: GRHydro_atmosphere_mask_real\n} \"Select atmosphere mask for boundary conditions\"\n\nschedule group ApplyBCs AS GRHydro_ApplyAtmosphereMaskBCs in GRHydro_AtmosphereMaskBoundaries AFTER GRHydro_SelectAtmosphereMaskBoundaries\n{\n} \"Apply boundary conditions to real-valued atmosphere mask\"\n\n\n# Now synchronize other evolution variables\nif (!sync_conserved_only)\n{\n schedule GRHydro_Boundaries IN HydroBase_Select_Boundaries AS GRHydro_Bound IF GRHydro::execute_MoL_PostStep\n {\n LANG: Fortran\n OPTIONS: LEVEL\n SYNC: dens\n SYNC: tau\n SYNC: scon\n SYNC: HydroBase::w_lorentz\n SYNC: HydroBase::rho\n SYNC: HydroBase::press\n SYNC: HydroBase::eps\n SYNC: HydroBase::vel\n SYNC: Bcons\n SYNC: entropycons\n SYNC: HydroBase::Bvec\n SYNC: psidc\n SYNC: GRHydro_cons_tracers\n SYNC: GRHydro_tracers\n SYNC: hydrobase::temperature\n SYNC: hydrobase::entropy\n SYNC: hydrobase::Y_e\n SYNC: Y_e_con\n SYNC: lvel\n SYNC: lBvec\n } \"Select GRHydro boundary conditions\"\n}\nelse\n{\n schedule GRHydro_Boundaries IN HydroBase_Select_Boundaries AS GRHydro_Bound IF GRHydro::execute_MoL_PostStep\n {\n LANG: Fortran\n OPTIONS: LEVEL\n SYNC: dens\n SYNC: tau\n SYNC: scon\n SYNC: Bcons\n SYNC: entropycons\n SYNC: psidc\n SYNC: GRHydro_cons_tracers\n SYNC: Y_e_con\n } \"Select GRHydro boundary conditions\"\n\n # after a regrid Cactus relies on the boundary thorns to fill in the outer\n # and symmetry boundaries (we need valid data for the initial guess in Con2Prim)\n schedule group GRHydro_PrimitiveBoundaries IN CCTK_POSTREGRID BEFORE MoL_PostStep\n {\n } \"Apply boundary conditions to all primitives\"\n schedule group GRHydro_PrimitiveBoundaries IN CCTK_POSTREGRIDINITIAL BEFORE MoL_PostStep\n {\n } \"Apply boundary conditions to all primitives\"\n \n # Primitive sync is always necessary to provide initial guesses for Con2Prim in the buffer zones via prolongation.\n # Buffer zones are not guaranteed to have the correct values! Prolongation happens only in the last MoL poststep\n # so we only need to sync in the last MoL post step.\n schedule group GRHydro_PrimitiveInitialGuessesBoundaries IN HydroBase_PostStep BEFORE HydroBase_Boundaries IF GRHydro::InLastMoLPostStep\n {\n } \"Apply boundary conditions to those primitives used as initial guesses\"\n \n\n if(CCTK_IsImplementationActive(\"Coordinates\")) {\n \n # Via prolongation, we only need to sync variables used for initial guesses!\n # With MP, we only need to sync primitives in LOCAL tensor base!!\n schedule GRHydro_SelectPrimitiveInitialGuessesBoundaries IN GRHydro_PrimitiveInitialGuessesBoundaries\n {\n\t LANG: Fortran\n\t OPTIONS: LEVEL\n# SYNC: HydroBase::w_lorentz # not used as initial guess and hence not needed!\n SYNC: HydroBase::press # con2prim_ptPolytype uses this for its initial guess\n# SYNC: HydroBase::vel # not needed; lvel is used as initial guess instead\n# SYNC: HydroBase::Bvec # not needed; lBvec is used as initial guess instead\n# SYNC: hydrobase::entropy # not used as initial guess and hence not needed!\n# SYNC: hydrobase::Y_e # not used as initial guess and hence not needed!\n# SYNC: GRHydro_tracers # not used as initial guess and hence not needed!\n SYNC: HydroBase::rho\n\t SYNC: HydroBase::eps\n\t SYNC: hydrobase::temperature\n\t SYNC: lvel\n\t SYNC: lBvec\n } \"Select initial guess primitive variables for boudary conditions\"\n \n # After regridding, we better sync every primitive!\n # With MP, we only need to sync primitives in LOCAL tensor base!!\n schedule GRHydro_SelectPrimitiveBoundaries IN GRHydro_PrimitiveBoundaries\n {\n\t LANG: Fortran\n\t OPTIONS: LEVEL\n# SYNC: HydroBase::w_lorentz # don't need that since computed in Con2Prim which runs in postregrid!\n SYNC: HydroBase::press # con2prim_ptPolytype uses this for its initial guess\n# SYNC: HydroBase::vel # not needed; obtained from lvel everywhere in post regrid after Con2Prim\n# SYNC: HydroBase::Bvec # not needed; obtained from lBvec everywhere in post regrid after Con2Prim\n SYNC: hydrobase::entropy\n SYNC: hydrobase::Y_e\n SYNC: GRHydro_tracers\n SYNC: HydroBase::rho\n\t SYNC: HydroBase::eps\n\t SYNC: hydrobase::temperature\n\t SYNC: lvel\n\t SYNC: lBvec\n } \"Select primitive variables for boundary conditions\"\n }\n else\n {\n # Via prolongation, we only need to sync variables used for initial guesses!\n # Without MP, we only need to sync primitives in GLOBAL tensor base!!\n schedule GRHydro_SelectPrimitiveInitialGuessesBoundaries IN GRHydro_PrimitiveInitialGuessesBoundaries\n {\n\t LANG: Fortran\n\t OPTIONS: LEVEL\n# SYNC: HydroBase::w_lorentz # not used as initial guess and hence not needed!\n SYNC: HydroBase::press # con2prim_ptPolytype uses this for its initial guess\n# SYNC: hydrobase::entropy # not used as initial guess and hence not needed!\n# SYNC: hydrobase::Y_e # not used as initial guess and hence not needed!\n# SYNC: lvel\n# SYNC: lBvec\n# SYNC: GRHydro_tracers # not used as initial guess and hence not needed!\n\t SYNC: HydroBase::rho\n\t SYNC: HydroBase::eps\n\t SYNC: HydroBase::vel\n\t SYNC: HydroBase::Bvec\n\t SYNC: hydrobase::temperature\n } \"Select initial guess primitive variables for boudary conditions\"\n \n # After regridding, we better sync every primitive!\n # Without MP, we only need to sync primitives in GLOBAL tensor base!!\n schedule GRHydro_SelectPrimitiveBoundaries IN GRHydro_PrimitiveBoundaries\n {\n\t LANG: Fortran\n\t OPTIONS: LEVEL\n# SYNC: HydroBase::w_lorentz # don't need that since computed in Con2Prim which runs in postregrid!\n SYNC: HydroBase::press # con2prim_ptPolytype uses this for its initial guess\n SYNC: hydrobase::entropy\n SYNC: hydrobase::Y_e\n SYNC: GRHydro_tracers\n\t SYNC: HydroBase::rho\n\t SYNC: HydroBase::eps\n\t SYNC: HydroBase::vel\n\t SYNC: HydroBase::Bvec\n\t SYNC: hydrobase::temperature\n } \"Select primitive variables for boundary conditions\"\n \n }\n \n schedule group ApplyBCs AS GRHydro_ApplyPrimitiveInitialGuessBCs in GRHydro_PrimitiveInitialGuessesBoundaries AFTER GRHydro_SelectPrimitiveInitialGuessesBoundaries\n {\n } \"Apply boundary conditions to initial guess primitive variables\"\n\n schedule group ApplyBCs AS GRHydro_ApplyPrimitiveBCs in GRHydro_PrimitiveBoundaries AFTER GRHydro_SelectPrimitiveBoundaries\n {\n } \"Apply boundary conditions to all primitive variables\"\n\n} # sync_conserved_only\n\n\n#SCHEDULE GRHydro_TestSync in HydroBase_PostStep AFTER HydroBase_Boundaries BEFORE HydroBase_Con2Prim\n#{\n# LANG: C\n# OPTIONS: LEVEL\n#} \"Sync test variables\"\n\n#SCHEDULE GROUP Bla in HydroBase_PostStep AFTER HydroBase_Boundaries AFTER HydroBase_Con2Prim\n#{\n#} \"bla\"\n\n#SCHEDULE GRHydro_TestSync in Bla\n#{\n# LANG: C\n# OPTIONS: LEVEL\n#} \"Sync test variables\"\n\n#SCHEDULE GRHydro_TestSync in CCTK_POSTRESTRICT AFTER Refluxing_CorrectState BEFORE MoL_PostStep\n#{\n# LANG: C\n# OPTIONS: LEVEL\n#} \"Sync test variables\"\n\n#SCHEDULE GRHydro_TestSync in CCTK_POSTREGRID AFTER Refluxing_Reset\n#{\n# LANG: C\n# OPTIONS: LEVEL\n#} \"Sync test variables\"\n\n\n############################################################\n### Compute first differences of rho for mesh refinement ###\n############################################################\n\n# commented out (2006.08.22) since unused, for the time being\n#STORAGE:DiffRho\n\n#schedule GRHydro_DiffRho IN HydroBase_PostStep AFTER GRHydro_ApplyBCs\n#{\n# LANG: Fortran\n#} \"Compute relative differences in rho\"\n\n\n# older version\n# schedule GRHydro_DiffRho AT POSTREGRID\n# {\n# LANG: Fortran\n# } \"Compute relative differences in rho\"\n\n################################################################\n### Some actions are only required in the very last MoL sub- ###\n### step but cannot be moved into PseudoEvolution since they ###\n### affect other routines in PostStep. A prime example is ###\n### AmosphereReset which forms an operator split RHS. ###\n################################################################\n\nschedule GRHydro_SetLastMoLPostStep IN MoL_PostStep\n{\n LANG: C\n OPTIONS: level\n} \"Set grid scalar InLastMoLPostStep if this is the last MoL PostStep call\"\n# there used to be a comment along the lines \"You did not see this abuse of\n# MoL. Nothing to see here. Move along.\" Consider such a comment to be present\n# again.\nschedule GRHydro_ClearLastMoLPostStep IN MoL_Step AFTER MoL_PostStep\n{\n LANG: C\n OPTIONS: level\n} \"Reset InLastMoLPostStep to zero\"\nschedule GRHydro_ClearLastMoLPostStep IN CCTK_WRAGH\n{\n LANG: C\n OPTIONS: global-early\n} \"Initialize InLastMoLPostStep to zero\"\n\n################################################################\n### If a point has been marked as requiring resetting to the ###\n### atmosphere, this is where we do it. ###\n### ###\n### This is executed in the last MoL_PosStep ###\n################################################################\n\n# First (right after sync) we need to convert real (and synchronized mask) to an integer mask!\nschedule GRHydroPostSyncAtmosphereMask IN HydroBase_PostStep AFTER GRHydro_AtmosphereMaskBoundaries\n{\n LANG: Fortran\n} \"Set integer atmosphere mask from synchronized real atmosphere mask\"\n\n# Afterwards, reset mask!\nif (CCTK_Equals(Bvec_evolution_method,\"GRHydro\"))\n{\n schedule GRHydro_AtmosphereResetM IN HydroBase_PostStep AFTER GRHydroPostSyncAtmosphereMask BEFORE (HydroBase_Boundaries,GRHydro_PrimitiveInitialGuessesBoundaries) IF GRHydro::InLastMoLPostStep\n {\n LANG: Fortran\n } \"Reset the atmosphere - MHD version\"\n} else if (CCTK_Equals(Bvec_evolution_method,\"GRHydro_Avec\")) {\n schedule GRHydro_AtmosphereResetAM IN HydroBase_PostStep AFTER GRHydroPostSyncAtmosphereMask BEFORE (HydroBase_Boundaries,GRHydro_PrimitiveInitialGuessesBoundaries) IF GRHydro::InLastMoLPostStep\n {\n LANG: Fortran\n } \"Reset the atmosphere - MHD with Avec version\"\n} else {\n schedule GRHydro_AtmosphereReset IN HydroBase_PostStep AFTER GRHydroPostSyncAtmosphereMask BEFORE (HydroBase_Boundaries,GRHydro_PrimitiveInitialGuessesBoundaries) IF GRHydro::InLastMoLPostStep\n {\n LANG: Fortran\n } \"Reset the atmosphere\"\n}\n\n\nif (set_trivial_rp_grid_function)\n{\n STORAGE: GRHydro_trivial_rp_gf_group\n}\n\nif (ppm_mppm_debug_eigenvalues)\n{\n STORAGE: GRHydro_mppm_eigenvalues\n}\n\n# Check that rho >= GRHydro_rho_min\nif (Check_Rho_Minimum)\n{\n schedule GRHydro_Check_Rho_Minimum AT ANALYSIS\n {\n LANG: Fortran\n TRIGGERS: HydroBase::rho\n TRIGGERS: HydroBase::press\n TRIGGERS: HydroBase::eps\n } \"Check whether somewhere rho(i,j,k) < GRHydro_rho_min and produce a WARNING\"\n \n schedule GRHydro_RefinementLevel AT ANALYSIS BEFORE GRHydro_Check_Rho_Minimum\n {\n LANG: Fortran\n TRIGGERS: HydroBase::rho\n TRIGGERS: HydroBase::press\n TRIGGERS: HydroBase::eps\n } \"Calculate current refinement level\"\n}\n\n# set and check a mask containing the failures of C2P; if they occur at points overwritten by finer grids, they can be ignored.\n\nSTORAGE: GRHydro_C2P_failed[1]\n\nschedule reset_GRHydro_C2P_failed AT BASEGRID\n{\n LANG: Fortran\n} \"Initialise the mask function that contains the points where C2P has failed (at BASEGRID)\"\n\nschedule reset_GRHydro_C2P_failed AT CCTK_PRESTEP\n{\n LANG: Fortran\n} \"Reset the mask function that contains the points where C2P has failed (at PRESTEP)\"\n\nschedule sync_GRHydro_C2P_failed AT CCTK_EVOL AFTER MoL_Evolution\n{\n LANG: Fortran\n SYNC: GRHydro_C2P_failed\n} \"Syncronise the mask function that contains the points where C2P has failed\"\n\nschedule check_GRHydro_C2P_failed AT CCTK_POSTSTEP AFTER GRHydro_RefinementLevel\n{\n LANG: Fortran\n} \"Check the mask function that contains the points where C2P has failed and report an error in case a failure is found\"\n\n} # end of if (CCTK_EQUALS(hydrobase::evolution_method, \"GRHydro\"))\n\n\n\nif (CCTK_Equals(Bvec_evolution_method,\"GRHydro\") || CCTK_Equals(Bvec_evolution_method,\"GRHydro_Avec\"))\n{\n schedule GRHydro_TmunuM IN AddToTmunu\n {\n LANG: Fortran\n } \"Compute the energy-momentum tensor - MHD version\"\n# bcom is already calculated in GRHydro_TmunuM. \n# When Tmunu is not calculated, then the following \n# routine is used to evaluate bcom, if requested.\n if (calculate_bcom){\n schedule GRHydro_CalcBcom IN HydroBase_PostStep AFTER GRHydroTransformPrimToGlobalBasis\n {\n LANG: Fortran\n } \"Compute comoving magnetic field, pressure, etc...\"\n }\n} else {\n schedule GRHydro_Tmunu IN AddToTmunu \n {\n LANG: Fortran\n } \"Compute the energy-momentum tensor\"\n}\n\n#the following is necessary because TmunuBase does not have enough schedule\n\nschedule GROUP SetTmunu AT POSTPOSTINITIAL AFTER Con2Prim BEFORE ADMConstraintsGroup\n{\n} \"Calculate the stress-energy tensor\"\n\n# Calculate divergence in PseudoEvolution\n\nif(track_divB)\n{\n schedule group GRHydroAnalysis IN MoL_PseudoEvolution\n {\n } \"Calculate analysis quantities\"\n\n schedule GRHydro_CalcDivB IN GRHydroAnalysis AFTER GRHydro_Analysis_Init\n {\n LANG: Fortran\n } \"Calculate divB\"\n\n schedule group ApplyBCs AS GRHydro_ApplyDivBBCs in GRHydroAnalysis AFTER GRHydro_CalcDivB\n {\n } \"Apply boundary conditions to divB\"\n}\n\n\nif (constrain_to_1D) {\n SCHEDULE ConstrainSconTo1D in MoL_PostStepModify\n {\n LANG: FORTRAN\n OPTION: LOCAL\n } \"Constrain conserved fluid velocity to radial direction\"\n}\n\n\nif (apply_H_viscosity) {\n if (use_cxx_code) {\n SCHEDULE H_viscosity_calc_cs_cc in GRHydroRHS BEFORE FluxTerms\n {\n LANG: C\n OPTION: LOCAL\n } \"Compute local temporaries for H viscosity - C++ version\"\n } else {\n SCHEDULE H_viscosity in GRHydroRHS BEFORE FluxTerms\n {\n LANG: FORTRAN\n OPTION: LOCAL\n } \"Compute local temporaries for H viscosity\"\n }\n}\n\n", "src": { "GRHydro_PreLoop.F90": " /*@@\n @file GRHydro_PreLoop.F90\n @date Mon Feb 25 11:43:36 2002\n @author \n @desc \n Sets up various scalars used for efficiency reasons.\n @enddesc \n @@*/\n\n#include \"cctk.h\"\n#include \"cctk_Parameters.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Functions.h\"\n\n /*@@\n @routine GRHydro_Scalar_Setup\n @date Mon Feb 25 11:25:27 2002\n @author \n @desc \n Sets up the logical scalars from the parameters. These are\n solely used for efficiency.\n @enddesc \n @calls \n @calledby \n @history \n \n @endhistory \n\n@@*/\n\nsubroutine GRHydro_Scalar_Setup(CCTK_ARGUMENTS)\n\n USE GRHydro_Scalars\n\n implicit none\n\n DECLARE_CCTK_ARGUMENTS\n DECLARE_CCTK_PARAMETERS\n DECLARE_CCTK_FUNCTIONS\n\n MINMOD = .false.\n MC2 = .false.\n SUPERBEE = .false.\n HLLE = .false.\n LLF = .false.\n\n if (CCTK_EQUALS(tvd_limiter,\"minmod\")) then\n MINMOD = .true. \n else if (CCTK_EQUALS(tvd_limiter,\"vanleerMC2\")) then\n MC2 = .true.\n else if (CCTK_EQUALS(tvd_limiter,\"Superbee\")) then\n SUPERBEE = .true.\n else\n call CCTK_ERROR(\"TVD Limiter not recognized!\")\n STOP\n end if\n\n PPM3=.false.\n PPM4=.false.\n\n if (CCTK_EQUALS(ppm_flatten,\"stencil_3\")) then\n PPM3=.true.\n else if (CCTK_EQUALS(ppm_flatten,\"stencil_4\")) then\n PPM4=.true.\n else\n call CCTK_ERROR(\"PPM Flattening Procedure not recognized!\")\n STOP\n end if\n\n ANALYTICAL = .false.\n\n if (CCTK_EQUALS(left_eigenvectors,\"analytical\")) then\n ANALYTICAL = .true.\n else if (CCTK_EQUALS(left_eigenvectors,\"numerical\")) then\n ANALYTICAL = .false.\n else\n call CCTK_ERROR(\"Left Eigenvector Mode not recognized!\")\n STOP\n end if\n\n FAST = .false.\n\n if (CCTK_EQUALS(numerical_viscosity,\"fast\")) then\n FAST = .true.\n else if (CCTK_EQUALS(numerical_viscosity,\"normal\")) then\n FAST = .false.\n else\n call CCTK_ERROR(\"Numerical Viscosity Mode not recognized!\")\n STOP\n end if\n\n if (CCTK_EQUALS(riemann_solver,\"HLLE\")) then\n HLLE = .true.\n else if (CCTK_EQUALS(riemann_solver,\"LLF\")) then\n LLF = .true.\n end if\n\nend subroutine GRHydro_Scalar_Setup\n\n\n\n /*@@\n @routine GRHydro_DivBInit\n @date Apr 06, 2011\n @author Bruno Mundim\n @desc \n Set divB=0 initially.\n @enddesc \n @calls \n @calledby \n @history \n \n @endhistory \n\n@@*/\n\nsubroutine GRHydro_DivBInit(CCTK_ARGUMENTS)\n \n implicit none\n \n DECLARE_CCTK_ARGUMENTS\n DECLARE_CCTK_FUNCTIONS\n\n divB=0.0\n\nend subroutine GRHydro_DivBInit\n\n\n", diff --git a/EinsteinEvolve_GRHydro_InitData.json b/EinsteinEvolve_GRHydro_InitData.json index 4bed476f1d5b554ceb2d89e4a12833198fe3299c..b4dd0bc6b649933c492ba8d1408e9a1163d4afdd 100644 --- a/EinsteinEvolve_GRHydro_InitData.json +++ b/EinsteinEvolve_GRHydro_InitData.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinevolve.git", "configuration": "REQUIRES EOS_Omni Fortran\n", "interface": "# Interface definition for thorn GRHydro_Init_Data\n# $Header$\n\nimplements: GRHydro_init_data\ninherits: GRHydro grid EOS_Omni\n\n#USES INCLUDE: EOS_Base.inc\nUSES INCLUDE: SpaceMask.h\n#USES INCLUDE: EOS_Base.h\n\n\nSUBROUTINE SpatialDet(CCTK_REAL IN gxx, CCTK_REAL IN gxy, \\\n CCTK_REAL IN gxz, CCTK_REAL IN gyy, \\\n\t\t CCTK_REAL IN gyz, CCTK_REAL IN gzz, \\\n\t\t CCTK_REAL OUT det)\n\nSUBROUTINE Prim2ConPoly(CCTK_INT IN handle, \\\n CCTK_REAL IN gxx, CCTK_REAL IN gxy, CCTK_REAL IN gxz, \\\n\t\t\tCCTK_REAL IN gyy, CCTK_REAL IN gyz, CCTK_REAL IN gzz, \\\n\t\t\tCCTK_REAL IN det, CCTK_REAL OUT dens, \\\n\t\t\tCCTK_REAL OUT sx, CCTK_REAL OUT sy, \\\n\t\t\tCCTK_REAL OUT sz, CCTK_REAL OUT tau, \\\n\t\t\tCCTK_REAL IN rho, CCTK_REAL IN velx, \\\n\t\t\tCCTK_REAL IN vely, \\\n\t\t\tCCTK_REAL IN velz, CCTK_REAL OUT epsilon, \\\n\t\t\tCCTK_REAL OUT press, CCTK_REAL OUT w_lorentz)\n\n\nSUBROUTINE Prim2ConGen(CCTK_INT IN handle, \\\n CCTK_REAL IN gxx, CCTK_REAL IN gxy, \\\n CCTK_REAL IN gxz, CCTK_REAL IN gyy, \\\n CCTK_REAL IN gyz, CCTK_REAL IN gzz, \\\n CCTK_REAL IN det, CCTK_REAL OUT dens, \\\n CCTK_REAL OUT sx, CCTK_REAL OUT sy, \\\n CCTK_REAL OUT sz, CCTK_REAL OUT tau, \\\n CCTK_REAL IN rho, CCTK_REAL IN velx, \\\n CCTK_REAL IN vely, \\\n CCTK_REAL IN velz, CCTK_REAL IN epsilon, \\\n CCTK_REAL OUT press, CCTK_REAL OUT w_lorentz)\n\nSUBROUTINE Prim2ConPolyM(CCTK_INT IN handle, \\\n CCTK_REAL IN gxx, CCTK_REAL IN gxy, \\\n CCTK_REAL IN gxz, CCTK_REAL IN gyy, \\\n CCTK_REAL IN gyz, CCTK_REAL IN gzz, \\\n CCTK_REAL IN det, CCTK_REAL OUT dens, \\\n CCTK_REAL OUT sx, CCTK_REAL OUT sy, \\\n CCTK_REAL OUT sz, CCTK_REAL OUT tau, \\\n CCTK_REAL OUT Bconsx, CCTK_REAL OUT Bconsy, \\\n CCTK_REAL OUT Bconsz, CCTK_REAL IN rho, CCTK_REAL IN velx, \\\n CCTK_REAL IN vely, \\\n CCTK_REAL IN velz, CCTK_REAL OUT epsilon, \\\n CCTK_REAL OUT press, CCTK_REAL IN Bvecx, CCTK_REAL IN Bvecy, \\\n CCTK_REAL IN Bvecz, CCTK_REAL OUT w_lorentz)\n\nSUBROUTINE Prim2ConGenM(CCTK_INT IN handle, \\\n CCTK_REAL IN gxx, CCTK_REAL IN gxy, \\\n CCTK_REAL IN gxz, CCTK_REAL IN gyy, \\\n CCTK_REAL IN gyz, CCTK_REAL IN gzz, \\\n CCTK_REAL IN det, CCTK_REAL OUT dens, \\\n CCTK_REAL OUT sx, CCTK_REAL OUT sy, \\\n CCTK_REAL OUT sz, CCTK_REAL OUT tau, \\\n CCTK_REAL OUT Bconsx, CCTK_REAL OUT Bconsy, \\\n CCTK_REAL OUT Bconsz, CCTK_REAL IN rho, CCTK_REAL IN velx, \\\n CCTK_REAL IN vely, \\\n CCTK_REAL IN velz, CCTK_REAL IN epsilon, \\\n CCTK_REAL OUT press, CCTK_REAL IN Bvecx, CCTK_REAL IN Bvecy, \\\n CCTK_REAL IN Bvecz, CCTK_REAL OUT w_lorentz)\n\nSUBROUTINE Prim2ConGenM_hot(CCTK_INT IN handle, CCTK_INT IN GRHydro_reflevel, CCTK_INT IN i, CCTK_INT IN j, CCTK_INT IN k, \\\n CCTK_REAL IN x, CCTK_REAL IN y, CCTK_REAL IN z, \\\n CCTK_REAL IN gxx, CCTK_REAL IN gxy, \\\n CCTK_REAL IN gxz, CCTK_REAL IN gyy, \\\n CCTK_REAL IN gyz, CCTK_REAL IN gzz, \\\n CCTK_REAL IN det, CCTK_REAL OUT dens, \\\n CCTK_REAL OUT sx, CCTK_REAL OUT sy, \\\n CCTK_REAL OUT sz, CCTK_REAL OUT tau, \\\n CCTK_REAL OUT Bconsx, CCTK_REAL OUT Bconsy, \\\n CCTK_REAL OUT Bconsz, CCTK_REAL IN rho, CCTK_REAL IN velx, \\\n CCTK_REAL IN vely, \\\n CCTK_REAL IN velz, CCTK_REAL IN epsilon, \\\n CCTK_REAL OUT press, CCTK_REAL IN Bvecx, CCTK_REAL IN Bvecy, \\\n CCTK_REAL IN Bvecz, CCTK_REAL OUT w_lorentz, \\\n CCTK_REAL INOUT temperature, CCTK_REAL IN Y_e)\n\n\nSUBROUTINE Con2PrimPoly(CCTK_INT IN handle, CCTK_REAL INOUT dens, \\\n CCTK_REAL INOUT sx, CCTK_REAL INOUT sy, \\\n CCTK_REAL INOUT sz, CCTK_REAL OUT tau, \\\n CCTK_REAL INOUT rho, CCTK_REAL INOUT velx, \\\n CCTK_REAL INOUT vely, CCTK_REAL INOUT velz, \\\n CCTK_REAL INOUT epsilon, CCTK_REAL INOUT press, \\\n CCTK_REAL INOUT w_lorentz, CCTK_REAL IN uxx, \\\n CCTK_REAL IN uxy, CCTK_REAL IN uxz, \\\n CCTK_REAL IN uyy, CCTK_REAL IN uyz, \\\n CCTK_REAL IN uzz, CCTK_REAL IN det, \\\n CCTK_REAL IN x, CCTK_REAL IN y, CCTK_REAL IN z, \\\n CCTK_REAL IN r, CCTK_REAL IN rho_min, \\\n\t\t\t CCTK_INT IN GRHydro_reflevel, CCTK_REAL OUT GRHydro_C2P_failed)\n\n\nvoid FUNCTION Con2PrimGen(CCTK_INT IN handle, CCTK_REAL INOUT dens, \\\n CCTK_REAL INOUT sx, CCTK_REAL INOUT sy, CCTK_REAL INOUT sz, \\\n CCTK_REAL INOUT tau, CCTK_REAL INOUT rho, \\\n CCTK_REAL INOUT velx, CCTK_REAL INOUT vely, CCTK_REAL INOUT velz, \\\n CCTK_REAL INOUT epsilon, CCTK_REAL INOUT pressure, \\\n CCTK_REAL INOUT w_lorentz, \\\n CCTK_REAL IN uxx, CCTK_REAL IN uxy, CCTK_REAL IN uxz, \\\n CCTK_REAL IN uyy, CCTK_REAL IN uyz, CCTK_REAL IN uzz, \\\n CCTK_REAL IN det, \\\n CCTK_REAL IN x, CCTK_REAL IN y, CCTK_REAL IN z, \\\n CCTK_REAL IN r, \\\n CCTK_INT OUT epsnegative, \\\n\t\t CCTK_REAL IN GRHydro_rho_min, CCTK_REAL IN pmin, \\\n\t\t CCTK_REAL IN epsmin, \\\n CCTK_INT IN GRHydro_reflevel, \\\n CCTK_REAL OUT retval)\n\nvoid FUNCTION Con2PrimGenM(CCTK_INT IN handle, CCTK_INT IN keytemp, CCTK_REAL IN prec,CCTK_REAL IN gamma_eos, CCTK_REAL INOUT dens, \\\n CCTK_REAL INOUT sx, CCTK_REAL INOUT sy, CCTK_REAL INOUT sz, \\\n CCTK_REAL INOUT tau, CCTK_REAL IN Bconsx, CCTK_REAL IN Bconsy, CCTK_REAL IN Bconsz, \\\n\t\t\t CCTK_REAL INOUT y_e, CCTK_REAL INOUT temp, CCTK_REAL INOUT rho, \\\n CCTK_REAL INOUT velx, CCTK_REAL INOUT vely, CCTK_REAL INOUT velz, \\\n CCTK_REAL INOUT epsilon, CCTK_REAL INOUT pressure, \\\n CCTK_REAL OUT Bvecx, CCTK_REAL OUT Bvecy, CCTK_REAL OUT Bvecz, \\\n CCTK_REAL OUT bvecsq, \\\n CCTK_REAL INOUT w_lorentz, \\\n CCTK_REAL IN gxx, CCTK_REAL IN gxy, CCTK_REAL IN gxz, \\\n CCTK_REAL IN gyy, CCTK_REAL IN gyz, CCTK_REAL IN gzz, \\\n CCTK_REAL IN uxx, CCTK_REAL IN uxy, CCTK_REAL IN uxz, \\\n CCTK_REAL IN uyy, CCTK_REAL IN uyz, CCTK_REAL IN uzz, \\\n CCTK_REAL IN det, \\\n CCTK_INT OUT epsnegative, \\\n CCTK_REAL OUT retval)\n\nvoid FUNCTION Con2PrimGenMee(CCTK_INT IN handle, CCTK_INT IN keytemp, \\\n CCTK_REAL IN prec, CCTK_REAL IN gamma_eos, \\\n CCTK_REAL INOUT dens, \\\n CCTK_REAL INOUT sx, CCTK_REAL INOUT sy, CCTK_REAL INOUT sz, \\\n CCTK_REAL INOUT tau, \\\n CCTK_REAL IN Bconsx, CCTK_REAL IN Bconsy, CCTK_REAL IN Bconsz, \\\n CCTK_REAL INOUT entropycons, \\\n CCTK_REAL INOUT y_e, CCTK_REAL INOUT temp, CCTK_REAL INOUT rho, \\\n CCTK_REAL INOUT velx, CCTK_REAL INOUT vely, CCTK_REAL INOUT velz, \\\n CCTK_REAL INOUT epsilon, CCTK_REAL INOUT pressure, \\\n CCTK_REAL OUT Bvecx, CCTK_REAL OUT Bvecy, CCTK_REAL OUT Bvecz, \\\n CCTK_REAL OUT Bvecsq, \\\n CCTK_REAL INOUT w_lorentz, \\\n CCTK_REAL IN gxx, CCTK_REAL IN gxy, CCTK_REAL IN gxz, \\\n CCTK_REAL IN gyy, CCTK_REAL IN gyz, CCTK_REAL IN gzz, \\\n CCTK_REAL IN uxx, CCTK_REAL IN uxy, CCTK_REAL IN uxz, \\\n CCTK_REAL IN uyy, CCTK_REAL IN uyz, CCTK_REAL IN uzz, \\\n CCTK_REAL IN det, \\\n CCTK_INT OUT epsnegative, \\\n CCTK_REAL OUT retval)\n\nvoid FUNCTION Con2PrimPolyM(CCTK_INT IN handle, CCTK_REAL IN gamma_eos, CCTK_REAL INOUT dens, \\\n CCTK_REAL INOUT sx, CCTK_REAL INOUT sy, CCTK_REAL INOUT sz, \\\n CCTK_REAL INOUT sc, CCTK_REAL IN Bconsx, CCTK_REAL IN Bconsy, CCTK_REAL IN Bconsz, \\\n\t\t\t CCTK_REAL INOUT rho, \\\n CCTK_REAL INOUT velx, CCTK_REAL INOUT vely, CCTK_REAL INOUT velz, \\\n CCTK_REAL INOUT epsilon, CCTK_REAL INOUT pressure, \\\n CCTK_REAL OUT Bvecx, CCTK_REAL OUT Bvecy, CCTK_REAL OUT Bvecz, \\\n CCTK_REAL OUT Bvecsq, \\\n CCTK_REAL INOUT w_lorentz, \\\n CCTK_REAL IN gxx, CCTK_REAL IN gxy, CCTK_REAL IN gxz, \\\n CCTK_REAL IN gyy, CCTK_REAL IN gyz, CCTK_REAL IN gzz, \\\n CCTK_REAL IN uxx, CCTK_REAL IN uxy, CCTK_REAL IN uxz, \\\n CCTK_REAL IN uyy, CCTK_REAL IN uyz, CCTK_REAL IN uzz, \\\n CCTK_REAL IN det, \\\n CCTK_INT OUT epsnegative, \\\n CCTK_REAL OUT retval)\n\nUSES FUNCTION SpatialDet\nUSES FUNCTION Prim2ConPoly\nUSES FUNCTION Prim2ConGen\nUSES FUNCTION Prim2ConPolyM\nUSES FUNCTION Prim2ConGenM\nUSES FUNCTION Prim2ConGenM_hot\nUSES FUNCTION Con2PrimPoly\nUSES FUNCTION Con2PrimGen\nUSES FUNCTION Con2PrimGenM\nUSES FUNCTION Con2PrimGenMee\nUSES FUNCTION Con2PrimPolyM\n\nCCTK_INT FUNCTION EOS_Omni_GetHandle(CCTK_STRING IN name)\nUSES FUNCTION EOS_Omni_GetHandle\n\n\nvoid FUNCTION EOS_Omni_press(CCTK_INT IN eoshandle, \\\n CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n CCTK_REAL IN ARRAY rho, \\\n CCTK_REAL INOUT ARRAY eps, \\\n CCTK_REAL INOUT ARRAY temp, \\\n CCTK_REAL IN ARRAY ye, \\\n CCTK_REAL OUT ARRAY press, \\\n CCTK_INT OUT ARRAY keyerr, \\\n CCTK_INT OUT anyerr)\n\nUSES FUNCTION EOS_Omni_press\n\nvoid FUNCTION EOS_Omni_EpsFromPress(CCTK_INT IN eoshandle, \\\n CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n CCTK_REAL IN ARRAY rho, \\\n CCTK_REAL INOUT ARRAY eps, \\\n CCTK_REAL INOUT ARRAY temp, \\\n CCTK_REAL IN ARRAY ye, \\\n CCTK_REAL IN ARRAY press, \\\n CCTK_REAL OUT ARRAY xeps, \\\n CCTK_INT OUT ARRAY keyerr, \\\n CCTK_INT OUT anyerr)\n\nUSES FUNCTION EOS_Omni_EpsFromPress\n\n\n\nprotected:\n\nCCTK_REAL simple_wave_grid_functions TYPE=GF TIMELEVELS=1 tags='checkpoint=\"no\"'\n{\n simple_tmp\n c_s\n} \"1D arrays for the simple-wave routine\"\n\nCCTK_REAL simple_wave_scalars TYPE=scalar\n{\n simple_rho_0\n simple_eps_0\n} \"values at v=0\"\n\nCCTK_REAL simple_wave_output TYPE=GF TIMELEVELS=1 tags='checkpoint=\"no\"'\n{\n simple_rho\n simple_eps\n# simple_entropy\n} \"output variables for the simple-wave routine\"\n\nprivate:\n\nCCTK_INT GRHydro_init_data_reflevel type = SCALAR tags='checkpoint=\"no\"' \"Refinement level GRHydro is working on right now\"\n", - "params": "", + "param": "# Parameter definitions for thorn GRHydro_Init_Data\n# $Header$\n\nshares:HydroBase\n\nUSES CCTK_INT timelevels\nUSES KEYWORD Bvec_evolution_method\nUSES KEYWORD Y_e_evolution_method\nUSES KEYWORD temperature_evolution_method\nUSES KEYWORD entropy_evolution_method\n\nEXTENDS KEYWORD initial_hydro \"\"\n{\n \"shocktube\" :: \"Shocktube type\"\n \"shocktube_hot\" :: \"Shocktube with hot nuclear EOS\"\n \"only_atmo\" :: \"Set only a low atmosphere\"\n \"read_conformal\":: \"After reading in initial alp, rho and gxx from h5 files, sets the other quantities\"\n \"simple_wave\" :: \"Set initial data from Anile Miller Motta, Phys.Fluids. 26, 1450 (1983)\"\n \"monopole\" :: \"Monopole at the center\"\n \"cylexp\" :: \"Cylindrical Explosion\"\n \"rotor\" :: \"Magnetic Rotor test from DelZanna,Bucciantini, and Londrillo A&A 400, 397-413 (2003)\"\n \"advectedloop\":: \"Magnetic advected loop test\"\n \"alfvenwave\" :: \"Circularly polarized Alfven wave\"\n \"hydro_bondi_solution\" :: \"Spherical single black hole Bondi solution\"\n \"hydro_bondi_solution_iso\" :: \"Spherical single black hole Bondi solution - TEST ISO CASE!!!!!!\"\n \"magnetized_bondi_solution\" :: \"Magnetized Spherical single black hole Bondi solution\"\n \"magnetized_bondi_solution_iso\" :: \"Magnetized Spherical single black hole Bondi solution - TEST ISO CASE!!!!!!\"\n}\n\nEXTENDS KEYWORD initial_Bvec\n{\n \"shocktube\" :: \"Shocktube type\"\n \"cylexp\" :: \"Poloidal Magnetic Field\"\n \"poloidalmagfield\" :: \"Poloidal Magnetic Field\"\n \"magnetized Bondi\" :: \"radial magnetic field appropriate for Bondi test\"\n}\n\nEXTENDS KEYWORD initial_Avec\n{\n \"poloidalmagfield\" :: \"Poloidal Magnetic Field\"\n}\n\nEXTENDS KEYWORD initial_entropy\n{\n \"magnetized Bondi\" :: \"Initial entropy for a radial magnetic field appropriate for Bondi test\"\n}\n\n\nshares:ADMBase\n\nEXTENDS KEYWORD initial_data \"\"\n{\n# \"shocktube\" :: \"Shock tube initial data for GRHydro\"\n \"con2primtest\" :: \"Testing the con -> prim conversion\"\n \"con2prim2con_test\" :: \"Testing the con -> prim -> con conversion\"\n \"prim2con2prim_test\" :: \"Testing the prim -> con -> prim conversion\"\n \"prim2con2prim_polytype_test\" :: \"Testing the prim -> con -> prim conversion - polytype version\"\n \"reconstruction_test\" :: \"Testing reconstruction\"\n}\n\nprivate:\n\nKEYWORD shocktube_type \"Diagonal or parallel shock?\"\n{\n \"diagshock\" :: \"Diagonal across all axes\"\n \"diagshock2d\" :: \"Diagonal across x-y axes\"\n \"xshock\" :: \"Parallel to x axis\"\n \"yshock\" :: \"Parallel to y axis\"\n \"zshock\" :: \"Parallel to z axis\"\n \"sphere\" :: \"spherically symmetric shock\"\n} \"xshock\"\n\nKEYWORD shock_case \"Simple, Sod's problem or other?\"\n{\n \"Simple\" :: \"GRAstro_Hydro test case\"\n \"Sod\" :: \"Sod's problem\"\n \"Blast\" :: \"Strong blast wave\"\n \"Balsaralike1\" :: \"Hydro version of Balsara Test #1\"\n \"Balsara0\" :: \"Balsara Test #1, but unmagnetized\"\n \"Balsara1\" :: \"Balsara Test #1\"\n \"Balsara2\" :: \"Balsara Test #2\"\n \"Balsara3\" :: \"Balsara Test #3\"\n \"Balsara4\" :: \"Balsara Test #4\"\n \"Balsara5\" :: \"Balsara Test #5\"\n \"Alfven\" :: \"Generical Alfven Test\"\n \"Komissarov1\" :: \"Komissarov Test #1\"\n \"Komissarov2\" :: \"Komissarov Test #2\"\n \"Komissarov3\" :: \"Komissarov Test #3\"\n \"Komissarov4\" :: \"Komissarov Test #4\"\n \"Komissarov5\" :: \"Komissarov Test #5\"\n \"Komissarov6\" :: \"Komissarov Test #6\"\n \"Komissarov7\" :: \"Komissarov Test #7\"\n \"Komissarov8\" :: \"Komissarov Test #8\"\n \"Komissarov9\" :: \"Komissarov Test #9\"\n} \"Sod\"\n\nREAL shock_xpos \"Position of shock plane: x\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nREAL shock_ypos \"Position of shock plane: y\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nREAL shock_zpos \"Position of shock plane: z\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nREAL shock_radius \"Radius of sperical shock\"\n{\n 0.0:* :: \"Anything positive\"\n} 1.0\n\nBOOLEAN change_shock_direction \"Change the shock direction\"\n{ \n} \"no\"\n\nREAL simple_wave_constant_c_0 \"The c_0 constant in Anile Miller Motta, Phys.Fluids. 26, 1450 (1983)\"\n{\n 0:1 :: \"It is the sound speed where the fluid velocity is zero\"\n} 0.3\n\nREAL simple_wave_v_max \"The v_max constant in Anile Miller Motta, Phys.Fluids. 26, 1450 (1983)\"\n{\n 0:1 :: \"It is the maximum velocity in the initial configuration (see p. 1457, bottom of first column)\"\n} 0.7\n\n# For the \"atmosphere\"\n\nREAL atmosphere_vel[3] \"Velocity of the atmosphere if non-trivial\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nBOOLEAN attenuate_atmosphere \"Attenuate the velocity in the atmosphere\"\n{\n} \"no\"\n\n# Initial magnetic field used by different tests\n\nREAL Bx_init \"Initial B-field in the x-dir\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nREAL By_init \"Initial B-field in the y-dir\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nREAL Bz_init \"Initial B-field in the z-dir\"\n{\n *:* :: \"Anything\"\n} 0.0\n\n# Initial primitive values:\nREAL rho_init \"Initial rest mass density\"\n{\n (0:* :: \"Anything positive.\"\n} 1.0d-6\n\nREAL velx_init \"Initial x velocity\" \n{\n *:* :: \"Anything.\"\n} 1.0d-1\n\nREAL vely_init \"Initial y velocity\" \n{\n *:* :: \"Anything.\"\n} 1.0d-1\n\nREAL velz_init \"Initial z velocity\" \n{\n *:* :: \"Anything.\"\n} 1.0d-1\n\nREAL eps_init \"Initial specific internal energy\"\n{\n (0:* :: \"Anything positive.\"\n} 1.0d-6\n\nREAL press_init \"Initial pressure\"\n{\n (0:* :: \"Anything positive.\"\n} 6.666666666666667d-7\n\n# Initial conservative values used by c2p tests:\n\nCCTK_BOOLEAN use_c2p_with_entropy_eqn \"Use the con2prim routine that uses the entropy equation instead of the energy equation\"\n{\n} no\n\nREAL dens_init \"Initial conserved mass density\"\n{\n (0:* :: \"Anything positive.\"\n} 1.29047362\n\nREAL sx_init \"Initial x component of conserved momentum density\"\n{\n *:* :: \"Anything.\"\n} 0.166666658\n\nREAL sy_init \"Initial y component of conserved momentum density\"\n{\n *:* :: \"Anything.\"\n} 0.166666658\n\nREAL sz_init \"Initial z component of conserved momentum density\"\n{\n *:* :: \"Anything.\"\n} 0.166666658\n\nREAL tau_init \"Initial conserved total energy density\"\n{\n (0:* :: \"Anything positive.\"\n} 0.484123939\n\n# Initial values for 3-metric components. Default to euclidian 3-metric\nREAL gxx_init \"Initial xx metric componenent\"\n{\n *:* :: \"Anything, but be carefull to set a positive definite 3-metric!\"\n} 1.0\n\nREAL gxy_init \"Initial xy metric componenent\"\n{\n *:* :: \"Anything, but be carefull to set a positive definite 3-metric!\"\n} 0.0\n\nREAL gxz_init \"Initial xz metric componenent\"\n{\n *:* :: \"Anything, but be carefull to set a positive definite 3-metric!\"\n} 0.0\n\nREAL gyy_init \"Initial yy metric componenent\"\n{\n *:* :: \"Anything, but be carefull to set a positive definite 3-metric!\"\n} 1.0\n\nREAL gyz_init \"Initial yz metric componenent\"\n{\n *:* :: \"Anything, but be carefull to set a positive definite 3-metric!\"\n} 0.0\n\nREAL gzz_init \"Initial zz metric componenent\"\n{\n *:* :: \"Anything, but be carefull to set a positive definite 3-metric!\"\n} 1.0\n\n\nKEYWORD monopole_type \"Which kind of monopole?\"\n{\n \"Point\" :: \"Single point with Bx /= 0\"\n \"Gauss\" :: \"Gaussian w/radius R_Gauss\"\n \"1dalt\" :: \"1-d alternating\"\n \"2dalt\" :: \"2-d alternating\"\n \"3dalt\" :: \"3-d alternating\"\n} \"Point\"\n\nCCTK_REAL R_Gauss \"Radius for a Gaussian monopole\"\n{\n 0:* :: \"Any positive number\"\n} 1.0\n\nCCTK_REAL Monopole_point_Bx \"Pointlike Monopole Bx value\"\n{\n *:* :: \"Any number\"\n} 1.0\n\n# For cylindrical explosion test:\nCCTK_REAL cyl_r_inner \"Inner Radius\"\n{\n (0:* :: \"Any positive number\"\n} 0.8\n\nCCTK_REAL cyl_r_outer \"Outer Radius\"\n{\n (0:* :: \"Any positive number\"\n} 1.0\n\n# the defaults are Komissarov's values\nCCTK_REAL cyl_rho_inner \"density in inner core\"\n{\n (0:* :: \"any positive number\"\n} 1.d-2\n\nCCTK_REAL cyl_press_inner \"pressure in inner core\"\n{\n (0:* :: \"any positive number\"\n} 1.d0\n\nCCTK_REAL cyl_rho_outer \"density in outer region\"\n{\n (0:* :: \"any positive number\"\n} 1.d-4\n\nCCTK_REAL cyl_press_outer \"pressure in outer region\"\n{\n (0:* :: \"any positive number\"\n} 3.d-5\n\n# For magnetic advected loop test:\n\nKEYWORD advectedloop_type \"2-dimensional or 3-dimensional?\"\n{\n \"2D\" :: \"2-dimensional (B^z=0)\"\n \"3D\" :: \"3-dimensional (B^3=0, where B^3 || oblique cylinder axis.\"\n} \"2D\"\n\nKEYWORD advectedloop_case \"V^z=0 or not?\"\n{\n \"V^z=0\" :: \"Useful to evaluate divB deviations\"\n \"V^z/=0\" :: \"Useful to evaluate con2prim robustness in keeping V^z const.\"\n} \"V^z=0\"\n\nKEYWORD advectedloop_delA \"How to calculate B^i field from the potential A^b\"\n{\n \"Exact\" :: \"Analytic, exact closed formula applied\"\n \"Numeric\" :: \"Finite difference approximation of the derivatives applied\"\n} \"Exact\"\n\n#################################3\n# Alfven Wave test\n################################3\nKEYWORD alfvenwave_type \"1-dimensional or 2-dimensional?\"\n{\n \"1D\" :: \"1-dimensional\"\n \"2D\" :: \"2-dimensional (in x-y plane)\"\n} \"1D\"\n\nCCTK_REAL alfvenwave_pressure \"P_gas for the Alfven wave\"\n{\n (0:* :: \"positive\"\n} 1.0\n\n##################################################################################\n# BONDI PARAMETERS: (black hole mass specified by parameters from the \"Exact\" thorn)\n##################################################################################\n# Default value is that used in the HARM test\nCCTK_REAL mdot_sonicpt_bondi \"Accretion rate at sonic point in hydro units\"\n{\n (0:* :: \"positive\"\n} 12.566370614359172954\n\nCCTK_REAL r_sonicpt_bondi \"Radial distance of the sonic point from the black hole in units of mass_bh_bondi\"\n{\n (0:* :: \"positive\"\n} 8.0\n\nkeyword bondi_coordinates \"Which coordinate system to use\"\n{\n \"Boyer-Lindquist\" :: \"Schwarzschild or Boyer-Lindquist (Cartesian) Coordinates\"\n \"Kerr-Schild\" :: \"Kerr-Schild (Cartesian) Coordinates\"\n \"Isotropic\" :: \"Isotropic (Cartesian) Coordinates\"\n} \"Isotropic\" \n\n\nCCTK_INT num_bondi_sols \"Number of central masses about which to calculate Bondi solutions\"\n{\n 1:100 :: \"positive\"\n} 1\n\nCCTK_REAL bh_bondi_pos_x [100] \"X-coordinate of black hole in Bondi solution\"\n{\n *:* :: \"anything\"\n} 0.0\n\nCCTK_REAL bh_bondi_pos_y [100] \"Y-coordinate of black hole in Bondi solution\"\n{\n *:* :: \"anything\"\n} 0.0\n\nCCTK_REAL bh_bondi_pos_z [100] \"Z-coordinate of black hole in Bondi solution\"\n{\n *:* :: \"anything\"\n} 0.0\n\nCCTK_REAL bondi_central_mass [100] \"Mass of central object to find Bondi solution about \"\n{\n (0:* :: \"positive\"\n} 1.0\n\nCCTK_REAL bondi_central_spin [100] \"Dimensionless spin of central object within Bondi solution \"\n{\n (-1.:1.) :: \"dimensionless spin so any real number between -1 and 1\"\n} 0.0\n\nCCTK_REAL bondi_rmin [100] \"Smallest radius in units of central mass at which the solution is found\"\n{\n (0:* :: \"dimensionless inner radius for Bondi solution\"\n} 1.e-15\n\nCCTK_REAL bondi_rmax [100] \"Largest radius in units of central mass at which the solution is found\"\n{\n (0:* :: \"dimensionless outer radius for Bondi solution\"\n} 400. \n\nCCTK_REAL n_bondi_pts [100] \"Number of points to use in determining global Bondi solution\"\n{\n (1:* :: \"number of points in global Bondi solution\"\n} 2000\n\nCCTK_REAL bondi_bmag \"B_0 parameter for magnetized Bondi\"\n{\n 0:* :: \"Anything positive\"\n} 0.01\n\nCCTK_REAL bondi_radial_offset \"redefine r_grid=r_KS-r0 to avoid singularity on grid\"\n{\n 0:* :: \"Any positive number\"\n} 0.0\n\nCCTK_BOOLEAN set_bondi_beta_sonicpt \"Set plasma beta parameter instead of bondi_bmag\"\n{\n} no\n\nCCTK_REAL bondi_beta_sonicpt \"Plasma beta parameter at the sonic point. Calculate bondi_bmag afterwards.\"\n{\n (0:* :: \"positive\"\n} 1.0\n\nCCTK_KEYWORD bondi_Bvec_method \"how to compute the magnetic field vector\"\n{\n \"direct\" :: \"directly from Cartesian metric\"\n \"transform\" :: \"transform Schwarzschild solution to Kerr Schild\"\n} \"direct\"\n\nCCTK_BOOLEAN bondi_evolve_only_annulus \"reset to initial data outside of bondi_freeze_inner_radius and bondi_freeze_outer_radius\"\n{\n} \"no\"\n\nCCTK_REAL bondi_freeze_inner_radius \"reset to initial at radii below this\"\n{\n *:* :: \"any value\"\n} -1.\n\nCCTK_REAL bondi_freeze_outer_radius \"reset to initial at radii above this\"\n{\n *:* :: \"any value\"\n} 1e300\n\nCCTK_BOOLEAN bondi_overwrite_boundary \"reset data to initial data in outer boundary in boundary condition\"\n{\n} \"no\"\n\n# For Poloidal Magnetic field test:\n\nCCTK_REAL poloidal_A_b \"Vector potential strength\"\n{\n *:* :: \"Anything.\"\n} 0.1\n\nCCTK_INT poloidal_n_p \"Vector potential strength\"\n{\n 0:* :: \"Any positive integer.\"\n} 3\n\nCCTK_REAL poloidal_P_cut \"Pressure used to confine the B field inside a star\"\n{\n (0:* :: \"Anything positive.\"\n} 1.0e-8\n\nCCTK_INT poloidal_P_p \"Index of pressure factor\"\n{\n (0:* :: \"Any non-negative integer\"\n} 1\n\nCCTK_REAL poloidal_rho_max \"Maximum initial density\"\n{\n (0:* :: \"Anything positive.\"\n} 1.0e-3\n\n# for the Magnetic Rotor test:\n# default values are from DelZanna,Bucciantini, and Londrillo A&A 400, 397-413 (2003) though notation differs\n\nCCTK_REAL rotor_xc \"center of rotation\"\n{\n *:* :: \"Any location\"\n} 0.5\n\nCCTK_REAL rotor_yc \"center of rotation\"\n{\n *:* :: \"Any location\"\n} 0.5\n\nCCTK_REAL rotor_bvcxl \"intial component of Bvec[0]\"\n{\n *:* :: \"any real number\"\n} 1.0\n\nCCTK_REAL rotor_bvcyl \"intial component of Bvec[1]\"\n{\n *:* :: \"any real number\"\n} 0.0\n\nCCTK_REAL rotor_bvczl \"intial component of Bvec[2]\"\n{\n *:* :: \"any real number\"\n} 0.0\n \nCCTK_REAL rotor_r_rot \"radius of rotor\"\n{\n (0:* :: \"any positive number\"\n} 0.1\n \nCCTK_REAL rotor_v_max \"Maximum velocity\"\n{\n (-1:1) :: \"any subluminal speed (negative is clockwise)\"\n} 0.995\n\n\nCCTK_REAL rotor_rhoin \"initial density inside rotor\"\n{\n (0:* :: \"any positive number\"\n} 10.d0\n\nCCTK_REAL rotor_pressin \"initial pressure inside rotor\"\n{\n (0:* :: \"any positive number\"\n} 1.d0\n\nCCTK_REAL rotor_rhoout \"initial density outside rotor\"\n{\n (0:* :: \"any positive number\"\n} 1.d0\n\nCCTK_REAL rotor_pressout \"initial pressure outside rotor\"\n{\n (0:* :: \"any positive number\"\n} 1.d0\n\nCCTK_BOOLEAN rotor_use_smoothing \"Smooth the edge?\"\n{\n} yes\n\nCCTK_REAL rotor_rsmooth_rel \"Define the radius in relative terms if so\"\n{\n (0:* :: \"any positive number\"\n} 0.05\n\n\nshares:GRHydro\n\nUSES real GRHydro_eos_rf_prec\nUSES real GRHydro_rho_central\nUSES real GRHydro_eps_min\nUSES real GRHydro_perc_ptol\nUSES real GRHydro_del_ptol\nUSES keyword GRHydro_eos_type\nUSES string GRHydro_eos_table\nUSES real rho_abs_min\nUSES real rho_rel_min\nUSES REAL initial_rho_abs_min\nUSES REAL initial_rho_rel_min\nUSES REAL initial_atmosphere_factor\nUSES int GRHydro_stencil\nUSES BOOLEAN clean_divergence\n\nshares:EOS_Omni\nUSES REAL gl_gamma\nUSES BOOLEAN nuceos_read_table\n", "schedule": "# Schedule definitions for thorn GRHydro_Init_Data\n\nschedule GRHydro_InitData_CheckParameters AT CCTK_PARAMCHECK\n{\n LANG: C\n} \"Check parameters\"\n\nif (CCTK_Equals(initial_hydro,\"monopole\")) {\n schedule GRHydro_MonopoleM in HydroBase_Initial\n {\n LANG: Fortran\n } \"Monopole initial data\"\n}\n\nif (CCTK_Equals(initial_hydro,\"rotor\")) {\n schedule GRHydro_RotorM in HydroBase_Initial\n {\n LANG: Fortran\n } \"MHD rotor initial data\"\n}\n\nif (CCTK_Equals(initial_hydro,\"advectedloop\")) {\n schedule GRHydro_AdvectedLoopM in HydroBase_Initial\n {\n LANG: Fortran\n } \"MHD advected loop initial data\"\n}\n\nif (CCTK_Equals(initial_hydro,\"alfvenwave\")) {\n schedule GRHydro_AlfvenWaveM in HydroBase_Initial\n {\n LANG: Fortran\n } \"Circularly polarized Alfven wave initial data\"\n}\n\nif (CCTK_Equals(initial_hydro,\"shocktube_hot\")) {\n schedule GRHydro_shocktube_hot in HydroBase_Initial AFTER (HydroBase_Y_e_one,HydroBase_Zero)\n {\n LANG: Fortran\n } \"Hot Shocktube initial data\"\n}\n\nif (CCTK_Equals(initial_hydro,\"shocktube\")) {\n if(CCTK_Equals(initial_Bvec,\"shocktube\"))\n {\n schedule GRHydro_shocktubeM in HydroBase_Initial\n {\n LANG: Fortran\n } \"Shocktube initial data - MHD version\"\n\n if(CCTK_Equals(shocktube_type,\"diagshock\")) \n {\n if(clean_divergence){\n schedule GRHydro_Diagshock_BoundaryM IN ApplyBCs AFTER BoundaryConditions AFTER Boundary::Boundary_ClearSelection\n {\n LANG: Fortran\n SYNC: GRHydro::dens, GRHydro::tau, GRHydro::scon, GRHydro::Bcons, GRHydro::psidc\n } \"Diagonal shock boundary conditions\"\n } else {\n schedule GRHydro_Diagshock_BoundaryM IN ApplyBCs AFTER BoundaryConditions AFTER Boundary::Boundary_ClearSelection\n {\n LANG: Fortran\n SYNC: GRHydro::dens, GRHydro::tau, GRHydro::scon, GRHydro::Bcons\n } \"Diagonal shock boundary conditions\"\n }\n }\n\n if(CCTK_Equals(shocktube_type,\"diagshock2d\")) \n {\n schedule GRHydro_Diagshock2D_BoundaryM IN ApplyBCs AFTER BoundaryConditions AFTER Boundary::Boundary_ClearSelection\n {\n LANG: Fortran\n } \"2-D Diagonal shock boundary conditions\"\n }\n\n# if(CCTK_Equals(shocktube_type,\"diagshock2d\")) \n# {\n# if(clean_divergence){\n# schedule GRHydro_Diagshock2D_BoundaryM IN ApplyBCs AFTER BoundaryConditions AFTER Boundary::Boundary_ClearSelection\n# {\n# LANG: Fortran\n# SYNC: GRHydro::dens, GRHydro::tau, GRHydro::scon, GRHydro::Bcons, GRHydro::psidc\n# } \"2-D Diagonal shock boundary conditions\"\n# } else {\n# schedule GRHydro_Diagshock2D_BoundaryM IN ApplyBCs AFTER BoundaryConditions AFTER Boundary::Boundary_ClearSelection\n# {\n# LANG: Fortran\n# SYNC: GRHydro::dens, GRHydro::tau, GRHydro::scon, GRHydro::Bcons\n# } \"2-D Diagonal shock boundary conditions\"\n# }\n# }\n\n } else {\n schedule GRHydro_shocktube in HydroBase_Initial\n {\n LANG: Fortran\n } \"Shocktube initial data\"\n\n }\n}\n\nif (CCTK_Equals(initial_hydro,\"cylexp\")) {\n schedule GRHydro_CylindricalExplosionM in HydroBase_Initial\n {\n LANG: Fortran\n } \"Cylindrical Explosion initial data - MHD-only\"\n}\n\nif (CCTK_Equals(initial_data,\"con2primtest\")) {\n STORAGE:GRHydro_init_data_reflevel\n schedule GRHydro_Init_Data_RefinementLevel IN HydroBase_Initial BEFORE GRHydro_con2primtest\n {\n LANG: Fortran\n } \"Calculate current refinement level\"\n\n schedule GRHydro_con2primtest in HydroBase_Initial\n {\n LANG: Fortran\n } \"Testing the conservative to primitive solver\"\n}\n\nif (CCTK_Equals(initial_data,\"con2prim2con_test\")) {\n STORAGE:GRHydro_init_data_reflevel\n schedule GRHydro_Init_Data_RefinementLevel IN HydroBase_Initial BEFORE c2p2c_call\n {\n LANG: Fortran\n } \"Calculate current refinement level\"\n\n if(CCTK_Equals(Bvec_evolution_method,\"GRHydro\"))\n {\n schedule c2p2cM in HydroBase_Initial AS c2p2c_call\n {\n LANG: Fortran\n } \"Testing conservative to primitive to conservative - MHD version\"\n } else {\n schedule c2p2c in HydroBase_Initial AS c2p2c_call\n {\n LANG: Fortran\n } \"Testing conservative to primitive to conservative\"\n }\n}\n\nif (CCTK_Equals(initial_data,\"prim2con2prim_test\")) {\n STORAGE:GRHydro_init_data_reflevel\n schedule GRHydro_Init_Data_RefinementLevel IN HydroBase_Initial BEFORE p2c2p_call\n {\n LANG: Fortran\n } \"Calculate current refinement level\"\n\n if(CCTK_Equals(Bvec_evolution_method,\"GRHydro\"))\n {\n schedule p2c2pM in HydroBase_Initial AS p2c2p_call\n {\n LANG: Fortran\n } \"Testing primitive to conservative to primitive - MHD version\"\n } else {\n schedule p2c2p in HydroBase_Initial AS p2c2p_call\n {\n LANG: Fortran\n } \"Testing primitive to conservative to primitive\"\n }\n}\n\nif (CCTK_Equals(initial_data,\"prim2con2prim_polytype_test\")) {\n STORAGE:GRHydro_init_data_reflevel\n schedule GRHydro_Init_Data_RefinementLevel IN HydroBase_Initial BEFORE p2c2p_call\n {\n LANG: Fortran\n } \"Calculate current refinement level\"\n\n if(CCTK_Equals(Bvec_evolution_method,\"GRHydro\"))\n {\n schedule p2c2pM_polytype in HydroBase_Initial AS p2c2p_call\n {\n LANG: Fortran\n } \"Testing primitive to conservative to primitive - MHD polytype version\"\n }\n}\n\nif (CCTK_Equals(initial_data,\"reconstruction_test\")) {\n schedule GRHydro_reconstruction_test in HydroBase_Initial\n {\n LANG: Fortran\n STORAGE: GRHydro_prim_bext\n STORAGE: GRHydro_scalars\n OPTIONS: global loop-local\n } \"Testing the reconstruction\"\n}\n\nif (CCTK_Equals(initial_hydro,\"only_atmo\")) {\n schedule GRHydro_Only_Atmo in HydroBase_Initial\n {\n LANG: Fortran\n } \"Only atmosphere as initial data\"\n}\n\nif (CCTK_Equals(initial_hydro,\"read_conformal\")) {\n schedule GRHydro_ReadConformalData in HydroBase_Initial\n {\n LANG: Fortran\n } \"Set the missing quantities, after reading in from file initial data from conformally-flat codes (Garching)\"\n}\n\nif (CCTK_Equals(initial_hydro,\"simple_wave\")) {\n STORAGE: simple_wave_grid_functions\n STORAGE: simple_wave_scalars\n schedule GRHydro_SimpleWave in HydroBase_Initial\n {\n LANG: Fortran\n } \"Set initial data from Anile Miller Motta, Phys.Fluids. 26, 1450 (1983)\"\n\n STORAGE: simple_wave_output\n schedule GRHydro_SimpleWave_Analysis AT CCTK_ANALYSIS AFTER GRHydro_Entropy\n {\n LANG: Fortran\n } \"Compute some output variables for the Simple Wave\"\n\n\n}\n\nif (CCTK_EQUALS(initial_hydro, \"hydro_bondi_solution_iso\"))\n{\n SCHEDULE GRHydro_Bondi_Iso IN HydroBase_Initial AFTER HydroBase_ExcisionMaskSetup\n {\n LANGUAGE: Fortran\n } \"setup GRHydro vars for the hydrodynamic Bondi solution\"\n}\n\nif (CCTK_EQUALS(initial_hydro, \"magnetized_bondi_solution_iso\"))\n{\n SCHEDULE GRHydro_BondiM_Iso IN HydroBase_Initial AFTER HydroBase_ExcisionMaskSetup\n {\n LANGUAGE: Fortran\n } \"setup GRHydro vars for the magnetized Bondi solution\"\n}\n\nif (CCTK_EQUALS(initial_hydro, \"hydro_bondi_solution\"))\n{\n SCHEDULE GRHydro_Bondi IN HydroBase_Initial AFTER HydroBase_ExcisionMaskSetup\n {\n LANGUAGE: C\n } \"setup GRHydro vars for the hydrodynamic Bondi solution\"\n}\n\nif (CCTK_EQUALS(initial_hydro, \"magnetized_bondi_solution\"))\n{\n SCHEDULE GRHydro_BondiM IN HydroBase_Initial AFTER HydroBase_ExcisionMaskSetup\n {\n LANGUAGE: C\n } \"setup GRHydro vars for the magnetized Bondi solution\"\n}\n\nif(bondi_evolve_only_annulus) {\nSCHEDULE GRHydro_BondiM_Range IN HydroBase_Con2Prim BEFORE Con2Prim\n{\n LANG: C\n} \"force analytic solution outside anulus\"\n}\n\nif(bondi_overwrite_boundary ) {\n# this is a terrible HACK. We really should at least schedule ourselves in\n# Boundaries and look at cctk_bbox and the symmetry flags\n# by now Cactus is convenient CCTK_LOOP macros for this...\nSCHEDULE GRHydro_BondiM_Boundary IN HydroBase_Boundaries BEFORE HydroBase_Select_Boundaries\n{\n LANG: C\n} \"force analytic solution in boundaries\"\n}\n\nif (CCTK_EQUALS(initial_Bvec, \"poloidalmagfield\") || CCTK_EQUALS(initial_Avec, \"poloidalmagfield\"))\n{\n# SCHEDULE GRHydro_PoloidalMagFieldM AT CCTK_INITIAL AFTER IN HydroBase_Initial AFTER rnsid_init AFTER TOV_Initial_Data after CCCC_StarMapper_InitialData\n# SCHEDULE GRHydro_PoloidalMagFieldM AT CCTK_POSTINITIAL \n SCHEDULE GRHydro_PoloidalMagFieldM AT CCTK_INITIAL AFTER HydroBase_Initial BEFORE GRHydroTransformPrimToLocalBasis\n {\n LANGUAGE: Fortran\n } \"Set up a poloidal magnetic field. It expects the other fluid variables already to be set, as for example in the TOV solution\"\n# SCHEDULE group HydroBase_Boundaries IN HydroBase_Initial AFTER GRHydro_PoloidalMagFieldM \n SCHEDULE group HydroBase_Boundaries IN CCTK_INITIAL AFTER GRHydro_PoloidalMagFieldM BEFORE GRHydroTransformPrimToLocalBasis\n {\n } \"Call boundary conditions after magnetic field initial data setup\"\n}\n\n", "src": { "GRHydro_ReconstructTest.F90": " /*@@\n @file GRHydro_ReconstructTest.F90\n @date Sat Jan 26 02:51:49 2002\n @author Luca Baiotti\n @desc \n A test of the reconstruction algorithm.\n @enddesc \n @@*/\n\n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Parameters.h\"\n\n /*@@\n @routine GRHydro_reconstruction_test\n @date Sat Jan 26 02:52:17 2002\n @author Luca Baiotti\n @desc \n Tests the reconstruction method by giving smoothly varying initial\n data with a shock along the x axis.\n @enddesc \n @calls \n @calledby \n @history \n \n @endhistory \n\n@@*/\n\nsubroutine GRHydro_reconstruction_test(CCTK_ARGUMENTS)\n\n implicit none\n \n DECLARE_CCTK_ARGUMENTS\n DECLARE_CCTK_PARAMETERS\n \n integer i, j, k, nx, ny, nz, ierr\n\n logical, dimension(:,:,:), allocatable :: trivial_rp\n\n allocate(trivial_rp(cctk_lsh(1),cctk_lsh(2),cctk_lsh(3)),STAT=ierr)\n if (ierr .ne. 0) then\n call CCTK_WARN(0, \"Allocation problems with trivial_rp\")\n end if\n trivial_rp = .false.\n\n nx = cctk_lsh(1)\n ny = cctk_lsh(2)\n nz = cctk_lsh(3)\n \n xoffset = 1\n yoffset = 0\n zoffset = 0\n \n do k=1, cctk_lsh(3)\n do j=1, cctk_lsh(2)\n do i=1, cctk_lsh(1)\n if (i < 8) then \n rho(i,j,k) = 5+sin(real(i+j+k)/2.)\n else \n rho(i,j,k) = 1+sin(real(i+j+k)/2.)\n end if\n end do\n end do\n end do\n \n call tvdreconstruct(nx, ny, nz, xoffset, yoffset, zoffset, &\n rho, rhoplus, rhominus, trivial_rp, hydro_excision_mask)\n deallocate(trivial_rp)\n \n open(unit=11,file='original.dat',status='unknown')\n do i=1, CCTK_LSH(1)\n write(11,*) i, rho(i,4,7)\n write(*,*) i, rho(i,4,7)\n end do\n close(11)\n \n open(unit=12,file='extensions.dat',status='unknown')\n do i=2, CCTK_LSH(1)-1\n write(12,*) i-0.5, rhominus(i,4,7)\n write(12,*) i+0.5, rhoplus(i,4,7)\n end do\n close(12)\n \n \n write(*,*) 'test_reconstruction: done tvdreconstruct.'\n write(*,*) 'data written in files original.dat and extension.dat'\n \n stop\n \n return\n \nend subroutine GRHydro_reconstruction_test\n", diff --git a/EinsteinEvolve_NewRad.json b/EinsteinEvolve_NewRad.json index 1fabd63b31dfd98d65f2a7cad083c186ddb491b1..9cd4e2928d6f70df763741e18afc5516c6eb64fd 100644 --- a/EinsteinEvolve_NewRad.json +++ b/EinsteinEvolve_NewRad.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinevolve.git", "configuration": "# Configuration definition for thorn NewRad\n\nREQUIRES GenericFD\n", "interface": "# Interface definition for thorn NewRad\n\nIMPLEMENTS: NewRad\n\nUSES INCLUDE HEADER: GenericFD.h\n\nCCTK_INT FUNCTION \\\n ExtrapolateGammas \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_REAL ARRAY INOUT var)\nPROVIDES FUNCTION ExtrapolateGammas WITH ExtrapolateGammas1 LANGUAGE C\n\nCCTK_INT FUNCTION \\\n NewRad_Apply \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_REAL ARRAY IN var, \\\n CCTK_REAL ARRAY INOUT rhs, \\\n CCTK_REAL IN var0, \\\n CCTK_REAL IN v0, \\\n CCTK_INT IN radpower)\nPROVIDES FUNCTION NewRad_Apply WITH NewRad_Apply1 LANGUAGE C\n", - "params": "", + "param": "# Parameter definitions for thorn NewRad\n\nCCTK_BOOLEAN z_is_radial \"Consider the local z direction to be the radial one; use with Llama\"\n{\n} \"no\"\n", "schedule": "# Schedule definitions for thorn NewRad\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn NewRad\n\n# Source files in this directory\nSRCS = extrap.cc newrad.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/EinsteinExact_EinsteinExact_Test.json b/EinsteinExact_EinsteinExact_Test.json index 1ed3fb60fd19d0c0a1c681e51734370163a92817..cc8c9b3ad6704e33d2dfee08817a0163ff3352dd 100644 --- a/EinsteinExact_EinsteinExact_Test.json +++ b/EinsteinExact_EinsteinExact_Test.json @@ -3,7 +3,7 @@ "url": "https://github.com/barrywardell/EinsteinExact.git", "configuration": "", "interface": "implements: EinsteinExact_Test\n", - "params": "", + "param": "", "schedule": "", "src": { "make.code.defn": "" diff --git a/EinsteinExact_GaugeWave.json b/EinsteinExact_GaugeWave.json index cd55c42a020980f34ddc2c4a48d3884a57415ead..57a416c0f6a655de7866317f48da0fa09118c3d7 100644 --- a/EinsteinExact_GaugeWave.json +++ b/EinsteinExact_GaugeWave.json @@ -3,7 +3,7 @@ "url": "https://github.com/barrywardell/EinsteinExact.git", "configuration": "# File produced by Kranc\n\nREQUIRES GenericFD\nOPTIONAL LoopControl\n{\n}\n", "interface": "# File produced by Kranc\n\nimplements: GaugeWave\n\ninherits: admbase Boundary GenericFD Grid\n\n\n\nUSES INCLUDE: loopcontrol.h\nUSES INCLUDE: Symmetry.h\nUSES INCLUDE: Boundary.h\n\nCCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex)\nUSES FUNCTION MoLRegisterEvolved\n\nSUBROUTINE Diff_coeff(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN dir, CCTK_INT IN nsize, CCTK_INT OUT ARRAY imin, CCTK_INT OUT ARRAY imax, CCTK_REAL OUT ARRAY q, CCTK_INT IN table_handle)\nUSES FUNCTION Diff_coeff\n\nCCTK_INT FUNCTION MultiPatch_GetMap(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n\nCCTK_INT FUNCTION MultiPatch_GetBbox(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN size, CCTK_INT OUT ARRAY bbox)\nUSES FUNCTION MultiPatch_GetBbox\n\nCCTK_INT FUNCTION GetBoundarySpecification(CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\nCCTK_INT FUNCTION MultiPatch_GetBoundarySpecification(CCTK_INT IN map, CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION MultiPatch_GetBoundarySpecification\n\nCCTK_INT FUNCTION SymmetryTableHandleForGrid(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION SymmetryTableHandleForGrid\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT FUNCTION Driver_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectGroupForBC\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectVarForBC\n\nCCTK_INT FUNCTION Driver_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectVarForBC\n\npublic:\nCCTK_REAL metric_exact type=GF timelevels=1 tags='tensortypealias=\"DD_sym\" tensorweight=0'\n{\n gExact11,\n gExact12,\n gExact13,\n gExact22,\n gExact23,\n gExact33\n} \"metric_exact\"\n\npublic:\nCCTK_REAL curv_exact type=GF timelevels=1 tags='tensortypealias=\"DD_sym\" tensorweight=0'\n{\n kExact11,\n kExact12,\n kExact13,\n kExact22,\n kExact23,\n kExact33\n} \"curv_exact\"\n\npublic:\nCCTK_REAL lapse_exact type=GF timelevels=1 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n alpExact\n} \"lapse_exact\"\n\npublic:\nCCTK_REAL dtlapse_exact type=GF timelevels=1 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n dtalpExact\n} \"dtlapse_exact\"\n\npublic:\nCCTK_REAL shift_exact type=GF timelevels=1 tags='tensortypealias=\"U\" tensorweight=0'\n{\n betaExact1,\n betaExact2,\n betaExact3\n} \"shift_exact\"\n\npublic:\nCCTK_REAL dtshift_exact type=GF timelevels=1 tags='tensortypealias=\"U\" tensorweight=0'\n{\n dtbetaExact1,\n dtbetaExact2,\n dtbetaExact3\n} \"dtshift_exact\"\n", - "params": "", + "param": "# File produced by Kranc\n\n\nshares: ADMBase\n\n\nEXTENDS CCTK_KEYWORD initial_data \"initial_data\"\n{\n \"GaugeWave\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_lapse \"initial_lapse\"\n{\n \"GaugeWave\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_shift \"initial_shift\"\n{\n \"GaugeWave\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_dtlapse \"initial_dtlapse\"\n{\n \"GaugeWave\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_dtshift \"initial_dtshift\"\n{\n \"GaugeWave\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD evolution_method \"evolution_method\"\n{\n \"GaugeWave\" :: \"\"\n} \n\n\n\nshares: GenericFD\n\nUSES CCTK_INT assume_stress_energy_state\n\n\nshares: MethodOfLines\n\nUSES CCTK_INT MoL_Num_Evolved_Vars\nUSES CCTK_INT MoL_Num_ArrayEvolved_Vars\n\nrestricted:\nCCTK_INT verbose \"verbose\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT other_timelevels \"Number of active timelevels for non-evolved grid functions\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL timeoffset \"timeoffset\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL positionx \"positionx\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL positiony \"positiony\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL positionz \"positionz\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL theta \"theta\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL phi \"phi\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL psi \"psi\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL lapsefactor \"lapsefactor\"\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL boostx \"boostx\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL boosty \"boosty\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL boostz \"boostz\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftaddx \"shiftaddx\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftaddy \"shiftaddy\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftaddz \"shiftaddz\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL amp \"amp\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL period \"period\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT tile_size \"Loop tile size\"\n{\n *:* :: \"\"\n} -1\n\nprivate:\nCCTK_KEYWORD exact_method \"exact_method\"\n{\n \"none\" :: \"\"\n \"GaugeWave\" :: \"\"\n} \"none\"\n\nrestricted:\nCCTK_INT GaugeWave_MaxNumEvolvedVars \"Number of evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Evolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT GaugeWave_MaxNumArrayEvolvedVars \"Number of Array evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_ArrayEvolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of Array evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT timelevels \"Number of active timelevels\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 3\n\nrestricted:\nCCTK_INT rhs_timelevels \"Number of active RHS timelevels\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 1\n\nrestricted:\nCCTK_INT GaugeWave_initial_calc_every \"GaugeWave_initial_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT GaugeWave_always_calc_every \"GaugeWave_always_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT GaugeWave_exact_calc_every \"GaugeWave_exact_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT GaugeWave_initial_calc_offset \"GaugeWave_initial_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT GaugeWave_always_calc_offset \"GaugeWave_always_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT GaugeWave_exact_calc_offset \"GaugeWave_exact_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\n", "schedule": "# File produced by Kranc\n\nSTORAGE: metric_exact[other_timelevels]\n\nSTORAGE: curv_exact[other_timelevels]\n\nSTORAGE: lapse_exact[other_timelevels]\n\nSTORAGE: dtlapse_exact[other_timelevels]\n\nSTORAGE: shift_exact[other_timelevels]\n\nSTORAGE: dtshift_exact[other_timelevels]\nschedule GaugeWave_Startup at STARTUP\n{\n LANG: C\n OPTIONS: meta\n} \"create banner\"\n\nschedule GaugeWave_RegisterSymmetries in SymmetryRegister\n{\n LANG: C\n OPTIONS: meta\n} \"register symmetries\"\n\nif (CCTK_EQUALS(initial_data, \"GaugeWave\"))\n{\n schedule GaugeWave_initial in ADMBase_InitialData\n {\n LANG: C\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: admbase::alp(Everywhere)\n WRITES: admbase::betax(Everywhere)\n WRITES: admbase::betay(Everywhere)\n WRITES: admbase::betaz(Everywhere)\n WRITES: admbase::dtalp(Everywhere)\n WRITES: admbase::dtbetax(Everywhere)\n WRITES: admbase::dtbetay(Everywhere)\n WRITES: admbase::dtbetaz(Everywhere)\n WRITES: admbase::gxx(Everywhere)\n WRITES: admbase::gxy(Everywhere)\n WRITES: admbase::gxz(Everywhere)\n WRITES: admbase::gyy(Everywhere)\n WRITES: admbase::gyz(Everywhere)\n WRITES: admbase::gzz(Everywhere)\n WRITES: admbase::kxx(Everywhere)\n WRITES: admbase::kxy(Everywhere)\n WRITES: admbase::kxz(Everywhere)\n WRITES: admbase::kyy(Everywhere)\n WRITES: admbase::kyz(Everywhere)\n WRITES: admbase::kzz(Everywhere)\n } \"GaugeWave_initial\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"GaugeWave\"))\n{\n schedule GaugeWave_always at CCTK_PRESTEP\n {\n LANG: C\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: admbase::alp(Everywhere)\n WRITES: admbase::betax(Everywhere)\n WRITES: admbase::betay(Everywhere)\n WRITES: admbase::betaz(Everywhere)\n WRITES: admbase::dtalp(Everywhere)\n WRITES: admbase::dtbetax(Everywhere)\n WRITES: admbase::dtbetay(Everywhere)\n WRITES: admbase::dtbetaz(Everywhere)\n WRITES: admbase::gxx(Everywhere)\n WRITES: admbase::gxy(Everywhere)\n WRITES: admbase::gxz(Everywhere)\n WRITES: admbase::gyy(Everywhere)\n WRITES: admbase::gyz(Everywhere)\n WRITES: admbase::gzz(Everywhere)\n WRITES: admbase::kxx(Everywhere)\n WRITES: admbase::kxy(Everywhere)\n WRITES: admbase::kxz(Everywhere)\n WRITES: admbase::kyy(Everywhere)\n WRITES: admbase::kyz(Everywhere)\n WRITES: admbase::kzz(Everywhere)\n } \"GaugeWave_always\"\n}\n\nif (CCTK_EQUALS(exact_method, \"GaugeWave\"))\n{\n schedule GaugeWave_exact at CCTK_ANALYSIS\n {\n LANG: C\n READS: admbase::gxx(Everywhere)\n READS: admbase::gxy(Everywhere)\n READS: admbase::gxz(Everywhere)\n READS: admbase::gyy(Everywhere)\n READS: admbase::gyz(Everywhere)\n READS: admbase::gzz(Everywhere)\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: GaugeWave::alpExact(Everywhere)\n WRITES: GaugeWave::betaExact1(Everywhere)\n WRITES: GaugeWave::betaExact2(Everywhere)\n WRITES: GaugeWave::betaExact3(Everywhere)\n WRITES: GaugeWave::dtalpExact(Everywhere)\n WRITES: GaugeWave::dtbetaExact1(Everywhere)\n WRITES: GaugeWave::dtbetaExact2(Everywhere)\n WRITES: GaugeWave::dtbetaExact3(Everywhere)\n WRITES: GaugeWave::gExact11(Everywhere)\n WRITES: GaugeWave::gExact12(Everywhere)\n WRITES: GaugeWave::gExact13(Everywhere)\n WRITES: GaugeWave::gExact22(Everywhere)\n WRITES: GaugeWave::gExact23(Everywhere)\n WRITES: GaugeWave::gExact33(Everywhere)\n WRITES: GaugeWave::kExact11(Everywhere)\n WRITES: GaugeWave::kExact12(Everywhere)\n WRITES: GaugeWave::kExact13(Everywhere)\n WRITES: GaugeWave::kExact22(Everywhere)\n WRITES: GaugeWave::kExact23(Everywhere)\n WRITES: GaugeWave::kExact33(Everywhere)\n } \"GaugeWave_exact\"\n}\n\nschedule GaugeWave_SelectBoundConds in MoL_PostStep\n{\n LANG: C\n OPTIONS: level\n} \"select boundary conditions\"\n\nschedule GaugeWave_CheckBoundaries at BASEGRID\n{\n LANG: C\n OPTIONS: meta\n} \"check boundaries treatment\"\n\nschedule GaugeWave_RegisterVars in MoL_Register\n{\n LANG: C\n OPTIONS: meta\n} \"Register Variables for MoL\"\n\nschedule GaugeWave_ParamCheck at PARAMCHECK\n{\n LANG: C\n OPTIONS: global\n} \"Check parameter consistency\"\nschedule group ApplyBCs as GaugeWave_ApplyBCs in MoL_PostStep after GaugeWave_SelectBoundConds\n{\n} \"Apply boundary conditions controlled by thorn Boundary\"\n", "src": { "make.code.defn": "# File produced by Kranc\n\nSRCS = Boundaries.cc GaugeWave_always.cc GaugeWave_exact.cc GaugeWave_initial.cc Kranc.cc ParamCheck.cc RegisterMoL.cc RegisterSymmetries.cc Startup.cc \n", diff --git a/EinsteinExact_KerrSchild.json b/EinsteinExact_KerrSchild.json index 5db396daa262f3770bc88b3092e09118f5094bb4..09a35703fc7a327288117ab10430248c8a9b4647 100644 --- a/EinsteinExact_KerrSchild.json +++ b/EinsteinExact_KerrSchild.json @@ -3,7 +3,7 @@ "url": "https://github.com/barrywardell/EinsteinExact.git", "configuration": "# File produced by Kranc\n\nREQUIRES GenericFD\nOPTIONAL LoopControl\n{\n}\n", "interface": "# File produced by Kranc\n\nimplements: KerrSchild\n\ninherits: admbase Boundary GenericFD Grid\n\n\n\nUSES INCLUDE: loopcontrol.h\nUSES INCLUDE: Symmetry.h\nUSES INCLUDE: Boundary.h\n\nCCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex)\nUSES FUNCTION MoLRegisterEvolved\n\nSUBROUTINE Diff_coeff(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN dir, CCTK_INT IN nsize, CCTK_INT OUT ARRAY imin, CCTK_INT OUT ARRAY imax, CCTK_REAL OUT ARRAY q, CCTK_INT IN table_handle)\nUSES FUNCTION Diff_coeff\n\nCCTK_INT FUNCTION MultiPatch_GetMap(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n\nCCTK_INT FUNCTION MultiPatch_GetBbox(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN size, CCTK_INT OUT ARRAY bbox)\nUSES FUNCTION MultiPatch_GetBbox\n\nCCTK_INT FUNCTION GetBoundarySpecification(CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\nCCTK_INT FUNCTION MultiPatch_GetBoundarySpecification(CCTK_INT IN map, CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION MultiPatch_GetBoundarySpecification\n\nCCTK_INT FUNCTION SymmetryTableHandleForGrid(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION SymmetryTableHandleForGrid\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT FUNCTION Driver_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectGroupForBC\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectVarForBC\n\nCCTK_INT FUNCTION Driver_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectVarForBC\n\npublic:\nCCTK_REAL metric_exact type=GF timelevels=1 tags='tensortypealias=\"DD_sym\" tensorweight=0'\n{\n gExact11,\n gExact12,\n gExact13,\n gExact22,\n gExact23,\n gExact33\n} \"metric_exact\"\n\npublic:\nCCTK_REAL curv_exact type=GF timelevels=1 tags='tensortypealias=\"DD_sym\" tensorweight=0'\n{\n kExact11,\n kExact12,\n kExact13,\n kExact22,\n kExact23,\n kExact33\n} \"curv_exact\"\n\npublic:\nCCTK_REAL lapse_exact type=GF timelevels=1 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n alpExact\n} \"lapse_exact\"\n\npublic:\nCCTK_REAL dtlapse_exact type=GF timelevels=1 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n dtalpExact\n} \"dtlapse_exact\"\n\npublic:\nCCTK_REAL shift_exact type=GF timelevels=1 tags='tensortypealias=\"U\" tensorweight=0'\n{\n betaExact1,\n betaExact2,\n betaExact3\n} \"shift_exact\"\n\npublic:\nCCTK_REAL dtshift_exact type=GF timelevels=1 tags='tensortypealias=\"U\" tensorweight=0'\n{\n dtbetaExact1,\n dtbetaExact2,\n dtbetaExact3\n} \"dtshift_exact\"\n", - "params": "", + "param": "# File produced by Kranc\n\n\nshares: ADMBase\n\n\nEXTENDS CCTK_KEYWORD initial_data \"initial_data\"\n{\n \"KerrSchild\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_lapse \"initial_lapse\"\n{\n \"KerrSchild\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_shift \"initial_shift\"\n{\n \"KerrSchild\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_dtlapse \"initial_dtlapse\"\n{\n \"KerrSchild\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_dtshift \"initial_dtshift\"\n{\n \"KerrSchild\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD evolution_method \"evolution_method\"\n{\n \"KerrSchild\" :: \"\"\n} \n\n\n\nshares: GenericFD\n\nUSES CCTK_INT assume_stress_energy_state\n\n\nshares: MethodOfLines\n\nUSES CCTK_INT MoL_Num_Evolved_Vars\nUSES CCTK_INT MoL_Num_ArrayEvolved_Vars\n\nrestricted:\nCCTK_INT verbose \"verbose\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT other_timelevels \"Number of active timelevels for non-evolved grid functions\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL timeoffset \"timeoffset\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL positionx \"positionx\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL positiony \"positiony\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL positionz \"positionz\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL theta \"theta\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL phi \"phi\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL psi \"psi\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL lapsefactor \"lapsefactor\"\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL boostx \"boostx\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL boosty \"boosty\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL boostz \"boostz\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftaddx \"shiftaddx\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftaddy \"shiftaddy\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftaddz \"shiftaddz\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL M \"M\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL a \"a\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT tile_size \"Loop tile size\"\n{\n *:* :: \"\"\n} -1\n\nprivate:\nCCTK_KEYWORD exact_method \"exact_method\"\n{\n \"none\" :: \"\"\n \"KerrSchild\" :: \"\"\n} \"none\"\n\nrestricted:\nCCTK_INT KerrSchild_MaxNumEvolvedVars \"Number of evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Evolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT KerrSchild_MaxNumArrayEvolvedVars \"Number of Array evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_ArrayEvolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of Array evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT timelevels \"Number of active timelevels\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 3\n\nrestricted:\nCCTK_INT rhs_timelevels \"Number of active RHS timelevels\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 1\n\nrestricted:\nCCTK_INT KerrSchild_initial_calc_every \"KerrSchild_initial_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT KerrSchild_always_calc_every \"KerrSchild_always_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT KerrSchild_exact_calc_every \"KerrSchild_exact_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT KerrSchild_initial_calc_offset \"KerrSchild_initial_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT KerrSchild_always_calc_offset \"KerrSchild_always_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT KerrSchild_exact_calc_offset \"KerrSchild_exact_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\n", "schedule": "# File produced by Kranc\n\nSTORAGE: metric_exact[other_timelevels]\n\nSTORAGE: curv_exact[other_timelevels]\n\nSTORAGE: lapse_exact[other_timelevels]\n\nSTORAGE: dtlapse_exact[other_timelevels]\n\nSTORAGE: shift_exact[other_timelevels]\n\nSTORAGE: dtshift_exact[other_timelevels]\nschedule KerrSchild_Startup at STARTUP\n{\n LANG: C\n OPTIONS: meta\n} \"create banner\"\n\nschedule KerrSchild_RegisterSymmetries in SymmetryRegister\n{\n LANG: C\n OPTIONS: meta\n} \"register symmetries\"\n\nif (CCTK_EQUALS(initial_data, \"KerrSchild\"))\n{\n schedule KerrSchild_initial in ADMBase_InitialData\n {\n LANG: C\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: admbase::alp(Everywhere)\n WRITES: admbase::betax(Everywhere)\n WRITES: admbase::betay(Everywhere)\n WRITES: admbase::betaz(Everywhere)\n WRITES: admbase::dtalp(Everywhere)\n WRITES: admbase::dtbetax(Everywhere)\n WRITES: admbase::dtbetay(Everywhere)\n WRITES: admbase::dtbetaz(Everywhere)\n WRITES: admbase::gxx(Everywhere)\n WRITES: admbase::gxy(Everywhere)\n WRITES: admbase::gxz(Everywhere)\n WRITES: admbase::gyy(Everywhere)\n WRITES: admbase::gyz(Everywhere)\n WRITES: admbase::gzz(Everywhere)\n WRITES: admbase::kxx(Everywhere)\n WRITES: admbase::kxy(Everywhere)\n WRITES: admbase::kxz(Everywhere)\n WRITES: admbase::kyy(Everywhere)\n WRITES: admbase::kyz(Everywhere)\n WRITES: admbase::kzz(Everywhere)\n } \"KerrSchild_initial\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"KerrSchild\"))\n{\n schedule KerrSchild_always at CCTK_PRESTEP\n {\n LANG: C\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: admbase::alp(Everywhere)\n WRITES: admbase::betax(Everywhere)\n WRITES: admbase::betay(Everywhere)\n WRITES: admbase::betaz(Everywhere)\n WRITES: admbase::dtalp(Everywhere)\n WRITES: admbase::dtbetax(Everywhere)\n WRITES: admbase::dtbetay(Everywhere)\n WRITES: admbase::dtbetaz(Everywhere)\n WRITES: admbase::gxx(Everywhere)\n WRITES: admbase::gxy(Everywhere)\n WRITES: admbase::gxz(Everywhere)\n WRITES: admbase::gyy(Everywhere)\n WRITES: admbase::gyz(Everywhere)\n WRITES: admbase::gzz(Everywhere)\n WRITES: admbase::kxx(Everywhere)\n WRITES: admbase::kxy(Everywhere)\n WRITES: admbase::kxz(Everywhere)\n WRITES: admbase::kyy(Everywhere)\n WRITES: admbase::kyz(Everywhere)\n WRITES: admbase::kzz(Everywhere)\n } \"KerrSchild_always\"\n}\n\nif (CCTK_EQUALS(exact_method, \"KerrSchild\"))\n{\n schedule KerrSchild_exact at CCTK_ANALYSIS\n {\n LANG: C\n READS: admbase::gxx(Everywhere)\n READS: admbase::gxy(Everywhere)\n READS: admbase::gxz(Everywhere)\n READS: admbase::gyy(Everywhere)\n READS: admbase::gyz(Everywhere)\n READS: admbase::gzz(Everywhere)\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: KerrSchild::alpExact(Everywhere)\n WRITES: KerrSchild::betaExact1(Everywhere)\n WRITES: KerrSchild::betaExact2(Everywhere)\n WRITES: KerrSchild::betaExact3(Everywhere)\n WRITES: KerrSchild::dtalpExact(Everywhere)\n WRITES: KerrSchild::dtbetaExact1(Everywhere)\n WRITES: KerrSchild::dtbetaExact2(Everywhere)\n WRITES: KerrSchild::dtbetaExact3(Everywhere)\n WRITES: KerrSchild::gExact11(Everywhere)\n WRITES: KerrSchild::gExact12(Everywhere)\n WRITES: KerrSchild::gExact13(Everywhere)\n WRITES: KerrSchild::gExact22(Everywhere)\n WRITES: KerrSchild::gExact23(Everywhere)\n WRITES: KerrSchild::gExact33(Everywhere)\n WRITES: KerrSchild::kExact11(Everywhere)\n WRITES: KerrSchild::kExact12(Everywhere)\n WRITES: KerrSchild::kExact13(Everywhere)\n WRITES: KerrSchild::kExact22(Everywhere)\n WRITES: KerrSchild::kExact23(Everywhere)\n WRITES: KerrSchild::kExact33(Everywhere)\n } \"KerrSchild_exact\"\n}\n\nschedule KerrSchild_SelectBoundConds in MoL_PostStep\n{\n LANG: C\n OPTIONS: level\n} \"select boundary conditions\"\n\nschedule KerrSchild_CheckBoundaries at BASEGRID\n{\n LANG: C\n OPTIONS: meta\n} \"check boundaries treatment\"\n\nschedule KerrSchild_RegisterVars in MoL_Register\n{\n LANG: C\n OPTIONS: meta\n} \"Register Variables for MoL\"\n\nschedule KerrSchild_ParamCheck at PARAMCHECK\n{\n LANG: C\n OPTIONS: global\n} \"Check parameter consistency\"\nschedule group ApplyBCs as KerrSchild_ApplyBCs in MoL_PostStep after KerrSchild_SelectBoundConds\n{\n} \"Apply boundary conditions controlled by thorn Boundary\"\n", "src": { "make.code.defn": "# File produced by Kranc\n\nSRCS = Boundaries.cc KerrSchild_always.cc KerrSchild_exact.cc KerrSchild_initial.cc Kranc.cc ParamCheck.cc RegisterMoL.cc RegisterSymmetries.cc Startup.cc \n", diff --git a/EinsteinExact_Minkowski.json b/EinsteinExact_Minkowski.json index 226ce6843f136f19a5f7786220f34051d8d1aa16..7565cd9f64a479370887fcddd97e03f04b144688 100644 --- a/EinsteinExact_Minkowski.json +++ b/EinsteinExact_Minkowski.json @@ -3,7 +3,7 @@ "url": "https://github.com/barrywardell/EinsteinExact.git", "configuration": "# File produced by Kranc\n\nREQUIRES GenericFD\nOPTIONAL LoopControl\n{\n}\n", "interface": "# File produced by Kranc\n\nimplements: Minkowski\n\ninherits: admbase Boundary GenericFD Grid\n\n\n\nUSES INCLUDE: loopcontrol.h\nUSES INCLUDE: Symmetry.h\nUSES INCLUDE: Boundary.h\n\nCCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex)\nUSES FUNCTION MoLRegisterEvolved\n\nSUBROUTINE Diff_coeff(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN dir, CCTK_INT IN nsize, CCTK_INT OUT ARRAY imin, CCTK_INT OUT ARRAY imax, CCTK_REAL OUT ARRAY q, CCTK_INT IN table_handle)\nUSES FUNCTION Diff_coeff\n\nCCTK_INT FUNCTION MultiPatch_GetMap(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n\nCCTK_INT FUNCTION MultiPatch_GetBbox(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN size, CCTK_INT OUT ARRAY bbox)\nUSES FUNCTION MultiPatch_GetBbox\n\nCCTK_INT FUNCTION GetBoundarySpecification(CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\nCCTK_INT FUNCTION MultiPatch_GetBoundarySpecification(CCTK_INT IN map, CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION MultiPatch_GetBoundarySpecification\n\nCCTK_INT FUNCTION SymmetryTableHandleForGrid(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION SymmetryTableHandleForGrid\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT FUNCTION Driver_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectGroupForBC\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectVarForBC\n\nCCTK_INT FUNCTION Driver_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectVarForBC\n\npublic:\nCCTK_REAL metric_exact type=GF timelevels=1 tags='tensortypealias=\"DD_sym\" tensorweight=0'\n{\n gExact11,\n gExact12,\n gExact13,\n gExact22,\n gExact23,\n gExact33\n} \"metric_exact\"\n\npublic:\nCCTK_REAL curv_exact type=GF timelevels=1 tags='tensortypealias=\"DD_sym\" tensorweight=0'\n{\n kExact11,\n kExact12,\n kExact13,\n kExact22,\n kExact23,\n kExact33\n} \"curv_exact\"\n\npublic:\nCCTK_REAL lapse_exact type=GF timelevels=1 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n alpExact\n} \"lapse_exact\"\n\npublic:\nCCTK_REAL dtlapse_exact type=GF timelevels=1 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n dtalpExact\n} \"dtlapse_exact\"\n\npublic:\nCCTK_REAL shift_exact type=GF timelevels=1 tags='tensortypealias=\"U\" tensorweight=0'\n{\n betaExact1,\n betaExact2,\n betaExact3\n} \"shift_exact\"\n\npublic:\nCCTK_REAL dtshift_exact type=GF timelevels=1 tags='tensortypealias=\"U\" tensorweight=0'\n{\n dtbetaExact1,\n dtbetaExact2,\n dtbetaExact3\n} \"dtshift_exact\"\n", - "params": "", + "param": "# File produced by Kranc\n\n\nshares: ADMBase\n\n\nEXTENDS CCTK_KEYWORD initial_data \"initial_data\"\n{\n \"Minkowski\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_lapse \"initial_lapse\"\n{\n \"Minkowski\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_shift \"initial_shift\"\n{\n \"Minkowski\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_dtlapse \"initial_dtlapse\"\n{\n \"Minkowski\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_dtshift \"initial_dtshift\"\n{\n \"Minkowski\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD evolution_method \"evolution_method\"\n{\n \"Minkowski\" :: \"\"\n} \n\n\n\nshares: GenericFD\n\nUSES CCTK_INT assume_stress_energy_state\n\n\nshares: MethodOfLines\n\nUSES CCTK_INT MoL_Num_Evolved_Vars\nUSES CCTK_INT MoL_Num_ArrayEvolved_Vars\n\nrestricted:\nCCTK_INT verbose \"verbose\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT other_timelevels \"Number of active timelevels for non-evolved grid functions\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL timeoffset \"timeoffset\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL positionx \"positionx\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL positiony \"positiony\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL positionz \"positionz\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL theta \"theta\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL phi \"phi\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL psi \"psi\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL lapsefactor \"lapsefactor\"\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL boostx \"boostx\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL boosty \"boosty\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL boostz \"boostz\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftaddx \"shiftaddx\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftaddy \"shiftaddy\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftaddz \"shiftaddz\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT tile_size \"Loop tile size\"\n{\n *:* :: \"\"\n} -1\n\nprivate:\nCCTK_KEYWORD exact_method \"exact_method\"\n{\n \"none\" :: \"\"\n \"Minkowski\" :: \"\"\n} \"none\"\n\nrestricted:\nCCTK_INT Minkowski_MaxNumEvolvedVars \"Number of evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Evolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT Minkowski_MaxNumArrayEvolvedVars \"Number of Array evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_ArrayEvolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of Array evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT timelevels \"Number of active timelevels\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 3\n\nrestricted:\nCCTK_INT rhs_timelevels \"Number of active RHS timelevels\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 1\n\nrestricted:\nCCTK_INT Minkowski_initial_calc_every \"Minkowski_initial_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT Minkowski_always_calc_every \"Minkowski_always_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT Minkowski_exact_calc_every \"Minkowski_exact_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT Minkowski_initial_calc_offset \"Minkowski_initial_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT Minkowski_always_calc_offset \"Minkowski_always_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT Minkowski_exact_calc_offset \"Minkowski_exact_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\n", "schedule": "# File produced by Kranc\n\nSTORAGE: metric_exact[other_timelevels]\n\nSTORAGE: curv_exact[other_timelevels]\n\nSTORAGE: lapse_exact[other_timelevels]\n\nSTORAGE: dtlapse_exact[other_timelevels]\n\nSTORAGE: shift_exact[other_timelevels]\n\nSTORAGE: dtshift_exact[other_timelevels]\nschedule Minkowski_Startup at STARTUP\n{\n LANG: C\n OPTIONS: meta\n} \"create banner\"\n\nschedule Minkowski_RegisterSymmetries in SymmetryRegister\n{\n LANG: C\n OPTIONS: meta\n} \"register symmetries\"\n\nif (CCTK_EQUALS(initial_data, \"Minkowski\"))\n{\n schedule Minkowski_initial in ADMBase_InitialData\n {\n LANG: C\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: admbase::alp(Everywhere)\n WRITES: admbase::betax(Everywhere)\n WRITES: admbase::betay(Everywhere)\n WRITES: admbase::betaz(Everywhere)\n WRITES: admbase::dtalp(Everywhere)\n WRITES: admbase::dtbetax(Everywhere)\n WRITES: admbase::dtbetay(Everywhere)\n WRITES: admbase::dtbetaz(Everywhere)\n WRITES: admbase::gxx(Everywhere)\n WRITES: admbase::gxy(Everywhere)\n WRITES: admbase::gxz(Everywhere)\n WRITES: admbase::gyy(Everywhere)\n WRITES: admbase::gyz(Everywhere)\n WRITES: admbase::gzz(Everywhere)\n WRITES: admbase::kxx(Everywhere)\n WRITES: admbase::kxy(Everywhere)\n WRITES: admbase::kxz(Everywhere)\n WRITES: admbase::kyy(Everywhere)\n WRITES: admbase::kyz(Everywhere)\n WRITES: admbase::kzz(Everywhere)\n } \"Minkowski_initial\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"Minkowski\"))\n{\n schedule Minkowski_always at CCTK_PRESTEP\n {\n LANG: C\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: admbase::alp(Everywhere)\n WRITES: admbase::betax(Everywhere)\n WRITES: admbase::betay(Everywhere)\n WRITES: admbase::betaz(Everywhere)\n WRITES: admbase::dtalp(Everywhere)\n WRITES: admbase::dtbetax(Everywhere)\n WRITES: admbase::dtbetay(Everywhere)\n WRITES: admbase::dtbetaz(Everywhere)\n WRITES: admbase::gxx(Everywhere)\n WRITES: admbase::gxy(Everywhere)\n WRITES: admbase::gxz(Everywhere)\n WRITES: admbase::gyy(Everywhere)\n WRITES: admbase::gyz(Everywhere)\n WRITES: admbase::gzz(Everywhere)\n WRITES: admbase::kxx(Everywhere)\n WRITES: admbase::kxy(Everywhere)\n WRITES: admbase::kxz(Everywhere)\n WRITES: admbase::kyy(Everywhere)\n WRITES: admbase::kyz(Everywhere)\n WRITES: admbase::kzz(Everywhere)\n } \"Minkowski_always\"\n}\n\nif (CCTK_EQUALS(exact_method, \"Minkowski\"))\n{\n schedule Minkowski_exact at CCTK_ANALYSIS\n {\n LANG: C\n READS: admbase::gxx(Everywhere)\n READS: admbase::gxy(Everywhere)\n READS: admbase::gxz(Everywhere)\n READS: admbase::gyy(Everywhere)\n READS: admbase::gyz(Everywhere)\n READS: admbase::gzz(Everywhere)\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: Minkowski::alpExact(Everywhere)\n WRITES: Minkowski::betaExact1(Everywhere)\n WRITES: Minkowski::betaExact2(Everywhere)\n WRITES: Minkowski::betaExact3(Everywhere)\n WRITES: Minkowski::dtalpExact(Everywhere)\n WRITES: Minkowski::dtbetaExact1(Everywhere)\n WRITES: Minkowski::dtbetaExact2(Everywhere)\n WRITES: Minkowski::dtbetaExact3(Everywhere)\n WRITES: Minkowski::gExact11(Everywhere)\n WRITES: Minkowski::gExact12(Everywhere)\n WRITES: Minkowski::gExact13(Everywhere)\n WRITES: Minkowski::gExact22(Everywhere)\n WRITES: Minkowski::gExact23(Everywhere)\n WRITES: Minkowski::gExact33(Everywhere)\n WRITES: Minkowski::kExact11(Everywhere)\n WRITES: Minkowski::kExact12(Everywhere)\n WRITES: Minkowski::kExact13(Everywhere)\n WRITES: Minkowski::kExact22(Everywhere)\n WRITES: Minkowski::kExact23(Everywhere)\n WRITES: Minkowski::kExact33(Everywhere)\n } \"Minkowski_exact\"\n}\n\nschedule Minkowski_SelectBoundConds in MoL_PostStep\n{\n LANG: C\n OPTIONS: level\n} \"select boundary conditions\"\n\nschedule Minkowski_CheckBoundaries at BASEGRID\n{\n LANG: C\n OPTIONS: meta\n} \"check boundaries treatment\"\n\nschedule Minkowski_RegisterVars in MoL_Register\n{\n LANG: C\n OPTIONS: meta\n} \"Register Variables for MoL\"\n\nschedule Minkowski_ParamCheck at PARAMCHECK\n{\n LANG: C\n OPTIONS: global\n} \"Check parameter consistency\"\nschedule group ApplyBCs as Minkowski_ApplyBCs in MoL_PostStep after Minkowski_SelectBoundConds\n{\n} \"Apply boundary conditions controlled by thorn Boundary\"\n", "src": { "make.code.defn": "# File produced by Kranc\n\nSRCS = Boundaries.cc Kranc.cc Minkowski_always.cc Minkowski_exact.cc Minkowski_initial.cc ParamCheck.cc RegisterMoL.cc RegisterSymmetries.cc Startup.cc \n", diff --git a/EinsteinExact_ModifiedSchwarzschildBL.json b/EinsteinExact_ModifiedSchwarzschildBL.json index 6b1a481f184f4164d9b7816f35f0782e1bb2fa6b..347c6cb43a086edd9dad67c42b16328f04da85c9 100644 --- a/EinsteinExact_ModifiedSchwarzschildBL.json +++ b/EinsteinExact_ModifiedSchwarzschildBL.json @@ -3,7 +3,7 @@ "url": "https://github.com/barrywardell/EinsteinExact.git", "configuration": "# File produced by Kranc\n\nREQUIRES GenericFD\nOPTIONAL LoopControl\n{\n}\n", "interface": "# File produced by Kranc\n\nimplements: ModifiedSchwarzschildBL\n\ninherits: admbase Boundary GenericFD Grid\n\n\n\nUSES INCLUDE: loopcontrol.h\nUSES INCLUDE: Symmetry.h\nUSES INCLUDE: Boundary.h\n\nCCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex)\nUSES FUNCTION MoLRegisterEvolved\n\nSUBROUTINE Diff_coeff(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN dir, CCTK_INT IN nsize, CCTK_INT OUT ARRAY imin, CCTK_INT OUT ARRAY imax, CCTK_REAL OUT ARRAY q, CCTK_INT IN table_handle)\nUSES FUNCTION Diff_coeff\n\nCCTK_INT FUNCTION MultiPatch_GetMap(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n\nCCTK_INT FUNCTION MultiPatch_GetBbox(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN size, CCTK_INT OUT ARRAY bbox)\nUSES FUNCTION MultiPatch_GetBbox\n\nCCTK_INT FUNCTION GetBoundarySpecification(CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\nCCTK_INT FUNCTION MultiPatch_GetBoundarySpecification(CCTK_INT IN map, CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION MultiPatch_GetBoundarySpecification\n\nCCTK_INT FUNCTION SymmetryTableHandleForGrid(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION SymmetryTableHandleForGrid\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT FUNCTION Driver_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectGroupForBC\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectVarForBC\n\nCCTK_INT FUNCTION Driver_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectVarForBC\n\npublic:\nCCTK_REAL metric_exact type=GF timelevels=1 tags='tensortypealias=\"DD_sym\" tensorweight=0'\n{\n gExact11,\n gExact12,\n gExact13,\n gExact22,\n gExact23,\n gExact33\n} \"metric_exact\"\n\npublic:\nCCTK_REAL curv_exact type=GF timelevels=1 tags='tensortypealias=\"DD_sym\" tensorweight=0'\n{\n kExact11,\n kExact12,\n kExact13,\n kExact22,\n kExact23,\n kExact33\n} \"curv_exact\"\n\npublic:\nCCTK_REAL lapse_exact type=GF timelevels=1 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n alpExact\n} \"lapse_exact\"\n\npublic:\nCCTK_REAL dtlapse_exact type=GF timelevels=1 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n dtalpExact\n} \"dtlapse_exact\"\n\npublic:\nCCTK_REAL shift_exact type=GF timelevels=1 tags='tensortypealias=\"U\" tensorweight=0'\n{\n betaExact1,\n betaExact2,\n betaExact3\n} \"shift_exact\"\n\npublic:\nCCTK_REAL dtshift_exact type=GF timelevels=1 tags='tensortypealias=\"U\" tensorweight=0'\n{\n dtbetaExact1,\n dtbetaExact2,\n dtbetaExact3\n} \"dtshift_exact\"\n", - "params": "", + "param": "# File produced by Kranc\n\n\nshares: ADMBase\n\n\nEXTENDS CCTK_KEYWORD initial_data \"initial_data\"\n{\n \"ModifiedSchwarzschildBL\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_lapse \"initial_lapse\"\n{\n \"ModifiedSchwarzschildBL\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_shift \"initial_shift\"\n{\n \"ModifiedSchwarzschildBL\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_dtlapse \"initial_dtlapse\"\n{\n \"ModifiedSchwarzschildBL\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_dtshift \"initial_dtshift\"\n{\n \"ModifiedSchwarzschildBL\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD evolution_method \"evolution_method\"\n{\n \"ModifiedSchwarzschildBL\" :: \"\"\n} \n\n\n\nshares: GenericFD\n\nUSES CCTK_INT assume_stress_energy_state\n\n\nshares: MethodOfLines\n\nUSES CCTK_INT MoL_Num_Evolved_Vars\nUSES CCTK_INT MoL_Num_ArrayEvolved_Vars\n\nrestricted:\nCCTK_INT verbose \"verbose\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT other_timelevels \"Number of active timelevels for non-evolved grid functions\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL timeoffset \"timeoffset\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL positionx \"positionx\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL positiony \"positiony\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL positionz \"positionz\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL theta \"theta\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL phi \"phi\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL psi \"psi\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL lapsefactor \"lapsefactor\"\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL boostx \"boostx\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL boosty \"boosty\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL boostz \"boostz\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftaddx \"shiftaddx\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftaddy \"shiftaddy\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftaddz \"shiftaddz\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL M \"M\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL epsilon \"epsilon\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT tile_size \"Loop tile size\"\n{\n *:* :: \"\"\n} -1\n\nprivate:\nCCTK_KEYWORD exact_method \"exact_method\"\n{\n \"none\" :: \"\"\n \"ModifiedSchwarzschildBL\" :: \"\"\n} \"none\"\n\nrestricted:\nCCTK_INT ModifiedSchwarzschildBL_MaxNumEvolvedVars \"Number of evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Evolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT ModifiedSchwarzschildBL_MaxNumArrayEvolvedVars \"Number of Array evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_ArrayEvolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of Array evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT timelevels \"Number of active timelevels\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 3\n\nrestricted:\nCCTK_INT rhs_timelevels \"Number of active RHS timelevels\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ModifiedSchwarzschildBL_initial_calc_every \"ModifiedSchwarzschildBL_initial_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ModifiedSchwarzschildBL_always_calc_every \"ModifiedSchwarzschildBL_always_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ModifiedSchwarzschildBL_exact_calc_every \"ModifiedSchwarzschildBL_exact_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ModifiedSchwarzschildBL_initial_calc_offset \"ModifiedSchwarzschildBL_initial_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ModifiedSchwarzschildBL_always_calc_offset \"ModifiedSchwarzschildBL_always_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ModifiedSchwarzschildBL_exact_calc_offset \"ModifiedSchwarzschildBL_exact_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\n", "schedule": "# File produced by Kranc\n\nSTORAGE: metric_exact[other_timelevels]\n\nSTORAGE: curv_exact[other_timelevels]\n\nSTORAGE: lapse_exact[other_timelevels]\n\nSTORAGE: dtlapse_exact[other_timelevels]\n\nSTORAGE: shift_exact[other_timelevels]\n\nSTORAGE: dtshift_exact[other_timelevels]\nschedule ModifiedSchwarzschildBL_Startup at STARTUP\n{\n LANG: C\n OPTIONS: meta\n} \"create banner\"\n\nschedule ModifiedSchwarzschildBL_RegisterSymmetries in SymmetryRegister\n{\n LANG: C\n OPTIONS: meta\n} \"register symmetries\"\n\nif (CCTK_EQUALS(initial_data, \"ModifiedSchwarzschildBL\"))\n{\n schedule ModifiedSchwarzschildBL_initial in ADMBase_InitialData\n {\n LANG: C\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: admbase::alp(Everywhere)\n WRITES: admbase::betax(Everywhere)\n WRITES: admbase::betay(Everywhere)\n WRITES: admbase::betaz(Everywhere)\n WRITES: admbase::dtalp(Everywhere)\n WRITES: admbase::dtbetax(Everywhere)\n WRITES: admbase::dtbetay(Everywhere)\n WRITES: admbase::dtbetaz(Everywhere)\n WRITES: admbase::gxx(Everywhere)\n WRITES: admbase::gxy(Everywhere)\n WRITES: admbase::gxz(Everywhere)\n WRITES: admbase::gyy(Everywhere)\n WRITES: admbase::gyz(Everywhere)\n WRITES: admbase::gzz(Everywhere)\n WRITES: admbase::kxx(Everywhere)\n WRITES: admbase::kxy(Everywhere)\n WRITES: admbase::kxz(Everywhere)\n WRITES: admbase::kyy(Everywhere)\n WRITES: admbase::kyz(Everywhere)\n WRITES: admbase::kzz(Everywhere)\n } \"ModifiedSchwarzschildBL_initial\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"ModifiedSchwarzschildBL\"))\n{\n schedule ModifiedSchwarzschildBL_always at CCTK_PRESTEP\n {\n LANG: C\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: admbase::alp(Everywhere)\n WRITES: admbase::betax(Everywhere)\n WRITES: admbase::betay(Everywhere)\n WRITES: admbase::betaz(Everywhere)\n WRITES: admbase::dtalp(Everywhere)\n WRITES: admbase::dtbetax(Everywhere)\n WRITES: admbase::dtbetay(Everywhere)\n WRITES: admbase::dtbetaz(Everywhere)\n WRITES: admbase::gxx(Everywhere)\n WRITES: admbase::gxy(Everywhere)\n WRITES: admbase::gxz(Everywhere)\n WRITES: admbase::gyy(Everywhere)\n WRITES: admbase::gyz(Everywhere)\n WRITES: admbase::gzz(Everywhere)\n WRITES: admbase::kxx(Everywhere)\n WRITES: admbase::kxy(Everywhere)\n WRITES: admbase::kxz(Everywhere)\n WRITES: admbase::kyy(Everywhere)\n WRITES: admbase::kyz(Everywhere)\n WRITES: admbase::kzz(Everywhere)\n } \"ModifiedSchwarzschildBL_always\"\n}\n\nif (CCTK_EQUALS(exact_method, \"ModifiedSchwarzschildBL\"))\n{\n schedule ModifiedSchwarzschildBL_exact at CCTK_ANALYSIS\n {\n LANG: C\n READS: admbase::gxx(Everywhere)\n READS: admbase::gxy(Everywhere)\n READS: admbase::gxz(Everywhere)\n READS: admbase::gyy(Everywhere)\n READS: admbase::gyz(Everywhere)\n READS: admbase::gzz(Everywhere)\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: ModifiedSchwarzschildBL::alpExact(Everywhere)\n WRITES: ModifiedSchwarzschildBL::betaExact1(Everywhere)\n WRITES: ModifiedSchwarzschildBL::betaExact2(Everywhere)\n WRITES: ModifiedSchwarzschildBL::betaExact3(Everywhere)\n WRITES: ModifiedSchwarzschildBL::dtalpExact(Everywhere)\n WRITES: ModifiedSchwarzschildBL::dtbetaExact1(Everywhere)\n WRITES: ModifiedSchwarzschildBL::dtbetaExact2(Everywhere)\n WRITES: ModifiedSchwarzschildBL::dtbetaExact3(Everywhere)\n WRITES: ModifiedSchwarzschildBL::gExact11(Everywhere)\n WRITES: ModifiedSchwarzschildBL::gExact12(Everywhere)\n WRITES: ModifiedSchwarzschildBL::gExact13(Everywhere)\n WRITES: ModifiedSchwarzschildBL::gExact22(Everywhere)\n WRITES: ModifiedSchwarzschildBL::gExact23(Everywhere)\n WRITES: ModifiedSchwarzschildBL::gExact33(Everywhere)\n WRITES: ModifiedSchwarzschildBL::kExact11(Everywhere)\n WRITES: ModifiedSchwarzschildBL::kExact12(Everywhere)\n WRITES: ModifiedSchwarzschildBL::kExact13(Everywhere)\n WRITES: ModifiedSchwarzschildBL::kExact22(Everywhere)\n WRITES: ModifiedSchwarzschildBL::kExact23(Everywhere)\n WRITES: ModifiedSchwarzschildBL::kExact33(Everywhere)\n } \"ModifiedSchwarzschildBL_exact\"\n}\n\nschedule ModifiedSchwarzschildBL_SelectBoundConds in MoL_PostStep\n{\n LANG: C\n OPTIONS: level\n} \"select boundary conditions\"\n\nschedule ModifiedSchwarzschildBL_CheckBoundaries at BASEGRID\n{\n LANG: C\n OPTIONS: meta\n} \"check boundaries treatment\"\n\nschedule ModifiedSchwarzschildBL_RegisterVars in MoL_Register\n{\n LANG: C\n OPTIONS: meta\n} \"Register Variables for MoL\"\n\nschedule ModifiedSchwarzschildBL_ParamCheck at PARAMCHECK\n{\n LANG: C\n OPTIONS: global\n} \"Check parameter consistency\"\nschedule group ApplyBCs as ModifiedSchwarzschildBL_ApplyBCs in MoL_PostStep after ModifiedSchwarzschildBL_SelectBoundConds\n{\n} \"Apply boundary conditions controlled by thorn Boundary\"\n", "src": { "make.code.defn": "# File produced by Kranc\n\nSRCS = Boundaries.cc Kranc.cc ModifiedSchwarzschildBL_always.cc ModifiedSchwarzschildBL_exact.cc ModifiedSchwarzschildBL_initial.cc ParamCheck.cc RegisterMoL.cc RegisterSymmetries.cc Startup.cc \n", diff --git a/EinsteinExact_ShiftedGaugeWave.json b/EinsteinExact_ShiftedGaugeWave.json index b5364dafd2ad6036ade98efb88d7ffad4dc49fe0..e1360e1bdef52af5b6dd2a1988725c763a449483 100644 --- a/EinsteinExact_ShiftedGaugeWave.json +++ b/EinsteinExact_ShiftedGaugeWave.json @@ -3,7 +3,7 @@ "url": "https://github.com/barrywardell/EinsteinExact.git", "configuration": "# File produced by Kranc\n\nREQUIRES GenericFD\nOPTIONAL LoopControl\n{\n}\n", "interface": "# File produced by Kranc\n\nimplements: ShiftedGaugeWave\n\ninherits: admbase Boundary GenericFD Grid\n\n\n\nUSES INCLUDE: loopcontrol.h\nUSES INCLUDE: Symmetry.h\nUSES INCLUDE: Boundary.h\n\nCCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex)\nUSES FUNCTION MoLRegisterEvolved\n\nSUBROUTINE Diff_coeff(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN dir, CCTK_INT IN nsize, CCTK_INT OUT ARRAY imin, CCTK_INT OUT ARRAY imax, CCTK_REAL OUT ARRAY q, CCTK_INT IN table_handle)\nUSES FUNCTION Diff_coeff\n\nCCTK_INT FUNCTION MultiPatch_GetMap(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n\nCCTK_INT FUNCTION MultiPatch_GetBbox(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN size, CCTK_INT OUT ARRAY bbox)\nUSES FUNCTION MultiPatch_GetBbox\n\nCCTK_INT FUNCTION GetBoundarySpecification(CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\nCCTK_INT FUNCTION MultiPatch_GetBoundarySpecification(CCTK_INT IN map, CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION MultiPatch_GetBoundarySpecification\n\nCCTK_INT FUNCTION SymmetryTableHandleForGrid(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION SymmetryTableHandleForGrid\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT FUNCTION Driver_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectGroupForBC\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectVarForBC\n\nCCTK_INT FUNCTION Driver_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectVarForBC\n\npublic:\nCCTK_REAL metric_exact type=GF timelevels=1 tags='tensortypealias=\"DD_sym\" tensorweight=0'\n{\n gExact11,\n gExact12,\n gExact13,\n gExact22,\n gExact23,\n gExact33\n} \"metric_exact\"\n\npublic:\nCCTK_REAL curv_exact type=GF timelevels=1 tags='tensortypealias=\"DD_sym\" tensorweight=0'\n{\n kExact11,\n kExact12,\n kExact13,\n kExact22,\n kExact23,\n kExact33\n} \"curv_exact\"\n\npublic:\nCCTK_REAL lapse_exact type=GF timelevels=1 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n alpExact\n} \"lapse_exact\"\n\npublic:\nCCTK_REAL dtlapse_exact type=GF timelevels=1 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n dtalpExact\n} \"dtlapse_exact\"\n\npublic:\nCCTK_REAL shift_exact type=GF timelevels=1 tags='tensortypealias=\"U\" tensorweight=0'\n{\n betaExact1,\n betaExact2,\n betaExact3\n} \"shift_exact\"\n\npublic:\nCCTK_REAL dtshift_exact type=GF timelevels=1 tags='tensortypealias=\"U\" tensorweight=0'\n{\n dtbetaExact1,\n dtbetaExact2,\n dtbetaExact3\n} \"dtshift_exact\"\n", - "params": "", + "param": "# File produced by Kranc\n\n\nshares: ADMBase\n\n\nEXTENDS CCTK_KEYWORD initial_data \"initial_data\"\n{\n \"ShiftedGaugeWave\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_lapse \"initial_lapse\"\n{\n \"ShiftedGaugeWave\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_shift \"initial_shift\"\n{\n \"ShiftedGaugeWave\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_dtlapse \"initial_dtlapse\"\n{\n \"ShiftedGaugeWave\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_dtshift \"initial_dtshift\"\n{\n \"ShiftedGaugeWave\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD evolution_method \"evolution_method\"\n{\n \"ShiftedGaugeWave\" :: \"\"\n} \n\n\n\nshares: GenericFD\n\nUSES CCTK_INT assume_stress_energy_state\n\n\nshares: MethodOfLines\n\nUSES CCTK_INT MoL_Num_Evolved_Vars\nUSES CCTK_INT MoL_Num_ArrayEvolved_Vars\n\nrestricted:\nCCTK_INT verbose \"verbose\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT other_timelevels \"Number of active timelevels for non-evolved grid functions\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL timeoffset \"timeoffset\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL positionx \"positionx\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL positiony \"positiony\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL positionz \"positionz\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL theta \"theta\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL phi \"phi\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL psi \"psi\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL lapsefactor \"lapsefactor\"\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL boostx \"boostx\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL boosty \"boosty\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL boostz \"boostz\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftaddx \"shiftaddx\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftaddy \"shiftaddy\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftaddz \"shiftaddz\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL amp \"amp\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL period \"period\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT tile_size \"Loop tile size\"\n{\n *:* :: \"\"\n} -1\n\nprivate:\nCCTK_KEYWORD exact_method \"exact_method\"\n{\n \"none\" :: \"\"\n \"ShiftedGaugeWave\" :: \"\"\n} \"none\"\n\nrestricted:\nCCTK_INT ShiftedGaugeWave_MaxNumEvolvedVars \"Number of evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Evolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT ShiftedGaugeWave_MaxNumArrayEvolvedVars \"Number of Array evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_ArrayEvolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of Array evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT timelevels \"Number of active timelevels\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 3\n\nrestricted:\nCCTK_INT rhs_timelevels \"Number of active RHS timelevels\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ShiftedGaugeWave_initial_calc_every \"ShiftedGaugeWave_initial_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ShiftedGaugeWave_always_calc_every \"ShiftedGaugeWave_always_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ShiftedGaugeWave_exact_calc_every \"ShiftedGaugeWave_exact_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ShiftedGaugeWave_initial_calc_offset \"ShiftedGaugeWave_initial_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ShiftedGaugeWave_always_calc_offset \"ShiftedGaugeWave_always_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ShiftedGaugeWave_exact_calc_offset \"ShiftedGaugeWave_exact_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\n", "schedule": "# File produced by Kranc\n\nSTORAGE: metric_exact[other_timelevels]\n\nSTORAGE: curv_exact[other_timelevels]\n\nSTORAGE: lapse_exact[other_timelevels]\n\nSTORAGE: dtlapse_exact[other_timelevels]\n\nSTORAGE: shift_exact[other_timelevels]\n\nSTORAGE: dtshift_exact[other_timelevels]\nschedule ShiftedGaugeWave_Startup at STARTUP\n{\n LANG: C\n OPTIONS: meta\n} \"create banner\"\n\nschedule ShiftedGaugeWave_RegisterSymmetries in SymmetryRegister\n{\n LANG: C\n OPTIONS: meta\n} \"register symmetries\"\n\nif (CCTK_EQUALS(initial_data, \"ShiftedGaugeWave\"))\n{\n schedule ShiftedGaugeWave_initial in ADMBase_InitialData\n {\n LANG: C\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: admbase::alp(Everywhere)\n WRITES: admbase::betax(Everywhere)\n WRITES: admbase::betay(Everywhere)\n WRITES: admbase::betaz(Everywhere)\n WRITES: admbase::dtalp(Everywhere)\n WRITES: admbase::dtbetax(Everywhere)\n WRITES: admbase::dtbetay(Everywhere)\n WRITES: admbase::dtbetaz(Everywhere)\n WRITES: admbase::gxx(Everywhere)\n WRITES: admbase::gxy(Everywhere)\n WRITES: admbase::gxz(Everywhere)\n WRITES: admbase::gyy(Everywhere)\n WRITES: admbase::gyz(Everywhere)\n WRITES: admbase::gzz(Everywhere)\n WRITES: admbase::kxx(Everywhere)\n WRITES: admbase::kxy(Everywhere)\n WRITES: admbase::kxz(Everywhere)\n WRITES: admbase::kyy(Everywhere)\n WRITES: admbase::kyz(Everywhere)\n WRITES: admbase::kzz(Everywhere)\n } \"ShiftedGaugeWave_initial\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"ShiftedGaugeWave\"))\n{\n schedule ShiftedGaugeWave_always at CCTK_PRESTEP\n {\n LANG: C\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: admbase::alp(Everywhere)\n WRITES: admbase::betax(Everywhere)\n WRITES: admbase::betay(Everywhere)\n WRITES: admbase::betaz(Everywhere)\n WRITES: admbase::dtalp(Everywhere)\n WRITES: admbase::dtbetax(Everywhere)\n WRITES: admbase::dtbetay(Everywhere)\n WRITES: admbase::dtbetaz(Everywhere)\n WRITES: admbase::gxx(Everywhere)\n WRITES: admbase::gxy(Everywhere)\n WRITES: admbase::gxz(Everywhere)\n WRITES: admbase::gyy(Everywhere)\n WRITES: admbase::gyz(Everywhere)\n WRITES: admbase::gzz(Everywhere)\n WRITES: admbase::kxx(Everywhere)\n WRITES: admbase::kxy(Everywhere)\n WRITES: admbase::kxz(Everywhere)\n WRITES: admbase::kyy(Everywhere)\n WRITES: admbase::kyz(Everywhere)\n WRITES: admbase::kzz(Everywhere)\n } \"ShiftedGaugeWave_always\"\n}\n\nif (CCTK_EQUALS(exact_method, \"ShiftedGaugeWave\"))\n{\n schedule ShiftedGaugeWave_exact at CCTK_ANALYSIS\n {\n LANG: C\n READS: admbase::gxx(Everywhere)\n READS: admbase::gxy(Everywhere)\n READS: admbase::gxz(Everywhere)\n READS: admbase::gyy(Everywhere)\n READS: admbase::gyz(Everywhere)\n READS: admbase::gzz(Everywhere)\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: ShiftedGaugeWave::alpExact(Everywhere)\n WRITES: ShiftedGaugeWave::betaExact1(Everywhere)\n WRITES: ShiftedGaugeWave::betaExact2(Everywhere)\n WRITES: ShiftedGaugeWave::betaExact3(Everywhere)\n WRITES: ShiftedGaugeWave::dtalpExact(Everywhere)\n WRITES: ShiftedGaugeWave::dtbetaExact1(Everywhere)\n WRITES: ShiftedGaugeWave::dtbetaExact2(Everywhere)\n WRITES: ShiftedGaugeWave::dtbetaExact3(Everywhere)\n WRITES: ShiftedGaugeWave::gExact11(Everywhere)\n WRITES: ShiftedGaugeWave::gExact12(Everywhere)\n WRITES: ShiftedGaugeWave::gExact13(Everywhere)\n WRITES: ShiftedGaugeWave::gExact22(Everywhere)\n WRITES: ShiftedGaugeWave::gExact23(Everywhere)\n WRITES: ShiftedGaugeWave::gExact33(Everywhere)\n WRITES: ShiftedGaugeWave::kExact11(Everywhere)\n WRITES: ShiftedGaugeWave::kExact12(Everywhere)\n WRITES: ShiftedGaugeWave::kExact13(Everywhere)\n WRITES: ShiftedGaugeWave::kExact22(Everywhere)\n WRITES: ShiftedGaugeWave::kExact23(Everywhere)\n WRITES: ShiftedGaugeWave::kExact33(Everywhere)\n } \"ShiftedGaugeWave_exact\"\n}\n\nschedule ShiftedGaugeWave_SelectBoundConds in MoL_PostStep\n{\n LANG: C\n OPTIONS: level\n} \"select boundary conditions\"\n\nschedule ShiftedGaugeWave_CheckBoundaries at BASEGRID\n{\n LANG: C\n OPTIONS: meta\n} \"check boundaries treatment\"\n\nschedule ShiftedGaugeWave_RegisterVars in MoL_Register\n{\n LANG: C\n OPTIONS: meta\n} \"Register Variables for MoL\"\n\nschedule ShiftedGaugeWave_ParamCheck at PARAMCHECK\n{\n LANG: C\n OPTIONS: global\n} \"Check parameter consistency\"\nschedule group ApplyBCs as ShiftedGaugeWave_ApplyBCs in MoL_PostStep after ShiftedGaugeWave_SelectBoundConds\n{\n} \"Apply boundary conditions controlled by thorn Boundary\"\n", "src": { "ShiftedGaugeWave_initial.cc": "/* File produced by Kranc */\n\n#define KRANC_C\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Parameters.h\"\n#include \"Kranc.hh\"\n#include \"Differencing.h\"\n#include \"loopcontrol.h\"\n\nnamespace ShiftedGaugeWave {\n\n\nstatic void ShiftedGaugeWave_initial_Body(const cGH* restrict const cctkGH, const int dir, const int face, const CCTK_REAL normal[3], const CCTK_REAL tangentA[3], const CCTK_REAL tangentB[3], const int imin[3], const int imax[3], const int n_subblock_gfs, CCTK_REAL* restrict const subblock_gfs[])\n{\n DECLARE_CCTK_ARGUMENTS;\n DECLARE_CCTK_PARAMETERS;\n \n /* Include user-supplied include files */\n /* Initialise finite differencing variables */\n const ptrdiff_t di CCTK_ATTRIBUTE_UNUSED = 1;\n const ptrdiff_t dj CCTK_ATTRIBUTE_UNUSED = \n CCTK_GFINDEX3D(cctkGH,0,1,0) - CCTK_GFINDEX3D(cctkGH,0,0,0);\n const ptrdiff_t dk CCTK_ATTRIBUTE_UNUSED = \n CCTK_GFINDEX3D(cctkGH,0,0,1) - CCTK_GFINDEX3D(cctkGH,0,0,0);\n const ptrdiff_t cdi CCTK_ATTRIBUTE_UNUSED = sizeof(CCTK_REAL) * di;\n const ptrdiff_t cdj CCTK_ATTRIBUTE_UNUSED = sizeof(CCTK_REAL) * dj;\n const ptrdiff_t cdk CCTK_ATTRIBUTE_UNUSED = sizeof(CCTK_REAL) * dk;\n const ptrdiff_t cctkLbnd1 CCTK_ATTRIBUTE_UNUSED = cctk_lbnd[0];\n const ptrdiff_t cctkLbnd2 CCTK_ATTRIBUTE_UNUSED = cctk_lbnd[1];\n const ptrdiff_t cctkLbnd3 CCTK_ATTRIBUTE_UNUSED = cctk_lbnd[2];\n const CCTK_REAL t CCTK_ATTRIBUTE_UNUSED = cctk_time;\n const CCTK_REAL cctkOriginSpace1 CCTK_ATTRIBUTE_UNUSED = \n CCTK_ORIGIN_SPACE(0);\n const CCTK_REAL cctkOriginSpace2 CCTK_ATTRIBUTE_UNUSED = \n CCTK_ORIGIN_SPACE(1);\n const CCTK_REAL cctkOriginSpace3 CCTK_ATTRIBUTE_UNUSED = \n CCTK_ORIGIN_SPACE(2);\n const CCTK_REAL dt CCTK_ATTRIBUTE_UNUSED = CCTK_DELTA_TIME;\n const CCTK_REAL dx CCTK_ATTRIBUTE_UNUSED = CCTK_DELTA_SPACE(0);\n const CCTK_REAL dy CCTK_ATTRIBUTE_UNUSED = CCTK_DELTA_SPACE(1);\n const CCTK_REAL dz CCTK_ATTRIBUTE_UNUSED = CCTK_DELTA_SPACE(2);\n const CCTK_REAL dxi CCTK_ATTRIBUTE_UNUSED = pow(dx,-1);\n const CCTK_REAL dyi CCTK_ATTRIBUTE_UNUSED = pow(dy,-1);\n const CCTK_REAL dzi CCTK_ATTRIBUTE_UNUSED = pow(dz,-1);\n const CCTK_REAL khalf CCTK_ATTRIBUTE_UNUSED = 0.5;\n const CCTK_REAL kthird CCTK_ATTRIBUTE_UNUSED = \n 0.333333333333333333333333333333;\n const CCTK_REAL ktwothird CCTK_ATTRIBUTE_UNUSED = \n 0.666666666666666666666666666667;\n const CCTK_REAL kfourthird CCTK_ATTRIBUTE_UNUSED = \n 1.33333333333333333333333333333;\n const CCTK_REAL hdxi CCTK_ATTRIBUTE_UNUSED = 0.5*dxi;\n const CCTK_REAL hdyi CCTK_ATTRIBUTE_UNUSED = 0.5*dyi;\n const CCTK_REAL hdzi CCTK_ATTRIBUTE_UNUSED = 0.5*dzi;\n /* Initialize predefined quantities */\n /* Assign local copies of arrays functions */\n \n \n /* Calculate temporaries and arrays functions */\n /* Copy local copies back to grid functions */\n /* Loop over the grid points */\n const int imin0=imin[0];\n const int imin1=imin[1];\n const int imin2=imin[2];\n const int imax0=imax[0];\n const int imax1=imax[1];\n const int imax2=imax[2];\n #pragma omp parallel\n CCTK_LOOP3(ShiftedGaugeWave_initial,\n i,j,k, imin0,imin1,imin2, imax0,imax1,imax2,\n cctk_ash[0],cctk_ash[1],cctk_ash[2])\n {\n const ptrdiff_t index CCTK_ATTRIBUTE_UNUSED = di*i + dj*j + dk*k;\n /* Assign local copies of grid functions */\n \n CCTK_REAL alpL CCTK_ATTRIBUTE_UNUSED = alp[index];\n CCTK_REAL betaxL CCTK_ATTRIBUTE_UNUSED = betax[index];\n CCTK_REAL betayL CCTK_ATTRIBUTE_UNUSED = betay[index];\n CCTK_REAL betazL CCTK_ATTRIBUTE_UNUSED = betaz[index];\n CCTK_REAL dtbetaxL CCTK_ATTRIBUTE_UNUSED = dtbetax[index];\n CCTK_REAL dtbetayL CCTK_ATTRIBUTE_UNUSED = dtbetay[index];\n CCTK_REAL dtbetazL CCTK_ATTRIBUTE_UNUSED = dtbetaz[index];\n CCTK_REAL gxxL CCTK_ATTRIBUTE_UNUSED = gxx[index];\n CCTK_REAL gxyL CCTK_ATTRIBUTE_UNUSED = gxy[index];\n CCTK_REAL gxzL CCTK_ATTRIBUTE_UNUSED = gxz[index];\n CCTK_REAL gyyL CCTK_ATTRIBUTE_UNUSED = gyy[index];\n CCTK_REAL gyzL CCTK_ATTRIBUTE_UNUSED = gyz[index];\n CCTK_REAL gzzL CCTK_ATTRIBUTE_UNUSED = gzz[index];\n CCTK_REAL xL CCTK_ATTRIBUTE_UNUSED = x[index];\n CCTK_REAL yL CCTK_ATTRIBUTE_UNUSED = y[index];\n CCTK_REAL zL CCTK_ATTRIBUTE_UNUSED = z[index];\n \n /* Include user supplied include files */\n /* Precompute derivatives */\n /* Calculate temporaries and grid functions */\n CCTK_REAL xform1L00 CCTK_ATTRIBUTE_UNUSED = 1;\n \n CCTK_REAL xform1L01 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL xform1L02 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL xform1L03 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL xform1L10 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL csetemp0 CCTK_ATTRIBUTE_UNUSED = cos(phi);\n \n CCTK_REAL csetemp1 CCTK_ATTRIBUTE_UNUSED = cos(psi);\n \n CCTK_REAL csetemp2 CCTK_ATTRIBUTE_UNUSED = cos(theta);\n \n CCTK_REAL csetemp3 CCTK_ATTRIBUTE_UNUSED = sin(phi);\n \n CCTK_REAL csetemp4 CCTK_ATTRIBUTE_UNUSED = sin(psi);\n \n CCTK_REAL xform1L11 CCTK_ATTRIBUTE_UNUSED = csetemp0*csetemp1 - \n csetemp2*csetemp3*csetemp4;\n \n CCTK_REAL xform1L12 CCTK_ATTRIBUTE_UNUSED = csetemp1*csetemp3 + \n csetemp0*csetemp2*csetemp4;\n \n CCTK_REAL csetemp5 CCTK_ATTRIBUTE_UNUSED = sin(theta);\n \n CCTK_REAL xform1L13 CCTK_ATTRIBUTE_UNUSED = csetemp4*csetemp5;\n \n CCTK_REAL xform1L20 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL xform1L21 CCTK_ATTRIBUTE_UNUSED = \n -(csetemp1*csetemp2*csetemp3) - csetemp0*csetemp4;\n \n CCTK_REAL xform1L22 CCTK_ATTRIBUTE_UNUSED = csetemp0*csetemp1*csetemp2 \n - csetemp3*csetemp4;\n \n CCTK_REAL xform1L23 CCTK_ATTRIBUTE_UNUSED = csetemp1*csetemp5;\n \n CCTK_REAL xform1L30 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL xform1L31 CCTK_ATTRIBUTE_UNUSED = csetemp3*csetemp5;\n \n CCTK_REAL xform1L32 CCTK_ATTRIBUTE_UNUSED = -(csetemp0*csetemp5);\n \n CCTK_REAL xform1L33 CCTK_ATTRIBUTE_UNUSED = csetemp2;\n \n CCTK_REAL csetemp6 CCTK_ATTRIBUTE_UNUSED = pow(boostx,2);\n \n CCTK_REAL csetemp7 CCTK_ATTRIBUTE_UNUSED = pow(boosty,2);\n \n CCTK_REAL csetemp8 CCTK_ATTRIBUTE_UNUSED = pow(boostz,2);\n \n CCTK_REAL csetemp9 CCTK_ATTRIBUTE_UNUSED = pow(lapsefactor,-1);\n \n CCTK_REAL xform2L00 CCTK_ATTRIBUTE_UNUSED = csetemp9*(-1 + \n boostx*shiftaddx + boosty*shiftaddy + boostz*shiftaddz)*(1 - csetemp6 - \n csetemp7 - csetemp8 + pow(1 - csetemp6 - csetemp7 - \n csetemp8,0.5))*pow(-1 + csetemp6 + csetemp7 + csetemp8,-1)*pow(1 + \n pow(1 - csetemp6 - csetemp7 - csetemp8,0.5),-1);\n \n CCTK_REAL xform2L01 CCTK_ATTRIBUTE_UNUSED = boostx*csetemp9*(1 - \n csetemp6 - csetemp7 - csetemp8 + pow(1 - csetemp6 - csetemp7 - \n csetemp8,0.5))*pow(-1 + csetemp6 + csetemp7 + csetemp8,-1)*pow(1 + \n pow(1 - csetemp6 - csetemp7 - csetemp8,0.5),-1);\n \n CCTK_REAL xform2L02 CCTK_ATTRIBUTE_UNUSED = boosty*csetemp9*(1 - \n csetemp6 - csetemp7 - csetemp8 + pow(1 - csetemp6 - csetemp7 - \n csetemp8,0.5))*pow(-1 + csetemp6 + csetemp7 + csetemp8,-1)*pow(1 + \n pow(1 - csetemp6 - csetemp7 - csetemp8,0.5),-1);\n \n CCTK_REAL xform2L03 CCTK_ATTRIBUTE_UNUSED = boostz*csetemp9*(1 - \n csetemp6 - csetemp7 - csetemp8 + pow(1 - csetemp6 - csetemp7 - \n csetemp8,0.5))*pow(-1 + csetemp6 + csetemp7 + csetemp8,-1)*pow(1 + \n pow(1 - csetemp6 - csetemp7 - csetemp8,0.5),-1);\n \n CCTK_REAL xform2L10 CCTK_ATTRIBUTE_UNUSED = (-(boostx*(-1 + csetemp6 + \n csetemp7 + csetemp8 + (-1 + boosty*shiftaddy + boostz*shiftaddz)*pow(1 \n - csetemp6 - csetemp7 - csetemp8,0.5))) + shiftaddx*(csetemp6 + (-1 + \n csetemp7 + csetemp8)*(1 + pow(1 - csetemp6 - csetemp7 - \n csetemp8,0.5))))*pow(-1 + csetemp6 + csetemp7 + csetemp8,-1)*pow(1 + \n pow(1 - csetemp6 - csetemp7 - csetemp8,0.5),-1);\n \n CCTK_REAL xform2L11 CCTK_ATTRIBUTE_UNUSED = pow(-1 + csetemp6 + \n csetemp7 + csetemp8,-1)*(-1 + csetemp7 + csetemp8 + csetemp6*pow(1 + \n pow(1 - csetemp6 - csetemp7 - csetemp8,0.5),-1));\n \n CCTK_REAL xform2L12 CCTK_ATTRIBUTE_UNUSED = -(boostx*boosty*pow(-1 + \n csetemp6 + csetemp7 + csetemp8 - pow(1 - csetemp6 - csetemp7 - \n csetemp8,0.5),-1));\n \n CCTK_REAL xform2L13 CCTK_ATTRIBUTE_UNUSED = -(boostx*boostz*pow(-1 + \n csetemp6 + csetemp7 + csetemp8 - pow(1 - csetemp6 - csetemp7 - \n csetemp8,0.5),-1));\n \n CCTK_REAL xform2L20 CCTK_ATTRIBUTE_UNUSED = (-(boosty*(-1 + csetemp6 + \n csetemp7 + csetemp8 + (-1 + boostx*shiftaddx + boostz*shiftaddz)*pow(1 \n - csetemp6 - csetemp7 - csetemp8,0.5))) + shiftaddy*(csetemp7 + (-1 + \n csetemp6 + csetemp8)*(1 + pow(1 - csetemp6 - csetemp7 - \n csetemp8,0.5))))*pow(-1 + csetemp6 + csetemp7 + csetemp8,-1)*pow(1 + \n pow(1 - csetemp6 - csetemp7 - csetemp8,0.5),-1);\n \n CCTK_REAL xform2L21 CCTK_ATTRIBUTE_UNUSED = -(boostx*boosty*pow(-1 + \n csetemp6 + csetemp7 + csetemp8 - pow(1 - csetemp6 - csetemp7 - \n csetemp8,0.5),-1));\n \n CCTK_REAL xform2L22 CCTK_ATTRIBUTE_UNUSED = pow(-1 + csetemp6 + \n csetemp7 + csetemp8,-1)*(-1 + csetemp6 + csetemp8 + csetemp7*pow(1 + \n pow(1 - csetemp6 - csetemp7 - csetemp8,0.5),-1));\n \n CCTK_REAL xform2L23 CCTK_ATTRIBUTE_UNUSED = -(boosty*boostz*pow(-1 + \n csetemp6 + csetemp7 + csetemp8 - pow(1 - csetemp6 - csetemp7 - \n csetemp8,0.5),-1));\n \n CCTK_REAL xform2L30 CCTK_ATTRIBUTE_UNUSED = (shiftaddz*(-1 + csetemp6 \n + csetemp7 + csetemp8 + (-1 + csetemp6 + csetemp7)*pow(1 - csetemp6 - \n csetemp7 - csetemp8,0.5)) - boostz*(-1 + csetemp6 + csetemp7 + csetemp8 \n + (-1 + boostx*shiftaddx + boosty*shiftaddy)*pow(1 - csetemp6 - \n csetemp7 - csetemp8,0.5)))*pow(-1 + csetemp6 + csetemp7 + \n csetemp8,-1)*pow(1 + pow(1 - csetemp6 - csetemp7 - csetemp8,0.5),-1);\n \n CCTK_REAL xform2L31 CCTK_ATTRIBUTE_UNUSED = -(boostx*boostz*pow(-1 + \n csetemp6 + csetemp7 + csetemp8 - pow(1 - csetemp6 - csetemp7 - \n csetemp8,0.5),-1));\n \n CCTK_REAL xform2L32 CCTK_ATTRIBUTE_UNUSED = -(boosty*boostz*pow(-1 + \n csetemp6 + csetemp7 + csetemp8 - pow(1 - csetemp6 - csetemp7 - \n csetemp8,0.5),-1));\n \n CCTK_REAL xform2L33 CCTK_ATTRIBUTE_UNUSED = (-1 + csetemp6 + csetemp7 \n + csetemp8 + (-1 + csetemp6 + csetemp7)*pow(1 - csetemp6 - csetemp7 - \n csetemp8,0.5))*pow(-1 + csetemp6 + csetemp7 + csetemp8,-1)*pow(1 + \n pow(1 - csetemp6 - csetemp7 - csetemp8,0.5),-1);\n \n CCTK_REAL xformL00 CCTK_ATTRIBUTE_UNUSED = xform1L00*xform2L00 + \n xform1L01*xform2L10 + xform1L02*xform2L20 + xform1L03*xform2L30;\n \n CCTK_REAL xformL01 CCTK_ATTRIBUTE_UNUSED = xform1L00*xform2L01 + \n xform1L01*xform2L11 + xform1L02*xform2L21 + xform1L03*xform2L31;\n \n CCTK_REAL xformL02 CCTK_ATTRIBUTE_UNUSED = xform1L00*xform2L02 + \n xform1L01*xform2L12 + xform1L02*xform2L22 + xform1L03*xform2L32;\n \n CCTK_REAL xformL03 CCTK_ATTRIBUTE_UNUSED = xform1L00*xform2L03 + \n xform1L01*xform2L13 + xform1L02*xform2L23 + xform1L03*xform2L33;\n \n CCTK_REAL xformL10 CCTK_ATTRIBUTE_UNUSED = xform1L10*xform2L00 + \n xform1L11*xform2L10 + xform1L12*xform2L20 + xform1L13*xform2L30;\n \n CCTK_REAL xformL11 CCTK_ATTRIBUTE_UNUSED = xform1L10*xform2L01 + \n xform1L11*xform2L11 + xform1L12*xform2L21 + xform1L13*xform2L31;\n \n CCTK_REAL xformL12 CCTK_ATTRIBUTE_UNUSED = xform1L10*xform2L02 + \n xform1L11*xform2L12 + xform1L12*xform2L22 + xform1L13*xform2L32;\n \n CCTK_REAL xformL13 CCTK_ATTRIBUTE_UNUSED = xform1L10*xform2L03 + \n xform1L11*xform2L13 + xform1L12*xform2L23 + xform1L13*xform2L33;\n \n CCTK_REAL xformL20 CCTK_ATTRIBUTE_UNUSED = xform1L20*xform2L00 + \n xform1L21*xform2L10 + xform1L22*xform2L20 + xform1L23*xform2L30;\n \n CCTK_REAL xformL21 CCTK_ATTRIBUTE_UNUSED = xform1L20*xform2L01 + \n xform1L21*xform2L11 + xform1L22*xform2L21 + xform1L23*xform2L31;\n \n CCTK_REAL xformL22 CCTK_ATTRIBUTE_UNUSED = xform1L20*xform2L02 + \n xform1L21*xform2L12 + xform1L22*xform2L22 + xform1L23*xform2L32;\n \n CCTK_REAL xformL23 CCTK_ATTRIBUTE_UNUSED = xform1L20*xform2L03 + \n xform1L21*xform2L13 + xform1L22*xform2L23 + xform1L23*xform2L33;\n \n CCTK_REAL xformL30 CCTK_ATTRIBUTE_UNUSED = xform1L30*xform2L00 + \n xform1L31*xform2L10 + xform1L32*xform2L20 + xform1L33*xform2L30;\n \n CCTK_REAL xformL31 CCTK_ATTRIBUTE_UNUSED = xform1L30*xform2L01 + \n xform1L31*xform2L11 + xform1L32*xform2L21 + xform1L33*xform2L31;\n \n CCTK_REAL xformL32 CCTK_ATTRIBUTE_UNUSED = xform1L30*xform2L02 + \n xform1L31*xform2L12 + xform1L32*xform2L22 + xform1L33*xform2L32;\n \n CCTK_REAL xformL33 CCTK_ATTRIBUTE_UNUSED = xform1L30*xform2L03 + \n xform1L31*xform2L13 + xform1L32*xform2L23 + xform1L33*xform2L33;\n \n CCTK_REAL xx0 CCTK_ATTRIBUTE_UNUSED = t - timeoffset;\n \n CCTK_REAL xx1 CCTK_ATTRIBUTE_UNUSED = xL - positionx;\n \n CCTK_REAL xx2 CCTK_ATTRIBUTE_UNUSED = yL - positiony;\n \n CCTK_REAL xx3 CCTK_ATTRIBUTE_UNUSED = zL - positionz;\n \n CCTK_REAL txx0 CCTK_ATTRIBUTE_UNUSED = xformL00*xx0 + xformL01*xx1 + \n xformL02*xx2 + xformL03*xx3;\n \n CCTK_REAL txx1 CCTK_ATTRIBUTE_UNUSED = xformL10*xx0 + xformL11*xx1 + \n xformL12*xx2 + xformL13*xx3;\n \n CCTK_REAL T CCTK_ATTRIBUTE_UNUSED = txx0;\n \n CCTK_REAL X CCTK_ATTRIBUTE_UNUSED = txx1;\n \n CCTK_REAL csetemp10 CCTK_ATTRIBUTE_UNUSED = -T + X;\n \n CCTK_REAL csetemp11 CCTK_ATTRIBUTE_UNUSED = pow(period,-1);\n \n CCTK_REAL tg400 CCTK_ATTRIBUTE_UNUSED = -1 + \n amp*sin(2*csetemp10*csetemp11*Pi);\n \n CCTK_REAL tg401 CCTK_ATTRIBUTE_UNUSED = \n -(amp*sin(2*csetemp10*csetemp11*Pi));\n \n CCTK_REAL tg402 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tg403 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tg411 CCTK_ATTRIBUTE_UNUSED = 1 + \n amp*sin(2*csetemp10*csetemp11*Pi);\n \n CCTK_REAL tg412 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tg413 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tg422 CCTK_ATTRIBUTE_UNUSED = 1;\n \n CCTK_REAL tg423 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tg433 CCTK_ATTRIBUTE_UNUSED = 1;\n \n CCTK_REAL tdg4000 CCTK_ATTRIBUTE_UNUSED = \n -2*amp*csetemp11*Pi*cos(2*csetemp10*csetemp11*Pi);\n \n CCTK_REAL tdg4001 CCTK_ATTRIBUTE_UNUSED = \n 2*amp*csetemp11*Pi*cos(2*csetemp10*csetemp11*Pi);\n \n CCTK_REAL tdg4002 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4003 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4010 CCTK_ATTRIBUTE_UNUSED = \n 2*amp*csetemp11*Pi*cos(2*csetemp10*csetemp11*Pi);\n \n CCTK_REAL tdg4011 CCTK_ATTRIBUTE_UNUSED = \n -2*amp*csetemp11*Pi*cos(2*csetemp10*csetemp11*Pi);\n \n CCTK_REAL tdg4012 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4013 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4020 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4021 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4022 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4023 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4030 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4031 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4032 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4033 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4110 CCTK_ATTRIBUTE_UNUSED = \n -2*amp*csetemp11*Pi*cos(2*csetemp10*csetemp11*Pi);\n \n CCTK_REAL tdg4111 CCTK_ATTRIBUTE_UNUSED = \n 2*amp*csetemp11*Pi*cos(2*csetemp10*csetemp11*Pi);\n \n CCTK_REAL tdg4112 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4113 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4120 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4121 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4122 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4123 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4130 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4131 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4132 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4133 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4220 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4221 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4222 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4223 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4230 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4231 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4232 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4233 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4330 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4331 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4332 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL tdg4333 CCTK_ATTRIBUTE_UNUSED = 0;\n \n CCTK_REAL g400 CCTK_ATTRIBUTE_UNUSED = 2*(tg423*xformL20*xformL30 + \n xformL00*(tg401*xformL10 + tg402*xformL20 + tg403*xformL30) + \n xformL10*(tg412*xformL20 + tg413*xformL30)) + tg400*pow(xformL00,2) + \n tg411*pow(xformL10,2) + tg422*pow(xformL20,2) + tg433*pow(xformL30,2);\n \n CCTK_REAL csetemp12 CCTK_ATTRIBUTE_UNUSED = tg400*xformL01;\n \n CCTK_REAL csetemp13 CCTK_ATTRIBUTE_UNUSED = tg401*xformL11;\n \n CCTK_REAL csetemp14 CCTK_ATTRIBUTE_UNUSED = tg402*xformL21;\n \n CCTK_REAL csetemp15 CCTK_ATTRIBUTE_UNUSED = tg403*xformL31;\n \n CCTK_REAL csetemp16 CCTK_ATTRIBUTE_UNUSED = tg401*xformL01;\n \n CCTK_REAL csetemp17 CCTK_ATTRIBUTE_UNUSED = tg411*xformL11;\n \n CCTK_REAL csetemp18 CCTK_ATTRIBUTE_UNUSED = tg412*xformL21;\n \n CCTK_REAL csetemp19 CCTK_ATTRIBUTE_UNUSED = tg413*xformL31;\n \n CCTK_REAL csetemp20 CCTK_ATTRIBUTE_UNUSED = tg402*xformL01;\n \n CCTK_REAL csetemp21 CCTK_ATTRIBUTE_UNUSED = tg412*xformL11;\n \n CCTK_REAL csetemp22 CCTK_ATTRIBUTE_UNUSED = tg422*xformL21;\n \n CCTK_REAL csetemp23 CCTK_ATTRIBUTE_UNUSED = tg423*xformL31;\n \n CCTK_REAL csetemp24 CCTK_ATTRIBUTE_UNUSED = tg403*xformL01;\n \n CCTK_REAL csetemp25 CCTK_ATTRIBUTE_UNUSED = tg413*xformL11;\n \n CCTK_REAL csetemp26 CCTK_ATTRIBUTE_UNUSED = tg423*xformL21;\n \n CCTK_REAL csetemp27 CCTK_ATTRIBUTE_UNUSED = tg433*xformL31;\n \n CCTK_REAL g401 CCTK_ATTRIBUTE_UNUSED = (csetemp12 + csetemp13 + \n csetemp14 + csetemp15)*xformL00 + (csetemp16 + csetemp17 + csetemp18 + \n csetemp19)*xformL10 + (csetemp20 + csetemp21 + csetemp22 + \n csetemp23)*xformL20 + (csetemp24 + csetemp25 + csetemp26 + \n csetemp27)*xformL30;\n \n CCTK_REAL csetemp28 CCTK_ATTRIBUTE_UNUSED = tg400*xformL02;\n \n CCTK_REAL csetemp29 CCTK_ATTRIBUTE_UNUSED = tg401*xformL12;\n \n CCTK_REAL csetemp30 CCTK_ATTRIBUTE_UNUSED = tg402*xformL22;\n \n CCTK_REAL csetemp31 CCTK_ATTRIBUTE_UNUSED = tg403*xformL32;\n \n CCTK_REAL csetemp32 CCTK_ATTRIBUTE_UNUSED = tg401*xformL02;\n \n CCTK_REAL csetemp33 CCTK_ATTRIBUTE_UNUSED = tg411*xformL12;\n \n CCTK_REAL csetemp34 CCTK_ATTRIBUTE_UNUSED = tg412*xformL22;\n \n CCTK_REAL csetemp35 CCTK_ATTRIBUTE_UNUSED = tg413*xformL32;\n \n CCTK_REAL csetemp36 CCTK_ATTRIBUTE_UNUSED = tg402*xformL02;\n \n CCTK_REAL csetemp37 CCTK_ATTRIBUTE_UNUSED = tg412*xformL12;\n \n CCTK_REAL csetemp38 CCTK_ATTRIBUTE_UNUSED = tg422*xformL22;\n \n CCTK_REAL csetemp39 CCTK_ATTRIBUTE_UNUSED = tg423*xformL32;\n \n CCTK_REAL csetemp40 CCTK_ATTRIBUTE_UNUSED = tg403*xformL02;\n \n CCTK_REAL csetemp41 CCTK_ATTRIBUTE_UNUSED = tg413*xformL12;\n \n CCTK_REAL csetemp42 CCTK_ATTRIBUTE_UNUSED = tg423*xformL22;\n \n CCTK_REAL csetemp43 CCTK_ATTRIBUTE_UNUSED = tg433*xformL32;\n \n CCTK_REAL g402 CCTK_ATTRIBUTE_UNUSED = (csetemp28 + csetemp29 + \n csetemp30 + csetemp31)*xformL00 + (csetemp32 + csetemp33 + csetemp34 + \n csetemp35)*xformL10 + (csetemp36 + csetemp37 + csetemp38 + \n csetemp39)*xformL20 + (csetemp40 + csetemp41 + csetemp42 + \n csetemp43)*xformL30;\n \n CCTK_REAL csetemp44 CCTK_ATTRIBUTE_UNUSED = tg400*xformL03;\n \n CCTK_REAL csetemp45 CCTK_ATTRIBUTE_UNUSED = tg401*xformL13;\n \n CCTK_REAL csetemp46 CCTK_ATTRIBUTE_UNUSED = tg402*xformL23;\n \n CCTK_REAL csetemp47 CCTK_ATTRIBUTE_UNUSED = tg403*xformL33;\n \n CCTK_REAL csetemp48 CCTK_ATTRIBUTE_UNUSED = tg401*xformL03;\n \n CCTK_REAL csetemp49 CCTK_ATTRIBUTE_UNUSED = tg411*xformL13;\n \n CCTK_REAL csetemp50 CCTK_ATTRIBUTE_UNUSED = tg412*xformL23;\n \n CCTK_REAL csetemp51 CCTK_ATTRIBUTE_UNUSED = tg413*xformL33;\n \n CCTK_REAL csetemp52 CCTK_ATTRIBUTE_UNUSED = tg402*xformL03;\n \n CCTK_REAL csetemp53 CCTK_ATTRIBUTE_UNUSED = tg412*xformL13;\n \n CCTK_REAL csetemp54 CCTK_ATTRIBUTE_UNUSED = tg422*xformL23;\n \n CCTK_REAL csetemp55 CCTK_ATTRIBUTE_UNUSED = tg423*xformL33;\n \n CCTK_REAL csetemp56 CCTK_ATTRIBUTE_UNUSED = tg403*xformL03;\n \n CCTK_REAL csetemp57 CCTK_ATTRIBUTE_UNUSED = tg413*xformL13;\n \n CCTK_REAL csetemp58 CCTK_ATTRIBUTE_UNUSED = tg423*xformL23;\n \n CCTK_REAL csetemp59 CCTK_ATTRIBUTE_UNUSED = tg433*xformL33;\n \n CCTK_REAL g403 CCTK_ATTRIBUTE_UNUSED = (csetemp44 + csetemp45 + \n csetemp46 + csetemp47)*xformL00 + (csetemp48 + csetemp49 + csetemp50 + \n csetemp51)*xformL10 + (csetemp52 + csetemp53 + csetemp54 + \n csetemp55)*xformL20 + (csetemp56 + csetemp57 + csetemp58 + \n csetemp59)*xformL30;\n \n CCTK_REAL g411 CCTK_ATTRIBUTE_UNUSED = (csetemp12 + csetemp13 + \n csetemp14 + csetemp15)*xformL01 + (csetemp16 + csetemp17 + csetemp18 + \n csetemp19)*xformL11 + (csetemp20 + csetemp21 + csetemp22 + \n csetemp23)*xformL21 + (csetemp24 + csetemp25 + csetemp26 + \n csetemp27)*xformL31;\n \n CCTK_REAL g412 CCTK_ATTRIBUTE_UNUSED = (csetemp28 + csetemp29 + \n csetemp30 + csetemp31)*xformL01 + (csetemp32 + csetemp33 + csetemp34 + \n csetemp35)*xformL11 + (csetemp36 + csetemp37 + csetemp38 + \n csetemp39)*xformL21 + (csetemp40 + csetemp41 + csetemp42 + \n csetemp43)*xformL31;\n \n CCTK_REAL g413 CCTK_ATTRIBUTE_UNUSED = (csetemp44 + csetemp45 + \n csetemp46 + csetemp47)*xformL01 + (csetemp48 + csetemp49 + csetemp50 + \n csetemp51)*xformL11 + (csetemp52 + csetemp53 + csetemp54 + \n csetemp55)*xformL21 + (csetemp56 + csetemp57 + csetemp58 + \n csetemp59)*xformL31;\n \n CCTK_REAL g422 CCTK_ATTRIBUTE_UNUSED = (csetemp28 + csetemp29 + \n csetemp30 + csetemp31)*xformL02 + (csetemp32 + csetemp33 + csetemp34 + \n csetemp35)*xformL12 + (csetemp36 + csetemp37 + csetemp38 + \n csetemp39)*xformL22 + (csetemp40 + csetemp41 + csetemp42 + \n csetemp43)*xformL32;\n \n CCTK_REAL g423 CCTK_ATTRIBUTE_UNUSED = (csetemp44 + csetemp45 + \n csetemp46 + csetemp47)*xformL02 + (csetemp48 + csetemp49 + csetemp50 + \n csetemp51)*xformL12 + (csetemp52 + csetemp53 + csetemp54 + \n csetemp55)*xformL22 + (csetemp56 + csetemp57 + csetemp58 + \n csetemp59)*xformL32;\n \n CCTK_REAL g433 CCTK_ATTRIBUTE_UNUSED = (csetemp44 + csetemp45 + \n csetemp46 + csetemp47)*xformL03 + (csetemp48 + csetemp49 + csetemp50 + \n csetemp51)*xformL13 + (csetemp52 + csetemp53 + csetemp54 + \n csetemp55)*xformL23 + (csetemp56 + csetemp57 + csetemp58 + \n csetemp59)*xformL33;\n \n CCTK_REAL csetemp60 CCTK_ATTRIBUTE_UNUSED = tdg4000*xformL00;\n \n CCTK_REAL csetemp61 CCTK_ATTRIBUTE_UNUSED = tdg4001*xformL10;\n \n CCTK_REAL csetemp62 CCTK_ATTRIBUTE_UNUSED = tdg4002*xformL20;\n \n CCTK_REAL csetemp63 CCTK_ATTRIBUTE_UNUSED = tdg4003*xformL30;\n \n CCTK_REAL csetemp64 CCTK_ATTRIBUTE_UNUSED = tdg4010*xformL00;\n \n CCTK_REAL csetemp65 CCTK_ATTRIBUTE_UNUSED = tdg4011*xformL10;\n \n CCTK_REAL csetemp66 CCTK_ATTRIBUTE_UNUSED = tdg4012*xformL20;\n \n CCTK_REAL csetemp67 CCTK_ATTRIBUTE_UNUSED = tdg4013*xformL30;\n \n CCTK_REAL csetemp68 CCTK_ATTRIBUTE_UNUSED = tdg4020*xformL00;\n \n CCTK_REAL csetemp69 CCTK_ATTRIBUTE_UNUSED = tdg4021*xformL10;\n \n CCTK_REAL csetemp70 CCTK_ATTRIBUTE_UNUSED = tdg4022*xformL20;\n \n CCTK_REAL csetemp71 CCTK_ATTRIBUTE_UNUSED = tdg4023*xformL30;\n \n CCTK_REAL csetemp72 CCTK_ATTRIBUTE_UNUSED = tdg4030*xformL00;\n \n CCTK_REAL csetemp73 CCTK_ATTRIBUTE_UNUSED = tdg4031*xformL10;\n \n CCTK_REAL csetemp74 CCTK_ATTRIBUTE_UNUSED = tdg4032*xformL20;\n \n CCTK_REAL csetemp75 CCTK_ATTRIBUTE_UNUSED = tdg4033*xformL30;\n \n CCTK_REAL csetemp76 CCTK_ATTRIBUTE_UNUSED = tdg4110*xformL00;\n \n CCTK_REAL csetemp77 CCTK_ATTRIBUTE_UNUSED = tdg4111*xformL10;\n \n CCTK_REAL csetemp78 CCTK_ATTRIBUTE_UNUSED = tdg4112*xformL20;\n \n CCTK_REAL csetemp79 CCTK_ATTRIBUTE_UNUSED = tdg4113*xformL30;\n \n CCTK_REAL csetemp80 CCTK_ATTRIBUTE_UNUSED = tdg4120*xformL00;\n \n CCTK_REAL csetemp81 CCTK_ATTRIBUTE_UNUSED = tdg4121*xformL10;\n \n CCTK_REAL csetemp82 CCTK_ATTRIBUTE_UNUSED = tdg4122*xformL20;\n \n CCTK_REAL csetemp83 CCTK_ATTRIBUTE_UNUSED = tdg4123*xformL30;\n \n CCTK_REAL csetemp84 CCTK_ATTRIBUTE_UNUSED = tdg4130*xformL00;\n \n CCTK_REAL csetemp85 CCTK_ATTRIBUTE_UNUSED = tdg4131*xformL10;\n \n CCTK_REAL csetemp86 CCTK_ATTRIBUTE_UNUSED = tdg4132*xformL20;\n \n CCTK_REAL csetemp87 CCTK_ATTRIBUTE_UNUSED = tdg4133*xformL30;\n \n CCTK_REAL csetemp88 CCTK_ATTRIBUTE_UNUSED = tdg4220*xformL00;\n \n CCTK_REAL csetemp89 CCTK_ATTRIBUTE_UNUSED = tdg4221*xformL10;\n \n CCTK_REAL csetemp90 CCTK_ATTRIBUTE_UNUSED = tdg4222*xformL20;\n \n CCTK_REAL csetemp91 CCTK_ATTRIBUTE_UNUSED = tdg4223*xformL30;\n \n CCTK_REAL csetemp92 CCTK_ATTRIBUTE_UNUSED = tdg4230*xformL00;\n \n CCTK_REAL csetemp93 CCTK_ATTRIBUTE_UNUSED = tdg4231*xformL10;\n \n CCTK_REAL csetemp94 CCTK_ATTRIBUTE_UNUSED = tdg4232*xformL20;\n \n CCTK_REAL csetemp95 CCTK_ATTRIBUTE_UNUSED = tdg4233*xformL30;\n \n CCTK_REAL csetemp96 CCTK_ATTRIBUTE_UNUSED = tdg4330*xformL00;\n \n CCTK_REAL csetemp97 CCTK_ATTRIBUTE_UNUSED = tdg4331*xformL10;\n \n CCTK_REAL csetemp98 CCTK_ATTRIBUTE_UNUSED = tdg4332*xformL20;\n \n CCTK_REAL csetemp99 CCTK_ATTRIBUTE_UNUSED = tdg4333*xformL30;\n \n CCTK_REAL dg4000 CCTK_ATTRIBUTE_UNUSED = 2*((csetemp92 + csetemp93 + \n csetemp94 + csetemp95)*xformL20*xformL30 + xformL00*((csetemp64 + \n csetemp65 + csetemp66 + csetemp67)*xformL10 + (csetemp68 + csetemp69 + \n csetemp70 + csetemp71)*xformL20 + (csetemp72 + csetemp73 + csetemp74 + \n csetemp75)*xformL30) + xformL10*((csetemp80 + csetemp81 + csetemp82 + \n csetemp83)*xformL20 + (csetemp84 + csetemp85 + csetemp86 + \n csetemp87)*xformL30)) + (csetemp60 + csetemp61 + csetemp62 + \n csetemp63)*pow(xformL00,2) + (csetemp76 + csetemp77 + csetemp78 + \n csetemp79)*pow(xformL10,2) + (csetemp88 + csetemp89 + csetemp90 + \n csetemp91)*pow(xformL20,2) + (csetemp96 + csetemp97 + csetemp98 + \n csetemp99)*pow(xformL30,2);\n \n CCTK_REAL dg4010 CCTK_ATTRIBUTE_UNUSED = xformL00*((csetemp60 + \n csetemp61 + csetemp62 + csetemp63)*xformL01 + (csetemp64 + csetemp65 + \n csetemp66 + csetemp67)*xformL11 + (csetemp68 + csetemp69 + csetemp70 + \n csetemp71)*xformL21 + (csetemp72 + csetemp73 + csetemp74 + \n csetemp75)*xformL31) + xformL10*((csetemp64 + csetemp65 + csetemp66 + \n csetemp67)*xformL01 + (csetemp76 + csetemp77 + csetemp78 + \n csetemp79)*xformL11 + (csetemp80 + csetemp81 + csetemp82 + \n csetemp83)*xformL21 + (csetemp84 + csetemp85 + csetemp86 + \n csetemp87)*xformL31) + xformL20*((csetemp68 + csetemp69 + csetemp70 + \n csetemp71)*xformL01 + (csetemp80 + csetemp81 + csetemp82 + \n csetemp83)*xformL11 + (csetemp88 + csetemp89 + csetemp90 + \n csetemp91)*xformL21 + (csetemp92 + csetemp93 + csetemp94 + \n csetemp95)*xformL31) + xformL30*((csetemp72 + csetemp73 + csetemp74 + \n csetemp75)*xformL01 + (csetemp84 + csetemp85 + csetemp86 + \n csetemp87)*xformL11 + (csetemp92 + csetemp93 + csetemp94 + \n csetemp95)*xformL21 + (csetemp96 + csetemp97 + csetemp98 + \n csetemp99)*xformL31);\n \n CCTK_REAL csetemp100 CCTK_ATTRIBUTE_UNUSED = tdg4000*xformL01;\n \n CCTK_REAL csetemp101 CCTK_ATTRIBUTE_UNUSED = tdg4001*xformL11;\n \n CCTK_REAL csetemp102 CCTK_ATTRIBUTE_UNUSED = tdg4002*xformL21;\n \n CCTK_REAL csetemp103 CCTK_ATTRIBUTE_UNUSED = tdg4003*xformL31;\n \n CCTK_REAL csetemp104 CCTK_ATTRIBUTE_UNUSED = tdg4010*xformL01;\n \n CCTK_REAL csetemp105 CCTK_ATTRIBUTE_UNUSED = tdg4011*xformL11;\n \n CCTK_REAL csetemp106 CCTK_ATTRIBUTE_UNUSED = tdg4012*xformL21;\n \n CCTK_REAL csetemp107 CCTK_ATTRIBUTE_UNUSED = tdg4013*xformL31;\n \n CCTK_REAL csetemp108 CCTK_ATTRIBUTE_UNUSED = tdg4020*xformL01;\n \n CCTK_REAL csetemp109 CCTK_ATTRIBUTE_UNUSED = tdg4021*xformL11;\n \n CCTK_REAL csetemp110 CCTK_ATTRIBUTE_UNUSED = tdg4022*xformL21;\n \n CCTK_REAL csetemp111 CCTK_ATTRIBUTE_UNUSED = tdg4023*xformL31;\n \n CCTK_REAL csetemp112 CCTK_ATTRIBUTE_UNUSED = tdg4030*xformL01;\n \n CCTK_REAL csetemp113 CCTK_ATTRIBUTE_UNUSED = tdg4031*xformL11;\n \n CCTK_REAL csetemp114 CCTK_ATTRIBUTE_UNUSED = tdg4032*xformL21;\n \n CCTK_REAL csetemp115 CCTK_ATTRIBUTE_UNUSED = tdg4033*xformL31;\n \n CCTK_REAL csetemp116 CCTK_ATTRIBUTE_UNUSED = tdg4110*xformL01;\n \n CCTK_REAL csetemp117 CCTK_ATTRIBUTE_UNUSED = tdg4111*xformL11;\n \n CCTK_REAL csetemp118 CCTK_ATTRIBUTE_UNUSED = tdg4112*xformL21;\n \n CCTK_REAL csetemp119 CCTK_ATTRIBUTE_UNUSED = tdg4113*xformL31;\n \n CCTK_REAL csetemp120 CCTK_ATTRIBUTE_UNUSED = tdg4120*xformL01;\n \n CCTK_REAL csetemp121 CCTK_ATTRIBUTE_UNUSED = tdg4121*xformL11;\n \n CCTK_REAL csetemp122 CCTK_ATTRIBUTE_UNUSED = tdg4122*xformL21;\n \n CCTK_REAL csetemp123 CCTK_ATTRIBUTE_UNUSED = tdg4123*xformL31;\n \n CCTK_REAL csetemp124 CCTK_ATTRIBUTE_UNUSED = tdg4130*xformL01;\n \n CCTK_REAL csetemp125 CCTK_ATTRIBUTE_UNUSED = tdg4131*xformL11;\n \n CCTK_REAL csetemp126 CCTK_ATTRIBUTE_UNUSED = tdg4132*xformL21;\n \n CCTK_REAL csetemp127 CCTK_ATTRIBUTE_UNUSED = tdg4133*xformL31;\n \n CCTK_REAL csetemp128 CCTK_ATTRIBUTE_UNUSED = tdg4220*xformL01;\n \n CCTK_REAL csetemp129 CCTK_ATTRIBUTE_UNUSED = tdg4221*xformL11;\n \n CCTK_REAL csetemp130 CCTK_ATTRIBUTE_UNUSED = tdg4222*xformL21;\n \n CCTK_REAL csetemp131 CCTK_ATTRIBUTE_UNUSED = tdg4223*xformL31;\n \n CCTK_REAL csetemp132 CCTK_ATTRIBUTE_UNUSED = tdg4230*xformL01;\n \n CCTK_REAL csetemp133 CCTK_ATTRIBUTE_UNUSED = tdg4231*xformL11;\n \n CCTK_REAL csetemp134 CCTK_ATTRIBUTE_UNUSED = tdg4232*xformL21;\n \n CCTK_REAL csetemp135 CCTK_ATTRIBUTE_UNUSED = tdg4233*xformL31;\n \n CCTK_REAL csetemp136 CCTK_ATTRIBUTE_UNUSED = tdg4330*xformL01;\n \n CCTK_REAL csetemp137 CCTK_ATTRIBUTE_UNUSED = tdg4331*xformL11;\n \n CCTK_REAL csetemp138 CCTK_ATTRIBUTE_UNUSED = tdg4332*xformL21;\n \n CCTK_REAL csetemp139 CCTK_ATTRIBUTE_UNUSED = tdg4333*xformL31;\n \n CCTK_REAL dg4011 CCTK_ATTRIBUTE_UNUSED = xformL00*((csetemp100 + \n csetemp101 + csetemp102 + csetemp103)*xformL01 + (csetemp104 + \n csetemp105 + csetemp106 + csetemp107)*xformL11 + (csetemp108 + \n csetemp109 + csetemp110 + csetemp111)*xformL21 + (csetemp112 + \n csetemp113 + csetemp114 + csetemp115)*xformL31) + xformL10*((csetemp104 \n + csetemp105 + csetemp106 + csetemp107)*xformL01 + (csetemp116 + \n csetemp117 + csetemp118 + csetemp119)*xformL11 + (csetemp120 + \n csetemp121 + csetemp122 + csetemp123)*xformL21 + (csetemp124 + \n csetemp125 + csetemp126 + csetemp127)*xformL31) + xformL20*((csetemp108 \n + csetemp109 + csetemp110 + csetemp111)*xformL01 + (csetemp120 + \n csetemp121 + csetemp122 + csetemp123)*xformL11 + (csetemp128 + \n csetemp129 + csetemp130 + csetemp131)*xformL21 + (csetemp132 + \n csetemp133 + csetemp134 + csetemp135)*xformL31) + xformL30*((csetemp112 \n + csetemp113 + csetemp114 + csetemp115)*xformL01 + (csetemp124 + \n csetemp125 + csetemp126 + csetemp127)*xformL11 + (csetemp132 + \n csetemp133 + csetemp134 + csetemp135)*xformL21 + (csetemp136 + \n csetemp137 + csetemp138 + csetemp139)*xformL31);\n \n CCTK_REAL csetemp140 CCTK_ATTRIBUTE_UNUSED = tdg4000*xformL02;\n \n CCTK_REAL csetemp141 CCTK_ATTRIBUTE_UNUSED = tdg4001*xformL12;\n \n CCTK_REAL csetemp142 CCTK_ATTRIBUTE_UNUSED = tdg4002*xformL22;\n \n CCTK_REAL csetemp143 CCTK_ATTRIBUTE_UNUSED = tdg4003*xformL32;\n \n CCTK_REAL csetemp144 CCTK_ATTRIBUTE_UNUSED = tdg4010*xformL02;\n \n CCTK_REAL csetemp145 CCTK_ATTRIBUTE_UNUSED = tdg4011*xformL12;\n \n CCTK_REAL csetemp146 CCTK_ATTRIBUTE_UNUSED = tdg4012*xformL22;\n \n CCTK_REAL csetemp147 CCTK_ATTRIBUTE_UNUSED = tdg4013*xformL32;\n \n CCTK_REAL csetemp148 CCTK_ATTRIBUTE_UNUSED = tdg4020*xformL02;\n \n CCTK_REAL csetemp149 CCTK_ATTRIBUTE_UNUSED = tdg4021*xformL12;\n \n CCTK_REAL csetemp150 CCTK_ATTRIBUTE_UNUSED = tdg4022*xformL22;\n \n CCTK_REAL csetemp151 CCTK_ATTRIBUTE_UNUSED = tdg4023*xformL32;\n \n CCTK_REAL csetemp152 CCTK_ATTRIBUTE_UNUSED = tdg4030*xformL02;\n \n CCTK_REAL csetemp153 CCTK_ATTRIBUTE_UNUSED = tdg4031*xformL12;\n \n CCTK_REAL csetemp154 CCTK_ATTRIBUTE_UNUSED = tdg4032*xformL22;\n \n CCTK_REAL csetemp155 CCTK_ATTRIBUTE_UNUSED = tdg4033*xformL32;\n \n CCTK_REAL csetemp156 CCTK_ATTRIBUTE_UNUSED = tdg4110*xformL02;\n \n CCTK_REAL csetemp157 CCTK_ATTRIBUTE_UNUSED = tdg4111*xformL12;\n \n CCTK_REAL csetemp158 CCTK_ATTRIBUTE_UNUSED = tdg4112*xformL22;\n \n CCTK_REAL csetemp159 CCTK_ATTRIBUTE_UNUSED = tdg4113*xformL32;\n \n CCTK_REAL csetemp160 CCTK_ATTRIBUTE_UNUSED = tdg4120*xformL02;\n \n CCTK_REAL csetemp161 CCTK_ATTRIBUTE_UNUSED = tdg4121*xformL12;\n \n CCTK_REAL csetemp162 CCTK_ATTRIBUTE_UNUSED = tdg4122*xformL22;\n \n CCTK_REAL csetemp163 CCTK_ATTRIBUTE_UNUSED = tdg4123*xformL32;\n \n CCTK_REAL csetemp164 CCTK_ATTRIBUTE_UNUSED = tdg4130*xformL02;\n \n CCTK_REAL csetemp165 CCTK_ATTRIBUTE_UNUSED = tdg4131*xformL12;\n \n CCTK_REAL csetemp166 CCTK_ATTRIBUTE_UNUSED = tdg4132*xformL22;\n \n CCTK_REAL csetemp167 CCTK_ATTRIBUTE_UNUSED = tdg4133*xformL32;\n \n CCTK_REAL csetemp168 CCTK_ATTRIBUTE_UNUSED = tdg4220*xformL02;\n \n CCTK_REAL csetemp169 CCTK_ATTRIBUTE_UNUSED = tdg4221*xformL12;\n \n CCTK_REAL csetemp170 CCTK_ATTRIBUTE_UNUSED = tdg4222*xformL22;\n \n CCTK_REAL csetemp171 CCTK_ATTRIBUTE_UNUSED = tdg4223*xformL32;\n \n CCTK_REAL csetemp172 CCTK_ATTRIBUTE_UNUSED = tdg4230*xformL02;\n \n CCTK_REAL csetemp173 CCTK_ATTRIBUTE_UNUSED = tdg4231*xformL12;\n \n CCTK_REAL csetemp174 CCTK_ATTRIBUTE_UNUSED = tdg4232*xformL22;\n \n CCTK_REAL csetemp175 CCTK_ATTRIBUTE_UNUSED = tdg4233*xformL32;\n \n CCTK_REAL csetemp176 CCTK_ATTRIBUTE_UNUSED = tdg4330*xformL02;\n \n CCTK_REAL csetemp177 CCTK_ATTRIBUTE_UNUSED = tdg4331*xformL12;\n \n CCTK_REAL csetemp178 CCTK_ATTRIBUTE_UNUSED = tdg4332*xformL22;\n \n CCTK_REAL csetemp179 CCTK_ATTRIBUTE_UNUSED = tdg4333*xformL32;\n \n CCTK_REAL dg4012 CCTK_ATTRIBUTE_UNUSED = xformL00*((csetemp140 + \n csetemp141 + csetemp142 + csetemp143)*xformL01 + (csetemp144 + \n csetemp145 + csetemp146 + csetemp147)*xformL11 + (csetemp148 + \n csetemp149 + csetemp150 + csetemp151)*xformL21 + (csetemp152 + \n csetemp153 + csetemp154 + csetemp155)*xformL31) + xformL10*((csetemp144 \n + csetemp145 + csetemp146 + csetemp147)*xformL01 + (csetemp156 + \n csetemp157 + csetemp158 + csetemp159)*xformL11 + (csetemp160 + \n csetemp161 + csetemp162 + csetemp163)*xformL21 + (csetemp164 + \n csetemp165 + csetemp166 + csetemp167)*xformL31) + xformL20*((csetemp148 \n + csetemp149 + csetemp150 + csetemp151)*xformL01 + (csetemp160 + \n csetemp161 + csetemp162 + csetemp163)*xformL11 + (csetemp168 + \n csetemp169 + csetemp170 + csetemp171)*xformL21 + (csetemp172 + \n csetemp173 + csetemp174 + csetemp175)*xformL31) + xformL30*((csetemp152 \n + csetemp153 + csetemp154 + csetemp155)*xformL01 + (csetemp164 + \n csetemp165 + csetemp166 + csetemp167)*xformL11 + (csetemp172 + \n csetemp173 + csetemp174 + csetemp175)*xformL21 + (csetemp176 + \n csetemp177 + csetemp178 + csetemp179)*xformL31);\n \n CCTK_REAL csetemp180 CCTK_ATTRIBUTE_UNUSED = tdg4000*xformL03;\n \n CCTK_REAL csetemp181 CCTK_ATTRIBUTE_UNUSED = tdg4001*xformL13;\n \n CCTK_REAL csetemp182 CCTK_ATTRIBUTE_UNUSED = tdg4002*xformL23;\n \n CCTK_REAL csetemp183 CCTK_ATTRIBUTE_UNUSED = tdg4003*xformL33;\n \n CCTK_REAL csetemp184 CCTK_ATTRIBUTE_UNUSED = tdg4010*xformL03;\n \n CCTK_REAL csetemp185 CCTK_ATTRIBUTE_UNUSED = tdg4011*xformL13;\n \n CCTK_REAL csetemp186 CCTK_ATTRIBUTE_UNUSED = tdg4012*xformL23;\n \n CCTK_REAL csetemp187 CCTK_ATTRIBUTE_UNUSED = tdg4013*xformL33;\n \n CCTK_REAL csetemp188 CCTK_ATTRIBUTE_UNUSED = tdg4020*xformL03;\n \n CCTK_REAL csetemp189 CCTK_ATTRIBUTE_UNUSED = tdg4021*xformL13;\n \n CCTK_REAL csetemp190 CCTK_ATTRIBUTE_UNUSED = tdg4022*xformL23;\n \n CCTK_REAL csetemp191 CCTK_ATTRIBUTE_UNUSED = tdg4023*xformL33;\n \n CCTK_REAL csetemp192 CCTK_ATTRIBUTE_UNUSED = tdg4030*xformL03;\n \n CCTK_REAL csetemp193 CCTK_ATTRIBUTE_UNUSED = tdg4031*xformL13;\n \n CCTK_REAL csetemp194 CCTK_ATTRIBUTE_UNUSED = tdg4032*xformL23;\n \n CCTK_REAL csetemp195 CCTK_ATTRIBUTE_UNUSED = tdg4033*xformL33;\n \n CCTK_REAL csetemp196 CCTK_ATTRIBUTE_UNUSED = tdg4110*xformL03;\n \n CCTK_REAL csetemp197 CCTK_ATTRIBUTE_UNUSED = tdg4111*xformL13;\n \n CCTK_REAL csetemp198 CCTK_ATTRIBUTE_UNUSED = tdg4112*xformL23;\n \n CCTK_REAL csetemp199 CCTK_ATTRIBUTE_UNUSED = tdg4113*xformL33;\n \n CCTK_REAL csetemp200 CCTK_ATTRIBUTE_UNUSED = tdg4120*xformL03;\n \n CCTK_REAL csetemp201 CCTK_ATTRIBUTE_UNUSED = tdg4121*xformL13;\n \n CCTK_REAL csetemp202 CCTK_ATTRIBUTE_UNUSED = tdg4122*xformL23;\n \n CCTK_REAL csetemp203 CCTK_ATTRIBUTE_UNUSED = tdg4123*xformL33;\n \n CCTK_REAL csetemp204 CCTK_ATTRIBUTE_UNUSED = tdg4130*xformL03;\n \n CCTK_REAL csetemp205 CCTK_ATTRIBUTE_UNUSED = tdg4131*xformL13;\n \n CCTK_REAL csetemp206 CCTK_ATTRIBUTE_UNUSED = tdg4132*xformL23;\n \n CCTK_REAL csetemp207 CCTK_ATTRIBUTE_UNUSED = tdg4133*xformL33;\n \n CCTK_REAL csetemp208 CCTK_ATTRIBUTE_UNUSED = tdg4220*xformL03;\n \n CCTK_REAL csetemp209 CCTK_ATTRIBUTE_UNUSED = tdg4221*xformL13;\n \n CCTK_REAL csetemp210 CCTK_ATTRIBUTE_UNUSED = tdg4222*xformL23;\n \n CCTK_REAL csetemp211 CCTK_ATTRIBUTE_UNUSED = tdg4223*xformL33;\n \n CCTK_REAL csetemp212 CCTK_ATTRIBUTE_UNUSED = tdg4230*xformL03;\n \n CCTK_REAL csetemp213 CCTK_ATTRIBUTE_UNUSED = tdg4231*xformL13;\n \n CCTK_REAL csetemp214 CCTK_ATTRIBUTE_UNUSED = tdg4232*xformL23;\n \n CCTK_REAL csetemp215 CCTK_ATTRIBUTE_UNUSED = tdg4233*xformL33;\n \n CCTK_REAL csetemp216 CCTK_ATTRIBUTE_UNUSED = tdg4330*xformL03;\n \n CCTK_REAL csetemp217 CCTK_ATTRIBUTE_UNUSED = tdg4331*xformL13;\n \n CCTK_REAL csetemp218 CCTK_ATTRIBUTE_UNUSED = tdg4332*xformL23;\n \n CCTK_REAL csetemp219 CCTK_ATTRIBUTE_UNUSED = tdg4333*xformL33;\n \n CCTK_REAL dg4013 CCTK_ATTRIBUTE_UNUSED = xformL00*((csetemp180 + \n csetemp181 + csetemp182 + csetemp183)*xformL01 + (csetemp184 + \n csetemp185 + csetemp186 + csetemp187)*xformL11 + (csetemp188 + \n csetemp189 + csetemp190 + csetemp191)*xformL21 + (csetemp192 + \n csetemp193 + csetemp194 + csetemp195)*xformL31) + xformL10*((csetemp184 \n + csetemp185 + csetemp186 + csetemp187)*xformL01 + (csetemp196 + \n csetemp197 + csetemp198 + csetemp199)*xformL11 + (csetemp200 + \n csetemp201 + csetemp202 + csetemp203)*xformL21 + (csetemp204 + \n csetemp205 + csetemp206 + csetemp207)*xformL31) + xformL20*((csetemp188 \n + csetemp189 + csetemp190 + csetemp191)*xformL01 + (csetemp200 + \n csetemp201 + csetemp202 + csetemp203)*xformL11 + (csetemp208 + \n csetemp209 + csetemp210 + csetemp211)*xformL21 + (csetemp212 + \n csetemp213 + csetemp214 + csetemp215)*xformL31) + xformL30*((csetemp192 \n + csetemp193 + csetemp194 + csetemp195)*xformL01 + (csetemp204 + \n csetemp205 + csetemp206 + csetemp207)*xformL11 + (csetemp212 + \n csetemp213 + csetemp214 + csetemp215)*xformL21 + (csetemp216 + \n csetemp217 + csetemp218 + csetemp219)*xformL31);\n \n CCTK_REAL dg4020 CCTK_ATTRIBUTE_UNUSED = xformL00*((csetemp60 + \n csetemp61 + csetemp62 + csetemp63)*xformL02 + (csetemp64 + csetemp65 + \n csetemp66 + csetemp67)*xformL12 + (csetemp68 + csetemp69 + csetemp70 + \n csetemp71)*xformL22 + (csetemp72 + csetemp73 + csetemp74 + \n csetemp75)*xformL32) + xformL10*((csetemp64 + csetemp65 + csetemp66 + \n csetemp67)*xformL02 + (csetemp76 + csetemp77 + csetemp78 + \n csetemp79)*xformL12 + (csetemp80 + csetemp81 + csetemp82 + \n csetemp83)*xformL22 + (csetemp84 + csetemp85 + csetemp86 + \n csetemp87)*xformL32) + xformL20*((csetemp68 + csetemp69 + csetemp70 + \n csetemp71)*xformL02 + (csetemp80 + csetemp81 + csetemp82 + \n csetemp83)*xformL12 + (csetemp88 + csetemp89 + csetemp90 + \n csetemp91)*xformL22 + (csetemp92 + csetemp93 + csetemp94 + \n csetemp95)*xformL32) + xformL30*((csetemp72 + csetemp73 + csetemp74 + \n csetemp75)*xformL02 + (csetemp84 + csetemp85 + csetemp86 + \n csetemp87)*xformL12 + (csetemp92 + csetemp93 + csetemp94 + \n csetemp95)*xformL22 + (csetemp96 + csetemp97 + csetemp98 + \n csetemp99)*xformL32);\n \n CCTK_REAL dg4021 CCTK_ATTRIBUTE_UNUSED = xformL00*((csetemp100 + \n csetemp101 + csetemp102 + csetemp103)*xformL02 + (csetemp104 + \n csetemp105 + csetemp106 + csetemp107)*xformL12 + (csetemp108 + \n csetemp109 + csetemp110 + csetemp111)*xformL22 + (csetemp112 + \n csetemp113 + csetemp114 + csetemp115)*xformL32) + xformL10*((csetemp104 \n + csetemp105 + csetemp106 + csetemp107)*xformL02 + (csetemp116 + \n csetemp117 + csetemp118 + csetemp119)*xformL12 + (csetemp120 + \n csetemp121 + csetemp122 + csetemp123)*xformL22 + (csetemp124 + \n csetemp125 + csetemp126 + csetemp127)*xformL32) + xformL20*((csetemp108 \n + csetemp109 + csetemp110 + csetemp111)*xformL02 + (csetemp120 + \n csetemp121 + csetemp122 + csetemp123)*xformL12 + (csetemp128 + \n csetemp129 + csetemp130 + csetemp131)*xformL22 + (csetemp132 + \n csetemp133 + csetemp134 + csetemp135)*xformL32) + xformL30*((csetemp112 \n + csetemp113 + csetemp114 + csetemp115)*xformL02 + (csetemp124 + \n csetemp125 + csetemp126 + csetemp127)*xformL12 + (csetemp132 + \n csetemp133 + csetemp134 + csetemp135)*xformL22 + (csetemp136 + \n csetemp137 + csetemp138 + csetemp139)*xformL32);\n \n CCTK_REAL dg4022 CCTK_ATTRIBUTE_UNUSED = xformL00*((csetemp140 + \n csetemp141 + csetemp142 + csetemp143)*xformL02 + (csetemp144 + \n csetemp145 + csetemp146 + csetemp147)*xformL12 + (csetemp148 + \n csetemp149 + csetemp150 + csetemp151)*xformL22 + (csetemp152 + \n csetemp153 + csetemp154 + csetemp155)*xformL32) + xformL10*((csetemp144 \n + csetemp145 + csetemp146 + csetemp147)*xformL02 + (csetemp156 + \n csetemp157 + csetemp158 + csetemp159)*xformL12 + (csetemp160 + \n csetemp161 + csetemp162 + csetemp163)*xformL22 + (csetemp164 + \n csetemp165 + csetemp166 + csetemp167)*xformL32) + xformL20*((csetemp148 \n + csetemp149 + csetemp150 + csetemp151)*xformL02 + (csetemp160 + \n csetemp161 + csetemp162 + csetemp163)*xformL12 + (csetemp168 + \n csetemp169 + csetemp170 + csetemp171)*xformL22 + (csetemp172 + \n csetemp173 + csetemp174 + csetemp175)*xformL32) + xformL30*((csetemp152 \n + csetemp153 + csetemp154 + csetemp155)*xformL02 + (csetemp164 + \n csetemp165 + csetemp166 + csetemp167)*xformL12 + (csetemp172 + \n csetemp173 + csetemp174 + csetemp175)*xformL22 + (csetemp176 + \n csetemp177 + csetemp178 + csetemp179)*xformL32);\n \n CCTK_REAL dg4023 CCTK_ATTRIBUTE_UNUSED = xformL00*((csetemp180 + \n csetemp181 + csetemp182 + csetemp183)*xformL02 + (csetemp184 + \n csetemp185 + csetemp186 + csetemp187)*xformL12 + (csetemp188 + \n csetemp189 + csetemp190 + csetemp191)*xformL22 + (csetemp192 + \n csetemp193 + csetemp194 + csetemp195)*xformL32) + xformL10*((csetemp184 \n + csetemp185 + csetemp186 + csetemp187)*xformL02 + (csetemp196 + \n csetemp197 + csetemp198 + csetemp199)*xformL12 + (csetemp200 + \n csetemp201 + csetemp202 + csetemp203)*xformL22 + (csetemp204 + \n csetemp205 + csetemp206 + csetemp207)*xformL32) + xformL20*((csetemp188 \n + csetemp189 + csetemp190 + csetemp191)*xformL02 + (csetemp200 + \n csetemp201 + csetemp202 + csetemp203)*xformL12 + (csetemp208 + \n csetemp209 + csetemp210 + csetemp211)*xformL22 + (csetemp212 + \n csetemp213 + csetemp214 + csetemp215)*xformL32) + xformL30*((csetemp192 \n + csetemp193 + csetemp194 + csetemp195)*xformL02 + (csetemp204 + \n csetemp205 + csetemp206 + csetemp207)*xformL12 + (csetemp212 + \n csetemp213 + csetemp214 + csetemp215)*xformL22 + (csetemp216 + \n csetemp217 + csetemp218 + csetemp219)*xformL32);\n \n CCTK_REAL dg4030 CCTK_ATTRIBUTE_UNUSED = xformL00*((csetemp60 + \n csetemp61 + csetemp62 + csetemp63)*xformL03 + (csetemp64 + csetemp65 + \n csetemp66 + csetemp67)*xformL13 + (csetemp68 + csetemp69 + csetemp70 + \n csetemp71)*xformL23 + (csetemp72 + csetemp73 + csetemp74 + \n csetemp75)*xformL33) + xformL10*((csetemp64 + csetemp65 + csetemp66 + \n csetemp67)*xformL03 + (csetemp76 + csetemp77 + csetemp78 + \n csetemp79)*xformL13 + (csetemp80 + csetemp81 + csetemp82 + \n csetemp83)*xformL23 + (csetemp84 + csetemp85 + csetemp86 + \n csetemp87)*xformL33) + xformL20*((csetemp68 + csetemp69 + csetemp70 + \n csetemp71)*xformL03 + (csetemp80 + csetemp81 + csetemp82 + \n csetemp83)*xformL13 + (csetemp88 + csetemp89 + csetemp90 + \n csetemp91)*xformL23 + (csetemp92 + csetemp93 + csetemp94 + \n csetemp95)*xformL33) + xformL30*((csetemp72 + csetemp73 + csetemp74 + \n csetemp75)*xformL03 + (csetemp84 + csetemp85 + csetemp86 + \n csetemp87)*xformL13 + (csetemp92 + csetemp93 + csetemp94 + \n csetemp95)*xformL23 + (csetemp96 + csetemp97 + csetemp98 + \n csetemp99)*xformL33);\n \n CCTK_REAL dg4031 CCTK_ATTRIBUTE_UNUSED = xformL00*((csetemp100 + \n csetemp101 + csetemp102 + csetemp103)*xformL03 + (csetemp104 + \n csetemp105 + csetemp106 + csetemp107)*xformL13 + (csetemp108 + \n csetemp109 + csetemp110 + csetemp111)*xformL23 + (csetemp112 + \n csetemp113 + csetemp114 + csetemp115)*xformL33) + xformL10*((csetemp104 \n + csetemp105 + csetemp106 + csetemp107)*xformL03 + (csetemp116 + \n csetemp117 + csetemp118 + csetemp119)*xformL13 + (csetemp120 + \n csetemp121 + csetemp122 + csetemp123)*xformL23 + (csetemp124 + \n csetemp125 + csetemp126 + csetemp127)*xformL33) + xformL20*((csetemp108 \n + csetemp109 + csetemp110 + csetemp111)*xformL03 + (csetemp120 + \n csetemp121 + csetemp122 + csetemp123)*xformL13 + (csetemp128 + \n csetemp129 + csetemp130 + csetemp131)*xformL23 + (csetemp132 + \n csetemp133 + csetemp134 + csetemp135)*xformL33) + xformL30*((csetemp112 \n + csetemp113 + csetemp114 + csetemp115)*xformL03 + (csetemp124 + \n csetemp125 + csetemp126 + csetemp127)*xformL13 + (csetemp132 + \n csetemp133 + csetemp134 + csetemp135)*xformL23 + (csetemp136 + \n csetemp137 + csetemp138 + csetemp139)*xformL33);\n \n CCTK_REAL dg4032 CCTK_ATTRIBUTE_UNUSED = xformL00*((csetemp140 + \n csetemp141 + csetemp142 + csetemp143)*xformL03 + (csetemp144 + \n csetemp145 + csetemp146 + csetemp147)*xformL13 + (csetemp148 + \n csetemp149 + csetemp150 + csetemp151)*xformL23 + (csetemp152 + \n csetemp153 + csetemp154 + csetemp155)*xformL33) + xformL10*((csetemp144 \n + csetemp145 + csetemp146 + csetemp147)*xformL03 + (csetemp156 + \n csetemp157 + csetemp158 + csetemp159)*xformL13 + (csetemp160 + \n csetemp161 + csetemp162 + csetemp163)*xformL23 + (csetemp164 + \n csetemp165 + csetemp166 + csetemp167)*xformL33) + xformL20*((csetemp148 \n + csetemp149 + csetemp150 + csetemp151)*xformL03 + (csetemp160 + \n csetemp161 + csetemp162 + csetemp163)*xformL13 + (csetemp168 + \n csetemp169 + csetemp170 + csetemp171)*xformL23 + (csetemp172 + \n csetemp173 + csetemp174 + csetemp175)*xformL33) + xformL30*((csetemp152 \n + csetemp153 + csetemp154 + csetemp155)*xformL03 + (csetemp164 + \n csetemp165 + csetemp166 + csetemp167)*xformL13 + (csetemp172 + \n csetemp173 + csetemp174 + csetemp175)*xformL23 + (csetemp176 + \n csetemp177 + csetemp178 + csetemp179)*xformL33);\n \n CCTK_REAL dg4033 CCTK_ATTRIBUTE_UNUSED = xformL00*((csetemp180 + \n csetemp181 + csetemp182 + csetemp183)*xformL03 + (csetemp184 + \n csetemp185 + csetemp186 + csetemp187)*xformL13 + (csetemp188 + \n csetemp189 + csetemp190 + csetemp191)*xformL23 + (csetemp192 + \n csetemp193 + csetemp194 + csetemp195)*xformL33) + xformL10*((csetemp184 \n + csetemp185 + csetemp186 + csetemp187)*xformL03 + (csetemp196 + \n csetemp197 + csetemp198 + csetemp199)*xformL13 + (csetemp200 + \n csetemp201 + csetemp202 + csetemp203)*xformL23 + (csetemp204 + \n csetemp205 + csetemp206 + csetemp207)*xformL33) + xformL20*((csetemp188 \n + csetemp189 + csetemp190 + csetemp191)*xformL03 + (csetemp200 + \n csetemp201 + csetemp202 + csetemp203)*xformL13 + (csetemp208 + \n csetemp209 + csetemp210 + csetemp211)*xformL23 + (csetemp212 + \n csetemp213 + csetemp214 + csetemp215)*xformL33) + xformL30*((csetemp192 \n + csetemp193 + csetemp194 + csetemp195)*xformL03 + (csetemp204 + \n csetemp205 + csetemp206 + csetemp207)*xformL13 + (csetemp212 + \n csetemp213 + csetemp214 + csetemp215)*xformL23 + (csetemp216 + \n csetemp217 + csetemp218 + csetemp219)*xformL33);\n \n CCTK_REAL dg4110 CCTK_ATTRIBUTE_UNUSED = 2*((csetemp92 + csetemp93 + \n csetemp94 + csetemp95)*xformL21*xformL31 + xformL01*((csetemp64 + \n csetemp65 + csetemp66 + csetemp67)*xformL11 + (csetemp68 + csetemp69 + \n csetemp70 + csetemp71)*xformL21 + (csetemp72 + csetemp73 + csetemp74 + \n csetemp75)*xformL31) + xformL11*((csetemp80 + csetemp81 + csetemp82 + \n csetemp83)*xformL21 + (csetemp84 + csetemp85 + csetemp86 + \n csetemp87)*xformL31)) + (csetemp60 + csetemp61 + csetemp62 + \n csetemp63)*pow(xformL01,2) + (csetemp76 + csetemp77 + csetemp78 + \n csetemp79)*pow(xformL11,2) + (csetemp88 + csetemp89 + csetemp90 + \n csetemp91)*pow(xformL21,2) + (csetemp96 + csetemp97 + csetemp98 + \n csetemp99)*pow(xformL31,2);\n \n CCTK_REAL dg4111 CCTK_ATTRIBUTE_UNUSED = 2*((csetemp132 + csetemp133 + \n csetemp134 + csetemp135)*xformL21*xformL31 + xformL01*((csetemp104 + \n csetemp105 + csetemp106 + csetemp107)*xformL11 + (csetemp108 + \n csetemp109 + csetemp110 + csetemp111)*xformL21 + (csetemp112 + \n csetemp113 + csetemp114 + csetemp115)*xformL31) + xformL11*((csetemp120 \n + csetemp121 + csetemp122 + csetemp123)*xformL21 + (csetemp124 + \n csetemp125 + csetemp126 + csetemp127)*xformL31)) + (csetemp100 + \n csetemp101 + csetemp102 + csetemp103)*pow(xformL01,2) + (csetemp116 + \n csetemp117 + csetemp118 + csetemp119)*pow(xformL11,2) + (csetemp128 + \n csetemp129 + csetemp130 + csetemp131)*pow(xformL21,2) + (csetemp136 + \n csetemp137 + csetemp138 + csetemp139)*pow(xformL31,2);\n \n CCTK_REAL dg4112 CCTK_ATTRIBUTE_UNUSED = 2*((csetemp172 + csetemp173 + \n csetemp174 + csetemp175)*xformL21*xformL31 + xformL01*((csetemp144 + \n csetemp145 + csetemp146 + csetemp147)*xformL11 + (csetemp148 + \n csetemp149 + csetemp150 + csetemp151)*xformL21 + (csetemp152 + \n csetemp153 + csetemp154 + csetemp155)*xformL31) + xformL11*((csetemp160 \n + csetemp161 + csetemp162 + csetemp163)*xformL21 + (csetemp164 + \n csetemp165 + csetemp166 + csetemp167)*xformL31)) + (csetemp140 + \n csetemp141 + csetemp142 + csetemp143)*pow(xformL01,2) + (csetemp156 + \n csetemp157 + csetemp158 + csetemp159)*pow(xformL11,2) + (csetemp168 + \n csetemp169 + csetemp170 + csetemp171)*pow(xformL21,2) + (csetemp176 + \n csetemp177 + csetemp178 + csetemp179)*pow(xformL31,2);\n \n CCTK_REAL dg4113 CCTK_ATTRIBUTE_UNUSED = 2*((csetemp212 + csetemp213 + \n csetemp214 + csetemp215)*xformL21*xformL31 + xformL01*((csetemp184 + \n csetemp185 + csetemp186 + csetemp187)*xformL11 + (csetemp188 + \n csetemp189 + csetemp190 + csetemp191)*xformL21 + (csetemp192 + \n csetemp193 + csetemp194 + csetemp195)*xformL31) + xformL11*((csetemp200 \n + csetemp201 + csetemp202 + csetemp203)*xformL21 + (csetemp204 + \n csetemp205 + csetemp206 + csetemp207)*xformL31)) + (csetemp180 + \n csetemp181 + csetemp182 + csetemp183)*pow(xformL01,2) + (csetemp196 + \n csetemp197 + csetemp198 + csetemp199)*pow(xformL11,2) + (csetemp208 + \n csetemp209 + csetemp210 + csetemp211)*pow(xformL21,2) + (csetemp216 + \n csetemp217 + csetemp218 + csetemp219)*pow(xformL31,2);\n \n CCTK_REAL dg4120 CCTK_ATTRIBUTE_UNUSED = xformL01*((csetemp60 + \n csetemp61 + csetemp62 + csetemp63)*xformL02 + (csetemp64 + csetemp65 + \n csetemp66 + csetemp67)*xformL12 + (csetemp68 + csetemp69 + csetemp70 + \n csetemp71)*xformL22 + (csetemp72 + csetemp73 + csetemp74 + \n csetemp75)*xformL32) + xformL11*((csetemp64 + csetemp65 + csetemp66 + \n csetemp67)*xformL02 + (csetemp76 + csetemp77 + csetemp78 + \n csetemp79)*xformL12 + (csetemp80 + csetemp81 + csetemp82 + \n csetemp83)*xformL22 + (csetemp84 + csetemp85 + csetemp86 + \n csetemp87)*xformL32) + xformL21*((csetemp68 + csetemp69 + csetemp70 + \n csetemp71)*xformL02 + (csetemp80 + csetemp81 + csetemp82 + \n csetemp83)*xformL12 + (csetemp88 + csetemp89 + csetemp90 + \n csetemp91)*xformL22 + (csetemp92 + csetemp93 + csetemp94 + \n csetemp95)*xformL32) + xformL31*((csetemp72 + csetemp73 + csetemp74 + \n csetemp75)*xformL02 + (csetemp84 + csetemp85 + csetemp86 + \n csetemp87)*xformL12 + (csetemp92 + csetemp93 + csetemp94 + \n csetemp95)*xformL22 + (csetemp96 + csetemp97 + csetemp98 + \n csetemp99)*xformL32);\n \n CCTK_REAL dg4121 CCTK_ATTRIBUTE_UNUSED = xformL01*((csetemp100 + \n csetemp101 + csetemp102 + csetemp103)*xformL02 + (csetemp104 + \n csetemp105 + csetemp106 + csetemp107)*xformL12 + (csetemp108 + \n csetemp109 + csetemp110 + csetemp111)*xformL22 + (csetemp112 + \n csetemp113 + csetemp114 + csetemp115)*xformL32) + xformL11*((csetemp104 \n + csetemp105 + csetemp106 + csetemp107)*xformL02 + (csetemp116 + \n csetemp117 + csetemp118 + csetemp119)*xformL12 + (csetemp120 + \n csetemp121 + csetemp122 + csetemp123)*xformL22 + (csetemp124 + \n csetemp125 + csetemp126 + csetemp127)*xformL32) + xformL21*((csetemp108 \n + csetemp109 + csetemp110 + csetemp111)*xformL02 + (csetemp120 + \n csetemp121 + csetemp122 + csetemp123)*xformL12 + (csetemp128 + \n csetemp129 + csetemp130 + csetemp131)*xformL22 + (csetemp132 + \n csetemp133 + csetemp134 + csetemp135)*xformL32) + xformL31*((csetemp112 \n + csetemp113 + csetemp114 + csetemp115)*xformL02 + (csetemp124 + \n csetemp125 + csetemp126 + csetemp127)*xformL12 + (csetemp132 + \n csetemp133 + csetemp134 + csetemp135)*xformL22 + (csetemp136 + \n csetemp137 + csetemp138 + csetemp139)*xformL32);\n \n CCTK_REAL dg4122 CCTK_ATTRIBUTE_UNUSED = xformL01*((csetemp140 + \n csetemp141 + csetemp142 + csetemp143)*xformL02 + (csetemp144 + \n csetemp145 + csetemp146 + csetemp147)*xformL12 + (csetemp148 + \n csetemp149 + csetemp150 + csetemp151)*xformL22 + (csetemp152 + \n csetemp153 + csetemp154 + csetemp155)*xformL32) + xformL11*((csetemp144 \n + csetemp145 + csetemp146 + csetemp147)*xformL02 + (csetemp156 + \n csetemp157 + csetemp158 + csetemp159)*xformL12 + (csetemp160 + \n csetemp161 + csetemp162 + csetemp163)*xformL22 + (csetemp164 + \n csetemp165 + csetemp166 + csetemp167)*xformL32) + xformL21*((csetemp148 \n + csetemp149 + csetemp150 + csetemp151)*xformL02 + (csetemp160 + \n csetemp161 + csetemp162 + csetemp163)*xformL12 + (csetemp168 + \n csetemp169 + csetemp170 + csetemp171)*xformL22 + (csetemp172 + \n csetemp173 + csetemp174 + csetemp175)*xformL32) + xformL31*((csetemp152 \n + csetemp153 + csetemp154 + csetemp155)*xformL02 + (csetemp164 + \n csetemp165 + csetemp166 + csetemp167)*xformL12 + (csetemp172 + \n csetemp173 + csetemp174 + csetemp175)*xformL22 + (csetemp176 + \n csetemp177 + csetemp178 + csetemp179)*xformL32);\n \n CCTK_REAL dg4123 CCTK_ATTRIBUTE_UNUSED = xformL01*((csetemp180 + \n csetemp181 + csetemp182 + csetemp183)*xformL02 + (csetemp184 + \n csetemp185 + csetemp186 + csetemp187)*xformL12 + (csetemp188 + \n csetemp189 + csetemp190 + csetemp191)*xformL22 + (csetemp192 + \n csetemp193 + csetemp194 + csetemp195)*xformL32) + xformL11*((csetemp184 \n + csetemp185 + csetemp186 + csetemp187)*xformL02 + (csetemp196 + \n csetemp197 + csetemp198 + csetemp199)*xformL12 + (csetemp200 + \n csetemp201 + csetemp202 + csetemp203)*xformL22 + (csetemp204 + \n csetemp205 + csetemp206 + csetemp207)*xformL32) + xformL21*((csetemp188 \n + csetemp189 + csetemp190 + csetemp191)*xformL02 + (csetemp200 + \n csetemp201 + csetemp202 + csetemp203)*xformL12 + (csetemp208 + \n csetemp209 + csetemp210 + csetemp211)*xformL22 + (csetemp212 + \n csetemp213 + csetemp214 + csetemp215)*xformL32) + xformL31*((csetemp192 \n + csetemp193 + csetemp194 + csetemp195)*xformL02 + (csetemp204 + \n csetemp205 + csetemp206 + csetemp207)*xformL12 + (csetemp212 + \n csetemp213 + csetemp214 + csetemp215)*xformL22 + (csetemp216 + \n csetemp217 + csetemp218 + csetemp219)*xformL32);\n \n CCTK_REAL dg4130 CCTK_ATTRIBUTE_UNUSED = xformL01*((csetemp60 + \n csetemp61 + csetemp62 + csetemp63)*xformL03 + (csetemp64 + csetemp65 + \n csetemp66 + csetemp67)*xformL13 + (csetemp68 + csetemp69 + csetemp70 + \n csetemp71)*xformL23 + (csetemp72 + csetemp73 + csetemp74 + \n csetemp75)*xformL33) + xformL11*((csetemp64 + csetemp65 + csetemp66 + \n csetemp67)*xformL03 + (csetemp76 + csetemp77 + csetemp78 + \n csetemp79)*xformL13 + (csetemp80 + csetemp81 + csetemp82 + \n csetemp83)*xformL23 + (csetemp84 + csetemp85 + csetemp86 + \n csetemp87)*xformL33) + xformL21*((csetemp68 + csetemp69 + csetemp70 + \n csetemp71)*xformL03 + (csetemp80 + csetemp81 + csetemp82 + \n csetemp83)*xformL13 + (csetemp88 + csetemp89 + csetemp90 + \n csetemp91)*xformL23 + (csetemp92 + csetemp93 + csetemp94 + \n csetemp95)*xformL33) + xformL31*((csetemp72 + csetemp73 + csetemp74 + \n csetemp75)*xformL03 + (csetemp84 + csetemp85 + csetemp86 + \n csetemp87)*xformL13 + (csetemp92 + csetemp93 + csetemp94 + \n csetemp95)*xformL23 + (csetemp96 + csetemp97 + csetemp98 + \n csetemp99)*xformL33);\n \n CCTK_REAL dg4131 CCTK_ATTRIBUTE_UNUSED = xformL01*((csetemp100 + \n csetemp101 + csetemp102 + csetemp103)*xformL03 + (csetemp104 + \n csetemp105 + csetemp106 + csetemp107)*xformL13 + (csetemp108 + \n csetemp109 + csetemp110 + csetemp111)*xformL23 + (csetemp112 + \n csetemp113 + csetemp114 + csetemp115)*xformL33) + xformL11*((csetemp104 \n + csetemp105 + csetemp106 + csetemp107)*xformL03 + (csetemp116 + \n csetemp117 + csetemp118 + csetemp119)*xformL13 + (csetemp120 + \n csetemp121 + csetemp122 + csetemp123)*xformL23 + (csetemp124 + \n csetemp125 + csetemp126 + csetemp127)*xformL33) + xformL21*((csetemp108 \n + csetemp109 + csetemp110 + csetemp111)*xformL03 + (csetemp120 + \n csetemp121 + csetemp122 + csetemp123)*xformL13 + (csetemp128 + \n csetemp129 + csetemp130 + csetemp131)*xformL23 + (csetemp132 + \n csetemp133 + csetemp134 + csetemp135)*xformL33) + xformL31*((csetemp112 \n + csetemp113 + csetemp114 + csetemp115)*xformL03 + (csetemp124 + \n csetemp125 + csetemp126 + csetemp127)*xformL13 + (csetemp132 + \n csetemp133 + csetemp134 + csetemp135)*xformL23 + (csetemp136 + \n csetemp137 + csetemp138 + csetemp139)*xformL33);\n \n CCTK_REAL dg4132 CCTK_ATTRIBUTE_UNUSED = xformL01*((csetemp140 + \n csetemp141 + csetemp142 + csetemp143)*xformL03 + (csetemp144 + \n csetemp145 + csetemp146 + csetemp147)*xformL13 + (csetemp148 + \n csetemp149 + csetemp150 + csetemp151)*xformL23 + (csetemp152 + \n csetemp153 + csetemp154 + csetemp155)*xformL33) + xformL11*((csetemp144 \n + csetemp145 + csetemp146 + csetemp147)*xformL03 + (csetemp156 + \n csetemp157 + csetemp158 + csetemp159)*xformL13 + (csetemp160 + \n csetemp161 + csetemp162 + csetemp163)*xformL23 + (csetemp164 + \n csetemp165 + csetemp166 + csetemp167)*xformL33) + xformL21*((csetemp148 \n + csetemp149 + csetemp150 + csetemp151)*xformL03 + (csetemp160 + \n csetemp161 + csetemp162 + csetemp163)*xformL13 + (csetemp168 + \n csetemp169 + csetemp170 + csetemp171)*xformL23 + (csetemp172 + \n csetemp173 + csetemp174 + csetemp175)*xformL33) + xformL31*((csetemp152 \n + csetemp153 + csetemp154 + csetemp155)*xformL03 + (csetemp164 + \n csetemp165 + csetemp166 + csetemp167)*xformL13 + (csetemp172 + \n csetemp173 + csetemp174 + csetemp175)*xformL23 + (csetemp176 + \n csetemp177 + csetemp178 + csetemp179)*xformL33);\n \n CCTK_REAL dg4133 CCTK_ATTRIBUTE_UNUSED = xformL01*((csetemp180 + \n csetemp181 + csetemp182 + csetemp183)*xformL03 + (csetemp184 + \n csetemp185 + csetemp186 + csetemp187)*xformL13 + (csetemp188 + \n csetemp189 + csetemp190 + csetemp191)*xformL23 + (csetemp192 + \n csetemp193 + csetemp194 + csetemp195)*xformL33) + xformL11*((csetemp184 \n + csetemp185 + csetemp186 + csetemp187)*xformL03 + (csetemp196 + \n csetemp197 + csetemp198 + csetemp199)*xformL13 + (csetemp200 + \n csetemp201 + csetemp202 + csetemp203)*xformL23 + (csetemp204 + \n csetemp205 + csetemp206 + csetemp207)*xformL33) + xformL21*((csetemp188 \n + csetemp189 + csetemp190 + csetemp191)*xformL03 + (csetemp200 + \n csetemp201 + csetemp202 + csetemp203)*xformL13 + (csetemp208 + \n csetemp209 + csetemp210 + csetemp211)*xformL23 + (csetemp212 + \n csetemp213 + csetemp214 + csetemp215)*xformL33) + xformL31*((csetemp192 \n + csetemp193 + csetemp194 + csetemp195)*xformL03 + (csetemp204 + \n csetemp205 + csetemp206 + csetemp207)*xformL13 + (csetemp212 + \n csetemp213 + csetemp214 + csetemp215)*xformL23 + (csetemp216 + \n csetemp217 + csetemp218 + csetemp219)*xformL33);\n \n CCTK_REAL dg4220 CCTK_ATTRIBUTE_UNUSED = 2*((csetemp92 + csetemp93 + \n csetemp94 + csetemp95)*xformL22*xformL32 + xformL02*((csetemp64 + \n csetemp65 + csetemp66 + csetemp67)*xformL12 + (csetemp68 + csetemp69 + \n csetemp70 + csetemp71)*xformL22 + (csetemp72 + csetemp73 + csetemp74 + \n csetemp75)*xformL32) + xformL12*((csetemp80 + csetemp81 + csetemp82 + \n csetemp83)*xformL22 + (csetemp84 + csetemp85 + csetemp86 + \n csetemp87)*xformL32)) + (csetemp60 + csetemp61 + csetemp62 + \n csetemp63)*pow(xformL02,2) + (csetemp76 + csetemp77 + csetemp78 + \n csetemp79)*pow(xformL12,2) + (csetemp88 + csetemp89 + csetemp90 + \n csetemp91)*pow(xformL22,2) + (csetemp96 + csetemp97 + csetemp98 + \n csetemp99)*pow(xformL32,2);\n \n CCTK_REAL dg4221 CCTK_ATTRIBUTE_UNUSED = 2*((csetemp132 + csetemp133 + \n csetemp134 + csetemp135)*xformL22*xformL32 + xformL02*((csetemp104 + \n csetemp105 + csetemp106 + csetemp107)*xformL12 + (csetemp108 + \n csetemp109 + csetemp110 + csetemp111)*xformL22 + (csetemp112 + \n csetemp113 + csetemp114 + csetemp115)*xformL32) + xformL12*((csetemp120 \n + csetemp121 + csetemp122 + csetemp123)*xformL22 + (csetemp124 + \n csetemp125 + csetemp126 + csetemp127)*xformL32)) + (csetemp100 + \n csetemp101 + csetemp102 + csetemp103)*pow(xformL02,2) + (csetemp116 + \n csetemp117 + csetemp118 + csetemp119)*pow(xformL12,2) + (csetemp128 + \n csetemp129 + csetemp130 + csetemp131)*pow(xformL22,2) + (csetemp136 + \n csetemp137 + csetemp138 + csetemp139)*pow(xformL32,2);\n \n CCTK_REAL dg4222 CCTK_ATTRIBUTE_UNUSED = 2*((csetemp172 + csetemp173 + \n csetemp174 + csetemp175)*xformL22*xformL32 + xformL02*((csetemp144 + \n csetemp145 + csetemp146 + csetemp147)*xformL12 + (csetemp148 + \n csetemp149 + csetemp150 + csetemp151)*xformL22 + (csetemp152 + \n csetemp153 + csetemp154 + csetemp155)*xformL32) + xformL12*((csetemp160 \n + csetemp161 + csetemp162 + csetemp163)*xformL22 + (csetemp164 + \n csetemp165 + csetemp166 + csetemp167)*xformL32)) + (csetemp140 + \n csetemp141 + csetemp142 + csetemp143)*pow(xformL02,2) + (csetemp156 + \n csetemp157 + csetemp158 + csetemp159)*pow(xformL12,2) + (csetemp168 + \n csetemp169 + csetemp170 + csetemp171)*pow(xformL22,2) + (csetemp176 + \n csetemp177 + csetemp178 + csetemp179)*pow(xformL32,2);\n \n CCTK_REAL dg4223 CCTK_ATTRIBUTE_UNUSED = 2*((csetemp212 + csetemp213 + \n csetemp214 + csetemp215)*xformL22*xformL32 + xformL02*((csetemp184 + \n csetemp185 + csetemp186 + csetemp187)*xformL12 + (csetemp188 + \n csetemp189 + csetemp190 + csetemp191)*xformL22 + (csetemp192 + \n csetemp193 + csetemp194 + csetemp195)*xformL32) + xformL12*((csetemp200 \n + csetemp201 + csetemp202 + csetemp203)*xformL22 + (csetemp204 + \n csetemp205 + csetemp206 + csetemp207)*xformL32)) + (csetemp180 + \n csetemp181 + csetemp182 + csetemp183)*pow(xformL02,2) + (csetemp196 + \n csetemp197 + csetemp198 + csetemp199)*pow(xformL12,2) + (csetemp208 + \n csetemp209 + csetemp210 + csetemp211)*pow(xformL22,2) + (csetemp216 + \n csetemp217 + csetemp218 + csetemp219)*pow(xformL32,2);\n \n CCTK_REAL dg4230 CCTK_ATTRIBUTE_UNUSED = xformL02*((csetemp60 + \n csetemp61 + csetemp62 + csetemp63)*xformL03 + (csetemp64 + csetemp65 + \n csetemp66 + csetemp67)*xformL13 + (csetemp68 + csetemp69 + csetemp70 + \n csetemp71)*xformL23 + (csetemp72 + csetemp73 + csetemp74 + \n csetemp75)*xformL33) + xformL12*((csetemp64 + csetemp65 + csetemp66 + \n csetemp67)*xformL03 + (csetemp76 + csetemp77 + csetemp78 + \n csetemp79)*xformL13 + (csetemp80 + csetemp81 + csetemp82 + \n csetemp83)*xformL23 + (csetemp84 + csetemp85 + csetemp86 + \n csetemp87)*xformL33) + xformL22*((csetemp68 + csetemp69 + csetemp70 + \n csetemp71)*xformL03 + (csetemp80 + csetemp81 + csetemp82 + \n csetemp83)*xformL13 + (csetemp88 + csetemp89 + csetemp90 + \n csetemp91)*xformL23 + (csetemp92 + csetemp93 + csetemp94 + \n csetemp95)*xformL33) + xformL32*((csetemp72 + csetemp73 + csetemp74 + \n csetemp75)*xformL03 + (csetemp84 + csetemp85 + csetemp86 + \n csetemp87)*xformL13 + (csetemp92 + csetemp93 + csetemp94 + \n csetemp95)*xformL23 + (csetemp96 + csetemp97 + csetemp98 + \n csetemp99)*xformL33);\n \n CCTK_REAL dg4231 CCTK_ATTRIBUTE_UNUSED = xformL02*((csetemp100 + \n csetemp101 + csetemp102 + csetemp103)*xformL03 + (csetemp104 + \n csetemp105 + csetemp106 + csetemp107)*xformL13 + (csetemp108 + \n csetemp109 + csetemp110 + csetemp111)*xformL23 + (csetemp112 + \n csetemp113 + csetemp114 + csetemp115)*xformL33) + xformL12*((csetemp104 \n + csetemp105 + csetemp106 + csetemp107)*xformL03 + (csetemp116 + \n csetemp117 + csetemp118 + csetemp119)*xformL13 + (csetemp120 + \n csetemp121 + csetemp122 + csetemp123)*xformL23 + (csetemp124 + \n csetemp125 + csetemp126 + csetemp127)*xformL33) + xformL22*((csetemp108 \n + csetemp109 + csetemp110 + csetemp111)*xformL03 + (csetemp120 + \n csetemp121 + csetemp122 + csetemp123)*xformL13 + (csetemp128 + \n csetemp129 + csetemp130 + csetemp131)*xformL23 + (csetemp132 + \n csetemp133 + csetemp134 + csetemp135)*xformL33) + xformL32*((csetemp112 \n + csetemp113 + csetemp114 + csetemp115)*xformL03 + (csetemp124 + \n csetemp125 + csetemp126 + csetemp127)*xformL13 + (csetemp132 + \n csetemp133 + csetemp134 + csetemp135)*xformL23 + (csetemp136 + \n csetemp137 + csetemp138 + csetemp139)*xformL33);\n \n CCTK_REAL dg4232 CCTK_ATTRIBUTE_UNUSED = xformL02*((csetemp140 + \n csetemp141 + csetemp142 + csetemp143)*xformL03 + (csetemp144 + \n csetemp145 + csetemp146 + csetemp147)*xformL13 + (csetemp148 + \n csetemp149 + csetemp150 + csetemp151)*xformL23 + (csetemp152 + \n csetemp153 + csetemp154 + csetemp155)*xformL33) + xformL12*((csetemp144 \n + csetemp145 + csetemp146 + csetemp147)*xformL03 + (csetemp156 + \n csetemp157 + csetemp158 + csetemp159)*xformL13 + (csetemp160 + \n csetemp161 + csetemp162 + csetemp163)*xformL23 + (csetemp164 + \n csetemp165 + csetemp166 + csetemp167)*xformL33) + xformL22*((csetemp148 \n + csetemp149 + csetemp150 + csetemp151)*xformL03 + (csetemp160 + \n csetemp161 + csetemp162 + csetemp163)*xformL13 + (csetemp168 + \n csetemp169 + csetemp170 + csetemp171)*xformL23 + (csetemp172 + \n csetemp173 + csetemp174 + csetemp175)*xformL33) + xformL32*((csetemp152 \n + csetemp153 + csetemp154 + csetemp155)*xformL03 + (csetemp164 + \n csetemp165 + csetemp166 + csetemp167)*xformL13 + (csetemp172 + \n csetemp173 + csetemp174 + csetemp175)*xformL23 + (csetemp176 + \n csetemp177 + csetemp178 + csetemp179)*xformL33);\n \n CCTK_REAL dg4233 CCTK_ATTRIBUTE_UNUSED = xformL02*((csetemp180 + \n csetemp181 + csetemp182 + csetemp183)*xformL03 + (csetemp184 + \n csetemp185 + csetemp186 + csetemp187)*xformL13 + (csetemp188 + \n csetemp189 + csetemp190 + csetemp191)*xformL23 + (csetemp192 + \n csetemp193 + csetemp194 + csetemp195)*xformL33) + xformL12*((csetemp184 \n + csetemp185 + csetemp186 + csetemp187)*xformL03 + (csetemp196 + \n csetemp197 + csetemp198 + csetemp199)*xformL13 + (csetemp200 + \n csetemp201 + csetemp202 + csetemp203)*xformL23 + (csetemp204 + \n csetemp205 + csetemp206 + csetemp207)*xformL33) + xformL22*((csetemp188 \n + csetemp189 + csetemp190 + csetemp191)*xformL03 + (csetemp200 + \n csetemp201 + csetemp202 + csetemp203)*xformL13 + (csetemp208 + \n csetemp209 + csetemp210 + csetemp211)*xformL23 + (csetemp212 + \n csetemp213 + csetemp214 + csetemp215)*xformL33) + xformL32*((csetemp192 \n + csetemp193 + csetemp194 + csetemp195)*xformL03 + (csetemp204 + \n csetemp205 + csetemp206 + csetemp207)*xformL13 + (csetemp212 + \n csetemp213 + csetemp214 + csetemp215)*xformL23 + (csetemp216 + \n csetemp217 + csetemp218 + csetemp219)*xformL33);\n \n CCTK_REAL dg4330 CCTK_ATTRIBUTE_UNUSED = 2*((csetemp92 + csetemp93 + \n csetemp94 + csetemp95)*xformL23*xformL33 + xformL03*((csetemp64 + \n csetemp65 + csetemp66 + csetemp67)*xformL13 + (csetemp68 + csetemp69 + \n csetemp70 + csetemp71)*xformL23 + (csetemp72 + csetemp73 + csetemp74 + \n csetemp75)*xformL33) + xformL13*((csetemp80 + csetemp81 + csetemp82 + \n csetemp83)*xformL23 + (csetemp84 + csetemp85 + csetemp86 + \n csetemp87)*xformL33)) + (csetemp60 + csetemp61 + csetemp62 + \n csetemp63)*pow(xformL03,2) + (csetemp76 + csetemp77 + csetemp78 + \n csetemp79)*pow(xformL13,2) + (csetemp88 + csetemp89 + csetemp90 + \n csetemp91)*pow(xformL23,2) + (csetemp96 + csetemp97 + csetemp98 + \n csetemp99)*pow(xformL33,2);\n \n CCTK_REAL dg4331 CCTK_ATTRIBUTE_UNUSED = 2*((csetemp132 + csetemp133 + \n csetemp134 + csetemp135)*xformL23*xformL33 + xformL03*((csetemp104 + \n csetemp105 + csetemp106 + csetemp107)*xformL13 + (csetemp108 + \n csetemp109 + csetemp110 + csetemp111)*xformL23 + (csetemp112 + \n csetemp113 + csetemp114 + csetemp115)*xformL33) + xformL13*((csetemp120 \n + csetemp121 + csetemp122 + csetemp123)*xformL23 + (csetemp124 + \n csetemp125 + csetemp126 + csetemp127)*xformL33)) + (csetemp100 + \n csetemp101 + csetemp102 + csetemp103)*pow(xformL03,2) + (csetemp116 + \n csetemp117 + csetemp118 + csetemp119)*pow(xformL13,2) + (csetemp128 + \n csetemp129 + csetemp130 + csetemp131)*pow(xformL23,2) + (csetemp136 + \n csetemp137 + csetemp138 + csetemp139)*pow(xformL33,2);\n \n CCTK_REAL dg4332 CCTK_ATTRIBUTE_UNUSED = 2*((csetemp172 + csetemp173 + \n csetemp174 + csetemp175)*xformL23*xformL33 + xformL03*((csetemp144 + \n csetemp145 + csetemp146 + csetemp147)*xformL13 + (csetemp148 + \n csetemp149 + csetemp150 + csetemp151)*xformL23 + (csetemp152 + \n csetemp153 + csetemp154 + csetemp155)*xformL33) + xformL13*((csetemp160 \n + csetemp161 + csetemp162 + csetemp163)*xformL23 + (csetemp164 + \n csetemp165 + csetemp166 + csetemp167)*xformL33)) + (csetemp140 + \n csetemp141 + csetemp142 + csetemp143)*pow(xformL03,2) + (csetemp156 + \n csetemp157 + csetemp158 + csetemp159)*pow(xformL13,2) + (csetemp168 + \n csetemp169 + csetemp170 + csetemp171)*pow(xformL23,2) + (csetemp176 + \n csetemp177 + csetemp178 + csetemp179)*pow(xformL33,2);\n \n CCTK_REAL dg4333 CCTK_ATTRIBUTE_UNUSED = 2*((csetemp212 + csetemp213 + \n csetemp214 + csetemp215)*xformL23*xformL33 + xformL03*((csetemp184 + \n csetemp185 + csetemp186 + csetemp187)*xformL13 + (csetemp188 + \n csetemp189 + csetemp190 + csetemp191)*xformL23 + (csetemp192 + \n csetemp193 + csetemp194 + csetemp195)*xformL33) + xformL13*((csetemp200 \n + csetemp201 + csetemp202 + csetemp203)*xformL23 + (csetemp204 + \n csetemp205 + csetemp206 + csetemp207)*xformL33)) + (csetemp180 + \n csetemp181 + csetemp182 + csetemp183)*pow(xformL03,2) + (csetemp196 + \n csetemp197 + csetemp198 + csetemp199)*pow(xformL13,2) + (csetemp208 + \n csetemp209 + csetemp210 + csetemp211)*pow(xformL23,2) + (csetemp216 + \n csetemp217 + csetemp218 + csetemp219)*pow(xformL33,2);\n \n CCTK_REAL betal1 CCTK_ATTRIBUTE_UNUSED = g401;\n \n CCTK_REAL betal2 CCTK_ATTRIBUTE_UNUSED = g402;\n \n CCTK_REAL betal3 CCTK_ATTRIBUTE_UNUSED = g403;\n \n gxxL = g411;\n \n gxyL = g412;\n \n gxzL = g413;\n \n gyyL = g422;\n \n gyzL = g423;\n \n gzzL = g433;\n \n CCTK_REAL csetemp220 CCTK_ATTRIBUTE_UNUSED = pow(gxzL,2);\n \n CCTK_REAL csetemp221 CCTK_ATTRIBUTE_UNUSED = pow(gyzL,2);\n \n CCTK_REAL csetemp222 CCTK_ATTRIBUTE_UNUSED = pow(gxyL,2);\n \n CCTK_REAL detg CCTK_ATTRIBUTE_UNUSED = 2*gxyL*gxzL*gyzL + \n gyyL*(gxxL*gzzL - csetemp220) - gxxL*csetemp221 - gzzL*csetemp222;\n \n CCTK_REAL csetemp223 CCTK_ATTRIBUTE_UNUSED = pow(detg,-1);\n \n CCTK_REAL gu11 CCTK_ATTRIBUTE_UNUSED = (gyyL*gzzL - \n csetemp221)*csetemp223;\n \n CCTK_REAL gu12 CCTK_ATTRIBUTE_UNUSED = (gxzL*gyzL - \n gxyL*gzzL)*csetemp223;\n \n CCTK_REAL gu13 CCTK_ATTRIBUTE_UNUSED = (-(gxzL*gyyL) + \n gxyL*gyzL)*csetemp223;\n \n CCTK_REAL gu22 CCTK_ATTRIBUTE_UNUSED = (gxxL*gzzL - \n csetemp220)*csetemp223;\n \n CCTK_REAL gu23 CCTK_ATTRIBUTE_UNUSED = (gxyL*gxzL - \n gxxL*gyzL)*csetemp223;\n \n CCTK_REAL gu33 CCTK_ATTRIBUTE_UNUSED = (gxxL*gyyL - \n csetemp222)*csetemp223;\n \n betaxL = betal1*gu11 + betal2*gu12 + betal3*gu13;\n \n betayL = betal1*gu12 + betal2*gu22 + betal3*gu23;\n \n betazL = betal1*gu13 + betal2*gu23 + betal3*gu33;\n \n CCTK_REAL betasq CCTK_ATTRIBUTE_UNUSED = betaxL*betal1 + betayL*betal2 \n + betazL*betal3;\n \n alpL = pow(betasq - g400,0.5);\n \n CCTK_REAL dtg11 CCTK_ATTRIBUTE_UNUSED = dg4110;\n \n CCTK_REAL dtg12 CCTK_ATTRIBUTE_UNUSED = dg4120;\n \n CCTK_REAL dtg13 CCTK_ATTRIBUTE_UNUSED = dg4130;\n \n CCTK_REAL dtg22 CCTK_ATTRIBUTE_UNUSED = dg4220;\n \n CCTK_REAL dtg23 CCTK_ATTRIBUTE_UNUSED = dg4230;\n \n CCTK_REAL dtg33 CCTK_ATTRIBUTE_UNUSED = dg4330;\n \n CCTK_REAL dg111 CCTK_ATTRIBUTE_UNUSED = dg4111;\n \n CCTK_REAL dg112 CCTK_ATTRIBUTE_UNUSED = dg4112;\n \n CCTK_REAL dg113 CCTK_ATTRIBUTE_UNUSED = dg4113;\n \n CCTK_REAL dg121 CCTK_ATTRIBUTE_UNUSED = dg4121;\n \n CCTK_REAL dg122 CCTK_ATTRIBUTE_UNUSED = dg4122;\n \n CCTK_REAL dg123 CCTK_ATTRIBUTE_UNUSED = dg4123;\n \n CCTK_REAL dg131 CCTK_ATTRIBUTE_UNUSED = dg4131;\n \n CCTK_REAL dg132 CCTK_ATTRIBUTE_UNUSED = dg4132;\n \n CCTK_REAL dg133 CCTK_ATTRIBUTE_UNUSED = dg4133;\n \n CCTK_REAL dg221 CCTK_ATTRIBUTE_UNUSED = dg4221;\n \n CCTK_REAL dg222 CCTK_ATTRIBUTE_UNUSED = dg4222;\n \n CCTK_REAL dg223 CCTK_ATTRIBUTE_UNUSED = dg4223;\n \n CCTK_REAL dg231 CCTK_ATTRIBUTE_UNUSED = dg4231;\n \n CCTK_REAL dg232 CCTK_ATTRIBUTE_UNUSED = dg4232;\n \n CCTK_REAL dg233 CCTK_ATTRIBUTE_UNUSED = dg4233;\n \n CCTK_REAL dg331 CCTK_ATTRIBUTE_UNUSED = dg4331;\n \n CCTK_REAL dg332 CCTK_ATTRIBUTE_UNUSED = dg4332;\n \n CCTK_REAL dg333 CCTK_ATTRIBUTE_UNUSED = dg4333;\n \n CCTK_REAL csetemp224 CCTK_ATTRIBUTE_UNUSED = dtg11*gu11;\n \n CCTK_REAL csetemp225 CCTK_ATTRIBUTE_UNUSED = dtg12*gu12;\n \n CCTK_REAL csetemp226 CCTK_ATTRIBUTE_UNUSED = dtg13*gu13;\n \n CCTK_REAL csetemp227 CCTK_ATTRIBUTE_UNUSED = dtg12*gu11;\n \n CCTK_REAL csetemp228 CCTK_ATTRIBUTE_UNUSED = dtg22*gu12;\n \n CCTK_REAL csetemp229 CCTK_ATTRIBUTE_UNUSED = dtg23*gu13;\n \n CCTK_REAL csetemp230 CCTK_ATTRIBUTE_UNUSED = dtg13*gu11;\n \n CCTK_REAL csetemp231 CCTK_ATTRIBUTE_UNUSED = dtg23*gu12;\n \n CCTK_REAL csetemp232 CCTK_ATTRIBUTE_UNUSED = dtg33*gu13;\n \n CCTK_REAL dtgu11 CCTK_ATTRIBUTE_UNUSED = -((csetemp224 + csetemp225 + \n csetemp226)*gu11) - (csetemp227 + csetemp228 + csetemp229)*gu12 - \n (csetemp230 + csetemp231 + csetemp232)*gu13;\n \n CCTK_REAL dtgu12 CCTK_ATTRIBUTE_UNUSED = -((csetemp224 + csetemp225 + \n csetemp226)*gu12) - (csetemp227 + csetemp228 + csetemp229)*gu22 - \n (csetemp230 + csetemp231 + csetemp232)*gu23;\n \n CCTK_REAL dtgu13 CCTK_ATTRIBUTE_UNUSED = -((csetemp224 + csetemp225 + \n csetemp226)*gu13) - (csetemp227 + csetemp228 + csetemp229)*gu23 - \n (csetemp230 + csetemp231 + csetemp232)*gu33;\n \n CCTK_REAL csetemp233 CCTK_ATTRIBUTE_UNUSED = dtg11*gu12;\n \n CCTK_REAL csetemp234 CCTK_ATTRIBUTE_UNUSED = dtg12*gu22;\n \n CCTK_REAL csetemp235 CCTK_ATTRIBUTE_UNUSED = dtg13*gu23;\n \n CCTK_REAL csetemp236 CCTK_ATTRIBUTE_UNUSED = dtg22*gu22;\n \n CCTK_REAL csetemp237 CCTK_ATTRIBUTE_UNUSED = dtg23*gu23;\n \n CCTK_REAL csetemp238 CCTK_ATTRIBUTE_UNUSED = dtg13*gu12;\n \n CCTK_REAL csetemp239 CCTK_ATTRIBUTE_UNUSED = dtg23*gu22;\n \n CCTK_REAL csetemp240 CCTK_ATTRIBUTE_UNUSED = dtg33*gu23;\n \n CCTK_REAL dtgu22 CCTK_ATTRIBUTE_UNUSED = -((csetemp233 + csetemp234 + \n csetemp235)*gu12) - (csetemp225 + csetemp236 + csetemp237)*gu22 - \n (csetemp238 + csetemp239 + csetemp240)*gu23;\n \n CCTK_REAL dtgu23 CCTK_ATTRIBUTE_UNUSED = -((csetemp233 + csetemp234 + \n csetemp235)*gu13) - (csetemp225 + csetemp236 + csetemp237)*gu23 - \n (csetemp238 + csetemp239 + csetemp240)*gu33;\n \n CCTK_REAL dtgu33 CCTK_ATTRIBUTE_UNUSED = -(gu13*(dtg11*gu13 + \n dtg12*gu23 + dtg13*gu33)) - gu23*(dtg12*gu13 + dtg22*gu23 + dtg23*gu33) \n - gu33*(csetemp226 + csetemp237 + dtg33*gu33);\n \n CCTK_REAL csetemp241 CCTK_ATTRIBUTE_UNUSED = dg111*gu11;\n \n CCTK_REAL csetemp242 CCTK_ATTRIBUTE_UNUSED = dg121*gu12;\n \n CCTK_REAL csetemp243 CCTK_ATTRIBUTE_UNUSED = dg131*gu13;\n \n CCTK_REAL csetemp244 CCTK_ATTRIBUTE_UNUSED = dg121*gu11;\n \n CCTK_REAL csetemp245 CCTK_ATTRIBUTE_UNUSED = dg221*gu12;\n \n CCTK_REAL csetemp246 CCTK_ATTRIBUTE_UNUSED = dg231*gu13;\n \n CCTK_REAL csetemp247 CCTK_ATTRIBUTE_UNUSED = dg131*gu11;\n \n CCTK_REAL csetemp248 CCTK_ATTRIBUTE_UNUSED = dg231*gu12;\n \n CCTK_REAL csetemp249 CCTK_ATTRIBUTE_UNUSED = dg331*gu13;\n \n CCTK_REAL dgu111 CCTK_ATTRIBUTE_UNUSED = -((csetemp241 + csetemp242 + \n csetemp243)*gu11) - (csetemp244 + csetemp245 + csetemp246)*gu12 - \n (csetemp247 + csetemp248 + csetemp249)*gu13;\n \n CCTK_REAL dgu121 CCTK_ATTRIBUTE_UNUSED = -((csetemp241 + csetemp242 + \n csetemp243)*gu12) - (csetemp244 + csetemp245 + csetemp246)*gu22 - \n (csetemp247 + csetemp248 + csetemp249)*gu23;\n \n CCTK_REAL dgu131 CCTK_ATTRIBUTE_UNUSED = -((csetemp241 + csetemp242 + \n csetemp243)*gu13) - (csetemp244 + csetemp245 + csetemp246)*gu23 - \n (csetemp247 + csetemp248 + csetemp249)*gu33;\n \n CCTK_REAL csetemp250 CCTK_ATTRIBUTE_UNUSED = dg111*gu12;\n \n CCTK_REAL csetemp251 CCTK_ATTRIBUTE_UNUSED = dg121*gu22;\n \n CCTK_REAL csetemp252 CCTK_ATTRIBUTE_UNUSED = dg131*gu23;\n \n CCTK_REAL csetemp253 CCTK_ATTRIBUTE_UNUSED = dg221*gu22;\n \n CCTK_REAL csetemp254 CCTK_ATTRIBUTE_UNUSED = dg231*gu23;\n \n CCTK_REAL csetemp255 CCTK_ATTRIBUTE_UNUSED = dg131*gu12;\n \n CCTK_REAL csetemp256 CCTK_ATTRIBUTE_UNUSED = dg231*gu22;\n \n CCTK_REAL csetemp257 CCTK_ATTRIBUTE_UNUSED = dg331*gu23;\n \n CCTK_REAL dgu221 CCTK_ATTRIBUTE_UNUSED = -((csetemp250 + csetemp251 + \n csetemp252)*gu12) - (csetemp242 + csetemp253 + csetemp254)*gu22 - \n (csetemp255 + csetemp256 + csetemp257)*gu23;\n \n CCTK_REAL dgu231 CCTK_ATTRIBUTE_UNUSED = -((csetemp250 + csetemp251 + \n csetemp252)*gu13) - (csetemp242 + csetemp253 + csetemp254)*gu23 - \n (csetemp255 + csetemp256 + csetemp257)*gu33;\n \n CCTK_REAL dgu331 CCTK_ATTRIBUTE_UNUSED = -(gu13*(dg111*gu13 + \n dg121*gu23 + dg131*gu33)) - gu23*(dg121*gu13 + dg221*gu23 + dg231*gu33) \n - gu33*(csetemp243 + csetemp254 + dg331*gu33);\n \n CCTK_REAL csetemp258 CCTK_ATTRIBUTE_UNUSED = dg112*gu11;\n \n CCTK_REAL csetemp259 CCTK_ATTRIBUTE_UNUSED = dg122*gu12;\n \n CCTK_REAL csetemp260 CCTK_ATTRIBUTE_UNUSED = dg132*gu13;\n \n CCTK_REAL csetemp261 CCTK_ATTRIBUTE_UNUSED = dg122*gu11;\n \n CCTK_REAL csetemp262 CCTK_ATTRIBUTE_UNUSED = dg222*gu12;\n \n CCTK_REAL csetemp263 CCTK_ATTRIBUTE_UNUSED = dg232*gu13;\n \n CCTK_REAL csetemp264 CCTK_ATTRIBUTE_UNUSED = dg132*gu11;\n \n CCTK_REAL csetemp265 CCTK_ATTRIBUTE_UNUSED = dg232*gu12;\n \n CCTK_REAL csetemp266 CCTK_ATTRIBUTE_UNUSED = dg332*gu13;\n \n CCTK_REAL dgu112 CCTK_ATTRIBUTE_UNUSED = -((csetemp258 + csetemp259 + \n csetemp260)*gu11) - (csetemp261 + csetemp262 + csetemp263)*gu12 - \n (csetemp264 + csetemp265 + csetemp266)*gu13;\n \n CCTK_REAL dgu122 CCTK_ATTRIBUTE_UNUSED = -((csetemp258 + csetemp259 + \n csetemp260)*gu12) - (csetemp261 + csetemp262 + csetemp263)*gu22 - \n (csetemp264 + csetemp265 + csetemp266)*gu23;\n \n CCTK_REAL dgu132 CCTK_ATTRIBUTE_UNUSED = -((csetemp258 + csetemp259 + \n csetemp260)*gu13) - (csetemp261 + csetemp262 + csetemp263)*gu23 - \n (csetemp264 + csetemp265 + csetemp266)*gu33;\n \n CCTK_REAL csetemp267 CCTK_ATTRIBUTE_UNUSED = dg112*gu12;\n \n CCTK_REAL csetemp268 CCTK_ATTRIBUTE_UNUSED = dg122*gu22;\n \n CCTK_REAL csetemp269 CCTK_ATTRIBUTE_UNUSED = dg132*gu23;\n \n CCTK_REAL csetemp270 CCTK_ATTRIBUTE_UNUSED = dg222*gu22;\n \n CCTK_REAL csetemp271 CCTK_ATTRIBUTE_UNUSED = dg232*gu23;\n \n CCTK_REAL csetemp272 CCTK_ATTRIBUTE_UNUSED = dg132*gu12;\n \n CCTK_REAL csetemp273 CCTK_ATTRIBUTE_UNUSED = dg232*gu22;\n \n CCTK_REAL csetemp274 CCTK_ATTRIBUTE_UNUSED = dg332*gu23;\n \n CCTK_REAL dgu222 CCTK_ATTRIBUTE_UNUSED = -((csetemp267 + csetemp268 + \n csetemp269)*gu12) - (csetemp259 + csetemp270 + csetemp271)*gu22 - \n (csetemp272 + csetemp273 + csetemp274)*gu23;\n \n CCTK_REAL dgu232 CCTK_ATTRIBUTE_UNUSED = -((csetemp267 + csetemp268 + \n csetemp269)*gu13) - (csetemp259 + csetemp270 + csetemp271)*gu23 - \n (csetemp272 + csetemp273 + csetemp274)*gu33;\n \n CCTK_REAL dgu332 CCTK_ATTRIBUTE_UNUSED = -(gu13*(dg112*gu13 + \n dg122*gu23 + dg132*gu33)) - gu23*(dg122*gu13 + dg222*gu23 + dg232*gu33) \n - gu33*(csetemp260 + csetemp271 + dg332*gu33);\n \n CCTK_REAL csetemp275 CCTK_ATTRIBUTE_UNUSED = dg113*gu11;\n \n CCTK_REAL csetemp276 CCTK_ATTRIBUTE_UNUSED = dg123*gu12;\n \n CCTK_REAL csetemp277 CCTK_ATTRIBUTE_UNUSED = dg133*gu13;\n \n CCTK_REAL csetemp278 CCTK_ATTRIBUTE_UNUSED = dg123*gu11;\n \n CCTK_REAL csetemp279 CCTK_ATTRIBUTE_UNUSED = dg223*gu12;\n \n CCTK_REAL csetemp280 CCTK_ATTRIBUTE_UNUSED = dg233*gu13;\n \n CCTK_REAL csetemp281 CCTK_ATTRIBUTE_UNUSED = dg133*gu11;\n \n CCTK_REAL csetemp282 CCTK_ATTRIBUTE_UNUSED = dg233*gu12;\n \n CCTK_REAL csetemp283 CCTK_ATTRIBUTE_UNUSED = dg333*gu13;\n \n CCTK_REAL dgu113 CCTK_ATTRIBUTE_UNUSED = -((csetemp275 + csetemp276 + \n csetemp277)*gu11) - (csetemp278 + csetemp279 + csetemp280)*gu12 - \n (csetemp281 + csetemp282 + csetemp283)*gu13;\n \n CCTK_REAL dgu123 CCTK_ATTRIBUTE_UNUSED = -((csetemp275 + csetemp276 + \n csetemp277)*gu12) - (csetemp278 + csetemp279 + csetemp280)*gu22 - \n (csetemp281 + csetemp282 + csetemp283)*gu23;\n \n CCTK_REAL dgu133 CCTK_ATTRIBUTE_UNUSED = -((csetemp275 + csetemp276 + \n csetemp277)*gu13) - (csetemp278 + csetemp279 + csetemp280)*gu23 - \n (csetemp281 + csetemp282 + csetemp283)*gu33;\n \n CCTK_REAL csetemp284 CCTK_ATTRIBUTE_UNUSED = dg113*gu12;\n \n CCTK_REAL csetemp285 CCTK_ATTRIBUTE_UNUSED = dg123*gu22;\n \n CCTK_REAL csetemp286 CCTK_ATTRIBUTE_UNUSED = dg133*gu23;\n \n CCTK_REAL csetemp287 CCTK_ATTRIBUTE_UNUSED = dg223*gu22;\n \n CCTK_REAL csetemp288 CCTK_ATTRIBUTE_UNUSED = dg233*gu23;\n \n CCTK_REAL csetemp289 CCTK_ATTRIBUTE_UNUSED = dg133*gu12;\n \n CCTK_REAL csetemp290 CCTK_ATTRIBUTE_UNUSED = dg233*gu22;\n \n CCTK_REAL csetemp291 CCTK_ATTRIBUTE_UNUSED = dg333*gu23;\n \n CCTK_REAL dgu223 CCTK_ATTRIBUTE_UNUSED = -((csetemp284 + csetemp285 + \n csetemp286)*gu12) - (csetemp276 + csetemp287 + csetemp288)*gu22 - \n (csetemp289 + csetemp290 + csetemp291)*gu23;\n \n CCTK_REAL dgu233 CCTK_ATTRIBUTE_UNUSED = -((csetemp284 + csetemp285 + \n csetemp286)*gu13) - (csetemp276 + csetemp287 + csetemp288)*gu23 - \n (csetemp289 + csetemp290 + csetemp291)*gu33;\n \n CCTK_REAL dgu333 CCTK_ATTRIBUTE_UNUSED = -(gu13*(dg113*gu13 + \n dg123*gu23 + dg133*gu33)) - gu23*(dg123*gu13 + dg223*gu23 + dg233*gu33) \n - gu33*(csetemp277 + csetemp288 + dg333*gu33);\n \n CCTK_REAL dtbetal1 CCTK_ATTRIBUTE_UNUSED = dg4010;\n \n CCTK_REAL dtbetal2 CCTK_ATTRIBUTE_UNUSED = dg4020;\n \n CCTK_REAL dtbetal3 CCTK_ATTRIBUTE_UNUSED = dg4030;\n \n CCTK_REAL dbetal11 CCTK_ATTRIBUTE_UNUSED = dg4011;\n \n CCTK_REAL dbetal12 CCTK_ATTRIBUTE_UNUSED = dg4012;\n \n CCTK_REAL dbetal13 CCTK_ATTRIBUTE_UNUSED = dg4013;\n \n CCTK_REAL dbetal21 CCTK_ATTRIBUTE_UNUSED = dg4021;\n \n CCTK_REAL dbetal22 CCTK_ATTRIBUTE_UNUSED = dg4022;\n \n CCTK_REAL dbetal23 CCTK_ATTRIBUTE_UNUSED = dg4023;\n \n CCTK_REAL dbetal31 CCTK_ATTRIBUTE_UNUSED = dg4031;\n \n CCTK_REAL dbetal32 CCTK_ATTRIBUTE_UNUSED = dg4032;\n \n CCTK_REAL dbetal33 CCTK_ATTRIBUTE_UNUSED = dg4033;\n \n dtbetaxL = betal1*dtgu11 + betal2*dtgu12 + betal3*dtgu13 + \n dtbetal1*gu11 + dtbetal2*gu12 + dtbetal3*gu13;\n \n dtbetayL = betal1*dtgu12 + betal2*dtgu22 + betal3*dtgu23 + \n dtbetal1*gu12 + dtbetal2*gu22 + dtbetal3*gu23;\n \n dtbetazL = betal1*dtgu13 + betal2*dtgu23 + betal3*dtgu33 + \n dtbetal1*gu13 + dtbetal2*gu23 + dtbetal3*gu33;\n \n CCTK_REAL dbeta11 CCTK_ATTRIBUTE_UNUSED = betal1*dgu111 + \n betal2*dgu121 + betal3*dgu131 + dbetal11*gu11 + dbetal21*gu12 + \n dbetal31*gu13;\n \n CCTK_REAL dbeta21 CCTK_ATTRIBUTE_UNUSED = betal1*dgu121 + \n betal2*dgu221 + betal3*dgu231 + dbetal11*gu12 + dbetal21*gu22 + \n dbetal31*gu23;\n \n CCTK_REAL dbeta31 CCTK_ATTRIBUTE_UNUSED = betal1*dgu131 + \n betal2*dgu231 + betal3*dgu331 + dbetal11*gu13 + dbetal21*gu23 + \n dbetal31*gu33;\n \n CCTK_REAL dbeta12 CCTK_ATTRIBUTE_UNUSED = betal1*dgu112 + \n betal2*dgu122 + betal3*dgu132 + dbetal12*gu11 + dbetal22*gu12 + \n dbetal32*gu13;\n \n CCTK_REAL dbeta22 CCTK_ATTRIBUTE_UNUSED = betal1*dgu122 + \n betal2*dgu222 + betal3*dgu232 + dbetal12*gu12 + dbetal22*gu22 + \n dbetal32*gu23;\n \n CCTK_REAL dbeta32 CCTK_ATTRIBUTE_UNUSED = betal1*dgu132 + \n betal2*dgu232 + betal3*dgu332 + dbetal12*gu13 + dbetal22*gu23 + \n dbetal32*gu33;\n \n CCTK_REAL dbeta13 CCTK_ATTRIBUTE_UNUSED = betal1*dgu113 + \n betal2*dgu123 + betal3*dgu133 + dbetal13*gu11 + dbetal23*gu12 + \n dbetal33*gu13;\n \n CCTK_REAL dbeta23 CCTK_ATTRIBUTE_UNUSED = betal1*dgu123 + \n betal2*dgu223 + betal3*dgu233 + dbetal13*gu12 + dbetal23*gu22 + \n dbetal33*gu23;\n \n CCTK_REAL dbeta33 CCTK_ATTRIBUTE_UNUSED = betal1*dgu133 + \n betal2*dgu233 + betal3*dgu333 + dbetal13*gu13 + dbetal23*gu23 + \n dbetal33*gu33;\n \n CCTK_REAL dtbetasq CCTK_ATTRIBUTE_UNUSED = dtbetaxL*betal1 + \n dtbetayL*betal2 + dtbetazL*betal3 + betaxL*dtbetal1 + betayL*dtbetal2 + \n betazL*dtbetal3;\n \n CCTK_REAL csetemp292 CCTK_ATTRIBUTE_UNUSED = pow(alpL,-1);\n \n CCTK_REAL dtalpL CCTK_ATTRIBUTE_UNUSED = 0.5*csetemp292*(-dg4000 + \n dtbetasq);\n \n CCTK_REAL kxxL CCTK_ATTRIBUTE_UNUSED = 0.5*csetemp292*(2*(gxxL*dbeta11 \n + gxyL*dbeta21 + gxzL*dbeta31) + betaxL*dg111 + betayL*dg112 + \n betazL*dg113 - dtg11);\n \n CCTK_REAL kxyL CCTK_ATTRIBUTE_UNUSED = 0.5*csetemp292*(gxxL*dbeta12 + \n gyyL*dbeta21 + gxyL*(dbeta11 + dbeta22) + gyzL*dbeta31 + gxzL*dbeta32 + \n betaxL*dg121 + betayL*dg122 + betazL*dg123 - dtg12);\n \n CCTK_REAL kxzL CCTK_ATTRIBUTE_UNUSED = 0.5*csetemp292*(gxxL*dbeta13 + \n gyzL*dbeta21 + gxyL*dbeta23 + gzzL*dbeta31 + gxzL*(dbeta11 + dbeta33) + \n betaxL*dg131 + betayL*dg132 + betazL*dg133 - dtg13);\n \n CCTK_REAL kyyL CCTK_ATTRIBUTE_UNUSED = 0.5*csetemp292*(2*(gxyL*dbeta12 \n + gyyL*dbeta22 + gyzL*dbeta32) + betaxL*dg221 + betayL*dg222 + \n betazL*dg223 - dtg22);\n \n CCTK_REAL kyzL CCTK_ATTRIBUTE_UNUSED = 0.5*csetemp292*(gxzL*dbeta12 + \n gxyL*dbeta13 + gyyL*dbeta23 + gzzL*dbeta32 + gyzL*(dbeta22 + dbeta33) + \n betaxL*dg231 + betayL*dg232 + betazL*dg233 - dtg23);\n \n CCTK_REAL kzzL CCTK_ATTRIBUTE_UNUSED = 0.5*csetemp292*(2*(gxzL*dbeta13 \n + gyzL*dbeta23 + gzzL*dbeta33) + betaxL*dg331 + betayL*dg332 + \n betazL*dg333 - dtg33);\n /* Copy local copies back to grid functions */\n alp[index] = alpL;\n betax[index] = betaxL;\n betay[index] = betayL;\n betaz[index] = betazL;\n dtalp[index] = dtalpL;\n dtbetax[index] = dtbetaxL;\n dtbetay[index] = dtbetayL;\n dtbetaz[index] = dtbetazL;\n gxx[index] = gxxL;\n gxy[index] = gxyL;\n gxz[index] = gxzL;\n gyy[index] = gyyL;\n gyz[index] = gyzL;\n gzz[index] = gzzL;\n kxx[index] = kxxL;\n kxy[index] = kxyL;\n kxz[index] = kxzL;\n kyy[index] = kyyL;\n kyz[index] = kyzL;\n kzz[index] = kzzL;\n }\n CCTK_ENDLOOP3(ShiftedGaugeWave_initial);\n}\nextern \"C\" void ShiftedGaugeWave_initial(CCTK_ARGUMENTS)\n{\n #ifdef DECLARE_CCTK_ARGUMENTS_ShiftedGaugeWave_initial\n DECLARE_CCTK_ARGUMENTS_CHECKED(ShiftedGaugeWave_initial);\n #else\n DECLARE_CCTK_ARGUMENTS;\n #endif\n DECLARE_CCTK_PARAMETERS;\n \n if (verbose > 1)\n {\n CCTK_VInfo(CCTK_THORNSTRING,\"Entering ShiftedGaugeWave_initial_Body\");\n }\n if (cctk_iteration % ShiftedGaugeWave_initial_calc_every != ShiftedGaugeWave_initial_calc_offset)\n {\n return;\n }\n \n const char* const groups[] = {\n \"admbase::curv\",\n \"admbase::dtlapse\",\n \"admbase::dtshift\",\n \"admbase::lapse\",\n \"admbase::metric\",\n \"admbase::shift\",\n \"grid::coordinates\"};\n AssertGroupStorage(cctkGH, \"ShiftedGaugeWave_initial\", 7, groups);\n \n \n LoopOverEverything(cctkGH, ShiftedGaugeWave_initial_Body);\n if (verbose > 1)\n {\n CCTK_VInfo(CCTK_THORNSTRING,\"Leaving ShiftedGaugeWave_initial_Body\");\n }\n}\n\n} // namespace ShiftedGaugeWave\n", diff --git a/EinsteinExact_Vaidya2.json b/EinsteinExact_Vaidya2.json index d8bad9d7c39d4d280b68cf4900a959de1d1c3c00..059a09371afe510858dd92ffdc10fc22a4eb108a 100644 --- a/EinsteinExact_Vaidya2.json +++ b/EinsteinExact_Vaidya2.json @@ -3,7 +3,7 @@ "url": "https://github.com/barrywardell/EinsteinExact.git", "configuration": "# File produced by Kranc\n\nREQUIRES GenericFD\nOPTIONAL LoopControl\n{\n}\n", "interface": "# File produced by Kranc\n\nimplements: Vaidya2\n\ninherits: admbase Boundary GenericFD Grid\n\n\n\nUSES INCLUDE: loopcontrol.h\nUSES INCLUDE: Symmetry.h\nUSES INCLUDE: Boundary.h\n\nCCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex)\nUSES FUNCTION MoLRegisterEvolved\n\nSUBROUTINE Diff_coeff(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN dir, CCTK_INT IN nsize, CCTK_INT OUT ARRAY imin, CCTK_INT OUT ARRAY imax, CCTK_REAL OUT ARRAY q, CCTK_INT IN table_handle)\nUSES FUNCTION Diff_coeff\n\nCCTK_INT FUNCTION MultiPatch_GetMap(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n\nCCTK_INT FUNCTION MultiPatch_GetBbox(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN size, CCTK_INT OUT ARRAY bbox)\nUSES FUNCTION MultiPatch_GetBbox\n\nCCTK_INT FUNCTION GetBoundarySpecification(CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\nCCTK_INT FUNCTION MultiPatch_GetBoundarySpecification(CCTK_INT IN map, CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION MultiPatch_GetBoundarySpecification\n\nCCTK_INT FUNCTION SymmetryTableHandleForGrid(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION SymmetryTableHandleForGrid\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT FUNCTION Driver_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectGroupForBC\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectVarForBC\n\nCCTK_INT FUNCTION Driver_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectVarForBC\n\npublic:\nCCTK_REAL metric_exact type=GF timelevels=1 tags='tensortypealias=\"DD_sym\" tensorweight=0'\n{\n gExact11,\n gExact12,\n gExact13,\n gExact22,\n gExact23,\n gExact33\n} \"metric_exact\"\n\npublic:\nCCTK_REAL curv_exact type=GF timelevels=1 tags='tensortypealias=\"DD_sym\" tensorweight=0'\n{\n kExact11,\n kExact12,\n kExact13,\n kExact22,\n kExact23,\n kExact33\n} \"curv_exact\"\n\npublic:\nCCTK_REAL lapse_exact type=GF timelevels=1 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n alpExact\n} \"lapse_exact\"\n\npublic:\nCCTK_REAL dtlapse_exact type=GF timelevels=1 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n dtalpExact\n} \"dtlapse_exact\"\n\npublic:\nCCTK_REAL shift_exact type=GF timelevels=1 tags='tensortypealias=\"U\" tensorweight=0'\n{\n betaExact1,\n betaExact2,\n betaExact3\n} \"shift_exact\"\n\npublic:\nCCTK_REAL dtshift_exact type=GF timelevels=1 tags='tensortypealias=\"U\" tensorweight=0'\n{\n dtbetaExact1,\n dtbetaExact2,\n dtbetaExact3\n} \"dtshift_exact\"\n", - "params": "", + "param": "# File produced by Kranc\n\n\nshares: ADMBase\n\n\nEXTENDS CCTK_KEYWORD initial_data \"initial_data\"\n{\n \"Vaidya2\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_lapse \"initial_lapse\"\n{\n \"Vaidya2\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_shift \"initial_shift\"\n{\n \"Vaidya2\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_dtlapse \"initial_dtlapse\"\n{\n \"Vaidya2\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD initial_dtshift \"initial_dtshift\"\n{\n \"Vaidya2\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD evolution_method \"evolution_method\"\n{\n \"Vaidya2\" :: \"\"\n} \n\n\n\nshares: GenericFD\n\nUSES CCTK_INT assume_stress_energy_state\n\n\nshares: MethodOfLines\n\nUSES CCTK_INT MoL_Num_Evolved_Vars\nUSES CCTK_INT MoL_Num_ArrayEvolved_Vars\n\nrestricted:\nCCTK_INT verbose \"verbose\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT other_timelevels \"Number of active timelevels for non-evolved grid functions\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL timeoffset \"timeoffset\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL positionx \"positionx\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL positiony \"positiony\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL positionz \"positionz\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL theta \"theta\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL phi \"phi\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL psi \"psi\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL lapsefactor \"lapsefactor\"\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL boostx \"boostx\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL boosty \"boosty\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL boostz \"boostz\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftaddx \"shiftaddx\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftaddy \"shiftaddy\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftaddz \"shiftaddz\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL M \"M\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL dM \"dM\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT tile_size \"Loop tile size\"\n{\n *:* :: \"\"\n} -1\n\nprivate:\nCCTK_KEYWORD exact_method \"exact_method\"\n{\n \"none\" :: \"\"\n \"Vaidya2\" :: \"\"\n} \"none\"\n\nrestricted:\nCCTK_INT Vaidya2_MaxNumEvolvedVars \"Number of evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Evolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT Vaidya2_MaxNumArrayEvolvedVars \"Number of Array evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_ArrayEvolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of Array evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT timelevels \"Number of active timelevels\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 3\n\nrestricted:\nCCTK_INT rhs_timelevels \"Number of active RHS timelevels\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 1\n\nrestricted:\nCCTK_INT Vaidya2_initial_calc_every \"Vaidya2_initial_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT Vaidya2_always_calc_every \"Vaidya2_always_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT Vaidya2_exact_calc_every \"Vaidya2_exact_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT Vaidya2_initial_calc_offset \"Vaidya2_initial_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT Vaidya2_always_calc_offset \"Vaidya2_always_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT Vaidya2_exact_calc_offset \"Vaidya2_exact_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\n", "schedule": "# File produced by Kranc\n\nSTORAGE: metric_exact[other_timelevels]\n\nSTORAGE: curv_exact[other_timelevels]\n\nSTORAGE: lapse_exact[other_timelevels]\n\nSTORAGE: dtlapse_exact[other_timelevels]\n\nSTORAGE: shift_exact[other_timelevels]\n\nSTORAGE: dtshift_exact[other_timelevels]\nschedule Vaidya2_Startup at STARTUP\n{\n LANG: C\n OPTIONS: meta\n} \"create banner\"\n\nschedule Vaidya2_RegisterSymmetries in SymmetryRegister\n{\n LANG: C\n OPTIONS: meta\n} \"register symmetries\"\n\nif (CCTK_EQUALS(initial_data, \"Vaidya2\"))\n{\n schedule Vaidya2_initial in ADMBase_InitialData\n {\n LANG: C\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: admbase::alp(Everywhere)\n WRITES: admbase::betax(Everywhere)\n WRITES: admbase::betay(Everywhere)\n WRITES: admbase::betaz(Everywhere)\n WRITES: admbase::dtalp(Everywhere)\n WRITES: admbase::dtbetax(Everywhere)\n WRITES: admbase::dtbetay(Everywhere)\n WRITES: admbase::dtbetaz(Everywhere)\n WRITES: admbase::gxx(Everywhere)\n WRITES: admbase::gxy(Everywhere)\n WRITES: admbase::gxz(Everywhere)\n WRITES: admbase::gyy(Everywhere)\n WRITES: admbase::gyz(Everywhere)\n WRITES: admbase::gzz(Everywhere)\n WRITES: admbase::kxx(Everywhere)\n WRITES: admbase::kxy(Everywhere)\n WRITES: admbase::kxz(Everywhere)\n WRITES: admbase::kyy(Everywhere)\n WRITES: admbase::kyz(Everywhere)\n WRITES: admbase::kzz(Everywhere)\n } \"Vaidya2_initial\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"Vaidya2\"))\n{\n schedule Vaidya2_always at CCTK_PRESTEP\n {\n LANG: C\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: admbase::alp(Everywhere)\n WRITES: admbase::betax(Everywhere)\n WRITES: admbase::betay(Everywhere)\n WRITES: admbase::betaz(Everywhere)\n WRITES: admbase::dtalp(Everywhere)\n WRITES: admbase::dtbetax(Everywhere)\n WRITES: admbase::dtbetay(Everywhere)\n WRITES: admbase::dtbetaz(Everywhere)\n WRITES: admbase::gxx(Everywhere)\n WRITES: admbase::gxy(Everywhere)\n WRITES: admbase::gxz(Everywhere)\n WRITES: admbase::gyy(Everywhere)\n WRITES: admbase::gyz(Everywhere)\n WRITES: admbase::gzz(Everywhere)\n WRITES: admbase::kxx(Everywhere)\n WRITES: admbase::kxy(Everywhere)\n WRITES: admbase::kxz(Everywhere)\n WRITES: admbase::kyy(Everywhere)\n WRITES: admbase::kyz(Everywhere)\n WRITES: admbase::kzz(Everywhere)\n } \"Vaidya2_always\"\n}\n\nif (CCTK_EQUALS(exact_method, \"Vaidya2\"))\n{\n schedule Vaidya2_exact at CCTK_ANALYSIS\n {\n LANG: C\n READS: admbase::gxx(Everywhere)\n READS: admbase::gxy(Everywhere)\n READS: admbase::gxz(Everywhere)\n READS: admbase::gyy(Everywhere)\n READS: admbase::gyz(Everywhere)\n READS: admbase::gzz(Everywhere)\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: Vaidya2::alpExact(Everywhere)\n WRITES: Vaidya2::betaExact1(Everywhere)\n WRITES: Vaidya2::betaExact2(Everywhere)\n WRITES: Vaidya2::betaExact3(Everywhere)\n WRITES: Vaidya2::dtalpExact(Everywhere)\n WRITES: Vaidya2::dtbetaExact1(Everywhere)\n WRITES: Vaidya2::dtbetaExact2(Everywhere)\n WRITES: Vaidya2::dtbetaExact3(Everywhere)\n WRITES: Vaidya2::gExact11(Everywhere)\n WRITES: Vaidya2::gExact12(Everywhere)\n WRITES: Vaidya2::gExact13(Everywhere)\n WRITES: Vaidya2::gExact22(Everywhere)\n WRITES: Vaidya2::gExact23(Everywhere)\n WRITES: Vaidya2::gExact33(Everywhere)\n WRITES: Vaidya2::kExact11(Everywhere)\n WRITES: Vaidya2::kExact12(Everywhere)\n WRITES: Vaidya2::kExact13(Everywhere)\n WRITES: Vaidya2::kExact22(Everywhere)\n WRITES: Vaidya2::kExact23(Everywhere)\n WRITES: Vaidya2::kExact33(Everywhere)\n } \"Vaidya2_exact\"\n}\n\nschedule Vaidya2_SelectBoundConds in MoL_PostStep\n{\n LANG: C\n OPTIONS: level\n} \"select boundary conditions\"\n\nschedule Vaidya2_CheckBoundaries at BASEGRID\n{\n LANG: C\n OPTIONS: meta\n} \"check boundaries treatment\"\n\nschedule Vaidya2_RegisterVars in MoL_Register\n{\n LANG: C\n OPTIONS: meta\n} \"Register Variables for MoL\"\n\nschedule Vaidya2_ParamCheck at PARAMCHECK\n{\n LANG: C\n OPTIONS: global\n} \"Check parameter consistency\"\nschedule group ApplyBCs as Vaidya2_ApplyBCs in MoL_PostStep after Vaidya2_SelectBoundConds\n{\n} \"Apply boundary conditions controlled by thorn Boundary\"\n", "src": { "make.code.defn": "# File produced by Kranc\n\nSRCS = Boundaries.cc Kranc.cc ParamCheck.cc RegisterMoL.cc RegisterSymmetries.cc Startup.cc Vaidya2_always.cc Vaidya2_exact.cc Vaidya2_initial.cc \n", diff --git a/EinsteinInitialData_DistortedBHIVP.json b/EinsteinInitialData_DistortedBHIVP.json index 2483ee419cb360a6c4d7f3de90017f8b6c5987d6..35f207db3a832930d95cd8e5a7d3de201025e6f9 100644 --- a/EinsteinInitialData_DistortedBHIVP.json +++ b/EinsteinInitialData_DistortedBHIVP.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteininitialdata.git", "configuration": "", "interface": "# Interface definition for thorn DistortedBHIVP\n# $Header$\n\nimplements: distortedbhivp\ninherits: ADMBase grid StaticConformal\n\nprivate:\n\nreal sph_to_car_coord TYPE=GF\n{\neta,\nabseta,\nsign_eta,\nq,\nphi\n} \"coordinate\"\n\nreal sph_to_car_psi TYPE=GF\n{\npsi3d,\ndetapsi3d,\ndqpsi3d,\ndphipsi3d,\ndetaetapsi3d,\ndetaqpsi3d,\ndetaphipsi3d,\ndqqpsi3d,\ndqphipsi3d,\ndphiphipsi3d\n}\"psi\"\n\n\n", - "params": "", + "param": "# Parameter definitions for thorn DistortedBHIVP\n# $Header$\n\nshares: StaticConformal\n\nUSES KEYWORD conformal_storage\n\nshares:admbase\n\nUSES KEYWORD metric_type\n\n\nEXTENDS KEYWORD initial_lapse \n{\n \"schwarz\" :: \"Set lapse to Schwarzschild\"\n}\n\nEXTENDS KEYWORD initial_data \n{\n\"distortedbh\" :: \"Non-Aix BH + Brill Wave IVP\"\n}\n\nprivate:\n\nREAL amp \"Brill wave amplitude\"\n{\n *:* :: \"No restriction\"\n} 0.1\n\nREAL eta0 \"Brill wave center (in eta coords)\"\n{\n *:* :: \"No restriction\"\n} 0.0\n\nREAL c \"Azimuthal dependence of Brill wave\"\n{\n *:* :: \"No restriction\"\n} 0.0\n\nREAL sigma \"Brill wave width (in eta)\"\n{\n *:* :: \"No restriction\"\n} 1.0\n\nREAL etamax \"Eta value for outer edge of grid\"\n{\n *:* :: \"No restriction\"\n} 5.0\n\n\nINT n \"sin^n theta in brill wave\"\n{\n *:* :: \"No restriction\"\n} 2\n\nINT neta \"Eta resolution for solve\"\n{\n *:* :: \"No restriction\"\n} 202\n\nINT ntheta \"Theta resolution for solve\"\n{\n *:* :: \"No restriction\"\n} 54\n\nINT nphi \"Eta resolution for solve\"\n{\n *:* :: \"No restriction\"\n} 5\n\nINT interpolation_order \"Order for interpolation\" STEERABLE = ALWAYS\n{\n 1:3 :: \"Choose between first, second, and third-order\"\n} 1\n\nREAL tolerance \"Tolerance\"\n{\n 0:* :: \"Tolerance\"\n} 1.e-9\n", "schedule": "# Schedule definitions for thorn DistortedBHIVP\n# $Header$\n\nif (CCTK_Equals(initial_data,\"distortedbh\"))\n{ \n STORAGE: sph_to_car_coord, sph_to_car_psi \n\n schedule DistortedBHIVP_ParamCheck at PARAMCHECK\n {\n LANG: C\n } \"Check Parameters\"\n\n schedule DistortedBHIVP IN ADMBase_InitialData\n {\n LANG: Fortran\n } \"Construct DistortedBHIVP\"\n}\n\n\n\n\n", "src": { "bhbrill3d.m": "$Path = Union[$Path,{\"~/SetTensor\"}];\nNeeds[\"SetTensor`\"];\n\nDimension = 3;\nx[1] = eta; x[2] = q; x[3] = phi\nqf[eta_,q_,phi_] := amp (Exp[-(eta-eta0)^2/sigma^2]+Exp[-(eta+eta0)^2/sigma^2]) Sin[q]^n (1+c Cos[phi]^2)\n\nmd = {\n{Exp[2 qf[eta,q,phi]],0,0},\n{0,Exp[2 qf[eta,q,phi]],0},\n{0,0,Sin[q]^2}} psisph[eta,q,phi]^4;\nInitializeMetric[md];\n\nClear[exc];\nDefineTensor[exc];\nSetTensor[exc[la,lb],{{0,0,0},{0,0,0},{0,0,0}}];\n\ntmp = RicciR[la,lb] Metricg[ua,ub]+exc[la,lb] Metricg[ua,ub] exc[lc,ld] Metricg[uc,ud]-\n exc[la,lb] exc[lc,ld] Metricg[ua,uc] Metricg[ub,ud];\ntmp = RicciToAffine[tmp];\ntmp = EvalMT[tmp];\ntmp = ExpandAll[-Exp[2 qf[eta,q,phi]] psisph[eta,q,phi]^5/8 tmp]\nsav=tmp\ntmp = SubFun[sav,psisph[eta,q,phi],2 Cosh[eta/2]+psisph[eta,q,phi]]\n\n(* Make the stencil... *)\n\nstencil = ExpandAll[tmp /. {\n D[psisph[eta,q,phi],eta]->(psisph[i+1,j,k]-psisph[i-1,j,k])/(2 deta),\n D[psisph[eta,q,phi],eta,eta]->(psisph[i+1,j,k]+psisph[i-1,j,k]-2 psisph[i,j,k])/(deta deta),\n D[psisph[eta,q,phi],q]->(psisph[i,j+1,k]-psisph[i,j-1,k])/(2 dq),\n D[psisph[eta,q,phi],q,q]->(psisph[i,j+1,k]+psisph[i,j-1,k]-2 psisph[i,j,k])/(dq dq),\n D[psisph[eta,q,phi],phi]->(psisph[i,j,k+1]-psisph[i,j,k-1])/(2 dphi),\n D[psisph[eta,q,phi],phi,phi]->(psisph[i,j,k+1]+psisph[i,j,k-1]-2 psisph[i,j,k])/(dphi dphi),\n psisph[eta,q,phi]->psisph[i,j,k]\n }];\n\nac = Coefficient[stencil,psisph[i,j,k]]\nan = Coefficient[stencil,psisph[i+1,j,k]]\nas = Coefficient[stencil,psisph[i-1,j,k]]\nae = Coefficient[stencil,psisph[i,j,k+1]]\naw = Coefficient[stencil,psisph[i,j,k-1]]\naq = Coefficient[stencil,psisph[i,j+1,k]]\nab = Coefficient[stencil,psisph[i,j-1,k]]\nrhs = -SubFun[tmp,psisph[eta,q,phi],0]\n\nFortranOutputOfDepList = \"(i,j,k)\";\n$FortranReplace = Union[{\n \"UND\"->\"_\",\n \"(eta,q,phi)\"->\"(i,j,k)\"\n}];\nfd = FortranOpen[\"bhbrill3d.x\"];\nFortranWrite[fd,An[i,j,k],an ];\nFortranWrite[fd,As[i,j,k],as ];\nFortranWrite[fd,Ae[i,j,k],ae ];\nFortranWrite[fd,Aw[i,j,k],aw ];\nFortranWrite[fd,Aq[i,j,k],aq ];\nFortranWrite[fd,Ab[i,j,k],ab ];\nFortranWrite[fd,Ac[i,j,k],ac ];\nFortranWrite[fd,Rhs[i,j,k],rhs ];\nFortranClose[fd];\n\n(* Next part, write out conformal g's and d's *)\n\n\nxv = Exp[eta] Sin[q] Cos[phi];\nyv = Exp[eta] Sin[q] Sin[phi];\nzv = Exp[eta] Cos[q];\n\nmc = Table[ D[ {xv,yv,zv}[[i]], {eta,q,phi}[[j]] ],{i,1,3},{j,1,3}];\nmci = Simplify[Inverse[mc]];\n\nClear[mct];\nDefineTensor[mct,{{1,2},1}];\nIter[mct[ua,lb],\n mct[ua,lb]=mc[[ua,-lb]];\n];\n\nClear[mcti];\nDefineTensor[mcti,{{1,2},1}];\nIter[mcti[ua,lb],\n mcti[ua,lb]=mci[[ua,-lb]];\n];\n\ngijtmp = Exp[2 eta]/psisph[eta,q,phi]^4 Metricg[lc,ld] mcti[uc,la] mcti[ud,lb]\n\nClear[i2];\nDefineTensor[i2,{{2,1},1}];\n\nfd = FortranOpen[\"gij.x\"];\nIter[i2[ua,ub],\n v1 = {x,y,z}[[ua]];\n v2 = {x,y,z}[[ub]];\n metv = ToExpression[\"g\"<>ToString[v1]<>ToString[v2]<>\"[i,j,k]\"];\n gg[v1,v2]=Simplify[EvalMT[gijtmp,{la->-ua,lb->-ub}]];\n FortranWrite[fd,metv,gg[v1,v2]];\n For[ii=1,ii<=3,ii++,\n v3 = {x,y,z}[[ii]];\n dmetv = ToExpression[\"d\"<>ToString[v3]<>ToString[metv]];\n res = OD[gg[v1,v2],lc] mcti[uc,ld]/2;\n res = EvalMT[res,ld-> -ii];\n res = Simplify[res];\n FortranWrite[fd,dmetv,res];\n ];\n];\nFortranClose[fd];\n\n$FortranReplace = {\n \"UND\"->\"_\",\n \"(eta,q,phi)\"->\"\"\n};\n\nfd = FortranOpen[\"psi_1st_deriv.x\"];\nFor[ii=1,ii<=3,ii++,\n v1 = {x,y,z}[[ii]];\n psv =ToExpression[\"psi\"<>ToString[v1]<>\"[i,j,k]\"];\n rhs = CD[Exp[-eta/2] psi3d[eta,q,phi],lc] mcti[uc,la];\n rhs = EvalMT[rhs,{la->-ii}]/(Exp[-eta/2] psi3d[eta,q,phi]);\n FortranWrite[fd,psv,rhs];\n];\nFortranClose[fd];\n\nfd = FortranOpen[\"psi_2nd_deriv.x\"];\nIter[i2[ua,ub],\n v1 = {x,y,z}[[ua]];\n v2 = {x,y,z}[[ub]];\n psv = ToExpression[\"psi\"<>ToString[v1]<>ToString[v2]<>\"[i,j,k]\"];\n rhs = OD[OD[Exp[-eta/2] psi3d[eta,q,phi],lc] mcti[uc,la],ld] mcti[ud,lb];\n rhs = EvalMT[rhs,{la->-ua,lb->-ub}]/(Exp[-eta/2] psi3d[eta,q,phi]);\n FortranWrite[fd,psv,rhs];\n];\nFortranClose[fd];\n", diff --git a/EinsteinInitialData_Exact.json b/EinsteinInitialData_Exact.json index 828b2bb3cfcb9ad96f1a10231f3e914c1ca9fd91..f6cc3c3e502e328cc8fa3d0858398c739d538ba0 100644 --- a/EinsteinInitialData_Exact.json +++ b/EinsteinInitialData_Exact.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteininitialdata.git", "configuration": "# Configuration definition for thorn Exact\n# $Header$\n\nREQUIRES THORNS: CoordGauge\n", "interface": "# Interface definition for thorn Exact\n# $Header$\n\nimplements: exact\ninherits: admbase grid coordgauge staticconformal\n# Exact sets Tmunu but does not inherit it to support pure vacuum setups\n# in a backwards compatible manner\n\nCCTK_INT FUNCTION Boundary_RegisterPhysicalBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN CCTK_FPOINTER function_pointer(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN num_vars, \\\n CCTK_INT ARRAY IN var_indices, \\\n CCTK_INT ARRAY IN faces, \\\n CCTK_INT ARRAY IN boundary_widths, \\\n CCTK_INT ARRAY IN table_handles),\\\n CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_RegisterPhysicalBC\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT FUNCTION Driver_RequireValidData\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT ARRAY IN variables,\n CCTK_INT ARRAY IN tls,\n CCTK_INT IN nvariables,\n CCTK_INT ARRAY IN where)\nUSES FUNCTION Driver_RequireValidData\n\nCCTK_INT FUNCTION Driver_NotifyDataModified\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT ARRAY IN variables,\n CCTK_INT ARRAY IN tls,\n CCTK_INT IN nvariables,\n CCTK_INT ARRAY IN where)\nUSES FUNCTION Driver_NotifyDataModified\n\nUSES INCLUDE : Slicing.h\n\n################################################################################\n\n#\n# copies of our parameters (with keywords decoded into integers)\n# for the use of the src/include/Scalar_CalcTmunu.inc code\n# (see comments in param.ccl for why we need this)\n#\nprotected:\n\nint Exact_pars_int type=SCALAR\n{\n# ***** exact_model decoded to an integer\ndecoded_exact_model\n\n# ***** parameters for models which have nonzero stress-energy tensor terms\n\n### this metric doesn't work and has been moved to ../archive/\n### parameters for Robertson-Walker spacetime\n##Robertson_Walker___k\n##Robertson_Walker___pressure\n} \"parameters copied to grid scalars so CalcTmunu code sees them in evolution thorns\"\n\nreal Exact_pars_real type=SCALAR\n{\n# parameters for Schwarzschild-Lemaitre metric\n# (Schwarzschild black hole with cosmological constant)\nSchwarzschild_Lemaitre___Lambda\nSchwarzschild_Lemaitre___mass\n# parameters for Lemaitre-type spacetime\nLemaitre___kappa\nLemaitre___Lambda\nLemaitre___epsilon0\nLemaitre___R0\n### this metric doesn't work and has been moved to ../archive/\n### parameters for Robertson-Walker spacetime\n##Robertson_Walker___R0\n##Robertson_Walker___rho\n# parameters for de Sitter spacetime\nde_Sitter___scale\n# parameters for de Sitter spacetime with cosmological constant\nde_Sitter_Lambda___scale\n# parameters for anti-de Sitter spacetime with cosmological constant\nanti_de_Sitter_Lambda___scale\n# parameters for Bertotti spacetime\nBertotti___Lambda\n# parameters for Kasner-like spacetime\nKasner_like___q\n# parameters for generalized Kasner spacetime\nKasner_generalized___p1\nKasner_generalized___p2\n# parameters for constant density (Schwarzschild) star\nconstant_density_star___mass\nconstant_density_star___radius\n} \"parameters copied to grid scalars so CalcTmunu code sees them in evolution thorns\"\n\n################################################################################\n##\n### Robertson-Walker metric doesn't work and has been moved to ../archive/\n###\n### temp variable for some of the stress-energy tensor computations\n###\n##protected:\n##real Exact_robwal_var TYPE=GF\n##{\n## raza\n##} \"Raza universului Robertson Walker\"\n##\n################################################################################\n\nprivate:\n\nreal Exact_slice type=GF\n{\n slicex,\n slicey,\n slicez,\n slicet\n} \"Position of an arbitrary slice in exact solution spacetime\"\n\nreal Exact_slicetemp1 type=GF\n{\n slicetmp1x,\n slicetmp1y,\n slicetmp1z,\n slicetmp1t\n} \"Temporary grid functions 1\"\n\nreal Exact_slicetemp2 type=GF\n{\n slicetmp2x,\n slicetmp2y,\n slicetmp2z,\n slicetmp2t\n} \"Temporary grid functions 2\"\n", - "params": "", + "param": "# parameter definitions for thorn Exact\n# $Header$\n\nshares: admbase\n\n################################################################################\n##### keyword parameters from other thorns #####################################\n################################################################################\n\nUSES KEYWORD metric_type\n\nEXTENDS KEYWORD initial_data \n{\n \"exact\" :: \"Initial data from exact solution\"\n \"slice\" :: \"Initial data from exact solution on arbitrary slice\"\n}\n\nEXTENDS KEYWORD lapse_evolution_method\n{\n \"exact\" :: \"Use lapse from exact solution\"\n}\nEXTENDS KEYWORD shift_evolution_method\n{\n \"exact\" :: \"Use shift from exact solution\"\n}\n\nEXTENDS KEYWORD dtlapse_evolution_method\n{\n \"exact\" :: \"Use lapse from exact solution\"\n}\nEXTENDS KEYWORD dtshift_evolution_method\n{\n \"exact\" :: \"Use shift from exact solution\"\n}\n\nEXTENDS KEYWORD initial_lapse\n{\n \"exact\" :: \"Initial lapse from exact solution\"\n}\nEXTENDS KEYWORD initial_shift\n{\n \"exact\" :: \"Initial shift from exact solution\"\n}\nEXTENDS KEYWORD initial_dtlapse\n{\n \"exact\" :: \"Initial dtlapse from exact solution\"\n}\nEXTENDS KEYWORD initial_dtshift\n{\n \"exact\" :: \"Initial dtshift from exact solution\"\n}\n\nEXTENDS KEYWORD evolution_method\n{\n \"exact\" :: \"Fake an evolution by setting exact data at every timestep\"\n \"slice\" :: \"Evolve arbitrary slice and extract Cauchy data\"\n}\n\nshares: StaticConformal\n\nUSES KEYWORD conformal_storage\n\n################################################################################\n##### parameters for the blended boundary conditions ###########################\n################################################################################\n\nprivate:\n\nBOOLEAN exblend_Ks \"Blend the K variables with the exact solution?\"\n{\n} \"yes\"\n\nBOOLEAN exblend_gs \"Blend the g variables with the exact solution?\"\n{\n} \"yes\"\n\nBOOLEAN exblend_gauge \"Blend the lapse and shift with the exact solution?\"\n{\n} \"yes\"\n\nREAL exblend_rout \"Outer boundary of blending region\"\n{\n*:* :: \"Positive means radial value, negative means use outer bound of grid\"\n} -1.0\n\nREAL exblend_width \"Width of blending zone\"\n{\n*:* :: \"Positive means width in radius, negative means width = exbeldn_width*dx\"\n} -3.0\n\n################################################################################\n##### parameters for slice initialize ##########################################\n################################################################################\n\nprivate:\n\nREAL slice_Gauss_ampl \"Amplitude of Gauss slice in exact\"\n{\n0.0:* :: \"Positive please\"\n} 0.0\n\nREAL slice_Gauss_width \"Width of Gauss slice in exact\"\n{\n0.0:* :: \"Positive please\"\n} 1.0\n\n# this parameter is used directly in our schedule.ccl file\nKEYWORD overwrite_boundary \"Overwrite g and K on the boundary\"\n{\n \"no\" :: \"Do nothing\"\n \"exact\" :: \"Use boundary data from an exact solution on a trivial slice\"\n} \"no\"\n\n################################################################################\n##### parameters for calculating the extrinsic curvature #######################\n################################################################################\n\nprivate:\n\nINT exact_order \"finite differencing order\"\n{\n2 :: \"2\"\n4 :: \"4\"\n} 2\n\nREAL exact_eps \"finite differencing stencil size\"\n{\n(0.0:* :: \"Positive please\"\n} 1.0e-6\n\n################################################################################\n##### parameters for boosting any non-stress-energy-tensor model ###############\n################################################################################\n\nprivate:\n\nREAL boost_vx \"x component of boost velocity\"\n{\n*:* :: \"any real number\"\n} 0.0\nREAL boost_vy \"y component of boost velocity\"\n{\n*:* :: \"any real number\"\n} 0.0\nREAL boost_vz \"z component of boost velocity\"\n{\n*:* :: \"any real number\"\n} 0.0\n\n################################################################################\n##### parameters for adding to the shift of any model ##########################\n################################################################################\n\nprivate:\n\nREAL shift_add_x \"x component of added shift\"\n{\n*:* :: \"any real number\"\n} 0.0\nREAL shift_add_y \"y component of added shift\"\n{\n*:* :: \"any real number\"\n} 0.0\nREAL shift_add_z \"z component of added shift\"\n{\n*:* :: \"any real number\"\n} 0.0\n\n################################################################################\n##### parameters for rotating any model ########################################\n################################################################################\n\nprivate:\n\nREAL rotation_euler_phi \"Euler angle phi (first rotation, about z axis) (irrelevant for axisymmetric models)\"\n{\n*:* :: \"any real number\"\n} 0.0\nREAL rotation_euler_theta \"Euler angle theta (second rotation, about x axis)\"\n{\n*:* :: \"any real number\"\n} 0.0\nREAL rotation_euler_psi \"Euler angle psi (third rotation, about z axis)\"\n{\n*:* :: \"any real number\"\n} 0.0\n\n################################################################################\n##### general comments #########################################################\n################################################################################\n\n#\n# All remaining parameters *should* be visible only to this thorn\n# and its friends. In particular, the stress-energy tensor code in\n# src/include/Scalar_CalcTmunu.inc needs to look at various parameters to\n# see what to do... and (via the magic of #include and the Cactus\n# USES INCLUDE SOURCE mechanism) this code is effectively part of\n# various evolution thorns.\n#\n# Alas, Cactus doesn't (yet) provide any way for a (this) thorn to \"push\"\n# parameters into friends without the friends having to know where the\n# pushed parameters came from... and we don't want the evolution thorns\n# themselves to have to know our name and those of all the other thorns\n# which provide pieces of the stress-energy tensor.\n#\n# Instead, we use a kludge: we copy all the relevant parameters\n# (exact_model and all those for models which have stress-energy tensor\n# computations) into restricted grid scalars. These _are_ \"pushed\" into\n# friends... and because friendship is transitive, it suffices for us to\n# be friends of ADMCoupling.\n#\n# Since grid scalars can't be varying-length character strings, we also\n# have to decode keyword parameters into integers in this process. The\n# values for those integers are given by #define constants in\n# src/include/param_defs.inc .\n#\n\n################################################################################\n\n#\n# ***** naming conventions *****\n#\n# A \"model\" refers to the combination of a spacetime and a coordinate\n# system; we use the model name \"spacetime/coordinates\" in cases where\n# we have the same spacetime in different coordinate systems.\n#\n# We use \"spacetime+Lambda\" to describe a with-cosmological-constant\n# variant of a given spacetime.\n#\n# All the parameters for individual models have names which begin\n# with the model name (with any '/' or '-' characters converted to '_'),\n# followed by '__'. The description comment for each parameter begins\n# with the model name followed by ':'. For example:\n#\n#\tREAL Schwarzschild_EF__mass \"Schwarzschild/EF: BH mass\"\n#\t{\n#\t*:* :: \"any real number\"\n#\t} 1.0\n#\n\n################################################################################\n##### exact_model ##############################################################\n################################################################################\n\nrestricted:\n\n#\n# see the file doc/how_to_add_a_new_model for instructions on adding\n# a new model\n#\nKEYWORD exact_model \"The exact solution/coordinates used in thorn exact\"\n{\n#\n# Minkowski spacetime\n#\n\"Minkowski\" :: \"Minkowski spacetime\"\n\"Minkowski/shift\" :: \"Minkowski spacetime with time-dependent shift vector\"\n\"Minkowski/funny\" :: \"Minkowski spacetime in non-trivial spatial coordinates\"\n\"Minkowski/gauge wave\" :: \"Minkowski spacetime in gauge-wave coordinates\"\n\"Minkowski/shifted gauge wave\" :: \"Minkowski spacetime in shifted gauge-wave coordinates\"\n\"Minkowski/conf wave\" :: \"Minkowski spacetime with 'waves' in conformal factor\"\n#\n# black hole spacetimes\n#\n\"Schwarzschild/EF\" :: \"Schwarzschild spacetime in Eddington-Finkelstein coordinates\"\n\"Schwarzschild/PG\" :: \"Schwarzschild spacetime in Painleve-Gullstrand coordinates\"\n\"Schwarzschild/BL\" :: \"Schwarzschild spacetime in Brill-Lindquist coordinates\"\n\"Schwarzschild/Novikov\" :: \"Schwarzschild spacetime in Novikov coordinates\"\n\"Schwarzschild-Lemaitre\" :: \"Schwarzschild metric in Schwarzschild coordinates, with cosmological constant\"\n\"Kerr/Boyer-Lindquist\" :: \"Kerr spacetime in Boyer-Lindquist coordinates\"\n\"Kerr/Kerr-Schild\" :: \"Kerr spacetime in Kerr-Schild coordinates\"\n\"Kerr/Kerr-Schild/spherical\" :: \"Kerr spacetime in distorted Kerr-Schild coordinates such that the horizon is a coordinate sphere\"\n\"multi-BH\" :: \"Majumdar-Papapetrou or Kastor-Traschen maximally charged multi BH solutions\"\n\"Alvi\" :: \"Alvi post-Newtonian 2BH spacetime (not fully implemented yet)\"\n\"Thorne-fakebinary\" :: \"Thorne's fake-binary spacetime (non-Einstein)\"\n#\n# cosmological spacetimes\n#\n\"Lemaitre\" :: \"Lemaitre-type spacetime\"\n##\"Robertson-Walker\" :: \"Robertson-Walker spacetime\"\n\"de Sitter\" :: \"de Sitter spacetime (R-W cosmology, near t=0, p=0)\"\n\"de Sitter+Lambda\" :: \"de Sitter spacetime with cosmological constant\"\n\"anti-de Sitter+Lambda\" :: \"anti-de Sitter spacetime with cosmological constant\"\n\"Bianchi I\" :: \"approximate Bianchi type I spacetime\"\n\"Goedel\" :: \"Goedel spacetime\"\n\"Bertotti\" :: \"Bertotti spacetime\"\n\"Kasner-like\" :: \"Kasner-like spacetime\"\n\"Kasner-axisymmetric\" :: \"axisymmetric Kasner spacetime\"\n\"Kasner-generalized\" :: \"generalized Kasner spacetime\"\n\"Gowdy-wave\"\t :: \"Gowdy spacetime with polarized wave on a torus\"\n\"Milne\" :: \"Milne spacetime for pre-big-bang cosmology\"\n#\n# miscelaneous spacetimes\n#\n\"boost-rotation symmetric\" :: \"boost-rotation symmetric spacetime\"\n\"bowl\" :: \"bowl (bag-of-gold) spacetime (non-Einstein)\"\n\"constant density star\" :: \"constant density (Schwarzschild) star\"\n} \"Minkowski\"\n\n################################################################################\n##### Minkowski spacetime ######################################################\n################################################################################\n\n#\n# parameters for Minkowski spacetime (trivial txyz coordinates)\n#\n\n# there are no parameters\n\n################################################################################\n\n#\n# parameters for Minkowski spacetime with time-dependent shift vector\n#\n\nREAL Minkowski_shift__amplitude \"Minkowski/shift: amplitude of Gaussian\"\n{\n(-1:1) :: \"any real number < 1 in absolute value\"\n} 0.5\n\nREAL Minkowski_shift__sigma \"Minkowski/shift: width of Gaussian\"\n{\n(0.0:* :: \"any real number > 0\"\n} 1.0\n\n################################################################################\n\n#\n# parameters for Minkowski spacetime with non-trivial spatial coordinates\n#\n\n# FIXME: can this also be negative, i.e. range (-1,1)?\nREAL Minkowski_funny__amplitude \"Minkowski/funny: amplitude of Gaussian\"\n{\n0.0:1.0) :: \"any real number in the range [0,1)\"\n} 0.5\n\nREAL Minkowski_funny__sigma \"Minkowski/funny: width of Gaussian\"\n{\n(0.0: :: \"any real number > 0\"\n} 1.0\n\n################################################################################\n\n#\n# parameters for Minkowski spacetime in gauge-wave coordinates\n#\n\nKEYWORD Minkowski_gauge_wave__what_fn \\\n \"Minkowski/gauge wave: what function to use\"\n{\n\"sin\" :: \"1-a*sin(x)\"\n\"expsin\" :: \"exp(a*sin(x)*cos(t))\"\n\"Gaussian\" :: \"1-a*exp(-x**2)\"\n} \"sin\"\n \nREAL Minkowski_gauge_wave__amplitude \\\n \"Minkowski/gauge wave: amplitude of the wave\"\n{\n*:* :: \"any real number\"\n} 0.5\n \nREAL Minkowski_gauge_wave__omega \\\n \"Minkowski/gauge wave: angular frequency of the wave in time\"\n{\n*:* :: \"any real number\"\n} 1.0\n \nBOOLEAN Minkowski_gauge_wave__diagonal \\\n \"Minkowski/gauge wave: should the wave run diagonally across the grid?\"\n{\n} \"no\"\n \nREAL Minkowski_gauge_wave__lambda \\\n \"Minkowski/gauge wave: wavelength of waves\"\n{\n*:* :: \"any real number\"\n} 0.5 \n\nREAL Minkowski_gauge_wave__phase \\\n \"Minkowski/gauge wave: phase shift of wave\"\n{\n*:* :: \"any real number\"\n} 0.0\n\n################################################################################\n\n#\n# parameters for Minkowski spacetime in gauge-wave coordinates\n#\n\nREAL Minkowski_conf_wave__amplitude \\\n \"Minkowski/conf wave: amplitude of the variation of the conformal factor\"\n{\n 0:* :: \"any positive real number\"\n} 0.5\n\nREAL Minkowski_conf_wave__wavelength \\\n \"Minkowski/conf wave: wave length in cactus units\"\n{\n 0:* :: \"any positive real number\"\n} 1.0\n\nINT Minkowski_conf_wave__direction \\\n \"Minkowski/conf wave: direction of 'wave' 0,1,2 : x,y,z\"\n{\n 0:2 :: \"0, 1 or 2 for x, y or z\"\n} 0\n\n################################################################################\n##### black hole spacetimes ####################################################\n################################################################################\n\n#\n# parameters for Schwarzschild metric in Eddington-Finkelstein coordinates\n#\n\nREAL Schwarzschild_EF__mass \"Schwarzschild/EF: BH mass\"\n{\n*:* :: \"any real number\"\n} 1.0\n\nREAL Schwarzschild_EF__epsilon \"Schwarzschild/EF: numerical fudge\"\n{\n0.0:* :: \"any real number >= 0.0\"\n} 1.e-16\n\n################################################################################\n\n#\n# parameters for Schwarzschild metric in Painleve-Gustrand coordinates\n#\n\nREAL Schwarzschild_PG__mass \"Schwarzschild/PG: BH mass\"\n{\n(0.0:* :: \"any real number > 0.0\"\n} 1.0\n\nREAL Schwarzschild_PG__epsilon \"Schwarzschild/PG: numerical fudge\"\n{\n0.0:* :: \"any real number >= 0.0\"\n} 1.e-16\n\n################################################################################\n\n#\n# parameters for Schwarzschild metric in Brill-Lindquist coordinates\n#\n\nREAL Schwarzschild_BL__mass \"Schwarzschild/BL: BH mass\"\n{\n(0.0:* :: \"any real number > 0.0\"\n} 1.0\n\nREAL Schwarzschild_BL__epsilon \"Schwarzschild/BL: numerical fudge\"\n{\n0.0:* :: \"any real number >= 0.0\"\n} 1.e-16\n\n################################################################################\n\n# parameters for Schwarzschild metric in Novikov coordinates\n\nREAL Schwarzschild_Novikov__mass \"Schwarzschild/Novikov: BH mass\"\n{\n(0.0:* :: \"any real number > 0.0\"\n} 1.0\n\nREAL Schwarzschild_Novikov__epsilon \"Schwarzschild/Novikov: numerical fudge\"\n{\n0.0:* :: \"any real number >= 0.0\"\n} 1.e-16\n\n################################################################################\n\n# parameters for Schwarzschild-Lemaitre metric\n# (Schwarzschild black hole with cosmological constant)\n\nREAL Schwarzschild_Lemaitre__Lambda \"Schwarzschild-Lemaitre: cosmological constant\"\n{\n*:* :: \"any real number\"\n} 1.0\n\nREAL Schwarzschild_Lemaitre__mass \"Schwarzschild-Lemaitre: BH mass\"\n{\n(0.0:* :: \"any real number > 0\"\n} 1.0\n\n################################################################################\n\n# parameters for Kerr metric in Boyer-Lindquist coordinates\n\nREAL Kerr_BoyerLindquist__spin \\\n \"Kerr/Boyer-Lindquist: dimensionless spin parameter a = J/m^2\"\n{\n-1.0:1.0 :: \"dimensionless spin parameter a = J/m^2 for Kerr black hole\"\n} 0.6\n\nREAL Kerr_BoyerLindquist__mass \"Kerr/Boyer-Lindquist: BH mass\"\n{\n(0.0:* :: \"any real number > 0\"\n} 1.0\n\n################################################################################\n\n#\n# parameters for Kerr metric in Kerr-Schild coordinates\n#\n\n# the black hole is boosted in the z direction with this velocity,\n# i.e., the black hole is located at x=0, y=0, and z=vt\nREAL Kerr_KerrSchild__boost_v \"Kerr/Kerr-Schild: boost velocity of black hole in z direction\"\n{\n(-1:1) :: \"any real number with absolute value < 1\"\n} 0.0\n\nREAL Kerr_KerrSchild__epsilon \"Kerr/Kerr-Schild: numerical fudge\"\n{\n0.0:* :: \"any real number >= 0.0\"\n} 1.e-16\n\nINT Kerr_KerrSchild__power \"Kerr/Kerr-Schild: power (exponent) of numerical fudge\"\n{\n1:* :: \"\"\n} 4\n\nBOOLEAN Kerr_KerrSchild__parabolic \"Kerr/Kerr-Schild: use a parabolic singularity-avoiding term\"\n{\n} \"no\"\n\nREAL Kerr_KerrSchild__mass \"Kerr/Kerr-Schild: BH mass\"\n{\n(0.0:* :: \"any real number > 0\"\n} 1.0\n\nREAL Kerr_KerrSchild__spin \\\n \"Kerr/Kerr-Schild: dimensionless spin parameter a = J/m^2\"\n{\n-1.0:1.0 :: \"dimensionless spin parameter a = J/m^2 for Kerr black hole\"\n} 0.6\n\nREAL Kerr_KerrSchild__x \\\n \"Kerr/Kerr-Schild: x-coordinate of black hole\"\n{\n(*:*) :: \"\"\n} 0.0\n\nREAL Kerr_KerrSchild__y \\\n \"Kerr/Kerr-Schild: y-coordinate of black hole\"\n{\n(*:*) :: \"\"\n} 0.0\n\nREAL Kerr_KerrSchild__z \\\n \"Kerr/Kerr-Schild: z-coordinate of black hole\"\n{\n(*:*) :: \"\"\n} 0.0\n\nREAL Kerr_KerrSchild__t \\\n \"Kerr/Kerr-Schild: time offset of black hole\"\n{\n(*:*) :: \"\"\n} 0.0\n\n################################################################################\n\n#\n# parameters for Majumdar-Papapetrou or Kastor-Traschen\n# maximally-charged multiple black hole solution\n#\n\nINT multi_BH__nBH \"multi-BH: number of black holes 0-4\"\n{\n0:4 :: \"any integer in the range [0,4]\"\n} 0\n\nREAL multi_BH__Hubble \"multi-BH: Hubble constant = +/- sqrt{Lambda/3}\"\n{\n*:* :: \"any real number\"\n} 0.0\n\n# black hole #1\nREAL multi_BH__mass1 \"multi-BH: mass of black hole number 1\"\n{\n0.0: :: \"any real number >= 0\"\n} 0.0\nREAL multi_BH__x1 \"multi-BH: x coord of black hole number 1\"\n{\n*:* :: \"any real number\"\n} 0.0\nREAL multi_BH__y1 \"multi-BH: y coord of black hole number 1\"\n{\n*:* :: \"any real number\"\n} 0.0\nREAL multi_BH__z1 \"multi-BH: z coord of black hole number 1\"\n{\n*:* :: \"any real number\"\n} 0.0\n\n# black hole #2\nREAL multi_BH__mass2 \"multi-BH: mass of black hole number 2\"\n{\n0.0: :: \"any real number >= 0\"\n} 0.0\nREAL multi_BH__x2 \"multi-BH: x coord of black hole number 2\"\n{\n*:* :: \"any real number\"\n} 0.0\nREAL multi_BH__y2 \"multi-BH: y coord of black hole number 2\"\n{\n*:* :: \"any real number\"\n} 0.0\nREAL multi_BH__z2 \"multi-BH: z coord of black hole number 2\"\n{\n*:* :: \"any real number\"\n} 0.0\n\n# black hole #3\nREAL multi_BH__mass3 \"multi-BH: mass of black hole number 3\"\n{\n0.0: :: \"any real number >= 0\"\n} 0.0\nREAL multi_BH__x3 \"multi-BH: x coord of black hole number 3\"\n{\n*:* :: \"any real number\"\n} 0.0\nREAL multi_BH__y3 \"multi-BH: y coord of black hole number 3\"\n{\n*:* :: \"any real number\"\n} 0.0\nREAL multi_BH__z3 \"multi-BH: z coord of black hole number 3\"\n{\n*:* :: \"any real number\"\n} 0.0\n\n# black hole #4\nREAL multi_BH__mass4 \"multi-BH: mass of black hole number 4\"\n{\n0.0:* :: \"any real number >= 0\"\n} 0.0\nREAL multi_BH__x4 \"multi-BH: x coord of black hole number 4\"\n{\n*:* :: \"any real number\"\n} 0.0\nREAL multi_BH__y4 \"multi-BH: y coord of black hole number 4\"\n{\n*:* :: \"any real number\"\n} 0.0\nREAL multi_BH__z4 \"multi-BH: z coord of black hole number 4\"\n{\n*:* :: \"any real number\"\n} 0.0\n\n################################################################################\n\n#\n# parameters for Alvi spacetime\n#\n\nREAL Alvi__mass1 \"Alvi: mass of BH number 1\"\n{\n0.0:* :: \"any real number >= 0\"\n} 1.0\n\nREAL Alvi__mass2 \"Alvi: mass of BH number 2\"\n{\n0.0:* :: \"any real number >= 0\"\n} 1.0\n\nREAL Alvi__separation \"Alvi: spatial separation of the black holes\"\n{\n0.0:* :: \"must be greater than m1+m2 + 2 sqrt(m1 m2)\"\n} 20.0\n\n################################################################################\n\n#\n# parameters for Thorne's fake binary solution\n#\n\nKEYWORD Thorne_fakebinary__atype \"Thorne-fakebinary: binary type\"\n{\n \"constant\" :: \"\"\n \"quadrupole\" :: \"\"\n} \"constant\"\n\nBOOLEAN Thorne_fakebinary__retarded \"Thorne-fakebinary: use retarded time?\"\n{\n} \"no\"\n\n# FIXME: can this really be exactly 0.0?\nREAL Thorne_fakebinary__epsilon \"Thorne-fakebinary: numerical fudge\"\n{\n0.0:* :: \"any real number >= 0.0\"\n} 1.e-16\n\nREAL Thorne_fakebinary__separation \"Thorne-fakebinary: initial separation\"\n{\n(0.0:* :: \"any real number > 0\"\n} 5.0\n\nREAL Thorne_fakebinary__Omega0 \"Thorne-fakebinary: initial angular frequency\"\n{\n(0.0:* :: \"any real number > 0\"\n} 1.0\n\nREAL Thorne_fakebinary__mass \"Thorne-fakebinary: mass\"\n{\n(0.0:* :: \"any real number > 0\"\n} 1.0\n\n# FIXME: can this really be exactly 0.0?\nREAL Thorne_fakebinary__smoothing \\\n \"Thorne-fakebinary: smoothing for Newtonian potential\"\n{\n0.0:* :: \"any real number >= 0\"\n} 0.0\n\n################################################################################\n##### cosmological spacetimes ##################################################\n################################################################################\n\n#\n# parameters for Lemaitre-type spacetime\n#\n\nREAL Lemaitre__kappa \"Lemaitre: multiplicative factor in equation of state\"\n{\n*:* :: \"any real number\"\n} -0.5\n\nREAL Lemaitre__Lambda \"Lemaitre: cosmological constant\"\n{\n*:* :: \"any real number\"\n} 1.0\n\nREAL Lemaitre__epsilon0 \"Lemaitre: density of the universe at time t=0\"\n{\n0.0:* :: \"any real number >= 0\"\n} 1.0\n\nREAL Lemaitre__R0 \"Lemaitre: scale factor (radius) of the universe at time t=0\"\n{\n(0.0:* :: \"any positive real number\"\n} 1.0\n\n################################################################################\n##\n###\n### parameters for Robertson-Walker spacetime\n###\n##\n##REAL Robertson_Walker__R0 \\\n## \"Robertson-Walker: scale factor (radius) of the universe at time t=0\"\n##{\n##(0.0:* :: \"any positive real number\"\n##} 0.1\n##\n##REAL Robertson_Walker__rho \"Robertson-Walker: density parameter\"\n##{\n##0.0:* :: \"any real number >= 0\"\n##} 0.1\n##\n##INT Robertson_Walker__k \"Robertson-Walker: geometry type parameter\"\n##{\n##-1:1:1 :: \"one of the values -1, 0, 1\"\n##} 0\n##\n### true ==> include pressure terms (radiation-dominated universe)\n### false ==> don't include pressure terms (matter-dominated universe)\n##BOOLEAN Robertson_Walker__pressure \\\n## \"Robertson-Walker: are pressure terms included?\"\n##{\n##} \"true\"\n##\n################################################################################\n\n#\n# parameters for de Sitter spacetime\n#\n\nREAL de_Sitter__scale \"de Sitter: multiplicative scale factor\"\n{\n(0.0:* :: \"any positive real number\"\n} 0.1\n\n################################################################################\n\n#\n# parameters for de Sitter spacetime with cosmological constant\n#\n\nREAL de_Sitter_Lambda__scale \"de Sitter+Lambda: multiplicative scale factor\"\n{\n(0.0:* :: \"any positive real number\"\n} 0.1\n\n################################################################################\n\n#\n# parameters for anti-de Sitter spacetime with cosmological constant\n#\n\nREAL anti_de_Sitter_Lambda__scale \\\n \"anti-de Sitter+Lambda: multiplicative scale factor\"\n{\n(0.0:* :: \"any positive real number\"\n} 0.1\n\n################################################################################\n\n#\n# parameters for Bianchi type I cosmology\n#\n\nREAL Bianchi_I__scale \"Bianchi I: multiplicative scale factor\"\n{\n(0.0:* :: \"any positive real number\"\n} 0.1\n\n################################################################################\n\n#\n# parameters for Goedel spacetime\n#\n\nREAL Goedel__scale \"Goedel: multiplicative scale factor\"\n{\n(0.0:* :: \"any positive real number\"\n} 0.1\n\n################################################################################\n\n#\n# parameters for Bertotti spacetime\n#\n\nREAL Bertotti__Lambda \"Bertotti: cosmological constant\"\n{\n*:* :: \"any real number\"\n} -1.0\n\n################################################################################\n\n#\n# parameters for Kasner-like spacetime\n#\n\n# FIXME: can we somehow use the expression 2.0/3.0 for the default value?\nREAL Kasner_like__q \"Kasner-like: q parameter\"\n{\n*:* :: \"any real number\"\n} 0.66666666666666666666\n\n################################################################################\n\n#\n# parameters for axisymmetric Kasner spacetime\n#\n\n# there are no parameters\n\n################################################################################\n\n#\n# parameters for generalized Kasner spacetime\n#\n\nREAL Kasner_generalized__p1 \"Kasner-generalized: x exponent parameter\"\n{\n-1.0:1.0 :: \"any real number in the range [-1,1]\"\n} 0.1\n\nREAL Kasner_generalized__p2 \"Kasner-generalized: y exponent parameter\"\n{\n-1.0:1.0 :: \"any real number in the range [-1,1]\"\n} 0.1\n\n################################################################################\n\n#\n# parameters for Gowdy polarized wave spacetime\n#\n\nREAL Gowdy_wave__amplitude \"Gowdy-wave: amplitude parameter\"\n{\n*:* :: \"any real number\"\n} 0.0\n\n################################################################################\n\n#\n# parameters for Milne spacetime\n#\n\n# there are no parameters\n\n################################################################################\n##### miscellaneous spacetimes #################################################\n################################################################################\n\n#\n# parameters for boost-rotation symmetricmetric spacetime\n#\n\nREAL boost_rotation_symmetric__scale \"boost-rotation symmetric: length scale\"\n{\n0.0:* :: \"Positive please\"\n} 1.0\n\nREAL boost_rotation_symmetric__amp \\\n \"boost-rotation symmetric: dimensionless amplitude\"\n{\n0.0:* :: \"Positive please\"\n} 0.1\n\nREAL boost_rotation_symmetric__min_d \\\n \"boost-rotation symmetric: dimensionless safety distance\"\n{\n(0.0:* :: \"any positive real number\"\n} 0.01\n\n################################################################################\n\n#\n# parameters for bowl (bag-of-gold) spacetime (non-Einstein)\n#\n\nKEYWORD bowl__shape \"bowl: what shape of bowl should we use?\"\n{\n \"Gaussian\" :: \"Gaussian bowl\"\n \"Fermi\" :: \"Fermi-function bowl\"\n} \"Gaussian\"\n\nBOOLEAN bowl__evolve \"bowl: are we evolving the metric?\"\n{\n} \"false\"\n\n# FIXME: can this really be arbitrarily large?\n# FIXME: can this be negative?\nREAL bowl__strength \"bowl: deformation strength\"\n{\n0.0:* :: \"any real number >= 0\"\n} 0.5\n\nREAL bowl__center \"bowl: deformation center\"\n{\n(0.0:* :: \"any positive real number\"\n} 2.5\n\n# n.b. for bowl__shape = \"Gaussian\", this parameter is actually\n# sqrt(2) times the standard deviation of the Gaussian\nREAL bowl__sigma \"bowl: width of deformation\"\n{\n(0.0:* :: \"any positive real number\"\n} 1.0\n\nREAL bowl__x_scale \"bowl: scale for x coordinate\"\n{\n(0.0:* :: \"any positive real number\"\n} 1.0\n\nREAL bowl__y_scale \"bowl: scale for y coordinate\"\n{\n(0.0:* :: \"any positive real number\"\n} 1.0\n\nREAL bowl__z_scale \"bowl: scale for z coordinate\"\n{\n(0.0:* :: \"any positive real number\"\n} 1.0\n\nREAL bowl__t0 \"bowl: center of Fermi step in time\"\n{\n*:* :: \"any real number\"\n} 1.0\n\nREAL bowl__sigma_t \"bowl: width of Fermi step in time\"\n{\n(0.0:* :: \"any positive real number\"\n} 1.0\n\n################################################################################\n\n#\n# parameters for constant density (Schwarzschild) star\n#\n\nREAL constant_density_star__mass \"constant density star: mass of star\"\n{\n(0.0:* :: \"any positive real number\"\n} 1.0\n\n# FIXME: is this default value ok? (does it give a star or a BH?)\nREAL constant_density_star__radius \"constant density star: radius of star\"\n{\n(0.0:* :: \"any positive real number\"\n} 1.0\n\n################################################################################\n", "schedule": "# Schedule definitions for thorn Exact\n# $Header$\n\n# these are just grid scalars, so there's no harm in leaving storage\n# for them on all the time\nSTORAGE: Exact_pars_int\nSTORAGE: Exact_pars_real\n\n# This is a grid function, so turning storage for on all the time\n# is painful. But this thorn's src/include/Scalar_CalcTmunu.inc\n# code *does* use it...\n## this metric doesn't work and has been moved to ./archive/\n## STORAGE: Exact_robwal_var\n\n#######################################################################\n# PARAMCHECK\n#######################################################################\n\nSchedule Exact_ParamCheck at PARAMCHECK\n{\n LANG: C\n OPTIONS: global\n} \"do consistency checks on our parameters\"\n\n#######################################################################\n# INITIAL DATA\n#######################################################################\n\n# decode/copy parameters into grid scalars\n# (to share them properly so Calc_Tmunu code can see them even\n# though it's compiled in other thorns)\nSchedule Exact__decode_pars in ADMBase_InitialData\n{\n LANG: Fortran\n WRITES: Exact::decoded_exact_model(everywhere)\n WRITES: Exact::Exact_pars_real(everywhere)\n} \"decode/copy thorn Exact parameters into grid scalars\"\n\n# Initial data (g and K) from a trivial slice through an exact solution.\n\nif (CCTK_Equals(initial_data,\"exact\"))\n{\n schedule Exact__initialize in ADMBase_InitialData after Exact__decode_pars\n {\n LANG: Fortran\n READS: GRID::x, GRID::y, GRID::z\n READS: Exact::decoded_exact_model\n WRITES: ADMBase::metric(Everywhere), ADMBase::curv(Everywhere)\n WRITES: StaticConformal::psi(Everywhere), StaticConformal::confac_1derivs(Everywhere)\n WRITES: StaticConformal::confac_2derivs(Everywhere)\n WRITES: StaticConformal::conformal_state(everywhere)\n } \"Set initial data from exact solution on a trivial slice\"\n}\n\n# Initial data from an arbitrary slice through an exact solution, \n# but NOT evolving the slice afterwards.\n# Note we only need storage for the slice itself, and only at startup.\n\nif ( (CCTK_Equals(initial_data,\"slice\")) && ! (CCTK_Equals(evolution_method,\"slice\")) )\n{\n schedule Exact__slice_initialize in ADMBase_InitialData after Exact__decode_pars\n {\n STORAGE: Exact_slice\n LANG: Fortran\n READS: GRID::x, GRID::y, GRID::z\n READS: ADMBase::shift(interior), ADMBase::alp(interior)\n READS: StaticConformal::conformal_state\n READS: Exact::decoded_exact_model\n WRITES: ADMBase::metric(everywhere), ADMBase::curv(everywhere)\n WRITES: Exact::Exact_slice(everywhere)\n WRITES: Exact::Exact_slicetemp2(everywhere)\n } \"Set initial data from exact solution on an arbitrary slice\"\n}\n\n#######################################################################\n# LAPSE AND SHIFT\n#######################################################################\n\n# Lapse and/or shift from a trivial slice through an exact solution.\n# At the initial time:\n\nif ( (CCTK_Equals(initial_lapse,\"exact\")) || (CCTK_Equals(initial_shift,\"exact\")) || (CCTK_Equals(initial_dtlapse,\"exact\")) || (CCTK_Equals(initial_dtshift,\"exact\")) )\n{\n schedule Exact__gauge in ADMBase_InitialGauge\n {\n LANG: Fortran\n READS: GRID::x, GRID::y, GRID::z\n READS: StaticConformal::conformal_state\n READS: Exact::decoded_exact_model\n WRITES: ADMBase::alp(everywhere), ADMBase::shift(everywhere),\n ADMBase::dtalp(everywhere), ADMBase::dtshift(everywhere)\n } \"Set initial lapse and/or shift from exact solution on a trivial slice\"\n}\n\n# During the evolution:\n\nif ( (CCTK_Equals(lapse_evolution_method,\"exact\")) || (CCTK_Equals(shift_evolution_method,\"exact\")) || (CCTK_Equals(dtlapse_evolution_method,\"exact\")) || (CCTK_Equals(dtshift_evolution_method,\"exact\")) )\n{\n schedule Exact__RegisterSlicing at CCTK_STARTUP\n {\n LANG: C\n OPTIONS: global\n } \"Register slicings\"\n\n # Necessary if MoL is not used\n schedule Exact__gauge at CCTK_PRESTEP\n {\n LANG: Fortran\n READS: GRID::x, GRID::y, GRID::z\n READS: StaticConformal::conformal_state\n READS: Exact::decoded_exact_model\n WRITES: ADMBase::alp(everywhere), ADMBase::shift(everywhere),\n ADMBase::dtalp(everywhere), ADMBase::dtshift(everywhere)\n } \"Set evolution lapse and/or shift from exact solution on a trivial slice\"\n\n # Necessary if MoL is used\n schedule Exact__gauge in MoL_PostStep BEFORE ADMBase_SetADMVars\n {\n LANG: Fortran\n READS: GRID::x, GRID::y, GRID::z\n READS: StaticConformal::conformal_state\n READS: Exact::decoded_exact_model\n WRITES: ADMBase::alp(everywhere), ADMBase::shift(everywhere),\n ADMBase::dtalp(everywhere), ADMBase::dtshift(everywhere)\n } \"Set evolution lapse and/or shift from exact solution on a trivial slice\"\n}\n\n#######################################################################\n# EVOLUTION\n#######################################################################\n\n# Fake the evolution of g and K by evolving the slice and \n# reading them off from the slice again. We need the slice and two\n# temporary copies throughout. Note that if we set evolution_system \n# = \"slice\" without also setting initial_data = \"slice\", nothing will\n# happen as a failsafe, and Cactus should complain about not having an\n# evolution routine. Setting initial_data = \"slice\" on its own is ok though.\n\nif ( (CCTK_Equals(evolution_method,\"slice\")) && (CCTK_Equals(initial_data,\"slice\")) )\n{\n STORAGE: Exact_slice\n STORAGE: Exact_slicetemp1\n STORAGE: Exact_slicetemp2\n\n schedule Exact__slice_initialize in ADMBase_InitialData after Exact__decode_pars\n {\n LANG: Fortran\n READS: GRID::x, GRID::y, GRID::z\n READS: ADMBase::shift(interior), ADMBase::alp(interior)\n READS: StaticConformal::conformal_state\n READS: Exact::decoded_exact_model\n WRITES: ADMBase::metric(interior), ADMBase::curv(interior)\n WRITES: Exact::Exact_slice(everywhere)\n WRITES: Exact::Exact_slicetemp2(interior)\n } \"Set initial data from exact solution on arbitrary slice\"\n\n schedule Exact__slice_evolve at CCTK_EVOL\n {\n LANG: Fortran\n READS: GRID::x, GRID::y, GRID::z\n READS: ADMBase::shift(interior), ADMBase::alp(interior)\n READS: Exact::Exact_slice(everywhere), Exact::Exact_slicetemp2(everywhere)\n READS: StaticConformal::conformal_state(everywhere)\n READS: Exact::decoded_exact_model(everywhere)\n WRITES: ADMBase::metric(everywhere), ADMBase::curv(everywhere)\n WRITES: Exact::Exact_slice(everywhere), Exact::Exact_slicetemp1(everywhere)\n WRITES: Exact::Exact_slicetemp2(everywhere)\n } \"Evolve arbitrary slice and extract Cauchy data\"\n}\n\n# Fake the evolution of an exact solution, by setting g and K according\n# to the exact solution at CCTK_PRESTEP.\n\nif (CCTK_Equals(evolution_method,\"exact\"))\n{\n schedule Exact__initialize at CCTK_PRESTEP\n {\n LANG: Fortran\n READS: GRID::x, GRID::y, GRID::z\n READS: Exact::decoded_exact_model\n WRITES: ADMBase::metric(Everywhere), ADMBase::curv(Everywhere)\n WRITES: StaticConformal::psi(Everywhere), StaticConformal::confac_1derivs(Everywhere)\n WRITES: StaticConformal::confac_2derivs(Everywhere)\n WRITES: StaticConformal::conformal_state(everywhere)\n } \"Set data from exact solution on an exact slice\"\n # Necessary if MoL is used\n schedule Exact__initialize in MoL_PostStep BEFORE ADMBase_SetADMVars\n {\n LANG: Fortran\n READS: GRID::x, GRID::y, GRID::z\n READS: Exact::decoded_exact_model\n WRITES: ADMBase::metric(Everywhere), ADMBase::curv(Everywhere)\n WRITES: StaticConformal::psi(Everywhere), StaticConformal::confac_1derivs(Everywhere)\n WRITES: StaticConformal::confac_2derivs(Everywhere)\n WRITES: StaticConformal::conformal_state(everywhere)\n } \"Set data from exact solution on an exact slice\"\n}\n\n#######################################################################\n# BOUNDARY DATA\n#######################################################################\n\nif (CCTK_Equals(overwrite_boundary,\"exact\"))\n{\n schedule Exact__boundary at CCTK_POSTSTEP\n {\n LANG: Fortran\n READS: GRID::x, GRID::y, GRID::z\n READS: StaticConformal::conformal_state(everywhere)\n READS: Exact::decoded_exact_model(everywhere)\n WRITES: ADMBase::metric(boundary), ADMBase::curv(boundary),\n ADMBase::alp(boundary), ADMBase::shift(boundary),\n ADMBase::dtalp(boundary), ADMBase::dtshift(boundary)\n } \"Overwrite g and K on the boundary with exact solution data\"\n}\n\n#######################################################################\n# BOUNDARY DATA\n#######################################################################\n\nschedule Exact_AddToTmunu in AddToTmunu\n{\n LANG: Fortran\n READS: GRID::x, GRID::y, GRID::z\n READS: StaticConformal::conformal_state(everywhere)\n READS: Exact::decoded_exact_model(everywhere)\n # for backwards compatibility we cannot inherit from TmunuBase, so handle\n # these in C code\n #WRITES: TmunuBase::stree_energy_scalar(everywhere),\n # TmunuBase::stree_energy_vector(everywhere),\n # TmunuBase::stree_energy_tensor(everywhere)\n} \"Set stress energy tansor based on exact solution\"\n\n#######################################################\n## Pseudo-Scheduling for Macro Generation ##\n#######################################################\n\nschedule Exact__slice_data\n{\n LANG: Fortran\n READS: GRID::x, GRID::y, GRID::z\n READS: Exact::Exact_slice(interior)\n READS: ADMBase::shift(interior), ADMBase::alp(interior)\n READS: StaticConformal::conformal_state(everywhere)\n READS: Exact::decoded_exact_model(everywhere)\n WRITES: ADMBase::metric(everywhere), ADMBase::curv(everywhere)\n WRITES: Exact::Exact_slicetemp2(everywhere)\n} \"\"\n\nschedule Exact__linear_extrap_one_bndry\n{\n LANG: Fortran\n} \"\"\n", "src": { "boost.F": "c This subroutine calculates the 4-metric and its inverse at an event,\nc taking into account an optional Lorentz boost and an optional rotation.\nc The model is first rotated and then boosted, such that the boost is\nc applied to the rotated model.\nc $Header$\nc\nc The coordinates are\nc Cx(a) = Cactus $x^a$\nc Mx(a) = Model $X^a$\nc The 4-metrics are\nc Cgdd(a,b) = Cactus $g_{ab}$ Cguu(a,b) = Cactus $g^{ab}$\nc Mgdd(a,b) = Model $g_{ab}$ Mguu(a,b) = Model $g^{ab}$\nc\nc For a definition of the Euler angles in the conventions used below, see\nc http://mathworld.wolfram.com/EulerAngles.html\nc Another useful resource may be\nc http://en.wikipedia.org/wiki/Euler_angles\nc although this uses (on 2006-11-29) different conventions.\nc\nc This file is copyright (c) 2003 by Jonathan Thornburg .\nc This file is covered by the GNU GPL license; see the files ../README\nc and ../COPYING for details. \nc\n\n#include \"cctk.h\"\n#include \"cctk_Parameters.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Functions.h\"\n\n#include \"param_defs.inc\"\n\n subroutine Exact__metric(\n $ decoded_exact_model,\n $ x, y, z, t,\n $ gdtt, gdtx, gdty, gdtz,\n $ gdxx, gdyy, gdzz, gdxy, gdyz, gdxz,\n $ gutt, gutx, guty, gutz,\n $ guxx, guyy, guzz, guxy, guyz, guxz,\n $ psi)\n\n implicit none\n DECLARE_CCTK_FUNCTIONS\n DECLARE_CCTK_PARAMETERS\n\nc input arguments\n CCTK_INT decoded_exact_model\n CCTK_REAL x, y, z, t\n\nc output arguments\n CCTK_REAL gdtt, gdtx, gdty, gdtz,\n $ gdxx, gdyy, gdzz, gdxy, gdyz, gdxz,\n $ gutt, gutx, guty, gutz,\n $ guxx, guyy, guzz, guxy, guyz, guxz,\n $ psi\n\nc static local variables describing Lorentz transformation\n logical firstcall\n data firstcall /.true./\n CCTK_REAL gamma\n CCTK_REAL vv(3), nn(3)\n CCTK_REAL parallel(3,3), perp(3,3)\n CCTK_REAL Cx_par(3), Cx_perp(3)\n CCTK_REAL partial_Mx_wrt_Cx(0:3,0:3)\n CCTK_REAL partial_Cx_wrt_Mx(0:3,0:3)\n CCTK_REAL R(0:3,0:3)\n save firstcall\n save gamma\n save vv\n save parallel, perp\n save partial_Mx_wrt_Cx\n save partial_Cx_wrt_Mx\n save R\nc$omp threadprivate (firstcall, gamma, vv, parallel, perp, \nc$omp+ partial_Mx_wrt_Cx,partial_Cx_wrt_Mx, R)\n\nc coordinates and 4-metric\n CCTK_REAL Cx(0:3)\n CCTK_REAL Cgdd(0:3,0:3), Cguu(0:3,0:3)\n CCTK_REAL Mx(0:3)\n CCTK_REAL Mgdd(0:3,0:3), Mguu(0:3,0:3)\n CCTK_REAL Nx(0:3)\n CCTK_REAL Ngdd(0:3,0:3), Nguu(0:3,0:3)\n\nc misc temps\n CCTK_REAL vnorm, vnormsq\n CCTK_REAL delta_ij\n CCTK_REAL Cx_par_i, Cx_perp_i\n CCTK_REAL vdotCx\n CCTK_REAL Cgdd_ab, Cguu_ab\n CCTK_REAL cos_phi, sin_phi\n CCTK_REAL cos_theta, sin_theta\n CCTK_REAL cos_psi, sin_psi\n CCTK_REAL R_phi(0:3,0:3), R_theta(0:3,0:3), R_psi(0:3,0:3)\n character*1000 warn_buffer\n\nc flags, array indices, etc\n logical Tmunu_flag\n integer i, j, k, l\n integer Ca, Cb, MA, MB\n\nc constants\n integer n\n parameter (n = 3)\n\ncccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc\n\nc\nc optimized fast-path if no Lorentz boost and no rotation\nc\n if ( (boost_vx .eq. 0.0)\n $ .and. (boost_vy .eq. 0.0)\n $ .and. (boost_vz .eq. 0.0)\n $ .and. (rotation_euler_phi .eq. 0.0)\n $ .and. (rotation_euler_theta .eq. 0.0)\n $ .and. (rotation_euler_psi .eq. 0.0)) then\n call Exact__metric_for_model(\n $ decoded_exact_model,\n $ x, y, z, t,\n $ gdtt, gdtx, gdty, gdtz,\n $ gdxx, gdyy, gdzz, gdxy, gdyz, gdxz,\n $ gutt, gutx, guty, gutz,\n $ guxx, guyy, guzz, guxy, guyz, guxz,\n $ psi,\n $ Tmunu_flag)\n return\n end if\n\ncccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc\n\nc\nc the rest of this function is the Lorentz-boost case:\nc - Lorentz-transform Cactus coordinates --> Model coordinates\nc - compute Model 4-metric and inverse at Model coordinates\nc - tensor-transform 4-metric and inverse from Model coordinates\nc --> Cactus coordinates\nc\nc All the equations used are given in ../doc/documentation.tex\nc\n\ncccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc\n\nc\nc compute Lorentz transformation information on first call\nc\n if (firstcall) then\n\nc boost velocity\n vv(1) = boost_vx\n vv(2) = boost_vy\n vv(3) = boost_vz\n\nc Lorentz gamma factor, unit vector in direction of boost velocity\n vnormsq = 0.0\n do i = 1,n\n vnormsq = vnormsq + vv(i)*vv(i)\n end do\n gamma = 1.0 / sqrt(1.0 - vnormsq)\n vnorm = sqrt(vnormsq)\n if ( (boost_vx .eq. 0.0)\n $ .and. (boost_vy .eq. 0.0)\n $ .and. (boost_vz .eq. 0.0)) then\n nn(1) = 1\n nn(2) = 0\n nn(3) = 0\n else\n do i = 1,n\n nn(i) = vv(i) / vnorm\n end do\n end if\n\nc projection operators parallel(*,*) and perp(*,*)\n do j = 1,n\n do i = 1,n\n parallel(i,j) = nn(i) * nn(j)\n if (i .eq. j) then\n delta_ij = 1.0\n else\n delta_ij = 0.0\n end if\n perp(i,j) = delta_ij - parallel(i,j)\n end do\n end do\n\nc partial derivatives of Model coordinates with respect to Cactus coordinates\n partial_Mx_wrt_Cx(0,0) = gamma\n do i = 1,n\n partial_Mx_wrt_Cx(0,i) = -gamma*vv(i)\n end do\n do i = 1,n\n partial_Mx_wrt_Cx(i,0) = -gamma*vv(i)\n do j=1,n\n partial_Mx_wrt_Cx(i,j) = gamma*parallel(i,j) + perp(i,j)\n end do\n end do\n\nc partial derivatives of Cactus coordinates with respect to Model coordinates\n partial_Cx_wrt_Mx(0,0) = gamma\n do i = 1,n\n partial_Cx_wrt_Mx(0,i) = + gamma*vv(i)\n end do\n do i = 1,n\n partial_Cx_wrt_Mx(i,0) = + gamma*vv(i)\n do j=1,n\n partial_Cx_wrt_Mx(i,j) = gamma*parallel(i,j) + perp(i,j)\n end do\n end do\n\nc Sines and cosines of rotation angles\n cos_phi = cos (rotation_euler_phi)\n sin_phi = sin (rotation_euler_phi)\n cos_theta = cos (rotation_euler_theta)\n sin_theta = sin (rotation_euler_theta)\n cos_psi = cos (rotation_euler_psi)\n sin_psi = sin (rotation_euler_psi)\n\nc Set up individual rotation matrices\n R_phi(0,0) = 1\n R_phi(0,1) = 0\n R_phi(0,2) = 0\n R_phi(0,3) = 0\n R_phi(1,0) = 0\n R_phi(1,1) = + cos_phi\n R_phi(1,2) = + sin_phi\n R_phi(1,3) = 0\n R_phi(2,0) = 0\n R_phi(2,1) = - sin_phi\n R_phi(2,2) = + cos_phi\n R_phi(2,3) = 0\n R_phi(3,0) = 0\n R_phi(3,1) = 0\n R_phi(3,2) = 0\n R_phi(3,3) = 1\n\n R_theta(0,0) = 1\n R_theta(0,1) = 0\n R_theta(0,2) = 0\n R_theta(0,3) = 0\n R_theta(1,0) = 0\n R_theta(1,1) = 1\n R_theta(1,2) = 0\n R_theta(1,3) = 0\n R_theta(2,0) = 0\n R_theta(2,1) = 0\n R_theta(2,2) = + cos_theta\n R_theta(2,3) = + sin_theta\n R_theta(3,0) = 0\n R_theta(3,1) = 0\n R_theta(3,2) = - sin_theta\n R_theta(3,3) = + cos_theta\n\n R_psi(0,0) = 1\n R_psi(0,1) = 0\n R_psi(0,2) = 0\n R_psi(0,3) = 0\n R_psi(1,0) = 0\n R_psi(1,1) = + cos_psi\n R_psi(1,2) = + sin_psi\n R_psi(1,3) = 0\n R_psi(2,0) = 0\n R_psi(2,1) = - sin_psi\n R_psi(2,2) = + cos_psi\n R_psi(2,3) = 0\n R_psi(3,0) = 0\n R_psi(3,1) = 0\n R_psi(3,2) = 0\n R_psi(3,3) = 1\n\nc Combine individual rotation matrices\n do i = 0,n\n do j = 0,n\n R(i,j) = 0\n do k = 0,n\n do l = 0,n\n R(i,j) = R(i,j) + R_psi(i,k) * R_theta(k,l) * R_phi(l,j)\n end do\n end do\n end do\n end do\n\nc Notes that help me (Erik Schnetter) think:\nc This considers a rotation with phi=0, theta=pi/2, psi=0.\nc Nx(i) = Nx(i) + R(j,i) * Mx(j)\nc Nx(1) = - Mx(3)\nc Nx(3) = Mx(1)\nc Mgxx(1,1) = Ngxx(3,3)\nc Mgxx(1,3) = - Ngxx(1,3)\nc Mgxx(3,3) = Ngxx(1,1)\nc Mgxx(i,j) = R(i,k) R(j,l) Ngxx(k,l) [correct]\nc Mgxx(i,j) = R(k,i) R(l,j) Ngxx(k,l) [correct]\nc Mbetax(1) = - Nbetax(3)\nc Mbetax(3) = Nbetax(1)\nc Mbetax(i) + R(i,j) Nbetax(j) [wrong]\nc Mbetax(i) + R(j,i) Nbetax(j) [correct]\n\n firstcall = .false.\n end if\n\ncccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc\n\nc\nc compute flat-space components of Cx(*) parallel and perpendicular to vv(*)\nc\n Cx(0) = t\n Cx(1) = x\n Cx(2) = y\n Cx(3) = z\n\n do i=1,n\n Cx_par_i = 0.0\n Cx_perp_i = 0.0\n do j=1,n\n Cx_par_i = Cx_par_i + parallel(i,j)*Cx(j)\n Cx_perp_i = Cx_perp_i + perp (i,j)*Cx(j)\n end do\n Cx_par (i) = Cx_par_i\n Cx_perp(i) = Cx_perp_i\n end do\n\nc\nc Lorentz-transform and rotate the Cactus coordinate\nc to get the Model coordinates\nc\n\nc Boost\n vdotCx = 0.0\n do i = 1,n\n vdotCx = vdotCx + vv(i)*Cx(i)\n end do\n\n Mx(0) = gamma * (Cx(0) - vdotCx)\n do i=1,n\n Mx(i) = gamma * (Cx_par(i) - vv(i)*Cx(0)) + Cx_perp(i)\n end do\n\nc Rotation\n do i=0,n\n Nx(i) = 0\n do j = 0,n\n Nx(i) = Nx(i) + R(i,j) * Mx(j)\n end do\n end do\n\n\nc\nc compute the Model 4-metric and inverse 4-metric at the Model coordinates\nc\n call Exact__metric_for_model(\n $ decoded_exact_model,\n $ Nx(1), Nx(2), Nx(3), Nx(0),\n $ Ngdd(0,0), Ngdd(0,1), Ngdd(0,2), Ngdd(0,3),\n $ Ngdd(1,1), Ngdd(2,2), Ngdd(3,3),\n $ Ngdd(1,2), Ngdd(2,3), Ngdd(1,3),\n $ Nguu(0,0), Nguu(0,1), Nguu(0,2), Nguu(0,3),\n $ Nguu(1,1), Nguu(2,2), Nguu(3,3),\n $ Nguu(1,2), Nguu(2,3), Nguu(1,3),\n $ psi, Tmunu_flag)\n\n if (Tmunu_flag) then\n write (warn_buffer, '(a,i8,a,a)')\n $ 'exact_model = ', decoded_exact_model,\n $ 'sets the stress-energy tensor',\n $ ' ==> we cannot Lorentz-boost or rotate it!'\n call CCTK_WARN(0, warn_buffer)\n end if\n\nc\nc symmetrize the Model 4-metric and inverse 4-metric arrays\nc (the Exact__metric_for_model() call only set the upper triangles)\nc\n Ngdd(1,0) = Ngdd(0,1)\n Ngdd(2,0) = Ngdd(0,2)\n Ngdd(2,1) = Ngdd(1,2)\n Ngdd(3,0) = Ngdd(0,3)\n Ngdd(3,1) = Ngdd(1,3)\n Ngdd(3,2) = Ngdd(2,3)\n\n Nguu(1,0) = Nguu(0,1)\n Nguu(2,0) = Nguu(0,2)\n Nguu(2,1) = Nguu(1,2)\n Nguu(3,0) = Nguu(0,3)\n Nguu(3,1) = Nguu(1,3)\n Nguu(3,2) = Nguu(2,3)\n\nc\nc tensor-transorm (the upper triangle of) the 4-metric and inverse 4-metric\nc\n\nc Rotations\n do i = 0,n\n do j = 0,n\n Mgdd(i,j) = 0\n Mguu(i,j) = 0\n do k = 0,n\n do l = 0,n\n Mgdd(i,j) = Mgdd(i,j) + R(k,i) * R(l,j) * Ngdd(k,l)\nc The inverse of R is also its transpose. That means that the\nc transpose of the inverse, which you would use for g^ij, is just R\nc again.\n Mguu(i,j) = Mguu(i,j) + R(k,i) * R(l,j) * Nguu(k,l)\n end do\n end do\n end do\n end do\n\nc Boost\n do Ca = 0,n\n do Cb = Ca,n\n Cgdd_ab = 0.0\n do Ma = 0,n\n do Mb = 0,n\n Cgdd_ab = Cgdd_ab\n $ + Mgdd(Ma,Mb)\n $ * partial_Mx_wrt_Cx(Ma,Ca)\n $ * partial_Mx_wrt_Cx(Mb,Cb)\n end do\n end do\n Cgdd(Ca,Cb) = Cgdd_ab\n end do\n end do\n\n do Ca = 0,n\n do Cb = Ca,n\n Cguu_ab = 0.0\n do Ma = 0,n\n do Mb = 0,n\n Cguu_ab = Cguu_ab\n $ + Mguu(Ma,Mb)\n $ * partial_Cx_wrt_Mx(Ca,Ma)\n $ * partial_Cx_wrt_Mx(Cb,Mb)\n end do\n end do\n Cguu(Ca,Cb) = Cguu_ab\n end do\n end do\n\nc\nc unpack the Cactus-coordinates 4-metric and inverse 4-metric\nc into the corresponding output arguments\nc\n gdtt = Cgdd(0,0)\n gdtx = Cgdd(0,1)\n gdty = Cgdd(0,2)\n gdtz = Cgdd(0,3)\n gdxx = Cgdd(1,1)\n gdxy = Cgdd(1,2)\n gdxz = Cgdd(1,3)\n gdyy = Cgdd(2,2)\n gdyz = Cgdd(2,3)\n gdzz = Cgdd(3,3)\n\n gutt = Cguu(0,0)\n gutx = Cguu(0,1)\n guty = Cguu(0,2)\n gutz = Cguu(0,3)\n guxx = Cguu(1,1)\n guxy = Cguu(1,2)\n guxz = Cguu(1,3)\n guyy = Cguu(2,2)\n guyz = Cguu(2,3)\n guzz = Cguu(3,3)\n\n end\n", diff --git a/EinsteinInitialData_Hydro_InitExcision.json b/EinsteinInitialData_Hydro_InitExcision.json index 668348b88439dbcac307b93ad29764e1f1ac9410..e1a86008fcb5c42ae94d750240c481c172d4a837 100644 --- a/EinsteinInitialData_Hydro_InitExcision.json +++ b/EinsteinInitialData_Hydro_InitExcision.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteininitialdata.git", "configuration": "", "interface": "# Interface definition for thorn Hydro_InitExcision\n\nimplements: Hydro_InitExcision\ninherits: HydroBase, Grid, SpaceMask\n\n", - "params": "", + "param": "# Parameter definitions for thorn Hydro_InitExcision\n\nshares: grid\n\nUSES keyword domain\n\nrestricted:\n\nboolean hydro_initexcision \"Sets up an excision zone\"\n{\n} \"no\"\n\nboolean hydro_initexcision_poststep \"Schedule also at poststep\" STEERABLE=always\n{\n} \"no\"\n\nCCTK_INT hydro_initexcision_old_mask \"Also set the old 'emask'?\"\n{\n 0:1 :: \"0 (default) for no, 1 for yes\"\n} 0\n\nkeyword hydro_initexcision_type \"Type of excision to apply\"\n{\n \"box\"\t :: \"Box excised region\"\n \"x-axis\" :: \"X axis excision\"\n \"y-axis\" :: \"Y axis excision\"\n \"z-axis\" :: \"Z axis excision\"\n \"diagonal\" :: \"diagonal excision\"\n \"sphere\" :: \"sphere excision\"\n} \"x-axis\"\n\nCCTK_INT hydro_initexcision_flip \"Exchange excised and normal region\"\n{\n 0:1 :: \"0 (default) for no, 1 for yes\"\n} 0\n\nCCTK_REAL hydro_initexcision_fraction \"Fraction of excised region\"\n{\n 0:1 :: \"Represents the fraction of excised region (0..1)\"\n} 0.25\n\nCCTK_REAL hydro_initexcision_coordinate_length \"Length of excised region\" STEERABLE=always\n{\n 0: :: \"Length of excised region, has different meanings for the types\"\n} 0\n\nCCTK_REAL hydro_initexcision_position_x \"x-coordinate\"\n{\n : :: \"anything real is ok\"\n} 0.0\n\nCCTK_REAL hydro_initexcision_position_y \"y-coordinate\"\n{\n : :: \"anything real is ok\"\n} 0.0\n\nCCTK_REAL hydro_initexcision_position_z \"z-coordinate\"\n{\n : :: \"anything real is ok\"\n} 0.0\n\nCCTK_INT hydro_initexcision_min_points \"minimal number of points of excision\"\n{\n 0: :: \"minimal number of points of excision, currently only partly implemented\"\n} 0\n\n", "schedule": "# Schedule definitions for thorn Hydro_InitExcision\n\n#########################################\n### Sets up the excision mask ###\n#########################################\nschedule Hydro_InitExcisionMask AT CCTK_Initial AFTER MaskOne\n{\n LANG: C\n} \"Sets up the excision mask\"\n\nschedule Hydro_InitExcisionMask AT CCTK_POST_RECOVER_VARIABLES AFTER MaskOne\n{\n LANG: C\n} \"Sets up the excision mask\"\n\nschedule Hydro_InitExcisionMask AT POSTREGRID AFTER MaskOne\n{\n LANG: C\n} \"Sets up the excision mask\"\n\nschedule Hydro_InitExcisionMask_poststep AT POSTSTEP BEFORE setup_epsdis\n{\n LANG: C\n} \"Sets up the excision mask\"\n\n", "src": { "make.code.defn": "# Source files in this directory\nSRCS = \tHydro_InitExcision.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/EinsteinInitialData_Hydro_RNSID.json b/EinsteinInitialData_Hydro_RNSID.json index b3068f173486ff8517580475043e1df26a42a593..acbb999d9c685648f5f84abce5d5883a0dce2c82 100644 --- a/EinsteinInitialData_Hydro_RNSID.json +++ b/EinsteinInitialData_Hydro_RNSID.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteininitialdata.git", "configuration": "# Configuration definition for thorn Hydro_rnsid\n# $Header$\n\nREQUIRES EOS_Base Boundary CartGrid3D SpaceMask HDF5\n\n# in case we link against parallel HDF5\nOPTIONAL MPI\n{\n}\n", "interface": "# Interface definition for thorn rnsid\n# $Header$\n\nimplements: hydro_rnsid\n\nUSES INCLUDE: FishEye.h\nUSES INCLUDE: Boundary.h\nUSES INCLUDE: Symmetry.h\n\ninherits: ADMBase, HydroBase\n\nprivate:\n\n", - "params": "", + "param": "# Parameter definitions for thorn Hydro_rnsid\n# $Header$\n\nshares:HydroBase\n\nUSES CCTK_INT timelevels\n\nprivate:\n\n########## -----------------------------------------------------------------\n\nKEYWORD rotation_type \"Specify type of rotation law\"\n{\n \"uniform\" :: \"uniform rotation\"\n \"diff\" :: \"KEH differential rotation law\"\n} \"uniform\"\n\n\nREAL axes_ratio \"rnsid axes ratio\"\n{\n 0: :: \"Any positive number\"\n} 1\n\nREAL rho_central \"Central Density for Star\"\n{\n : :: \"\"\n} 1.24e-3\n\nREAL A_diff \"constant A in differential rotation law\"\n{\n 0.0: :: \"Any positive number\"\n} 1.0 \n\n########## -----------------------------------------------------------------\n\nKEYWORD eos_type \"Specify type of equation of state\"\n{\n \"poly\" :: \"Polytropic EOS\"\n \"tab\" :: \"Tabulated EOS\"\n} \"poly\"\n\nREAL RNS_Gamma \"If we're using a different EoS at run time, this is the RNS Gamma\"\n{\n *:* :: \"Will be ignored if negative\"\n} 2\n\nREAL RNS_K \"If we're using a different EoS at run time, this is the RNS K\"\n{\n *:* :: \"Will be ignored if negative\"\n} 100\n\n\nSTRING eos_file \"Equation of state table\"\n{\n .* :: \"EOS table file\"\n} \"\"\n\n########## -----------------------------------------------------------------\n\nREAL RNS_rho_min \"A minimum rho below which evolution is turned off (atmosphere).\"\n{ \n 0.0: :: \"Atmosphere detection for RNSID\" \n} 1.0e-14\n\nREAL RNS_atmo_tolerance \"A point is set to atmosphere if rho < (1+RNS_atmo_tolerance)*RNS_rho_min\"\n{\n 0.0: :: \"Zero or larger. A useful value could be 0.0001\"\n} 0.00001\n\n\nREAL accuracy \"rnsid accuracy in convergence \"\n{\n 0: :: \"Any positive number\"\n} 1.0e-7 \n\n\nKEYWORD zero_shift \"Set shift to zero?\"\n{\n \"yes\" :: \"set shift to zero\"\n \"no\" :: \"don't set shift to zero\"\n} \"no\"\n\nKEYWORD save_2Dmodel \"Save 2D model?\"\n{\n \"yes\" :: \"save 2D model\"\n \"no\" :: \"don't save 2D model\"\n} \"no\"\n\nKEYWORD recover_2Dmodel \"Recover 2D model?\"\n{\n \"yes\" :: \"recover 2D model\"\n \"no\" :: \"don't recover 2D model\"\n} \"no\"\n\nSTRING model2D_file \"Name of 2D model file\"\n{\n .* :: \"Default 2D model file\"\n} \"model2D.dat\"\n \n\nREAL cf \"Convergence factor\"\n{\n 0: :: \"Any positive number\"\n} 1.0\n\nINT RNS_lmax \"max. term in Legendre poly.\"\n{\n 1: :: \"Any positive, non zero number\"\n} 10\n\n\n########## -----------------------------------------------------------------\n\nshares: ADMBase\nEXTENDS KEYWORD initial_data \"\"\n{\n \"hydro_rnsid\"\t:: \"Construnct stationary initial data with rnsid\"\n}\n\nEXTENDS KEYWORD initial_lapse \"\"\n{\n \"hydro_rnsid\"\t:: \"Construnct stationary initial data with rnsid\"\n}\n\nEXTENDS KEYWORD initial_shift \"\"\n{\n \"hydro_rnsid\"\t:: \"Construnct stationary initial data with rnsid\"\n}\n\nshares: hydrobase\nEXTENDS KEYWORD initial_hydro \"\"\n{\n \"hydro_rnsid\"\t:: \"Construnct stationary initial data with rnsid\"\n}\n\n\n\n\n", "schedule": "# Schedule definitions for thorn rnsid\n\nif (CCTK_Equals(initial_data,\"hydro_rnsid\")) \n{\n STORAGE:ADMBase::metric[2],ADMBase::curv[2],ADMBase::lapse[2],ADMBase::shift[2]\n\n schedule Hydro_RNSID_CheckParameters AT CCTK_PARAMCHECK\n {\n LANG: C\n } \"Check parameters\"\n\n ##SCHEDULE Hydro_RNSID_RefinementLevel IN HydroBase_Initial BEFORE hydro_rnsid_init\n ##{\n ## LANG: F90\n ##} \"Compute the current refinement level for RNSID\"\n\n SCHEDULE Hydro_rnsid_init IN HydroBase_Initial\n {\n LANG: C\n SYNC: ADMBase::metric, ADMBase::curv, ADMBase::lapse, ADMBase::shift\n SYNC: HydroBase::rho, HydroBase::press, HydroBase::eps, HydroBase::vel\n } \"Create Rotating Neutron Star Initial Data\"\n}\n\n\n\n", "src": { "make.configuration.defn": "# Main make.configuration.defn file for Hydro_RNS\n\n# Define this thorn's utilities\nALL_UTILS += RNS RNS_readID\n\n\n\t", diff --git a/EinsteinInitialData_IDAnalyticBH.json b/EinsteinInitialData_IDAnalyticBH.json index 3c64c98553605bae6e8c87f98c8e14f7b1e4e139..837b06cd6fe99791dd127f3f2caa71445878586c 100644 --- a/EinsteinInitialData_IDAnalyticBH.json +++ b/EinsteinInitialData_IDAnalyticBH.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteininitialdata.git", "configuration": "", "interface": "# Interface definition for thorn IDAnalyticBH\n# $Header$\n\nimplements: idanalyticbh\ninherits: ADMBase, StaticConformal, Grid\n\nprivate:\n\n#real misner_workspace TYPE = GF\n#{\n# csch,\n# coth,\n# r1,\n# r2\n#} \"Workspace arrays for Misner_standard\"\n", - "params": "", + "param": "# Parameter definitions for thorn IDAnalyticBH\n# $Header$\n\nprivate:\n\n# Schwarzschild parameters\n# ------------------------\nREAL mass \"Mass of black hole\"\n{\n: :: \"Not sure if it can be negative or not\"\n} 2.0\n\n# Kerr parameters\n# ------------------------\nREAL a_Kerr \"Angular momentum parameter of black hole\"\n{\n-1:1 :: \"Between +1 and -1\"\n} 0.1\n\n# Multiple Misner Parameters\n# --------------------------\nREAL mu \"Misner mu value\"\n{\n0: :: \"Non-negative\"\n} 1.2\n\nINT nmax \"Number of terms to include for Misner series\"\n{\n0: :: \"Non-negative\"\n} 30\n\nINT misner_nbh \"Number of Misner black holes\"\n{\n 1:10 :: \"Not more than 10\"\n} 1\n\n# Brill Lindquist Parameters\n# --------------------------\nINT bl_nbh \"Number of Brill Lindquist black holes\"\n{\n 1:4 :: \"Between one and four holes implemented\"\n} 1\nREAL bl_x0_1 \"x-position of 1st BL hole\"\n{\n: :: \"Anything\"\n} 0.0\nREAL bl_y0_1 \"y-position of 1st BL hole\"\n{\n: :: \"Anything\"\n} 0.0\nREAL bl_z0_1 \"z-position of 1st BL hole\"\n{\n: :: \"Anything\"\n} 0.0\nREAL bl_M_1 \"Mass of 1st BL hole\"\n{\n: :: \"Anything\"\n} 1.0\nREAL bl_x0_2 \"x-position of 2nd BL hole\"\n{\n: :: \"Anything\"\n} 0.0\nREAL bl_y0_2 \"y-position of 2nd BL hole\"\n{\n: :: \"Anything\"\n} 0.0\nREAL bl_z0_2 \"z-position of 2nd BL hole\"\n{\n: :: \"Anything\"\n} 0.0\nREAL bl_M_2 \"Mass of 2nd BL hole\"\n{\n: :: \"Anything\"\n} 1.0\nREAL bl_x0_3 \"x-position of 3nd BL hole\"\n{\n: :: \"Anything\"\n} 0.0\nREAL bl_y0_3 \"y-position of 3nd BL hole\"\n{\n: :: \"Anything\"\n} 0.0\nREAL bl_z0_3 \"z-position of 3nd BL hole\"\n{\n: :: \"Anything\"\n} 0.0\nREAL bl_M_3 \"Mass of 3rd BL hole\"\n{\n: :: \"Anything\"\n} 1.0\nREAL bl_x0_4 \"x-position of 4th BL hole\"\n{\n: :: \"Anything\"\n} 0.0\nREAL bl_y0_4 \"y-position of 4th BL hole\"\n{\n: :: \"Anything\"\n} 0.0\nREAL bl_z0_4 \"z-position of 4th BL hole\"\n{\n: :: \"Anything\"\n} 0.0\nREAL bl_M_4 \"Mass of 4th BL hole\"\n{\n: :: \"Anything\"\n} 1.0\n\n# Common parameters\n# -----------------\nREAL epsilon \"Fudge factor\"\n{\n 0.0:* :: \"\"\n} 1.e-16\n\n\nshares: ADMBase\n\nEXTENDS KEYWORD initial_data \n{\n \"schwarzschild\" :: \"One Schwarzschild black hole\"\n \"bl_bh\" :: \"Brill Lindquist black holes\"\n \"misner_bh\" :: \"Misner black holes\"\n \"multiple_misner_bh\" :: \"Multiple Misner black holes\"\n \"kerr\"\t :: \"One Kerr black hole\"\t\n} \n\nEXTENDS KEYWORD initial_lapse \n{\n \"schwarzschild\" :: \"Set lapse to Schwarzschild\"\n \"schwarz\" :: \"Set lapse to Schwarzschild\"\n \"cadez\" :: \"Set lapse to Misner\"\n \"kerr\" :: \"Set lapse to Kerr\"\n}\n\nEXTENDS KEYWORD initial_shift \n{\n \"kerr\" :: \"Set shift to Kerr\"\n}\n\nUSES KEYWORD metric_type \n\nshares: StaticConformal\n\nUSES KEYWORD conformal_storage\n\n", "schedule": "# Schedule definitions for thorn IDAnalyticBH\n# $Header$\n\nif (CCTK_Equals(initial_data,\"schwarzschild\") ||\n CCTK_Equals(initial_data,\"kerr\") ||\n CCTK_Equals(initial_data,\"bl_bh\") ||\n CCTK_Equals(initial_data,\"misner_bh\") ||\n CCTK_Equals(initial_data,\"multiple_misner\"))\n{\n schedule IDAnalyticBH_ParamChecker at CCTK_PARAMCHECK\n {\n LANG: C\n OPTIONS: global\n } \"Construct parameters for analytic black hole solutions\"\n}\n\nif (CCTK_Equals(initial_data,\"schwarzschild\")) \n{ \n\t\n schedule Schwarzschild in ADMBase_InitialData\n {\n STORAGE: confac[1]\n LANG: C\n READS: GRID::coordinates\n WRITES: StaticConformal::conformal_state(everywhere)\n WRITES: StaticConformal::psi(everywhere)\n WRITES: StaticConformal::confac_1derivs(everywhere)\n WRITES: StaticConformal::confac_2derivs(everywhere)\n WRITES: ADMBase::metric(everywhere)\n WRITES: ADMBase::alp(everywhere)\n WRITES: ADMBase::curv(everywhere)\n } \"Construct initial data for a single Schwarzschild black hole\"\n}\nelse if (CCTK_Equals(initial_data,\"kerr\")) \n{ \n\n# The Kerr stuff uses the conformal factor internally, so\n# so make sure that the conformal factor has storage during\n# this routine\n schedule KerrID in ADMBase_InitialData\n {\t\n STORAGE: confac[1]\n LANG: C\n READS: GRID::x, GRID::y, GRID::z\n WRITES: StaticConformal::conformal_state(everywhere)\n WRITES: StaticConformal::psi(everywhere)\n WRITES: StaticConformal::confac_1derivs(everywhere)\n WRITES: StaticConformal::confac_2derivs(everywhere)\n WRITES: ADMBase::metric(everywhere)\n WRITES: ADMBase::alp(everywhere)\n WRITES: ADMBase::curv(everywhere)\n WRITES: ADMBase::shift(everywhere)\n } \"Construct initial data for a single Kerr black hole\"\n\n}\nelse if (CCTK_Equals(initial_data,\"bl_bh\")) \n{ \n# The Brill-Lindquist stuff uses the conformal factor internally, so\n# so make sure that the conformal factor has storage during\n# this routine\n schedule BrillLindquist in ADMBase_InitialData\n {\n STORAGE: confac[1]\n LANG: C\n READS: GRID::x, GRID::y, GRID::z\n WRITES: StaticConformal::conformal_state(everywhere)\n WRITES: StaticConformal::psi(everywhere)\n WRITES: StaticConformal::confac_1derivs(everywhere)\n WRITES: StaticConformal::confac_2derivs(everywhere)\n WRITES: ADMBase::metric(everywhere)\n WRITES: ADMBase::curv(everywhere)\n } \"Construct initial data for Brill Lindquist black holes\"\n\n}\nelse if (CCTK_Equals(initial_data,\"misner_bh\")) \n{ \n# The Misner stuff uses the conformal factor internally, so\n# so make sure that the conformal factor has storage during\n# this routine\n schedule Misner_standard in ADMBase_InitialData\n {\n STORAGE: confac[1]\n LANG: C\n READS: GRID::x, GRID::y, GRID::z\n WRITES: StaticConformal::conformal_state(everywhere)\n WRITES: StaticConformal::psi(everywhere)\n WRITES: StaticConformal::confac_1derivs(everywhere)\n WRITES: StaticConformal::confac_2derivs(everywhere)\n WRITES: ADMBase::metric(everywhere)\n WRITES: ADMBase::curv(everywhere)\n WRITES: ADMBase::alp(everywhere)\n } \"Construct initial data for two Misner black holes\"\n\n}\nelse if (CCTK_Equals(initial_data,\"multiple_misner_bh\")) \n{ \n schedule Misner_multiple in ADMBase_InitialData\n {\n STORAGE: confac[1]\n LANG: C\n READS: GRID::x, GRID::y, GRID::z\n WRITES: StaticConformal::conformal_state(everywhere)\n WRITES: StaticConformal::psi(everywhere)\n WRITES: StaticConformal::confac_1derivs(everywhere)\n WRITES: StaticConformal::confac_2derivs(everywhere)\n WRITES: ADMBase::metric(everywhere)\n WRITES: ADMBase::curv(everywhere)\n } \"Construct initial data for multiple Misner black holes\"\n\n}\n", "src": { "Misner_standard.c": " /*@@\n @file Misner_standard.c\n @date March 1997\n @author Joan Masso\n @desc\n Set up initial data for two Misner black holes\n @enddesc\n @history\n @hdate Sun Oct 17 11:05:48 1999 @hauthor Tom Goodale\n @hdesc Converted to C\n @endhistory\n @version $Header$\n @@*/\n\n#include \n#include \n#include \n\n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Parameters.h\"\n\n#include \"IDAnalyticBH.h\"\n\nstatic const char *rcsid = \"$Header$\";\n\nCCTK_FILEVERSION(CactusEinstein_IDAnalyticBH_Misner_standard_c)\n\n /*@@\n @routine Misner_standard\n @date\n @author Joan Masso, Ed Seidel\n @desc\n Initialize the metric with a time symmetrical\n black hole spacetime containing\n two axially symmetric misner black holes with a\n mass/length parameter mu. The mass is computed.\n The spacetime line element has the form:\n $$ ds^2 = -dt^2 + \\Psi^4 (dx^2+dy^2+dz^2) $$\n and only $\\Psi$ differs.\n (Conformal factor from Karen Camarda)\n @enddesc\n\n @par mu\n @pdesc Misner parameter.\n @ptype real\n @pcomment Values less than 1.8 do not really correspond to two\n black holes, as there is an initial single event horizon\n surrounding the throats. So, with low values of mu we also\n have distorted single black holes.\n @endpar\n\n @par nmax\n @pdesc Summation limit for the misner series in the 'twobh' case.\n @ptype integer\n @endpar\n @history\n @hdate Fri Apr 26 10:04:05 2002 @hauthor Tom Goodale\n @hdesc Changed to use new StaticConformal stuff\n @endhistory \n\n@@*/\nvoid Misner_standard(CCTK_ARGUMENTS)\n{\n DECLARE_CCTK_ARGUMENTS_Misner_standard\n DECLARE_CCTK_PARAMETERS\n\n int i, n;\n int npoints;\n CCTK_REAL *csch, *coth, inv_r1, inv_r2;\n CCTK_REAL x_squared, y_squared, xy_squared;\n CCTK_REAL inv_r1_cubed, inv_r2_cubed;\n CCTK_REAL inv_r1_5, inv_r2_5;\n CCTK_REAL inv_psi;\n CCTK_INT powfac;\n CCTK_REAL adm_mass;\n const CCTK_REAL zero = 0.0, one = 1.0, three = 3.0;\n int make_conformal_derivs = 0;\n\n CCTK_VInfo(CCTK_THORNSTRING,\n \"setting up Misner initial data\");\n\n /* Check if we should create and store conformal factor stuff */\n if(CCTK_EQUALS(metric_type, \"static conformal\"))\n {\n if (CCTK_EQUALS(conformal_storage,\"factor\"))\n {\n *conformal_state = 1;\n make_conformal_derivs = 0;\n }\n else if (CCTK_EQUALS(conformal_storage,\"factor+derivs\"))\n {\n *conformal_state = 2;\n make_conformal_derivs = 1;\n }\n else if (CCTK_EQUALS(conformal_storage,\"factor+derivs+2nd derivs\"))\n {\n *conformal_state = 3;\n make_conformal_derivs = 1;\n }\n else\n {\n CCTK_VWarn(0, __LINE__, __FILE__, CCTK_THORNSTRING,\n\"Misner_Standard(): impossible value for conformal_storage=\\\"%s\\\"!\",\n conformal_storage); /*NOTREACHED*/\n }\n } \n\n /* total number of points on this processor */\n npoints = cctk_lsh[0] * cctk_lsh[1] * cctk_lsh[2];\n\n\n /* Initialize so we can accumulate\n * -------------------------------\n */\n if (make_conformal_derivs)\n {\n IDAnalyticBH_zero_CCTK_REAL_array(npoints, psix);\n IDAnalyticBH_zero_CCTK_REAL_array(npoints, psiy);\n IDAnalyticBH_zero_CCTK_REAL_array(npoints, psiz);\n\n if(*conformal_state > 2)\n {\n IDAnalyticBH_zero_CCTK_REAL_array(npoints, psixx);\n IDAnalyticBH_zero_CCTK_REAL_array(npoints, psixy);\n IDAnalyticBH_zero_CCTK_REAL_array(npoints, psixz);\n IDAnalyticBH_zero_CCTK_REAL_array(npoints, psiyy);\n IDAnalyticBH_zero_CCTK_REAL_array(npoints, psiyz);\n IDAnalyticBH_zero_CCTK_REAL_array(npoints, psizz);\n }\n }\n\n csch = (CCTK_REAL *) malloc (2 * (nmax + 1) * sizeof (CCTK_REAL));\n coth = csch + nmax + 1;\n\n /* compute the ADM mass\n * --------------------\n */\n adm_mass = zero;\n for(n = 1; n <= nmax; n++)\n {\n csch[n] = one / sinh(mu*n);\n coth[n] = one / tanh(mu*n);\n adm_mass += 4.0 * csch[n];\n }\n CCTK_VInfo(CCTK_THORNSTRING, \"ADM mass is %f\", (double) adm_mass);\n\n\n for(i = 0; i < npoints; i++)\n {\n psi [i] = one;\n\n x_squared = SQR(x[i]);\n y_squared = SQR(y[i]);\n xy_squared = x_squared + y_squared;\n\n for(n = nmax; n >= 1; n--)\n {\n inv_r1 = one / sqrt(xy_squared+SQR(z[i]+coth[n]));\n inv_r2 = one / sqrt(xy_squared+SQR(z[i]-coth[n]));\n\n psi[i] += csch[n]*(inv_r1 + inv_r2);\n\n if (make_conformal_derivs)\n {\n inv_r1_cubed = inv_r1 * inv_r1 * inv_r1;\n inv_r2_cubed = inv_r2 * inv_r2 * inv_r2;\n inv_r1_5 = inv_r1 * inv_r1 * inv_r1_cubed;\n inv_r2_5 = inv_r2 * inv_r2 * inv_r2_cubed;\n psix[i] += -x[i] * (inv_r2_cubed + inv_r1_cubed) * csch[n];\n psiy[i] += -y[i] * (inv_r2_cubed + inv_r1_cubed) * csch[n];\n psiz[i] += (-(z[i]-coth[n])*inv_r2_cubed - (z[i]+coth[n])*inv_r1_cubed) * csch[n];\n\n\n if(*conformal_state > 2)\n {\n psixx[i] += (three*x_squared*(inv_r1_5 + inv_r2_5)\n - inv_r1_cubed - inv_r2_cubed) * csch[n];\n psixy[i] += three*x[i]*y[i]*(inv_r1_5 + inv_r2_5) * csch[n];\n psixz[i] += (three*x[i]*(z[i] - coth[n])*inv_r2_5\n + three*x[i]*(z[i] + coth[n])*inv_r1_5) * csch[n];\n psiyy[i] += (three*y_squared*(inv_r1_5 + inv_r2_5)\n - inv_r1_cubed - inv_r2_cubed) * csch[n];\n psiyz[i] += (three*y[i]*(z[i] - coth[n])*inv_r2_5\n + three*y[i]*(z[i] + coth[n])*inv_r1_5) * csch[n];\n psizz[i] += (-inv_r2_cubed+three*SQR(z[i] - coth[n])*inv_r2_5\n + three*SQR(z[i] + coth[n])*inv_r1_5 - inv_r1_cubed) * csch[n];\n }\n }\n }\n\n /* Cactus convention\n * -----------------\n */\n if (make_conformal_derivs)\n {\n inv_psi = one / psi[i];\n\n psix[i] *= inv_psi;\n psiy[i] *= inv_psi;\n psiz[i] *= inv_psi;\n\n if(*conformal_state > 2)\n {\n psixx[i] *= inv_psi;\n psixy[i] *= inv_psi;\n psixz[i] *= inv_psi;\n psiyy[i] *= inv_psi;\n psiyz[i] *= inv_psi;\n psizz[i] *= inv_psi;\n }\n }\n }\n\n /* Should initialize lapse to Cadez value if possible\n * --------------------------------------------------\n */\n\n if (CCTK_Equals(initial_lapse,\"cadez\"))\n {\n CCTK_INFO(\"Initialise with cadez lapse\");\n\n for(i = 0; i < npoints; i++)\n {\n xy_squared = SQR(x[i]) + SQR(y[i]);\n\n alp[i] = one;\n\n powfac = 1;\n\n for(n = 1; n <= nmax; n++)\n {\n inv_r1 = one / sqrt(xy_squared+SQR(z[i]+coth[n]));\n inv_r2 = one / sqrt(xy_squared+SQR(z[i]-coth[n]));\n powfac = -powfac;\n\n alp[i] += powfac * csch[n] * (inv_r1 + inv_r2);\n }\n\n alp[i] /= psi[i];\n }\n }\n\n /* Metric depends on conformal state\n * ---------------------------------\n */\n\n if (CCTK_EQUALS(metric_type, \"static conformal\"))\n {\n for(i = 0; i < npoints; i++)\n {\n gxx[i] = one;\n gyy[i] = one;\n gzz[i] = one;\n }\n }\n else\n {\n for(i = 0; i < npoints; i++)\n {\n gxx[i] = psi[i] * psi[i] * psi[i] * psi[i];\n gyy[i] = gxx[i];\n gzz[i] = gxx[i];\n }\n }\n IDAnalyticBH_zero_CCTK_REAL_array(npoints, gxy);\n IDAnalyticBH_zero_CCTK_REAL_array(npoints, gxz);\n IDAnalyticBH_zero_CCTK_REAL_array(npoints, gyz);\n\n /* Time-symmetric data\n * -------------------\n */\n IDAnalyticBH_zero_CCTK_REAL_array(npoints, kxx);\n IDAnalyticBH_zero_CCTK_REAL_array(npoints, kxy);\n IDAnalyticBH_zero_CCTK_REAL_array(npoints, kxz);\n IDAnalyticBH_zero_CCTK_REAL_array(npoints, kyy);\n IDAnalyticBH_zero_CCTK_REAL_array(npoints, kyz);\n IDAnalyticBH_zero_CCTK_REAL_array(npoints, kzz);\n\n if (csch)\n {\n free (csch);\n }\n}\n", diff --git a/EinsteinInitialData_IDAxiBrillBH.json b/EinsteinInitialData_IDAxiBrillBH.json index 61b9141697bac802594bf9a80f7f6ca179ec943c..f5c8825bfdbc5866f50204b2f9686f834f4efd6c 100644 --- a/EinsteinInitialData_IDAxiBrillBH.json +++ b/EinsteinInitialData_IDAxiBrillBH.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteininitialdata.git", "configuration": "# Configuration definition for thorn IDAxiBrillBH\n\nREQUIRES Fortran\n", "interface": "# Interface definition for thorn IDAxiBrillBH\n# $Header$\n\nimplements: idaxibrillbh\ninherits: ADMBase grid StaticConformal\n\npublic:\n\n#\n# functions from StaticConformal\n#\nvoid FUNCTION ConfToPhysInPlace (CCTK_INT IN nx, \\\n CCTK_INT IN ny, \\\n CCTK_INT IN nz, \\\n CCTK_REAL ARRAY IN psi, \\\n CCTK_REAL ARRAY INOUT gxx, \\\n CCTK_REAL ARRAY INOUT gxy, \\\n CCTK_REAL ARRAY INOUT gxz, \\\n CCTK_REAL ARRAY INOUT gyy, \\\n CCTK_REAL ARRAY INOUT gyz, \\\n CCTK_REAL ARRAY INOUT gzz)\nuses function ConfToPhysInPlace\n", - "params": "", + "param": "# Parameter definitions for thorn IDAxiBrillBH\n# $Header$\n\nshares: ADMBase\n\nEXTENDS KEYWORD initial_lapse \n{\n \"schwarz\" :: \"Set lapse to Schwarzschild\"\n}\n\nEXTENDS KEYWORD initial_data \n{\n \"axibrillbh\" :: \"Axisymmetry Initial data for Black hole + Brill wave\"\n}\n\nUSES KEYWORD metric_type\n\n\nprivate:\n\n############################################################\n\n#\n# ***** debugging parameters *****\n#\n\n#\n# If this parameter is set to true, we output an ASCII data file\n# giving psi on the 2D grid. The file format should be directly usable\n# by a gnuplot 'splot' command.\n#\nBoolean output_psi2D\t\t\t\t\t\t\t\\\n \"should we output the conformal factor psi on the 2D grid?\"\n{\n} false\n\nstring output_psi2D_file_name\t\t\t\t\t\t\\\n \"if we output the conformal factor psi on the 2D grid,\t\t\\\n what file name should we use for the output file?\"\n{\n\".+\" :: \"any non-empty string that's a valid file name\"\n} \"psi2D.dat\"\n\n#\n# this parameter controls the amount of (potentially very detailed)\n# debugging information this thorn prints\n#\nCCTK_INT debug \\\n \"level of debugging information to print \\\n (0 = none, 2 = a little, 6 = a lot, 10 = huge amounts)\"\n{\n0:* :: \"any integer >= 0\"\n} 0\n\n#\n# to keep the output size quasi-finite, some debug printing which is\n# logicially \"per grid point\" on the 2-D (eta,q) grid, is actually only\n# done for this single 2-D grid point\n#\nCCTK_INT debug_ii \"i coordinate for per-2D-grid-point debug printing\"\n{\n*:* :: \"any integer\"\n} 14\nCCTK_INT debug_jj \"j coordinate for per-2D-grid-point debug printing\"\n{\n*:* :: \"any integer\"\n} 15\n\n#\n# to keep the output size quasi-finite, some debug printing which is\n# logicially \"per Cactus grid point\" is actually only done for this single\n# Cactus grid point\n#\nCCTK_INT debug_i \"i coordinate for per-grid-point debug printing\"\n{\n*:* :: \"any integer\"\n} 14\nCCTK_INT debug_j \"j coordinate for per-grid-point debug printing\"\n{\n*:* :: \"any integer\"\n} 15\nCCTK_INT debug_k \"k coordinate for per-grid-point debug printing\"\n{\n*:* :: \"any integer\"\n} 10\n\n############################################################\n\n#\n# ***** parameters controlling the Brill wave itself *****\n#\n\nREAL amp \"Brill wave amplitude\"\n{\n *:* :: \"No restriction\"\n} 0.1\n\nREAL eta0 \"Brill wave center (in eta coords)\"\n{\n *:* :: \"No restriction\"\n} 0.0\n\nREAL sigma \"Brill wave width (in eta)\"\n{\n *:* :: \"No restriction\"\n} 1.0\n\nREAL etamax \"eta value for outer edge of grid\"\n{\n *:* :: \"No restriction\"\n} 5.0\n\nINT n \"sin^n theta in Brill wave\"\n{\n *:* :: \"No restriction\"\n} 2\n\n############################################################\n\n#\n# ***** parameters for the numerical solution of the *****\n# ***** Brill-wave equation on the 2-D (eta,q) grid *****\n#\n\nINT ne \"eta resolution for solve\"\n{\n *:* :: \"No restriction\"\n} 300\n\nINT nq \"theta resolution for solve\"\n{\n *:* :: \"No restriction\"\n} 50\n\nREAL error_tolerance \"tolerance parameter for elliptic solver\"\n{\n(0:* :: \"any positive real number\"\n} 1.0e-12\n\n############################################################\n\n#\n# ***** interpolation parameters *****\n#\n\n#\n# This thorn first computes the Brill wave solution on an internal 2-D\n# grid, then interpolates this to the 3-D Cactus grid. The following\n# parameters control this interpolation.\n#\n\nSTRING interpolator_name \\\n \"name of CCTK_InterpLocalUniform() interpolation operator\"\n{\n\".*\" :: \"any string\"\n} \"uniform cartesian\"\n\nSTRING interpolator_pars \"parameters for the interpolation operator\"\n{\n\".*\" :: \\\n \"any nonempty string acceptable to Util_TableSetFromString()\t\t\\\n and to the interpolator, or the empty string to use 'order=n',\t\\\n where n is specified by the interpolation_order parameter\"\n} \"\"\n\nINT interpolation_order \"Order for interpolation\" STEERABLE = ALWAYS\n{\n0:9 :: \"any integer accepted by the interpolator\"\n} 1\n\n############################################################\n\n#\n# ***** miscellaneous parameters *****\n#\n\nBoolean generate_StaticConformal_metric\t\t\t\t\t\\\n \"should we generate a StaticConformal conformal metric (true),\t\\\n or a pure ADMBase physical metric (false)\"\n{\n} true\n", "schedule": "# Schedule definitions for thorn IDAxiBrillBH\n# $Header$\n\nif (CCTK_Equals(initial_data,\"axibrillbh\")) \n{\n schedule IDAxiBrillBH_ParamChecker at CCTK_PARAMCHECK\n {\n LANG: C\n OPTIONS: global\n } \"Check that the metric_type is recognised\"\n\n schedule IDAxiBrillBH in ADMBase_InitialData\n {\n LANG: Fortran\n WRITES: ADMBASE::metric(everywhere), ADMBASE::curv(everywhere),\n ADMBASE::lapse(everywhere), ADMBASE::shift(everywhere)\n WRITES: StaticConformal::confac(everywhere),\n StaticConformal::confac_1derivs(everywhere),\n StaticConformal::confac_2derivs(everywhere),\n StaticConformal::conformal_state(everywhere)\n READS: Grid::coordinates(everywhere)\n\n STORAGE: StaticConformal::confac\n STORAGE: StaticConformal::confac_1derivs\n STORAGE: StaticConformal::confac_2derivs\n } \"Construct IDAxiBrillBH\" \n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn IDAxiBrillBH\n# $Header$\n\n# Source files in this directory\nSRCS = IDAxiBrillBH.F mg59p.F shmgp.F77 ParamCheck.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/EinsteinInitialData_IDAxiOddBrillBH.json b/EinsteinInitialData_IDAxiOddBrillBH.json index d73fe23d5e06b2686a5fb1b26f47bdb7a9c4bc39..56eefce29ec57150fd21fdb77e34d2a50429a600 100644 --- a/EinsteinInitialData_IDAxiOddBrillBH.json +++ b/EinsteinInitialData_IDAxiOddBrillBH.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteininitialdata.git", "configuration": "", "interface": "# Interface definition for thorn AxiOddBrillBHIVP\n# $Header$\n\nimplements: axiodd\ninherits: ADMBase grid StaticConformal\n\nprivate:\n\nreal sph_to_car_coord type = GF\n{\neta,\nabseta,\nsign_eta,\nq,\nphi\n} \"coordinate range\"\n\nreal sph_to_car_psi type = GF\n{\n psi2d,\n detapsi2d,\n dqpsi2d,\n detaetapsi2d,\n detaqpsi2d,\n dqqpsi2d\n } \"psi\"\n\n\n", - "params": "", + "param": "# Parameter definitions for thorn AxiOddBrillBHIVP\n# $Header$\n\nshares: StaticConformal\n\nUSES KEYWORD conformal_storage\n\nshares:admbase\n\nUSES KEYWORD metric_type\n\nEXTENDS KEYWORD initial_lapse \n{\n \"schwarz\" :: \"Set lapse to Schwarzschild\"\n}\nEXTENDS KEYWORD initial_data \n{\n \"axioddbh\" :: \"Axisymmetry Initial data for Brandt-Seidel\"\n}\n\nprivate:\n\nREAL amp \"Brill wave amplitude for extrinsic curveture\"\n{\n *:* :: \"No restriction\"\n} 0.1\n\nREAL amp_me \"Brill wave amplitude for metric\"\n{\n *:* :: \"No restriction\"\n} 0.0\n\nREAL xi \"for recoil\"\n{\n *:* :: \"No restriction\"\n} 0.0\n\nREAL eta0 \"Brill wave center (in eta coords) for extrisic curvature\"\n{\n *:* :: \"No restriction\"\n} 0.0\n\nREAL eta0_me \"Brill wave center (in eta coords) for metric\"\n{\n *:* :: \"No restriction\"\n} 0.0\n\nREAL sigma \"Brill wave width (in eta) for extrinsic curveture\"\n{\n *:* :: \"No restriction\"\n} 1.0\n\nREAL sigma_me \"Brill wave width (in eta) for metric\"\n{\n *:* :: \"No restriction\"\n} 1.0\n\nREAL byJ \"Bowen and York Momenta\"\n{\n *:* :: \"No restriction\"\n} 0.0\n\nREAL etamax \"Eta value for outer edge of grid\"\n{\n *:* :: \"No restriction\"\n} 5.0\n\n\nINT n \"sin**n theta in brill wave for extrinsic curveture\"\n{\n *:* :: \"No restriction\"\n} 3\n\nINT n_me \"sin**n theta in brill wave for metric\"\n{\n *:* :: \"No restriction\"\n} 3\n\nINT neta \"Eta resolution for solve\"\n{\n *:* :: \"No restriction\"\n} 300\n\nINT ntheta \"Theta resolution for solve\"\n{\n *:* :: \"No restriction\"\n} 50\n\nBOOLEAN brandt_seidel \"Brand-Seidel initial data\"\n{\n} \"no\"\n\nBOOLEAN sergio \"Sergio initial data\"\n{\n} \"no\"\n\nBOOLEAN verbose \"\"\n{\n} \"yes\"\n\nINT interpolation_order \"Order for interpolation\" STEERABLE = ALWAYS\n{\n 1:3 :: \"Choose between first, second, and third-order\"\n} 1\n", "schedule": "# Schedule definitions for thorn AxiOddBrillBHIVP\n# $Header$\n\nif (CCTK_Equals(initial_data,\"axioddbh\")) \n{ \n STORAGE: sph_to_car_coord, sph_to_car_psi\n\n schedule IDAxiOddBrillBH_ParamCheck at PARAMCHECK\n {\n LANG: C\n } \"Check Parameters\"\n\n schedule IDAxiOddBrillBH IN ADMBase_InitialData\n {\n LANG: Fortran\n } \"Construct IDAxiOddBrillBH\" \n}\n\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn AxiOddBHWave\n# $Header$\n\n# Source files in this directory\nSRCS = IDAxiOddBrillBH.F Stab2d.F ParamCheck.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/EinsteinInitialData_IDBrillData.json b/EinsteinInitialData_IDBrillData.json index e0d559b4582cc2d638db3682ff9607ae6fd03fcb..fc7ebee82a1f5e57f44ec2a3065c5a0de8eaa36f 100644 --- a/EinsteinInitialData_IDBrillData.json +++ b/EinsteinInitialData_IDBrillData.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteininitialdata.git", "configuration": "# Configuration definition for thorn CactusEinstein/IDBrillData\n# $Header$\n\nREQUIRES CartGrid3D\n", "interface": "# Interface definition for thorn IDBrillData\n# $Header$\n\nimplements: IDBrillData\ninherits: grid ADMBase StaticConformal ellbase\n\n# Grid functions for linear elliptic equation.\n\nprivate: \n\nCCTK_REAL brillelliptic TYPE=GF\n{\n brillMlinear,\n brillNsource\n} \"Coefficients for linear elliptic equation\"\n\nCCTK_REAL brillconf TYPE=GF\n{\n brillpsi\n} \"Conformal factor for Brill data\"\n", - "params": "", + "param": "# Parameter definitions for thorn IDBrillData\n# $Header$\n\nshares: ADMBase\n\nEXTENDS KEYWORD initial_data \n{\n \"brilldata\" :: \"Brill wave initial data\"\n \"brilldata2D\" :: \"Brill wave initial data assuming axisymmetry\"\n}\n\nUSES KEYWORD metric_type\n\nshares: StaticConformal\n\nUSES KEYWORD conformal_storage\n\n\nprivate:\n\n# Parameters for elliptic solve\n\nKEYWORD solver \"Which elliptic solver to use\"\n{\n \"sor\" :: \"Use SOR solver\"\n \"petsc\" :: \"Use PETSc solver\"\n \"bam\" :: \"Use bam solver\"\n} \"sor\"\n\nKEYWORD bound \"Which boundary condition to use\"\n{\n \"const\" :: \"constant boundary: set const_v0\"\n \"robin\" :: \"Robin boundary: set robin_falloff, robin_inf\"\n} \"robin\"\n\nINT robin_falloff \"Fall-off of Robin BC\"\n{\n 0: :: \"any positive integer value\"\n} 1\n\nREAL const_v0 \"Value of constant BC\"\n{\n : :: \"anything goes\"\n} 1.0\n\nREAL robin_inf \"Value at infinity of Robin BC\"\n{\n : :: \"anything goes\"\n} 1.0\n\nREAL thresh \"How far (absolute norm) to go\"\n{\n 0.0: :: \"Positive number please\"\n} 0.00001\n\n\n# Brill wave parameters\n\nKEYWORD q_function \"Form of function q [0,1,2]\"\n{\n \"exp\" :: \"contains e^{-z^2} factor\"\n \"eppley\" :: \"contains 1/(1+r^2) factor\"\n \"gundlach\" :: \"contains e^{-r^2} factor\"\n} \"gundlach\"\n\n# -------------------------------------------------------------\n\nREAL exp_a \"Exp Brill wave: Amplitude\"\n{\n : :: \"Anything\"\n} 0.0\n\nINT exp_b \"Exp Brill wave: used in exponent in rho: rho^(2+b)\"\n{\n : :: \"Anything\"\n} 2\n\nREAL exp_rho0 \"Exp Brill wave: radius of torus in rho\"\n{\n 0:* :: \"Positive\"\n} 0.0\n\nREAL exp_sigmaz \"Exp Brill wave: sigma in z\"\n{\n (0:* :: \"Positive\"\n} 1.0\n\n# -------------------------------------------------------------\n\nREAL eppley_a \"Eppley Brill wave: Amplitude\"\n{\n : :: \"Anything\"\n} 0.0\n\nINT eppley_b \"Eppley Brill wave: used in exponent in rho: rho^b\"\n{\n : :: \"Anything\"\n} 2\n\nINT eppley_c \"Eppley Brill wave: (r^2 - r0^2)^(c/2)\"\n{ \n : :: \"Anything\"\n} 2\n\nREAL eppley_r0 \"Eppley Brill wave: radius of torus in r\"\n{\n 0:* :: \"Positive\" \n} 0.0\n\nREAL eppley_sigmarho \"Eppley Brill wave: sigma in rho\"\n{\n : :: \"Anything\"\n} 1.0\n\nREAL eppley_sigmar \"Eppley Brill wave: sigma in r\"\n{\n : :: \"Anything\"\n} 1.0\n\n# -------------------------------------------------------------\n\nREAL gundlach_a \"Gundlach Brill wave: Amplitude\"\n{\n : :: \"Anything\"\n} 0.0\n\nINT gundlach_b \"Gundlach Brill wave: used in exponent in rho: rho^b\"\n{\n : :: \"Anything\"\n} 2\n\nREAL gundlach_sigmarho \"Gundlach Brill wave: sigma in rho\"\n{\n : :: \"Anything\"\n} 1.0\n\nREAL gundlach_r0 \"Gundlach Brill wave: radius of torus in r\"\n{\n 0:* :: \"Positive\" \n} 0.0\n\nINT gundlach_c \"Gundlach Brill wave: (r^2 - r0^2)^(c/2)\"\n{ \n : :: \"Anything\"\n} 2\n\nREAL gundlach_sigmar \"Gundlach Brill wave: sigma in r\"\n{\n : :: \"Anything\"\n} 1.0\n\n# -------------------------------------------------------------\n\n# 3D Brill wave parameters\n\nREAL brill3d_d \"3D Brill wave: d rho^m cos^2(n (phi + phi0))\"\n{\n : :: \"Anything\"\n} 0.0\n\nREAL brill3d_e \"3D Brill wave: d rho^m cos^2(n (phi + phi0))\"\n{\n : :: \"Anything\"\n} 1.0\n\nREAL brill3d_m \"3D Brill wave: d rho^m cos^2(n (phi + phi0))\"\n{\n : :: \"Anything\"\n} 2.0\n\nREAL brill3d_n \"3D Brill wave: d rho^m cos^2(n (phi + phi0))\"\n{\n : :: \"Anything\"\n} 2.0\n\nREAL brill3d_phi0 \"3D Brill wave: d rho^m cos^2(n (phi + phi0))\"\n{\n : :: \"Anything\"\n} 0.0\n\n\n# Additional parameters\n\nREAL rhofudge \"delta rho for axis fudge\"\n{\n 0: :: \"Positive please\"\n} 0.00001\n\nINT sor_maxit \"Maximum number of iterations\"\n{\n0:* :: \"Positive\"\n} 10000\n\nBOOLEAN output_coeffs \"output coefficients for elliptic solve\"\n{\n} \"no\"", "schedule": "# Schedule definitions for thorn IDBrillData\n# $Header$\n\nif (CCTK_Equals(initial_data,\"brilldata\") || CCTK_Equals(initial_data,\"brilldata2D\"))\n{\n\n STORAGE: brillconf\n STORAGE: brillelliptic\n\n schedule IDBrillData_ParamChecker at CCTK_PARAMCHECK\n {\n LANG: C\n OPTIONS: global\n } \"Check that the metric_type is recognised\"\n\n schedule BrillData_InitSymBound at CCTK_WRAGH\n {\n LANG: C\n OPTIONS: global\n } \"Set up symmetries for brillpsi\"\n\n schedule brilldata in ADMBase_InitialData\n {\n LANG: Fortran\n } \"Construct Brill wave initial data\"\n}\n", "src": { "make.code.defn": "# -*-Makefile-*-\n# Sub-makefile for thorn IDBrillData\n\nSRCS = brilldata.F setupbrilldata2D.F setupbrilldata3D.F \\\n brillq.F phif.F finishbrilldata.F Startup.c ParamCheck.c\n", diff --git a/EinsteinInitialData_IDConstraintViolate.json b/EinsteinInitialData_IDConstraintViolate.json index 7d1461a0b20ec74d222065572b652f388605f0a0..db2a1f430c4552a3cb771fdaf16df4a2efd817f2 100644 --- a/EinsteinInitialData_IDConstraintViolate.json +++ b/EinsteinInitialData_IDConstraintViolate.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteininitialdata.git", "configuration": "", "interface": "# Interface definition for thorn IDConstraintViolate\n# $Header$\n\nimplements: idconstraintviolate\ninherits: admbase, grid\n", - "params": "", + "param": "# Parameter definitions for thorn IDConstraintViolate\n# $Header$\n\nshares: ADMBase\n\nuses KEYWORD metric_type \n\nextends KEYWORD initial_data\n{\n \"constraint violating gaussian\" :: \"Constraint violating Gaussian\"\n}\n\nprivate:\n\nREAL radius \"The radial position of the Gaussian wave\"\n{\n 0:* :: \"Positive\"\n} 0.0\n\nREAL sigma \"The sigma for the Gaussian wave\"\n{\n (0:* :: \"Positive\"\n} 0.1\n\nREAL amplitude \"The amplitude of the waves\"\n{\n *:* :: \"No restriction\"\n} 0.001\n", "schedule": "# Schedule definitions for thorn IDConstraintViolate\n# $Header$\n\nschedule IDConstraintViolate_ParamChecker at PARAMCHECK\n{\n LANG: C\n} \"Check parameters\"\n\nschedule IDConstraintViolate_Initial in ADMBase_InitialData\n{\n LANG: Fortran\n} \"Set up constraint violating initial data\"\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn IDConstraintViolate\n# $Header$\n\n# Source files in this directory\nSRCS = Initial.F77 ParamChecker.c\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/EinsteinInitialData_IDFileADM.json b/EinsteinInitialData_IDFileADM.json index 2851cc041ee0d89f97d88322a7e474259bf36b08..dc7fe7d9d6eccfc12c1ab1339667bc73be1ebca0 100644 --- a/EinsteinInitialData_IDFileADM.json +++ b/EinsteinInitialData_IDFileADM.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteininitialdata.git", "configuration": "", "interface": "# Interface definition for thorn IDFileADM\n# $Header$\n\nIMPLEMENTS: IDFileADM\n\nINHERITS: ADMBase StaticConformal IO\n", - "params": "", + "param": "# Parameter definitions for thorn IDFileADM\n# $Header$\n\nSHARES: ADMBase\n\nEXTENDS KEYWORD initial_lapse\n{\n \"read from file\" :: \"Read the initial lapse using the file reader. Note that this only allows you to read the lapse from a file, it does not actually do it. You still have to programme the file reader accordingly.\"\n}\n\nEXTENDS KEYWORD initial_shift\n{\n \"read from file\" :: \"Read the initial shift using the file reader. Note that this only allows you to read the shift from a file, it does not actually do it. You still have to programme the file reader accordingly.\"\n}\n\nEXTENDS KEYWORD initial_data\n{\n \"read from file\" :: \"Read the initial data using the file reader. Note that this only allows you to read the metric from a file, it does not actually do it. You still have to programme the file reader accordingly.\"\n}\n\nUSES KEYWORD metric_type\n\n\n\nSHARES: StaticConformal\n\nUSES KEYWORD conformal_storage\n\n\n\nSHARES: IO\n\nUSES STRING filereader_ID_vars\n", "schedule": "# Schedule definitions for thorn IDFileADM\n# $Header$\n\nschedule IDFileADM_ParamCheck at PARAMCHECK\n{\n LANG: C\n} \"Ensure that all ADMBase initial data are either initialised or read from a file\"\n\nschedule IDFileADM_Init at INITIAL\n{\n LANG: C\n} \"Initialise the conformal_state\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn IDFileADM\n# $Header$\n\n# Source files in this directory\nSRCS = IDFileADM_ParamCheck.c IDFileADM_Init.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/EinsteinInitialData_IDLinearWaves.json b/EinsteinInitialData_IDLinearWaves.json index 3af372f317a6d20adde73b746e461614613ffbbe..2eec0488023c7335b29d80dcb6511e447d10666a 100644 --- a/EinsteinInitialData_IDLinearWaves.json +++ b/EinsteinInitialData_IDLinearWaves.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteininitialdata.git", "configuration": "", "interface": "# Interface definition for thorn IDLinearWaves\n\nimplements: idlinearwaves\ninherits: ADMBase StaticConformal Grid\n", - "params": "", + "param": "# Parameter definitions for thorn IDLinearWaves\n\nshares: ADMBase\n\nEXTENDS KEYWORD initial_data \n{\n\"teukwaves\" :: \"linear waves initial data- Teukolsky waves\"\n\"planewaves\" :: \"linear waves initial data- plane waves\"\n\"standing_planewaves\" :: \"linear waves initial data- standing plane waves\"\n\"sine_planewaves\" :: \"linear waves initial data- sine shaped plane waves\"\n}\n\nUSES KEYWORD metric_type \n\nshares: StaticConformal\n\nUSES KEYWORD conformal_storage \n\nprivate:\n\nREAL amplitude \"Amplitude of the wave: both for teuk and plane\"\n{\n 0: :: \"positive amplitude\"\n} 0.001\n\nINT mvalue \"m value for teukwaves waves: integer from -2 to 2\"\n{\n -2:2 :: \"implemented : m = -2..2\"\n} 0\n\nREAL wavecenter \"linears waves thingie\"\n{\n : :: \"\"\n} 0.0\n\nREAL wavelength \"linearwaves wave length\"\n{\n 0: :: \"positive wavelength\"\n} 2.0\n\nREAL wavepulse \"planewaves thingy for the gaussian pulse\"\n{\n 0: :: \"positive pulse\"\n} 1.0\n\nREAL wavetheta \"Theta angle for planewaves\"\n{\n : :: \"\"\n} 0.0\n\nREAL wavephi \"Phi angle for planewaves\"\n{\n : :: \"\"\n} 0.0\n\nKEYWORD parity \"Parity for teukwaves: even or odd\"\n{\n \"even\" :: \"even parity\"\n \"odd\" :: \"odd parity\"\n} \"even\"\n\nKEYWORD packet \"Packet for teukwaves: eppley,evans,square\"\n{\n \"eppley\" :: \"Eppley type\"\n \"evans\" :: \"Evans type\"\n \"square\" :: \"Square type\"\n} \"eppley\"\n\nKEYWORD wavesgoing \"in and outgoing waves...\"\n{\n \"in\" :: \"Ingoing wave\"\n \"out\" :: \"Outgoing wave\"\t\n \"both\" :: \"In and outgoing wave\"\n} \"both\"\n\nKEYWORD teuk_no_vee \"Initialize Teuk. waves with V=0?\"\n{\n \"no\" :: \"Bona Masso setting\"\n \"yes\":: \"Bona Masso setting\"\n} \"no\"\n", "schedule": "# Schedule definitions for thorn IDLinearWaves\n\nif (CCTK_Equals(initial_data,\"planewaves\")) \n{\n schedule IDLinearWaves_ParamChecker at CCTK_PARAMCHECK\n {\n LANG: C\n OPTIONS: global\n } \"Check that the metric_type is recognised\"\n\n schedule IDLinearWaves_PlaneWaves in ADMBase_InitialData\n {\n LANG: Fortran\n } \"Construct linear planewave initial data\" \n}\n\nif (CCTK_Equals(initial_data,\"standing_planewaves\")) \n{\n schedule IDLinearWaves_ParamChecker at CCTK_PARAMCHECK\n {\n LANG: C\n OPTIONS: global\n } \"Check that the metric_type is recognised\"\n\n schedule IDLinearWaves_StandWaves in ADMBase_InitialData\n {\n LANG: Fortran\n } \"Construct linear planewave initial data\" \n}\n\nif (CCTK_Equals(initial_data,\"teukwaves\")) \n{\n schedule IDLinearWaves_ParamChecker at CCTK_PARAMCHECK\n {\n LANG: C\n OPTIONS: global\n } \"Check that the metric_type is recognised\"\n\n schedule IDLinearWaves_TeukWaves in ADMBase_InitialData\n {\n LANG: Fortran\n WRITES: ADMBase::metric(everywhere), ADMBase::curv(everywhere)\n } \"Construct linear Teukolsky wave initial data\" \n}\n\nif (CCTK_Equals(initial_data,\"sine_planewaves\")) \n{\n schedule IDLinearWaves_ParamChecker at CCTK_PARAMCHECK\n {\n LANG: C\n OPTIONS: global\n } \"Check that the metric_type is recognised\"\n\n schedule IDLinearWaves_SinePlaneWaves in ADMBase_InitialData\n {\n LANG: Fortran\n } \"Construct linear plane wave initial data\" \n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn IDLinearWaves\n# $Header$\n\n# Source files in this directory\nSRCS = \tParamCheck.c\\\n\tplanewaves.F77\\\n\tsine_planewaves.F77\\\n\tstanding_planewaves.F77\\\n\tteukwaves.F77\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/EinsteinInitialData_Meudon_Bin_BH.json b/EinsteinInitialData_Meudon_Bin_BH.json index 6d3364e629eebaa3ccae2101f0bc9045215060b3..fd0e14ca60603dd3e37509dc4f2f03883ad5a61d 100644 --- a/EinsteinInitialData_Meudon_Bin_BH.json +++ b/EinsteinInitialData_Meudon_Bin_BH.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteininitialdata.git", "configuration": "# Configuration definition for thorn ID_Bin_BH\n\nREQUIRES LORENE (<=2017-05-08)\n", "interface": "# Interface definition for thorn ID_Bin_BH\n\nIMPLEMENTS: ID_Bin_BH\n\nINHERITS: grid SummationByParts ADMBase\n\n\n\nSUBROUTINE Diff_gv (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN dir, \\\n CCTK_REAL IN ARRAY var, \\\n CCTK_REAL OUT ARRAY dvar, \\\n CCTK_INT IN table_handle)\nUSES FUNCTION Diff_gv\n", - "params": "", + "param": "# Parameter definitions for thorn ID_Bin_BH\n\nSHARES: ADMBase\n\nEXTENDS KEYWORD initial_data\n{\n \"ID_Bin_BH\" :: \"\"\n}\n\nEXTENDS KEYWORD initial_lapse\n{\n \"ID_Bin_BH\" :: \"\"\n}\n\nEXTENDS KEYWORD initial_shift\n{\n \"ID_Bin_BH\" :: \"\"\n}\n\nEXTENDS KEYWORD initial_dtlapse\n{\n \"ID_Bin_BH\" :: \"\"\n}\n\nEXTENDS KEYWORD initial_dtshift\n{\n \"ID_Bin_BH\" :: \"\"\n}\n\n\n\nPRIVATE:\n\nSTRING filename \"Input file name\"\n{\n \"\" :: \"\"\n} \"\"\n", "schedule": "# Schedule definitions for thorn ID_Bin_BH\n\nif (CCTK_EQUALS (initial_data, \"ID_Bin_BH\") ||\n CCTK_EQUALS (initial_lapse, \"ID_Bin_BH\") ||\n CCTK_EQUALS (initial_shift, \"ID_Bin_BH\") ||\n CCTK_EQUALS (initial_dtlapse, \"ID_Bin_BH\") ||\n CCTK_EQUALS (initial_dtshift, \"ID_Bin_BH\"))\n{\n SCHEDULE ID_Bin_BH_check_parameters AT paramcheck\n {\n LANG: C\n } \"Check parameters\"\n \n SCHEDULE ID_Bin_BH_initialise IN ADMBase_InitialData\n {\n LANG: C\n } \"Set up binary black hole initial data\"\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn ID_Bin_BH\n\n# Source files in this directory\nSRCS = Bin_BH.cc check_parameters.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/EinsteinInitialData_Meudon_Bin_NS.json b/EinsteinInitialData_Meudon_Bin_NS.json index 8448123d13d44e9357d42bb4e0fd64511a6e9ba0..e47ce27ec6dbf419168495182155f7cc5b996c4e 100644 --- a/EinsteinInitialData_Meudon_Bin_NS.json +++ b/EinsteinInitialData_Meudon_Bin_NS.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteininitialdata.git", "configuration": "# Configuration definition for thorn Meudon_Bin_NS\n\nREQUIRES LORENE(<=2017-05-08)\n", "interface": "# Interface definition for thorn Meudon_Bin_NS\n\nIMPLEMENTS: Meudon_Bin_NS\n\nINHERITS: grid SummationByParts ADMBase HydroBase\n\n\n\nSUBROUTINE Diff_gv (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN dir, \\\n CCTK_REAL IN ARRAY var, \\\n CCTK_REAL OUT ARRAY dvar, \\\n CCTK_INT IN table_handle)\nUSES FUNCTION Diff_gv\n\nvoid FUNCTION EOS_Omni_press(CCTK_INT IN eoskey, \\\n\t\t\t CCTK_INT IN havetemp, \\\n\t\t\t CCTK_REAL IN rf_precision, \\\n CCTK_INT IN npoints, \\\n\t\t\t CCTK_REAL IN ARRAY rho, \\\n\t\t\t CCTK_REAL INOUT ARRAY eps, \\\n\t\t\t CCTK_REAL INOUT ARRAY temp, \\\n\t\t\t CCTK_REAL IN ARRAY ye, \\\n\t\t\t CCTK_REAL OUT ARRAY press, \\\n\t\t\t CCTK_INT OUT ARRAY keyerr, \\\n\t\t\t CCTK_INT OUT anyerr)\n\nUSES FUNCTION EOS_Omni_press\n\nCCTK_INT FUNCTION EOS_Omni_GetHandle(CCTK_STRING IN name)\nUSES FUNCTION EOS_Omni_GetHandle\n\npublic:\n\nint init_eos_key type = SCALAR \"Initial data eos handle for EOS_Omni\"\n", - "params": "", + "param": "# Parameter definitions for thorn Meudon_Bin_NS\n\nSHARES: ADMBase\n\nEXTENDS KEYWORD initial_data\n{\n \"Meudon_Bin_NS\" :: \"LORENE Binary Neutron Star initial data\"\n}\n\nEXTENDS KEYWORD initial_lapse\n{\n \"Meudon_Bin_NS\" :: \"LORENE Binary Neutron Star initial data\"\n}\n\nEXTENDS KEYWORD initial_shift\n{\n \"Meudon_Bin_NS\" :: \"LORENE Binary Neutron Star initial data\"\n}\n\nEXTENDS KEYWORD initial_dtlapse\n{\n \"Meudon_Bin_NS\" :: \"LORENE Binary Neutron Star initial data\"\n}\n\nEXTENDS KEYWORD initial_dtshift\n{\n \"Meudon_Bin_NS\" :: \"LORENE Binary Neutron Star initial data\"\n}\n\n\nSHARES: HydroBase\n\nEXTENDS KEYWORD initial_hydro\n{\n \"Meudon_Bin_NS\" :: \"LORENE Binary Neutron Star initial data\"\n}\n\n\nPRIVATE:\n\nSTRING filename \"Input file name containing LORENE data\"\n{\n \"\" :: \"Any filename, potentially including path\"\n} \"\"\n\nSTRING eos_table \"Initial data EOS identifyer\"\n{\n \"\" :: \"Any valid EOS name in EOSOmni\"\n} \"2D_Polytrope\"\n\nSTRING eos_table_filepath \"Directory containing the EOS file used to generate the initial data\"\n{\n \"\" :: \"Directory name, default (empty string) is 'do not tell Lorene to overwrite info found in Lorene data'\"\n} \"\"\n\nBOOLEAN recalculate_eps \"Should eps be recalculated (default), or taken from Lorene data?\"\n{\n} \"yes\"\n\nCCTK_REAL eos_precision \"precision of EOS calculations in EOSOmni\"\n{\n 0:* :: \"any positive number\"\n} 1.e-8\n", "schedule": "# Schedule definitions for thorn Meudon_Bin_NS\n\nif (CCTK_EQUALS (initial_data, \"Meudon_Bin_NS\") ||\n CCTK_EQUALS (initial_lapse, \"Meudon_Bin_NS\") ||\n CCTK_EQUALS (initial_shift, \"Meudon_Bin_NS\") ||\n CCTK_EQUALS (initial_dtlapse, \"Meudon_Bin_NS\") ||\n CCTK_EQUALS (initial_dtshift, \"Meudon_Bin_NS\") ||\n CCTK_EQUALS (initial_hydro, \"Meudon_Bin_NS\"))\n{\n SCHEDULE Meudon_Bin_NS_initialise IN HydroBase_Initial\n {\n LANG: C\n } \"Set up binary neutron star initial data\"\n \n STORAGE:init_eos_key\n\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Meudon_Bin_NS\n\n# Source files in this directory\nSRCS = Bin_NS.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/EinsteinInitialData_Meudon_Mag_NS.json b/EinsteinInitialData_Meudon_Mag_NS.json index ad64546ffa8892fa2052b96dd6f6bd4892b6cd95..ef91f67c8d6f6a2c4c74314b8d1777359e26a84a 100644 --- a/EinsteinInitialData_Meudon_Mag_NS.json +++ b/EinsteinInitialData_Meudon_Mag_NS.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteininitialdata.git", "configuration": "# Configuration definition for thorn ID_Mag_NS\n\nREQUIRES LORENE (<=2017-05-08)\n", "interface": "# Interface definition for thorn ID_Mag_NS\n\nIMPLEMENTS: ID_Mag_NS\n\nINHERITS: grid ADMBase HydroBase\n", - "params": "", + "param": "# Parameter definitions for thorn ID_Mag_NS\n\nSHARES: ADMBase\n\nEXTENDS KEYWORD initial_data\n{\n \"ID_Mag_NS\" :: \"\"\n}\n\nEXTENDS KEYWORD initial_lapse\n{\n \"ID_Mag_NS\" :: \"\"\n}\n\nEXTENDS KEYWORD initial_shift\n{\n \"ID_Mag_NS\" :: \"\"\n}\n\nEXTENDS KEYWORD initial_dtlapse\n{\n \"ID_Mag_NS\" :: \"\"\n}\n\nEXTENDS KEYWORD initial_dtshift\n{\n \"ID_Mag_NS\" :: \"\"\n}\n\n\n\nSHARES: HydroBase\n\nEXTENDS KEYWORD initial_hydro\n{\n \"ID_Mag_NS\" :: \"\"\n}\n\nEXTENDS KEYWORD initial_Bvec\n{\n \"ID_Mag_NS\" :: \"\"\n}\n\n\n\nPRIVATE:\n\nSTRING filename \"Input file name\"\n{\n \"\" :: \"\"\n} \"\"\n", "schedule": "# Schedule definitions for thorn ID_Mag_NS\n\nif (CCTK_EQUALS (initial_data, \"ID_Mag_NS\") ||\n CCTK_EQUALS (initial_lapse, \"ID_Mag_NS\") ||\n CCTK_EQUALS (initial_shift, \"ID_Mag_NS\") ||\n CCTK_EQUALS (initial_dtlapse, \"ID_Mag_NS\") ||\n CCTK_EQUALS (initial_dtshift, \"ID_Mag_NS\") ||\n CCTK_EQUALS (initial_hydro, \"ID_Mag_NS\") ||\n CCTK_EQUALS (initial_Bvec, \"ID_Mag_NS\"))\n{\n SCHEDULE ID_Mag_NS_check_parameters AT paramcheck\n {\n LANG: C\n } \"Check parameters\"\n \n SCHEDULE ID_Mag_NS_initialise IN ADMBase_InitialData\n {\n LANG: C\n } \"Set up magnetised neutron star initial data\"\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn ID_Mag_NS\n\n# Source files in this directory\nSRCS = Mag_NS.cc check_parameters.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/EinsteinInitialData_NoExcision.json b/EinsteinInitialData_NoExcision.json index 966cc9da11dd3ff60f7ef8ce0f710d91b9a3a63d..8798cd9ef56a2b25d35e5a53e5fd7caa87b8373e 100644 --- a/EinsteinInitialData_NoExcision.json +++ b/EinsteinInitialData_NoExcision.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteininitialdata.git", "configuration": "# Configuration definition for thorn NoExcision\n\nOPTIONAL_IFACTIVE Carpet\n{\n}\n", "interface": "# Interface definition for thorn NoExcision\n# $Header$\n\nIMPLEMENTS: NoExcision\n\nINHERITS: ADMBase StaticConformal grid SphericalSurface Boundary\n\nUSES INCLUDE: Boundary.h\n\nUSES INCLUDE: carpet.hh\n\nCCTK_INT FUNCTION MoLQueryEvolvedRHS (CCTK_INT IN EvolvedIndex)\nUSES FUNCTION MoLQueryEvolvedRHS\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, \\\n CCTK_INT IN boundary_width, \\\n CCTK_INT IN table_handle, \\\n CCTK_STRING IN var_name, \\\n CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT smask type=GF timelevels=1 tags='tensortypealias=\"scalar\" Prolongation=\"None\"'\n{\n nes_mask\n} \"mask for smoothing\"\n\nCCTK_REAL reduction_mask type=GF tags='Prolongation=\"None\" InterpNumTimelevels=1 checkpoint=\"no\"'\n{\n red_mask\n} \"Copy of the weight grid function from CarpetReduce\"\n\nCCTK_REAL cg_res_metric type=GF timelevels=1 tags='tensortypealias=\"dd_sym\" Prolongation=\"None\"'\n{\n resgxx, resgxy, resgxz, resgyy, resgyz, resgzz\n} \"Conjugate Gradient residual for the metric\"\n\nCCTK_REAL cg_res_curv type=GF timelevels=1 tags='tensortypealias=\"dd_sym\" Prolongation=\"None\"'\n{\n reskxx, reskxy, reskxz, reskyy, reskyz, reskzz\n} \"Conjugate Gradient residual for the extrinsic curvature\"\n\nCCTK_REAL cg_res_shift type=GF timelevels=1 tags='tensortypealias=\"u\" Prolongation=\"None\"'\n{\n resx, resy, resz\n} \"Conjugate Gradient residual for the shift\"\n\nCCTK_REAL cg_res_lapse type=GF timelevels=1 tags='tensortypealias=\"scalar\" Prolongation=\"None\"'\n{\n res\n} \"Conjugate Gradient residual for the lapse\"\n\n\nCCTK_REAL cg_d_metric type=GF timelevels=1 tags='tensortypealias=\"dd_sym\" Prolongation=\"None\"'\n{\n dgxx, dgxy, dgxz, dgyy, dgyz, dgzz\n} \"Conjugate Gradient d for the metric\"\n\nCCTK_REAL cg_d_curv type=GF timelevels=1 tags='tensortypealias=\"dd_sym\" Prolongation=\"None\"'\n{\n dkxx, dkxy, dkxz, dkyy, dkyz, dkzz\n} \"Conjugate Gradient d for the extrinsic curvature\"\n\nCCTK_REAL cg_d_shift type=GF timelevels=1 tags='tensortypealias=\"u\" Prolongation=\"None\"'\n{\n dx, dy, dz\n} \"Conjugate Gradient d for the shift\"\n\nCCTK_REAL cg_d_lapse type=GF timelevels=1 tags='tensortypealias=\"scalar\" Prolongation=\"None\"'\n{\n d\n} \"Conjugate Gradient d for the lapse\"\n\n\nCCTK_REAL cg_q_metric type=GF timelevels=1 tags='tensortypealias=\"dd_sym\" Prolongation=\"None\"'\n{\n qgxx, qgxy, qgxz, qgyy, qgyz, qgzz\n} \"Conjugate Gradient q for the metric\"\n\nCCTK_REAL cg_q_curv type=GF timelevels=1 tags='tensortypealias=\"dd_sym\" Prolongation=\"None\"'\n{\n qkxx, qkxy, qkxz, qkyy, qkyz, qkzz\n} \"Conjugate Gradient q for the extrinsic curvature\"\n\nCCTK_REAL cg_q_shift type=GF timelevels=1 tags='tensortypealias=\"u\" Prolongation=\"None\"'\n{\n qx, qy, qz\n} \"Conjugate Gradient q for the shift\"\n\nCCTK_REAL cg_q_lapse type=GF timelevels=1 tags='tensortypealias=\"scalar\" Prolongation=\"None\"'\n{\n q\n} \"Conjugate Gradient q for the lapse\"\n\n\nCCTK_REAL cg_red_all type=GF timelevels=1 tags='tensortypealias=\"scalar\" Prolongation=\"None\"'\n{\n redgxx, redgxy, redgxz, redgyy, redgyz, redgzz\n redkxx, redkxy, redkxz, redkyy, redkyz, redkzz\n red, redx, redy, redz\n} \"Conjugate Gradient red for all variables\"\n\n# Control variable for smoothing loop\nCCTK_INT loop_control TYPE=SCALAR\n", - "params": "", + "param": "# Parameter definitions for thorn NoExcision\n# $Header$\n\nBOOLEAN verbose \"Produce some screen output\"\n{\n} \"no\"\n\nKEYWORD method \"Method to use\"\n{\n \"old\" :: \"Use old method\"\n \"new\" :: \"Use new method\"\n} \"old\"\n\n\nINT num_regions \"Number of no-excision regions\"\n{\n 0:10 :: \"\"\n} 0\n\nBOOLEAN overwrite_geometry[10] \"Set the geometry to Minkowski\"\n{\n} \"yes\"\n\nREAL Minkowski_scale[10] \"Scaling factor for Minkowski\"\n{\n (*:*) :: \"Choose 1 for true Minkowski\"\n} 1.0\n\n\n\nBOOLEAN overwrite_lapse[10] \"Set the lapse to one\"\n{\n} \"yes\"\n\nREAL lapse_scale[10] \"Scaling factor for lapse\"\n{\n (*:*) :: \"Choose 1 for geodesic slicing, 0 to halt evolution\"\n} 1.0\n\n\n\nBOOLEAN overwrite_shift[10] \"Set the shift to zero\"\n{\n} \"yes\"\n\n\n\nREAL centre_x[10] \"x-coordinate of the centre of the region\"\n{\n (*:*) :: \"\"\n} 0.0\n\nREAL centre_y[10] \"y-coordinate of the centre of the region\"\n{\n (*:*) :: \"\"\n} 0.0\n\nREAL centre_z[10] \"z-coordinate of the centre of the region\"\n{\n (*:*) :: \"\"\n} 0.0\n\nKEYWORD region_shape[10] \"Shape of the region\"\n{\n \"sphere\" :: \"use radius\"\n \"ellipsoid\" :: \"use radius_x, radius_y, and radius_z\"\n \"surface\" :: \"use a spherical surface shape\"\n} \"sphere\"\n\nREAL radius[10] \"Radius of the region\"\n{\n 0.0:*) :: \"\"\n} 1.0\n\nREAL radius_x[10] \"x-radius of the region\"\n{\n 0.0:*) :: \"\"\n} 1.0\n\nREAL radius_y[10] \"y-radius of the region\"\n{\n 0.0:*) :: \"\"\n} 1.0\n\nREAL radius_z[10] \"z-radius of the region\"\n{\n 0.0:*) :: \"\"\n} 1.0\n\nINT surface_index[10] \"Spherical surface index\"\n{\n 0:* :: \"must be an index of a spherical surface\"\n} 0\n\n\n\nBOOLEAN reduce_rhs[10] \"Reduce RHS\"\n{\n} \"no\"\n\nREAL reduction_factor[10] \"Reduction factor for RHS (0=complete, 1=no reduction)\"\n{\n *:* :: \"\"\n} 0.0\n\n\n\nKEYWORD smoothing_function[10] \"Smoothing function\"\n{\n \"linear\" :: \"linear ramp\"\n \"spline\" :: \"cubic spline ramp\"\n \"cosine\" :: \"cosine ramp\"\n} \"linear\"\n\nREAL smoothing_zone_width[10] \"Relative width of smoothing zone inside the region\"\n{\n 0.0:1.0 :: \"\"\n} 0.0\n\nINT smoothing_iterations \"Smoothing iterations\"\n{\n 0:* :: \"\"\n} 10\n\nREAL smoothing_factor \"Initial moothing factor\"\n{\n (0:2) :: \"\"\n} 1.2\n\n\n\nBOOLEAN smooth_regions \"Smooth overwritten regions?\"\n{\n} \"no\"\n\nINT smoothing_order \"Order of the derivatives used for CG smoothing\"\n{\n 2:6:2 :: \"\"\n} 6\n\nREAL smoothing_eps \"CG smoothing stop criteria\"\n{\n (0.0:* :: \"\"\n} 1e-6\n\nBOOLEAN use_user_regions \"Use user defined regions for the smoothing regions\"\n{\n} \"no\"\n", "schedule": "# Schedule definitions for thorn NoExcision\n# $Header$\n\nSTORAGE: reduction_mask\n\nif (CCTK_EQUALS(method,\"old\")) {\n SCHEDULE NoExcision_Overwrite IN ADMBase_PostInitial\n {\n LANG: Fortran\n WRITES: ADMBASE::metric(everywhere), ADMBASE::curv(everywhere)\n } \"Overwrite regions with Minkowski\"\n}\n\nif (CCTK_Equals(method,\"new\")) {\n schedule NoExcision_SetSym at CCTK_BASEGRID\n {\n LANG: Fortran\n WRITES: ADMBASE::metric(everywhere), ADMBASE::curv(everywhere)\n } \"Register the symmetries for the conjugate gradient functions.\"\n}\n\nif (smooth_regions) {\n if (CCTK_Equals(method,\"old\")) {\n SCHEDULE NoExcision_Smooth IN ADMBase_PostInitial AFTER NoExcision_Overwrite\n {\n LANG: Fortran\n } \"Smooth regions\"\n } else {\n \n if (use_user_regions) {\n SCHEDULE NoExcision_Set_Zero IN ADMBase_PostInitial BEFORE NoExcision_CGSmoothing\n {\n LANG: Fortran\n } \"Set variables to zero in user defined regions\"\n }\n\n SCHEDULE GROUP NoExcision_CGSmoothing IN ADMBase_PostInitial\n {\n STORAGE: cg_res_metric, cg_res_curv, cg_res_shift, cg_res_lapse\n STORAGE: cg_d_metric, cg_d_curv, cg_d_shift, cg_d_lapse\n STORAGE: cg_q_metric, cg_q_curv, cg_q_shift, cg_q_lapse\n STORAGE: cg_red_all\n STORAGE: smask\n STORAGE: loop_control\n\n } \"Conjugate Gradient smoothing\"\n\n SCHEDULE CopyMask IN NoExcision_CGSmoothing\n {\n LANG: C\n OPTIONS: global loop-local\n } \"Copy the weight function from CarpetReduce\"\n\n SCHEDULE NoExcision_CGInit_1 IN NoExcision_CGSmoothing AFTER CopyMask\n {\n LANG: Fortran\n READS: admbase::metric, admbase::curv, admbase::alp, admbase::shift\n READS: red_mask\n WRITES: cg_res_shift(Everywhere), cg_res_lapse(Everywhere),\n cg_d_metric(Everywhere), cg_d_curv(Everywhere), cg_red_all(Everywhere),\n cg_d_lapse(Everywhere), cg_d_shift(Everywhere)\n WRITES: cg_q_metric(Everywhere), cg_q_shift(Everywhere),\n cg_q_curv(Everywhere), cg_q_lapse(Everywhere)\n WRITES: loop_control\n WRITES: nes_mask(Everywhere), cg_res_metric(Everywhere), cg_res_curv(Everywhere)\n } \"Initialise the conjugate gradient method 1\"\n\n SCHEDULE NoExcision_CGApplySym AS NoExcision_CGApplySym_p1 IN NoExcision_CGSmoothing AFTER NoExcision_CGInit_1\n {\n LANG: Fortran\n SYNC: cg_d_metric\n SYNC: cg_d_curv\n SYNC: cg_d_shift\n SYNC: cg_d_lapse\n SYNC: cg_res_metric\n SYNC: cg_res_curv\n SYNC: cg_res_shift\n SYNC: cg_res_lapse\n SYNC: cg_red_all\n } \"Select variables for boundary conditions 1\"\n\n SCHEDULE GROUP ApplyBCs AS NoExcision_CGApplyBCs_p1 IN NoExcision_CGSmoothing AFTER NoExcision_CGApplySym_p1\n {\n } \"Apply boundary conditions (Symmetries) 1\"\n\n SCHEDULE NoExcision_CGInit_2 IN NoExcision_CGSmoothing AFTER NoExcision_CGApplySym_p1\n {\n LANG: Fortran\n READS: admbase::alp(Everywhere), admbase::gxx(Everywhere)\n OPTIONS: level\n } \"Initialise the conjugate gradient method 2\"\n\n SCHEDULE GROUP NoExcision_Smoothing IN NoExcision_CGSmoothing AFTER NoExcision_CGInit_2 while NoExcision::loop_control\n {\n } \"Smooth regions\"\n\n SCHEDULE NoExcision_CG_1 IN NoExcision_Smoothing\n {\n LANG: Fortran\n } \"Conjugate gradients step 1\"\n\n SCHEDULE NoExcision_CGApplySym AS NoExcision_CGApplySym_p2 IN NoExcision_Smoothing AFTER NoExcision_CG_1\n {\n LANG: Fortran\n SYNC: cg_q_metric\n SYNC: cg_q_curv\n SYNC: cg_q_shift\n SYNC: cg_q_lapse\n SYNC: cg_red_all\n } \"Select variables for boundary conditions 2\"\n\n SCHEDULE GROUP ApplyBCs AS NoExcision_CGApplyBCs_p2 IN NoExcision_Smoothing AFTER NoExcision_CGApplySym_p2\n {\n } \"Apply boundary conditions (Symmetries) 2\"\n\n SCHEDULE NoExcision_CG_2 IN NoExcision_Smoothing AFTER NoExcision_CG_1\n {\n LANG: Fortran\n OPTIONS: level\n } \"Conjugate gradients step 2\"\n\n SCHEDULE NoExcision_CG_3 IN NoExcision_Smoothing\n {\n LANG: Fortran\n } \"Conjugate gradients step 3\"\n\n SCHEDULE NoExcision_CGApplySym AS NoExcision_CGApplySym_p3 IN NoExcision_Smoothing AFTER NoExcision_CG_3\n {\n LANG: Fortran\n SYNC: cg_res_metric\n SYNC: cg_res_curv\n SYNC: cg_res_shift\n SYNC: cg_res_lapse\n SYNC: metric\n SYNC: curv\n SYNC: shift\n SYNC: lapse\n SYNC: cg_red_all\n } \"Select variables for boundary conditions 3\"\n\n SCHEDULE GROUP ApplyBCs AS NoExcision_CGApplyBCs_p3 IN NoExcision_Smoothing AFTER NoExcision_CGApplySym_p3\n {\n } \"Apply boundary conditions (Symmetries) 3\"\n\n SCHEDULE NoExcision_CG_4 IN NoExcision_Smoothing AFTER NoExcision_CG_1\n {\n LANG: Fortran\n OPTIONS: level\n } \"Conjugate gradients step 4\"\n\n SCHEDULE NoExcision_CG_5 IN NoExcision_Smoothing\n {\n LANG: Fortran\n } \"Conjugate gradients step 5\"\n\n SCHEDULE NoExcision_CGApplySym AS NoExcision_CGApplySym_p4 IN NoExcision_CGSmoothing AFTER NoExcision_CG_5\n {\n LANG: Fortran\n SYNC: cg_d_metric\n SYNC: cg_d_curv\n SYNC: cg_d_shift\n SYNC: cg_d_lapse\n } \"Select variables for boundary conditions 4\"\n\n SCHEDULE GROUP ApplyBCs AS NoExcision_CGApplyBCs_p4 IN NoExcision_CGSmoothing AFTER NoExcision_CGApplySym_p4\n {\n } \"Apply boundary conditions (Symmetries) 4\"\n }\n}\n\n#SCHEDULE NoExcision_OverwriteBSSN AT poststep\n#{\n# LANG: Fortran\n#} \"Overwrite regions with Minkowski\"\n\nSCHEDULE NoExcision_Reduce IN MoL_PostRHS\n{\n LANG: C\n} \"Reduce RHS\"\n", "src": { "make.code.deps": "cg.F90.o:\t\tNoExcision_mod.F90.o\n", diff --git a/EinsteinInitialData_ReadInterpolate.json b/EinsteinInitialData_ReadInterpolate.json index 68f03a7ba603527d34a256a51359079f6db8157d..2f4fe1efb65c26da8cdeb6775b2e52b9f78ed78b 100644 --- a/EinsteinInitialData_ReadInterpolate.json +++ b/EinsteinInitialData_ReadInterpolate.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteininitialdata.git", "configuration": "# Configuration definitions for thorn ReadInterpolate\n\nREQUIRES HDF5 Carpet IOUtil\n\nREQUIRES THORNS: Carpet IOUtil\n", "interface": "# Interface definition for thorn ReadInterpolate\nimplements: ReadInterpolate\ninherits: grid\n\nUSES INCLUDE HEADER: carpet.hh\n\nCCTK_INT reflevelseen[max_number_of_read_variables] TIMELEVELS=1 TYPE=gf TAGS='Checkpoint=\"no\" Prolongation=\"none\"' \"highest refinement level in source data that overlaps this point so far\"\nCCTK_INT interpthispoint TYPE=gf TAGS='Checkpoint=\"no\" Prolongation=\"none\"' \"fill this point this time around\"\nCCTK_REAL interp_coords TYPE=gf TAGS='Checkpoint=\"no\" Prolongation=\"none\"'\n{\n interp_x, interp_y, interp_z, interp_data\n} \"coordinate arrays for the interpolator\"\n\nCCTK_REAL test_values TIMELEVELS=3 TYPE=gf TAGS='Checkpoint=\"yes\" ProlongationOperator=\"none\"' \"store values for test\"\nCCTK_REAL test_results TIMELEVELS=1 TYPE=gf TAGS='Checkpoint=\"no\" ProlongationOperator=\"none\"' \"difference values for test\"\n\n#########################################\n### Aliased functions from Boundary ###\n#########################################\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBCI(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_INT IN group_index, CCTK_STRING IN bc_name)\n\nUSES FUNCTION Boundary_SelectGroupForBCI\n\n#########################################\n### Aliased functions from Carpet ###\n#########################################\n\nCCTK_INT FUNCTION \\\n GetTimeLevel \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\n\nUSES FUNCTION GetTimeLevel\n\nCCTK_INT FUNCTION \\\n GetRefinementLevel \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\n\nUSES FUNCTION GetRefinementLevel\n", - "params": "", + "param": "# Parameter definitions for thorn ReadInterpolate\n\n## File and dataset selection\n##\n\n# we use IO::filereader_ID_dir as the folder part of the filename\nSTRING files \"List of basenames of files to read in as initial data (e.g. omit the .file_XXX.h5 part)\"\n{\n \".+\" :: \"Space-separated list of initial data filenames\"\n \"^$\" :: \"An empty string for not recovering initial data\"\n} \"\"\n\n# points to note:\n# * white space a the beginning and end of a regex is removed\n# * to include it, protect it in a [ ]\n# * the Cactus regex function does not return a distinct error code for invalid regex and no match\n# ** this means that invalid regex are caught as \"matches nothing\" at the end\n# * the '[:]' construct is used because the param.ccl parser cannot handle\n# \"::\", the actual regex in parameter files are fine and no '[:]' is needed\n#\n# * curerntly we HARD code conditions so that only map=0 datasets are read\nSTRING only_these_datasets \"comma separated list of dataset regular expression patterns to consider for reading\"\n{\n \".+\" :: \"any valid Cactus regular expression\"\n \"ADMBASE[:][:]g[xyz][xyz].*rl=6\" :: \"refinement level 6, all metric\"\n \":g[xyz][xyz],:rho\" :: \"metric and rho everywhere\"\n} \".*\"\n\nCCTK_INT max_number_of_read_variables \"how many variables will be read in?\"\n{\n 1:* :: \"any positive number\"\n} 1\n\nINT minimum_reflevel \"ignore any datasets with refinement level less than this\"\n{\n 0:* :: \"minimum refinement level to keep\"\n} 0\n\nINT maximum_reflevel \"ignore any datasets with refinement level higher than this\"\n{\n 0:* :: \"maximum refinement level to keep\"\n} 1000\n\n## Some Carpet version contain a bug and do not set \"origin\" correctly for cell\n# centered grids (it is off by half a grid point, ie it does not take the\n# staggering into account). This option fixes this issue by offsetting all\n# datasets that should be offset. This is WRONG for files where Carpet already\n# used the correct \"origin\".\n# This parameter ONLY affects cell centered INPUT data.\nBOOLEAN fix_cell_centered_origins \"offset rl>1 cell centered input data by half a grid step to fix broken HDF5 files\"\n{\n} \"no\"\n\n## Interpolator and patch placement option\n##\n\nREAL shift_read_datasets_by[3] \"add to all read in coordinates\"\n{\n *:* :: \"what used to be origin in datasets appear here\"\n} 0.0\n\nSTRING interpolator_name \"Which interpolator should I use\"\n{\n \".+\" :: \"Any nonempty string\"\n} \"Hermite polynomial interpolation\"\n\nSTRING interpolator_pars \"Parameters for the interpolator\"\n{\n \".*\" :: \"Any string that Util_TableSetFromString() will take\"\n} \"order=3 boundary_off_centering_tolerance={1e12 1e12 1e12 1e12 1e12 1e12} boundary_extrapolation_tolerance={1e-12 1e-12 1e-12 1e-12 1e-12 1e-12}\"\n\nREAL epsilon \"Tolerance when deciding if a grid point lies within an overlap region\"\n{\n 0:* :: \"any positive number, should be similar to AEILocalInterp's tolerance\"\n} 1e-12\n\nINT interpolator_half_width \"maximum number of points to one side of the interpolated location the interpolator uses\"\n{\n 1:* :: \"this is similar to cctk_nghostzones, 1 for linear and constant interpolation\"\n 2:* :: \"2nd for second order and 3rd interpolation\"\n -1 :: \"use cctk_nghostzones\"\n} -1\n\n# The above makes sure that the interpolator doesn't off-centre the\n# interpolation stencil if there are insufficient points to\n# interpolate, which can happen if there are insufficient ghost-zones\n# for the interpolation method used, and can lead to processor-number\n# dependent results.\n\n# enforcing the symmetry is done by selecting each group in which a variable\n# was read for the \"none\" bc and applying the BC afterwards\nBOOLEAN enforce_symmetries_after_reading \"apply symmetry boundary conditions after reading data\"\n{\n} \"no\"\n\n## misc option\n##\n\nINT verbosity \"how much diagnostic output to produce\"\n{\n 0:0 :: \"only errors\"\n 1:1 :: \"warn about suspicous states\"\n 2:* :: \"more and more detailed debug output (values up to 10 are defined. 10 is very verbose.)\"\n} 1\n\nkeyword test \"control how test data is used\"\n{\n \"no\" :: \"do not use test data\"\n \"generate\" :: \"generate test data\"\n \"compare\" :: \"compare read data to test data\"\n} \"no\"\n\nSHARES: IO\n\nUSES STRING filereader_ID_dir\n", "schedule": "# Schedule definitions for thorn ReadInterpolate\n\nif(CCTK_EQUALS(test, \"generate\") || CCTK_EQUALS(test, \"compare\")) {\n STORAGE: test_values[3] test_results\n}\n\nschedule ReadInterpolate_ParamCheck in CCTK_PARAMCHECK\n{\n LANG: C\n OPTIONS: global\n} \"Sanity check given parameters\"\n\nif(CCTK_EQUALS(test, \"no\") || CCTK_EQUALS(test, \"compare\")) {\n schedule GROUP ReadInterpolate_ReadData IN CCTK_INITIAL AFTER ADMBase_InitialData AFTER HydroBase_Initial BEFORE ADMBase_PostInitial BEFORE HydroBase_Prim2ConInitial\n {\n } \"Read in datasets from disk\"\n\n # need to schedule late apparently for CartGrid3d to finish setting up the\n # coordinates (I think)\n schedule ReadInterpolate_Read IN ReadInterpolate_ReadData\n {\n LANG: C\n OPTIONS: level\n STORAGE: reflevelseen interpthispoint interp_coords\n } \"Read in datasets\"\n\n schedule ReadInterpolate_FreeCache IN CCTK_POSTPOSTINITIAL\n {\n LANG: C\n OPTIONS: global\n } \"Free memory used for dataset caches\"\n\n if(enforce_symmetries_after_reading) {\n schedule ReadInterpolate_EnforceSymmetry IN ReadInterpolate_ReadData AFTER ReadInterpolate_Read\n {\n LANG: C\n OPTIONS: level\n } \"Enforce symmeries if desired\"\n\n schedule group ApplyBCs AS ReadInterpolate_ApplyBCs IN ReadInterpolate_ReadData AFTER ReadInterpolate_EnforceSymmetry\n {\n } \"Apply symmetry conditions to read in variables\"\n }\n}\n\nif(CCTK_EQUALS(test, \"generate\")) {\n schedule ReadInterpolate_GenerateTestData IN CCTK_INITIAL\n {\n LANG: C\n } \"Generate polynomial test data\"\n}\n\nif(CCTK_EQUALS(test, \"compare\")) {\n schedule ReadInterpolate_CompareTestData IN CCTK_POSTPOSTINITIAL\n {\n LANG: C\n } \"Compare to polynomial test data\"\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn ReadInterpolate\n\n# Source files in this directory\nSRCS = \\\n interpolate.cc \\\n paramcheck.c \\\n read.c \\\n test.c \\\n $(NULL)\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/EinsteinInitialData_RotatingDBHIVP.json b/EinsteinInitialData_RotatingDBHIVP.json index 4ec1dbb11bfc28cf8dd848fb5550d268ea4d1649..e63c0ea01b4229126e98d1447bd38be46b425d12 100644 --- a/EinsteinInitialData_RotatingDBHIVP.json +++ b/EinsteinInitialData_RotatingDBHIVP.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteininitialdata.git", "configuration": "", "interface": "# Interface definition for thorn RotatingDBHIVP\n# $Header$\n\nimplements: rotatingdbhivp\ninherits: ADMBase grid StaticConformal\n\nprivate:\n\nreal sph_to_car_coord TYPE=GF\n{\neta,\nabseta,\nsign_eta,\nq,\nphi\n} \"coordinate\"\n\nreal sph_to_car_psi TYPE=GF\n{\npsi3d,\ndetapsi3d,\ndqpsi3d,\ndphipsi3d,\ndetaetapsi3d,\ndetaqpsi3d,\ndetaphipsi3d,\ndqqpsi3d,\ndqphipsi3d,\ndphiphipsi3d\n}\"psi\"\n\n\n\n", - "params": "", + "param": "# Parameter definitions for thorn RotatingDBHIVP\n# $Header$\n\nshares: StaticConformal\n\nUSES KEYWORD conformal_storage\n\nshares:ADMBase\n\nUSES KEYWORD metric_type\n\nEXTENDS KEYWORD initial_lapse \n{\n \"schwarz\" :: \"Set lapse to Schwarzschild\"\n}\n\nEXTENDS KEYWORD initial_data \n{\n \"rotatingdbh\" :: \"Non-Aix BH + Brill Wave IVP\"\n}\n\nprivate:\n\nBOOLEAN kerr_slice \"initial slice for kerr\"\n{\n} \"no\"\n\nBOOLEAN kerr_shift \"kerr shift\"\n{\n} \"no\"\n\nREAL amp \"Brill wave amplitude\"\n{\n *:* :: \"No restriction\"\n} 0.1\n\nREAL eta0 \"Brill wave center (in eta coords)\"\n{\n *:* :: \"No restriction\"\n} 0.0\n\nREAL sigma \"Brill wave width (in eta)\"\n{\n *:* :: \"No restriction\"\n} 1.0\n\nREAL byJ \"Bowen York Angular momenta\"\n{\n *:* :: \"No restriction\"\n} 1.0\n\nREAL mm \"Azimuthal dependence factor\"\n{\n *:* :: \"No restriction\"\n} 0.0\n\nREAL etamax \"Eta value for outer edge of grid\"\n{\n *:* :: \"No restriction\"\n} 5.0\n\n\nINT neta \"Eta resolution for solve\"\n{\n *:* :: \"No restriction\"\n} 202\n\nINT ntheta \"Theta resolution for solve\"\n{\n *:* :: \"No restriction\"\n} 54\n\nINT nphi \"Eta resolution for solve\"\n{\n *:* :: \"No restriction\"\n} 5\n\nBOOLEAN verbose \"\"\n{\n} \"yes\"\n\nINT interpolation_order \"Order for interpolation\" STEERABLE = ALWAYS\n{\n 1:3 :: \"Choose between first, second, and third-order\"\n} 1\n\n\n", "schedule": "# Schedule definitions for thorn RotatingDBHIVP\n# $Header$\n\nif (CCTK_Equals(initial_data,\"rotatingdbh\"))\n{ \n STORAGE: sph_to_car_coord, sph_to_car_psi\n\n schedule RotatingDBHIVP_ParamCheck at PARAMCHECK\n {\n LANG: C\n } \"Check Parameters\"\n\n schedule RotatingDBHIVP IN ADMBase_InitialData\n {\n LANG: Fortran\n } \"Construct RotatingDBHIVP\"\n}\n\n", "src": { "ksq_odd.x": " o1 = mm**2\n o2 = 5.0000000000000d1*o1\n o3 = -8.0000000000000d1 + o2\n o4 = 1/o3\n o5 = 2.00000000000000d0*qgrd(j)\n o6 = cos(o5)\n o7 = 5.0000000000000d0*o6\n o8 = 3.00000000000000d0 + o7\n o9 = dnnnnngtil\n o10 = mm*phigrd(k)\n o11 = sin(o10)\n o12 = sin(qgrd(j))\n o13 = o12**2\n o14 = o13**2\n o15 = 2.50000000000000d1*o1\n o16 = -4.0000000000000d1 + o15\n o17 = 1/o16\n o18 = dnnngtil\n o19 = 2.00000000000000d1*o1\n o20 = -3.2000000000000d1 + o19\n o21 = 1/o20\n o22 = dngtil\n o23 = 5.0000000000000d0*o1\n o24 = -8.0000000000000d0 + o23\n o25 = 1/o24\n o26 = cos(o10)\n o27 = cos(qgrd(j))\n o28 = 1.03000000000000d2*o1\n o29 = -9.2800000000000d2 + o28\n o30 = o12*o13\n o31 = 3.5000000000000d1*o1\n o32 = -8.3000000000000d1 + o31\n o33 = -1.60000000000000d1 + o1\n o34 = dnnnnnnngtil\n o35 = 4.0000000000000d0*qgrd(j)\n o36 = cos(o35)\n o37 = dnnnngtil\n o38 = 1.00000000000000d1*o1\n o39 = -1.60000000000000d1 + o38\n o40 = 1/o39\n o41 = dnngtil\n o42 = dnnnnnngtil\n o43 = o27**2\n o44 = gtil\n o45 = o13*o14\n o46 = 1.07000000000000d2*o1\n o47 = 5.3000000000000d1*o1\n o48 = sin(o5)\n o49 = byJ**2\n o50 = o24**2\n o51 = 1/o50\n o52 = o26**2\n o53 = o37**2\n o54 = o1**2\n o55 = o6**2\n o56 = o36**2\n o57 = o39**2\n o58 = 1/o57\n o59 = o41**2\n o60 = o9**2\n o61 = o16**2\n o62 = 1/o61\n o63 = o18**2\n o64 = o20**2\n o65 = 1/o64\n o66 = o22**2\n o67 = o11**2\n o68 = o1*o54\n o69 = o3**2\n o70 = 1/o69\n o71 = o42**2\n o72 = o34**2\n o73 = o14**2\n o74 = o48**2\n o75 = o43**2\n o76 = o44**2\n t1 = -1.00800000000000d2*byJ*o13*o25*o26*o37 - 1.39500000000000d1*\n & byJ*o1*o13*o25*o26*o37 - 9.7440000000000d2*byJ*o13*o25*o26*o36*o37 +\n & 1.08150000000000d2*byJ*o1*o13*o25*o26*o36*o37 + 1.33200000000000d\n & 3*byJ*o13*o26*o40*o41 - 4.6800000000000d2*byJ*o1*o13*o26*o40*o41 + 6\n & .9720000000000d3*byJ*o13*o26*o36*o40*o41 - 2.94000000000000d3*byJ*o1\n & *o13*o26*o36*o40*o41 - 9.6000000000000d2*byJ*o14*o26*o4*o42 + 6.00\n & 00000000000d1*byJ*o1*o14*o26*o4*o42 - 1.80000000000000d2*byJ*o14*o26\n & *o44 + 7.2000000000000d2*byJ*o13*o26*o43*o44 - 2.70000000000000d3*\n & byJ*o14*o26*o43*o44 + 4.5000000000000d2*byJ*o26*o44*o45 + 1.80000000\n & 000000d1*o13*o49 - 3.7296000000000d3*o13*o25*o37*o40*o41*o52 + 7\n & .9425000000000d2*o1*o13*o25*o37*o40*o41*o52 - 5.5574400000000d4*\n & o13*o25*o36*o37*o40*o41*o52 + 2.21991000000000d4*o1*o13*o25*o36*\n & o37*o40*o41*o52 + 2.68800000000000d3*o14*o25*o37*o4*o42*o52 + 2.\n & 04000000000000d2*o1*o14*o25*o37*o4*o42*o52 + 2.59840000000000d4*\n & o14*o25*o36*o37*o4*o42*o52 - 4.5080000000000d3*o1*o14*o25*o36*o3\n & 7*o4*o42*o52 - 3.5520000000000d4*o14*o4*o40*o41*o42*o52 + 1.4700\n & 0000000000d4*o1*o14*o4*o40*o41*o42*o52 - 1.85920000000000d5*o14*\n & o36*o4*o40*o41*o42*o52 + 9.0020000000000d4*o1*o14*o36*o4*o40*o41\n & *o42*o52\n t2 = -1.10400000000000d5*o14*o17*o18*o21*o22*o43*o52 + 2.9160000\n & 0000000d4*o1*o14*o17*o18*o21*o22*o43*o52 + 5.0400000000000d2*o14\n & *o25*o37*o44*o52 + 6.9750000000000d1*o1*o14*o25*o37*o44*o52 + 4.\n & 8720000000000d3*o14*o25*o36*o37*o44*o52 - 5.4075000000000d2*o1*o\n & 14*o25*o36*o37*o44*o52 - 6.6600000000000d3*o14*o40*o41*o44*o52 +\n & 2.34000000000000d3*o1*o14*o40*o41*o44*o52 - 3.4860000000000d4*o\n & 14*o36*o40*o41*o44*o52 + 1.47000000000000d4*o1*o14*o36*o40*o41*o\n & 44*o52 - 2.01600000000000d3*o13*o25*o37*o43*o44*o52 - 2.79000000\n & 000000d2*o1*o13*o25*o37*o43*o44*o52 + 7.5600000000000d3*o14*o25*\n & o37*o43*o44*o52 + 1.04625000000000d3*o1*o14*o25*o37*o43*o44*o52 \n & - 1.94880000000000d4*o13*o25*o36*o37*o43*o44*o52 + 2.16300000000\n & 000d3*o1*o13*o25*o36*o37*o43*o44*o52 + 7.3080000000000d4*o14*o25\n & *o36*o37*o43*o44*o52 - 8.1112500000000d3*o1*o14*o25*o36*o37*o43*\n & o44*o52 + 2.66400000000000d4*o13*o40*o41*o43*o44*o52 - 9.3600000\n & 000000d3*o1*o13*o40*o41*o43*o44*o52 - 9.9900000000000d4*o14*o40*\n & o41*o43*o44*o52 + 3.5100000000000d4*o1*o14*o40*o41*o43*o44*o52 +\n & 1.39440000000000d5*o13*o36*o40*o41*o43*o44*o52 - 5.880000000000\n & 0d4*o1*o13*o36*o40*o41*o43*o44*o52 - 5.2290000000000d5*o14*o36*o\n & 40*o41*o43*o44*o52 + 2.20500000000000d5*o1*o14*o36*o40*o41*o43*o\n & 44*o52 - 1.92000000000000d4*o14*o4*o42*o43*o44*o52\n t3 = 1.20000000000000d3*o1*o14*o4*o42*o43*o44*o52 - 7.6800000000\n & 000d3*o17*o21*o22*o34*o43*o45*o52 + 1.44000000000000d3*o1*o17*o2\n & 1*o22*o34*o43*o45*o52 - 1.26000000000000d3*o25*o37*o44*o45*o52 -\n & 1.74375000000000d2*o1*o25*o37*o44*o45*o52 - 1.21800000000000d4*\n & o25*o36*o37*o44*o45*o52 + 1.35187500000000d3*o1*o25*o36*o37*o44*\n & o45*o52 + 1.66500000000000d4*o40*o41*o44*o45*o52 - 5.85000000000\n & 00d3*o1*o40*o41*o44*o45*o52 + 8.7150000000000d4*o36*o40*o41*o44*\n & o45*o52 - 3.6750000000000d4*o1*o36*o40*o41*o44*o45*o52 + 4.80000\n & 00000000d3*o4*o42*o44*o45*o52 - 3.00000000000000d2*o1*o4*o42*o44\n & *o45*o52 + 7.2000000000000d4*o4*o42*o43*o44*o45*o52 - 4.50000000\n & 00000d3*o1*o4*o42*o43*o44*o45*o52 + 1.41120000000000d2*o13*o51*o\n & 52*o53 + 3.9060000000000d1*o1*o13*o51*o52*o53 + 2.72832000000000\n & d3*o13*o36*o51*o52*o53 + 7.4760000000000d1*o1*o13*o36*o51*o52*o5\n & 3 + 1.81350000000000d2*o13*o25*o37*o40*o41*o52*o54 - 2.667000000\n & 00000d2*o13*o25*o36*o37*o40*o41*o52*o54 - 2.32500000000000d1*o14\n & *o25*o37*o4*o42*o52*o54 + 1.80250000000000d2*o14*o25*o36*o37*o4*\n & o42*o52*o54 - 7.8000000000000d2*o14*o4*o40*o41*o42*o52*o54 - 4.9\n & 000000000000d3*o14*o36*o4*o40*o41*o42*o52*o54 - 1.92000000000000\n & d3*o14*o17*o18*o21*o22*o43*o52*o54 - 6.0000000000000d1*o17*o21*o\n & 22*o34*o43*o45*o52*o54\n t4 = 2.70281250000000d0*o13*o51*o52*o53*o54 - 4.1908125000000d1*\n & o13*o36*o51*o52*o53*o54 - 2.74432000000000d4*o13*o25*o37*o40*o41\n & *o52*o55 + 9.5432000000000d3*o1*o13*o25*o37*o40*o41*o52*o55 + 1.\n & 14688000000000d4*o14*o25*o37*o4*o42*o52*o55 - 4.2560000000000d2*\n & o1*o14*o25*o37*o4*o42*o52*o55 - 1.20064000000000d5*o14*o4*o40*o4\n & 1*o42*o52*o55 + 5.2304000000000d4*o1*o14*o4*o40*o41*o42*o52*o55 \n & - 1.99200000000000d6*o14*o17*o18*o21*o22*o43*o52*o55 + 2.0850000\n & 0000000d6*o1*o14*o17*o18*o21*o22*o43*o52*o55 + 1.31072000000000d\n & 3*o13*o51*o52*o53*o55 + 6.6560000000000d1*o1*o13*o51*o52*o53*o55\n & + 2.60000000000000d2*o13*o25*o37*o40*o41*o52*o54*o55 - 1.820000\n & 00000000d1*o14*o25*o37*o4*o42*o52*o54*o55 - 2.80000000000000d3*o\n & 14*o4*o40*o41*o42*o52*o54*o55 - 5.2500000000000d5*o14*o17*o18*o2\n & 1*o22*o43*o52*o54*o55 + 8.4500000000000d-1*o13*o51*o52*o53*o54*o\n & 55 - 1.88708800000000d5*o13*o25*o37*o40*o41*o52*o56 + 1.00521050\n & 000000d5*o1*o13*o25*o37*o40*o41*o52*o56 + 1.31868800000000d4*o13\n & *o51*o52*o53*o56 - 2.92726000000000d3*o1*o13*o51*o52*o53*o56 - 8\n & .8322500000000d3*o13*o25*o37*o40*o41*o52*o54*o56 + 1.62450312500\n & 000d2*o13*o51*o52*o53*o54*o56 + 2.46420000000000d4*o13*o52*o58*o\n & 59 - 1.73160000000000d4*o1*o13*o52*o58*o59 + 2.57964000000000d5*\n & o13*o36*o52*o58*o59 - 1.99416000000000d5*o1*o13*o36*o52*o58*o59\n t5 = 3.04200000000000d3*o13*o52*o54*o58*o59 + 3.8220000000000d4*\n & o13*o36*o52*o54*o58*o59 + 1.43648000000000d5*o13*o52*o55*o58*o59\n & - 1.07200000000000d5*o1*o13*o52*o55*o58*o59 + 2.00000000000000d\n & 4*o13*o52*o54*o55*o58*o59 + 6.7512200000000d5*o13*o52*o56*o58*o5\n & 9 - 5.6938000000000d5*o1*o13*o52*o56*o58*o59 + 1.20050000000000d\n & 5*o13*o52*o54*o56*o58*o59 - 3.07200000000000d2*byJ*o13*o25*o26*o37\n & *o6 - 7.8000000000000d0*byJ*o1*o13*o25*o26*o37*o6 + 3.216000000000\n & 0d3*byJ*o13*o26*o40*o41*o6 - 1.20000000000000d3*byJ*o1*o13*o26*o40*o\n & 41*o6 - 1.34400000000000d3*byJ*o14*o26*o4*o42*o6 + 8.4000000000000\n & d1*byJ*o1*o14*o26*o4*o42*o6 - 2.03712000000000d4*o13*o25*o37*o40*o\n & 41*o52*o6 + 5.8188000000000d3*o1*o13*o25*o37*o40*o41*o52*o6 - 1.\n & 46540800000000d5*o13*o25*o36*o37*o40*o41*o52*o6 + 6.571880000000\n & 0d4*o1*o13*o25*o36*o37*o40*o41*o52*o6 + 1.19552000000000d4*o14*o\n & 25*o37*o4*o42*o52*o6 - 1.84000000000000d1*o1*o14*o25*o37*o4*o42*\n & o52*o6 + 3.6377600000000d4*o14*o25*o36*o37*o4*o42*o52*o6 - 6.311\n & 2000000000d3*o1*o14*o25*o36*o37*o4*o42*o52*o6 - 1.35488000000000\n & d5*o14*o4*o40*o41*o42*o52*o6 + 5.7940000000000d4*o1*o14*o4*o40*o\n & 41*o42*o52*o6 - 2.60288000000000d5*o14*o36*o4*o40*o41*o42*o52*o6\n & + 1.26028000000000d5*o1*o14*o36*o4*o40*o41*o42*o52*o6 + 9.50400\n & 00000000d5*o14*o17*o18*o21*o22*o43*o52*o6\n t6 = -6.3960000000000d5*o1*o14*o17*o18*o21*o22*o43*o52*o6 + 1.53\n & 600000000000d3*o14*o25*o37*o44*o52*o6 + 3.9000000000000d1*o1*o14\n & *o25*o37*o44*o52*o6 - 1.60800000000000d4*o14*o40*o41*o44*o52*o6 \n & + 6.0000000000000d3*o1*o14*o40*o41*o44*o52*o6 - 6.1440000000000d\n & 3*o13*o25*o37*o43*o44*o52*o6 - 1.56000000000000d2*o1*o13*o25*o37\n & *o43*o44*o52*o6 + 2.30400000000000d4*o14*o25*o37*o43*o44*o52*o6 \n & + 5.8500000000000d2*o1*o14*o25*o37*o43*o44*o52*o6 + 6.4320000000\n & 000d4*o13*o40*o41*o43*o44*o52*o6 - 2.40000000000000d4*o1*o13*o40\n & *o41*o43*o44*o52*o6 - 2.41200000000000d5*o14*o40*o41*o43*o44*o52\n & *o6 + 9.0000000000000d4*o1*o14*o40*o41*o43*o44*o52*o6 - 2.688000\n & 00000000d4*o14*o4*o42*o43*o44*o52*o6 + 1.68000000000000d3*o1*o14\n & *o4*o42*o43*o44*o52*o6 + 3.8400000000000d4*o17*o21*o22*o34*o43*o\n & 45*o52*o6 - 2.64000000000000d4*o1*o17*o21*o22*o34*o43*o45*o52*o6\n & - 3.8400000000000d3*o25*o37*o44*o45*o52*o6 - 9.7500000000000d1*\n & o1*o25*o37*o44*o45*o52*o6 + 4.0200000000000d4*o40*o41*o44*o45*o5\n & 2*o6 - 1.50000000000000d4*o1*o40*o41*o44*o45*o52*o6 + 6.72000000\n & 00000d3*o4*o42*o44*o45*o52*o6 - 4.2000000000000d2*o1*o4*o42*o44*\n & o45*o52*o6 + 1.00800000000000d5*o4*o42*o43*o44*o45*o52*o6 - 6.30\n & 00000000000d3*o1*o4*o42*o43*o44*o45*o52*o6 + 8.6016000000000d2*o\n & 13*o51*o52*o53*o6 + 1.40880000000000d2*o1*o13*o51*o52*o53*o6\n t7 = 8.3148800000000d3*o13*o36*o51*o52*o53*o6 - 7.1176000000000d\n & 2*o1*o13*o36*o51*o52*o53*o6 + 5.6640000000000d2*o13*o25*o37*o40*\n & o41*o52*o54*o6 - 2.96800000000000d3*o13*o25*o36*o37*o40*o41*o52*\n & o54*o6 - 4.5550000000000d1*o14*o25*o37*o4*o42*o52*o54*o6 + 2.523\n & 50000000000d2*o14*o25*o36*o37*o4*o42*o52*o54*o6 - 3.092000000000\n & 00d3*o14*o4*o40*o41*o42*o52*o54*o6 - 6.8600000000000d3*o14*o36*o\n & 4*o40*o41*o42*o52*o54*o6 + 6.9000000000000d4*o14*o17*o18*o21*o22\n & *o43*o52*o54*o6 + 1.50000000000000d3*o17*o21*o22*o34*o43*o45*o52\n & *o54*o6 + 3.02250000000000d0*o13*o51*o52*o53*o54*o6 - 2.34325000\n & 000000d1*o13*o36*o51*o52*o53*o54*o6 + 1.18992000000000d5*o13*o52\n & *o58*o59*o6 - 8.6208000000000d4*o1*o13*o52*o58*o59*o6 + 6.228320\n & 0000000d5*o13*o36*o52*o58*o59*o6 - 4.9504000000000d5*o1*o13*o36*\n & o52*o58*o59*o6 + 1.56000000000000d4*o13*o52*o54*o58*o59*o6 + 9.8\n & 000000000000d4*o13*o36*o52*o54*o58*o59*o6 + 6.1952000000000d2*o1\n & 4*o43*o51*o52*o60 - 1.93600000000000d2*o1*o14*o43*o51*o52*o60 + \n & 1.51250000000000d1*o14*o43*o51*o52*o54*o60 + 4.3059200000000d3*o\n & 14*o43*o51*o52*o55*o60 - 9.5584000000000d2*o1*o14*o43*o51*o52*o5\n & 5*o60 + 5.3045000000000d1*o14*o43*o51*o52*o54*o55*o60 - 3.266560\n & 0000000d3*o14*o43*o51*o52*o6*o60 + 8.7296000000000d2*o1*o14*o43*\n & o51*o52*o6*o60 - 5.6650000000000d1*o14*o43*o51*o52*o54*o6*o60\n t8 = 1.47200000000000d4*o18*o34*o43*o45*o52*o62 - 2.968000000000\n & 00d3*o1*o18*o34*o43*o45*o52*o62 + 1.28000000000000d2*o18*o34*o43\n & *o45*o52*o54*o62 - 5.3120000000000d4*o18*o34*o43*o45*o52*o6*o62 \n & + 2.57200000000000d4*o1*o18*o34*o43*o45*o52*o6*o62 - 1.400000000\n & 00000d3*o18*o34*o43*o45*o52*o54*o6*o62 + 1.05800000000000d5*o14*\n & o43*o52*o62*o63 - 2.94400000000000d4*o1*o14*o43*o52*o62*o63 + 2.\n & 04800000000000d3*o14*o43*o52*o54*o62*o63 + 1.37780000000000d6*o1\n & 4*o43*o52*o55*o62*o63 - 1.16200000000000d6*o1*o14*o43*o52*o55*o6\n & 2*o63 + 2.45000000000000d5*o14*o43*o52*o54*o55*o62*o63 - 7.63600\n & 00000000d5*o14*o43*o52*o6*o62*o63 + 4.2824000000000d5*o1*o14*o43\n & *o52*o6*o62*o63 - 4.4800000000000d4*o14*o43*o52*o54*o6*o62*o63 +\n & 2.88000000000000d4*o14*o43*o52*o65*o66 - 7.2000000000000d3*o1*o\n & 14*o43*o52*o65*o66 + 4.5000000000000d2*o14*o43*o52*o54*o65*o66 +\n & 7.2000000000000d5*o14*o43*o52*o55*o65*o66 - 9.0000000000000d5*o\n & 1*o14*o43*o52*o55*o65*o66 + 2.81250000000000d5*o14*o43*o52*o54*o\n & 55*o65*o66 - 2.88000000000000d5*o14*o43*o52*o6*o65*o66 + 2.16000\n & 000000000d5*o1*o14*o43*o52*o6*o65*o66 - 2.25000000000000d4*o14*o\n & 43*o52*o54*o6*o65*o66 - 2.10600000000000d4*o1*o14*o17*o18*o21*o2\n & 2*o67 - 6.7562000000000d4*o1*o14*o17*o18*o22*o25*o67 - 7.0180000\n & 000000d4*o1*o14*o17*o18*o22*o40*o67 + 1.92000000000000d3*o1*o14*\n & o17*o42*o43*o44*o67\n t9 = -3.3600000000000d3*o1*o17*o42*o43*o44*o45*o67 - 5.440000000\n & 0000d2*o1*o17*o25*o27*o30*o37*o42*o48*o67 + 1.98400000000000d3*o\n & 1*o17*o27*o30*o40*o41*o42*o48*o67 - 1.02000000000000d3*o1*o12*o2\n & 5*o27*o37*o44*o48*o67 + 1.78500000000000d3*o1*o25*o27*o30*o37*o4\n & 4*o48*o67 + 3.7200000000000d3*o1*o12*o27*o40*o41*o44*o48*o67 - 6\n & .5100000000000d3*o1*o27*o30*o40*o41*o44*o48*o67 + 4.625200000000\n & 0d4*o14*o17*o18*o22*o25*o54*o67 + 6.6494000000000d4*o14*o17*o18*\n & o22*o40*o54*o67 - 1.20000000000000d2*o14*o17*o42*o43*o44*o54*o67\n & + 2.10000000000000d2*o17*o42*o43*o44*o45*o54*o67 + 1.2200000000\n & 0000d2*o17*o25*o27*o30*o37*o42*o48*o54*o67 - 5.7200000000000d2*o\n & 17*o27*o30*o40*o41*o42*o48*o54*o67 + 1.65000000000000d2*o12*o25*\n & o27*o37*o44*o48*o54*o67 - 2.88750000000000d2*o25*o27*o30*o37*o44\n & *o48*o54*o67 - 8.4000000000000d2*o12*o27*o40*o41*o44*o48*o54*o67\n & + 1.47000000000000d3*o27*o30*o40*o41*o44*o48*o54*o67 - 5.850000\n & 0000000d4*o1*o14*o17*o18*o21*o22*o55*o67 - 1.42506000000000d5*o1\n & *o14*o17*o18*o22*o25*o55*o67 - 1.31652000000000d5*o1*o14*o17*o18\n & *o22*o40*o55*o67 + 9.2016000000000d4*o14*o17*o18*o22*o25*o54*o55\n & *o67 + 1.25082000000000d5*o14*o17*o18*o22*o40*o54*o55*o67 - 7.02\n & 00000000000d4*o1*o14*o17*o18*o21*o22*o6*o67 - 1.96332000000000d5\n & *o1*o14*o17*o18*o22*o25*o6*o67 - 1.92408000000000d5*o1*o14*o17*o\n & 18*o22*o40*o6*o67 - 1.29920000000000d3*o1*o17*o25*o27*o30*o37*o4\n & 2*o48*o6*o67 + 1.33760000000000d4*o1*o17*o27*o30*o40*o41*o42*o48\n & *o6*o67\n t10 = -2.43600000000000d3*o1*o12*o25*o27*o37*o44*o48*o6*o67 + 4.\n & 2630000000000d3*o1*o25*o27*o30*o37*o44*o48*o6*o67 + 2.5080000000\n & 0000d4*o1*o12*o27*o40*o41*o44*o48*o6*o67 - 4.3890000000000d4*o1*\n & o27*o30*o40*o41*o44*o48*o6*o67 + 1.30692000000000d5*o14*o17*o18*\n & o22*o25*o54*o6*o67 + 1.82664000000000d5*o14*o17*o18*o22*o40*o54*\n & o6*o67 + 1.08400000000000d2*o17*o25*o27*o30*o37*o42*o48*o54*o6*o\n & 67 - 6.5320000000000d3*o17*o27*o30*o40*o41*o42*o48*o54*o6*o67 + \n & 5.1000000000000d1*o12*o25*o27*o37*o44*o48*o54*o6*o67 - 8.9250000\n & 000000d1*o25*o27*o30*o37*o44*o48*o54*o6*o67 - 1.06800000000000d4\n & *o12*o27*o40*o41*o44*o48*o54*o6*o67 + 1.86900000000000d4*o27*o30\n & *o40*o41*o44*o48*o54*o6*o67 + 4.0960000000000d3*o1*o14*o60*o62*o\n & 67 - 5.1200000000000d2*o14*o54*o60*o62*o67 + 9.2160000000000d3*o\n & 1*o14*o55*o60*o62*o67 - 1.15200000000000d3*o14*o54*o55*o60*o62*o\n & 67 + 1.22880000000000d4*o1*o14*o6*o60*o62*o67 - 1.53600000000000\n & d3*o14*o54*o6*o60*o62*o67 + 2.63438000000000d5*o1*o14*o62*o63*o6\n & 7 - 1.49158000000000d5*o14*o54*o62*o63*o67 + 5.8030200000000d5*o\n & 1*o14*o55*o62*o63*o67 - 3.2531400000000d5*o14*o54*o55*o62*o63*o6\n & 7 + 7.8147600000000d5*o1*o14*o6*o62*o63*o67 - 4.4056800000000d5*\n & o14*o54*o6*o62*o63*o67 + 6.8890000000000d3*o1*o14*o51*o66*o67 - \n & 5.8100000000000d3*o14*o51*o54*o66*o67 + 1.36890000000000d4*o1*o1\n & 4*o51*o55*o66*o67\n t11 = -1.05300000000000d4*o14*o51*o54*o55*o66*o67 + 1.4641000000\n & 0000d4*o1*o14*o58*o66*o67 - 1.69400000000000d4*o14*o54*o58*o66*o\n & 67 + 2.52810000000000d4*o1*o14*o55*o58*o66*o67 - 2.8620000000000\n & 0d4*o14*o54*o55*o58*o66*o67 + 1.94220000000000d4*o1*o14*o51*o6*o\n & 66*o67 - 1.56600000000000d4*o14*o51*o54*o6*o66*o67 + 3.847800000\n & 0000d4*o1*o14*o58*o6*o66*o67 - 4.4040000000000d4*o14*o54*o58*o6*\n & o66*o67 + 8.1000000000000d3*o1*o14*o65*o66*o67 + 2.2500000000000\n & 0d4*o1*o14*o55*o65*o66*o67 + 2.70000000000000d4*o1*o14*o6*o65*o6\n & 6*o67 - 7.4900000000000d3*o14*o17*o18*o22*o25*o67*o68 - 1.498000\n & 00000000d4*o14*o17*o18*o22*o40*o67*o68 - 5.5000000000000d0*o17*o\n & 25*o27*o30*o37*o42*o48*o67*o68 + 2.80000000000000d1*o17*o27*o30*\n & o40*o41*o42*o48*o67*o68 - 1.43100000000000d4*o14*o17*o18*o22*o25\n & *o55*o67*o68 - 2.86200000000000d4*o14*o17*o18*o22*o40*o55*o67*o6\n & 8 - 2.07600000000000d4*o14*o17*o18*o22*o25*o6*o67*o68 - 4.152000\n & 0000000d4*o14*o17*o18*o22*o40*o6*o67*o68 - 1.70000000000000d0*o1\n & 7*o25*o27*o30*o37*o42*o48*o6*o67*o68 + 3.5600000000000d2*o17*o27\n & *o30*o40*o41*o42*o48*o6*o67*o68 + 1.60000000000000d1*o14*o60*o62\n & *o67*o68 + 3.6000000000000d1*o14*o55*o60*o62*o67*o68 + 4.8000000\n & 000000d1*o14*o6*o60*o62*o67*o68 + 2.28980000000000d4*o14*o62*o63\n & *o67*o68 + 5.0562000000000d4*o14*o55*o62*o63*o67*o68\n t12 = 6.8052000000000d4*o14*o6*o62*o63*o67*o68 + 1.2250000000000\n & 0d3*o14*o51*o66*o67*o68 + 2.02500000000000d3*o14*o51*o55*o66*o67\n & *o68 + 4.9000000000000d3*o14*o58*o66*o67*o68 + 8.1000000000000d3\n & *o14*o55*o58*o66*o67*o68 + 3.15000000000000d3*o14*o51*o6*o66*o67\n & *o68 + 1.26000000000000d4*o14*o58*o6*o66*o67*o68 + 1.42420000000\n & 000d4*o1*o14*o60*o67*o70 - 1.90400000000000d3*o14*o54*o60*o67*o7\n & 0 + 3.15540000000000d4*o1*o14*o55*o60*o67*o70 - 4.2480000000000d\n & 3*o14*o54*o55*o60*o67*o70 + 4.2396000000000d4*o1*o14*o6*o60*o67*\n & o70 - 5.6880000000000d3*o14*o54*o6*o60*o67*o70 + 6.4000000000000\n & d1*o14*o60*o67*o68*o70 + 1.44000000000000d2*o14*o55*o60*o67*o68*\n & o70 + 1.92000000000000d2*o14*o6*o60*o67*o68*o70 + 5.120000000000\n & 0d2*o1*o43*o45*o62*o67*o71 - 6.4000000000000d1*o43*o45*o54*o62*o\n & 67*o71 + 2.00000000000000d0*o43*o45*o62*o67*o68*o71 + 1.28000000\n & 000000d4*o45*o52*o70*o71 - 1.60000000000000d3*o1*o45*o52*o70*o71\n & + 5.0000000000000d1*o45*o52*o54*o70*o71 + 2.50880000000000d4*o4\n & 5*o52*o55*o70*o71 - 3.13600000000000d3*o1*o45*o52*o55*o70*o71 + \n & 9.8000000000000d1*o45*o52*o54*o55*o70*o71 + 3.5840000000000d4*o4\n & 5*o52*o6*o70*o71 - 4.4800000000000d3*o1*o45*o52*o6*o70*o71 + 1.4\n & 0000000000000d2*o45*o52*o54*o6*o70*o71\n t13 = -1.20000000000000d4*o4*o42*o44*o52*o73 + 7.5000000000000d2\n & *o1*o4*o42*o44*o52*o73 - 1.68000000000000d4*o4*o42*o44*o52*o6*o7\n & 3 + 1.05000000000000d3*o1*o4*o42*o44*o52*o6*o73 + 5.120000000000\n & 0d2*o43*o52*o62*o72*o73 - 6.4000000000000d1*o1*o43*o52*o62*o72*o\n & 73 + 2.00000000000000d0*o43*o52*o54*o62*o72*o73 - 1.054000000000\n & 00d3*o1*o25*o37*o40*o41*o67*o74 + 1.44500000000000d2*o1*o51*o53*\n & o67*o74 + 4.0850000000000d2*o25*o37*o40*o41*o54*o67*o74 - 4.6750\n & 000000000d1*o51*o53*o54*o67*o74 - 1.69708000000000d4*o1*o25*o37*\n & o40*o41*o55*o67*o74 + 8.2418000000000d2*o1*o51*o53*o55*o67*o74 +\n & 7.5821000000000d3*o25*o37*o40*o41*o54*o55*o67*o74 - 3.451000000\n & 0000d1*o51*o53*o54*o55*o67*o74 + 1.92200000000000d3*o1*o58*o59*o\n & 67*o74 - 8.6800000000000d2*o54*o58*o59*o67*o74 + 8.7362000000000\n & d4*o1*o55*o58*o59*o67*o74 - 7.4404000000000d4*o54*o55*o58*o59*o6\n & 7*o74 - 9.6232000000000d3*o1*o25*o37*o40*o41*o6*o67*o74 + 6.9020\n & 000000000d2*o1*o51*o53*o6*o67*o74 + 4.7966000000000d3*o25*o37*o4\n & 0*o41*o54*o6*o67*o74 - 1.26100000000000d2*o51*o53*o54*o6*o67*o74\n & + 2.59160000000000d4*o1*o58*o59*o6*o67*o74 - 1.68880000000000d4\n & *o54*o58*o59*o6*o67*o74 - 3.8500000000000d1*o25*o37*o40*o41*o67*\n & o68*o74 + 3.7812500000000d0*o51*o53*o67*o68*o74\n t14 = -1.51300000000000d2*o25*o37*o40*o41*o55*o67*o68*o74 + 3.61\n & 25000000000d-1*o51*o53*o55*o67*o68*o74 + 9.8000000000000d1*o58*o\n & 59*o67*o68*o74 + 1.58420000000000d4*o55*o58*o59*o67*o68*o74 - 5.\n & 0140000000000d2*o25*o37*o40*o41*o6*o67*o68*o74 + 2.3375000000000\n & 0d0*o51*o53*o6*o67*o68*o74 + 2.49200000000000d3*o58*o59*o6*o67*o\n & 68*o74 - 3.6000000000000d3*o14*o43*o52*o76 + 4.5000000000000d2*o\n & 45*o52*o76 + 2.25000000000000d4*o43*o45*o52*o76 + 1.800000000000\n & 00d3*o1*o13*o43*o67*o76 - 6.3000000000000d3*o1*o14*o43*o67*o76 +\n & 5.5125000000000d3*o1*o43*o45*o67*o76 - 2.25000000000000d3*o52*o\n & 73*o76 + 2.81250000000000d3*o13*o52*o73*o76 - 3.3750000000000d4*\n & o43*o52*o73*o76 + 7.2000000000000d3*o13*o52*o75*o76 - 5.40000000\n & 00000d4*o14*o52*o75*o76 + 1.01250000000000d5*o45*o52*o75*o76 - 1\n & .61920000000000d4*o14*o17*o18*o25*o43*o52*o9 + 4.7828000000000d3\n & *o1*o14*o17*o18*o25*o43*o52*o9 + 8.4480000000000d3*o14*o21*o22*o\n & 25*o43*o52*o9 - 2.37600000000000d3*o1*o14*o21*o22*o25*o43*o52*o9\n & - 1.12640000000000d3*o17*o25*o34*o43*o45*o52*o9 + 2.46400000000\n & 000d2*o1*o17*o25*o34*o43*o45*o52*o9 - 3.5200000000000d2*o14*o17*\n & o18*o25*o43*o52*o54*o9 + 1.65000000000000d2*o14*o21*o22*o25*o43*\n & o52*o54*o9\n t15 = -1.10000000000000d1*o17*o25*o34*o43*o45*o52*o54*o9 - 1.540\n & 48000000000d5*o14*o17*o18*o25*o43*o52*o55*o9 + 8.2058000000000d4\n & *o1*o14*o17*o18*o25*o43*o52*o55*o9 + 1.11360000000000d5*o14*o21*\n & o22*o25*o43*o52*o55*o9 - 8.1960000000000d4*o1*o14*o21*o22*o25*o4\n & 3*o52*o55*o9 - 7.2100000000000d3*o14*o17*o18*o25*o43*o52*o54*o55\n & *o9 + 7.7250000000000d3*o14*o21*o22*o25*o43*o52*o54*o55*o9 + 1.0\n & 1120000000000d5*o14*o17*o18*o25*o43*o52*o6*o9 - 4.4447200000000d\n & 4*o1*o14*o17*o18*o25*o43*o52*o6*o9 - 6.4512000000000d4*o14*o21*o\n & 22*o25*o43*o52*o6*o9 + 3.8256000000000d4*o1*o14*o21*o22*o25*o43*\n & o52*o6*o9 + 2.96960000000000d3*o17*o25*o34*o43*o45*o52*o6*o9 - 5\n & .1520000000000d2*o1*o17*o25*o34*o43*o45*o52*o6*o9 + 4.5092000000\n & 000d3*o14*o17*o18*o25*o43*o52*o54*o6*o9 - 4.4340000000000d3*o14*\n & o21*o22*o25*o43*o52*o54*o6*o9 + 2.06000000000000d1*o17*o25*o34*o\n & 43*o45*o52*o54*o6*o9 + 1.06240000000000d4*o1*o14*o17*o22*o25*o67\n & *o9 - 7.1126000000000d4*o1*o14*o17*o18*o4*o67*o9 + 1.62000000000\n & 000d3*o1*o14*o21*o22*o4*o67*o9 + 2.87980000000000d4*o1*o14*o22*o\n & 4*o40*o67*o9 - 5.1440000000000d3*o14*o17*o22*o25*o54*o67*o9 + 3.\n & 01060000000000d4*o14*o17*o18*o4*o54*o67*o9 - 1.85960000000000d4*\n & o14*o22*o4*o40*o54*o67*o9 + 2.24640000000000d4*o1*o14*o17*o22*o2\n & 5*o55*o67*o9 - 1.52406000000000d5*o1*o14*o17*o18*o4*o55*o67*o9 +\n & 4.5000000000000d3*o1*o14*o21*o22*o4*o55*o67*o9 + 5.628600000000\n & 0d4*o1*o14*o22*o4*o40*o55*o67*o9\n t16 = -1.00440000000000d4*o14*o17*o22*o25*o54*o55*o67*o9 + 6.622\n & 2000000000d4*o14*o17*o18*o4*o54*o55*o67*o9 - 3.5676000000000d4*o\n & 14*o22*o4*o40*o54*o55*o67*o9 + 3.09120000000000d4*o1*o14*o17*o22\n & *o25*o6*o67*o9 - 2.08212000000000d5*o1*o14*o17*o18*o4*o6*o67*o9 \n & + 5.4000000000000d3*o1*o14*o21*o22*o4*o6*o67*o9 + 8.067600000000\n & 0d4*o1*o14*o22*o4*o40*o6*o67*o9 - 1.44120000000000d4*o14*o17*o22\n & *o25*o54*o6*o67*o9 + 8.9304000000000d4*o14*o17*o18*o4*o54*o6*o67\n & *o9 - 5.1648000000000d4*o14*o22*o4*o40*o54*o6*o67*o9 - 5.2096000\n & 000000d4*o1*o14*o18*o62*o67*o9 + 1.69520000000000d4*o14*o18*o54*\n & o62*o67*o9 - 1.16928000000000d5*o1*o14*o18*o55*o62*o67*o9 + 3.78\n & 36000000000d4*o14*o18*o54*o55*o62*o67*o9 - 1.56096000000000d5*o1\n & *o14*o18*o6*o62*o67*o9 + 5.0652000000000d4*o14*o18*o54*o6*o62*o6\n & 7*o9 + 2.80000000000000d2*o14*o17*o22*o25*o67*o68*o9 - 1.7120000\n & 0000000d3*o14*o17*o18*o4*o67*o68*o9 + 1.12000000000000d3*o14*o22\n & *o4*o40*o67*o68*o9 + 5.4000000000000d2*o14*o17*o22*o25*o55*o67*o\n & 68*o9 - 3.8160000000000d3*o14*o17*o18*o4*o55*o67*o68*o9 + 2.1600\n & 0000000000d3*o14*o22*o4*o40*o55*o67*o68*o9 + 7.8000000000000d2*o\n & 14*o17*o22*o25*o6*o67*o68*o9 - 5.1120000000000d3*o14*o17*o18*o4*\n & o6*o67*o68*o9 + 3.12000000000000d3*o14*o22*o4*o40*o6*o67*o68*o9 \n & - 8.5600000000000d2*o14*o18*o62*o67*o68*o9 - 1.90800000000000d3*\n & o14*o18*o55*o62*o67*o68*o9 - 2.55600000000000d3*o14*o18*o6*o62*o\n & 67*o68*o9\n ksq(i,j,k) = t1 + t2 + t3 + t4 + t5 + t6 + t7 + t8 + t9 + t10 + \n & t11 + t12 + t13 + t14 + t15 + t16\n", diff --git a/EinsteinInitialData_TOVSolver.json b/EinsteinInitialData_TOVSolver.json index 97431c5dff0f048476ee82aa90138a5e991ec1be..cdc6eafde3ef8b498d6b45126e08ceb428760b99 100644 --- a/EinsteinInitialData_TOVSolver.json +++ b/EinsteinInitialData_TOVSolver.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteininitialdata.git", "configuration": "# Configuration definition for thorn TOVSolver\n\nREQUIRES THORNS: Boundary CartGrid3D SpaceMask\n\n", "interface": "# Interface definition for thorn TOVSolver\n\nimplements: TOVSolver\ninherits: ADMBase, HydroBase, Constants, StaticConformal\n\nUSES INCLUDE: constants.h\n\npublic:\n\nCCTK_INT FUNCTION Set_Rho_ADM( \\\n CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_REAL ARRAY OUT source, \\\n CCTK_REAL ARRAY IN x, \\\n CCTK_REAL ARRAY IN y, \\\n CCTK_REAL ARRAY IN z \\\n )\nPROVIDES FUNCTION Set_Rho_ADM \\\n WITH TOV_Set_Rho_ADM \\\n LANGUAGE C\n\nCCTK_INT FUNCTION Set_Momentum_Source( \\\n CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN dir, \\\n CCTK_INT IN size, \\\n CCTK_REAL ARRAY OUT source, \\\n CCTK_REAL ARRAY IN x, \\\n CCTK_REAL ARRAY IN y, \\\n CCTK_REAL ARRAY IN z \\\n )\nPROVIDES FUNCTION Set_Momentum_Source \\\n WITH TOV_Set_Momentum_Source \\\n LANGUAGE C\n\nCCTK_INT FUNCTION Set_Initial_Guess_for_u( \\\n CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_REAL ARRAY OUT u, \\\n CCTK_REAL ARRAY IN x, \\\n CCTK_REAL ARRAY IN y, \\\n CCTK_REAL ARRAY IN z \\\n )\nPROVIDES FUNCTION Set_Initial_Guess_for_u \\\n WITH TOV_Set_Initial_Guess_for_u \\\n LANGUAGE C\n\nCCTK_INT FUNCTION Rescale_Sources( \\\n CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_REAL ARRAY IN x, \\\n CCTK_REAL ARRAY IN y, \\\n CCTK_REAL ARRAY IN z, \\\n CCTK_REAL ARRAY IN psi, \\\n CCTK_REAL ARRAY IN gxx, \\\n CCTK_REAL ARRAY IN gyy, \\\n CCTK_REAL ARRAY IN gzz, \\\n CCTK_REAL ARRAY IN gxy, \\\n CCTK_REAL ARRAY IN gxz, \\\n CCTK_REAL ARRAY IN gyz \\\n )\nPROVIDES FUNCTION Rescale_Sources \\\n WITH TOV_Rescale_Sources \\\n LANGUAGE C\n\n", - "params": "", + "param": "# Parameter definitions for thorn TOVSolver\n\nCCTK_INT TOV_Num_TOVs \"The number of TOVs\"\n{\n 1:* :: \"Greater than 0\"\n} 1\n\nCCTK_INT TOV_Solve_for_TOVs \"Solve for TOVs even if no TOV initial data was requested?\"\n{\n 0:3 :: \"depreciated in favour of TOVSolver::TOV_Enforce_Interpolation\"\n} 3\n\nBOOLEAN TOV_Enforce_Interpolation \"Enforce the interpolation of the data onto the Hydro GFs even without tov as specified initial data\" STEERABLE=always\n{\n} \"no\"\n\nCCTK_INT TOV_Num_Radial \"The number of radial points for the ODE integration\"\n{\n 1:* :: \"Greater than 0\"\n} 100000\n\nCCTK_REAL TOV_Rho_Central[10] \"The central density\"\n{\n (0.0:* :: \"Must be positive\"\n} 1e-3\n\nCCTK_REAL TOV_Gamma \"The polytropic constant in P = K rho^Gamma\"\n{\n 1.0: :: \"The physical range at high Lorentz factors is [1,2], but otherwise higher values of gamma can also be used\"\n} 2.0\n\nCCTK_REAL TOV_K \"The polytropic constant in P = K rho^Gamma\"\n{\n (0.0:* :: \"Greater than 0\"\n} 100.0\n\nCCTK_REAL TOV_dr[10] \"The spacing in the radial direction on the 1d grid\"\n{\n (0.0:* :: \"Greater than 0\"\n} 5.e-4\n\nBOOLEAN Perturb[10] \"Add density perturbation (you should solve the IVP if true)\"\n{\n} \"no\"\n\nCCTK_REAL Pert_Amplitude[10] \"Amplitude of perturbation\"\n{\n *:* :: \"Anything\"\n} 0.0\n\nCCTK_REAL TOV_Position_x[10] \"Position of neutron star, x coordinate\" STEERABLE=always\n{\n *:* :: \"real\"\n} 0.0\n\nCCTK_REAL TOV_Position_y[10] \"Position of neutron star, y coordinate\" STEERABLE=always\n{\n *:* :: \"real\"\n} 0.0\n\nCCTK_REAL TOV_Position_z[10] \"Position of neutron star, z coordinate\" STEERABLE=always\n{\n *:* :: \"real\"\n} 0.0\n\n# contravariant fluid three velocity as measured by the Eulerian observers: v^i = u^i / (alpha u^t) + beta^i / alpha\n# as used by HydroBase. Follows the Valencia formulation eg. eqs. 26 and 27 of Font et al's paper (gr-qc/9811015) or \n# below Equ. 31 in http://relativity.livingreviews.org/Articles/lrr-2008-7/articlesu1.html#x6-30002.1\nCCTK_REAL TOV_Velocity_x[10] \"(fixed) Velocity of neutron star, x coordinate (caution!)\" STEERABLE=always\n{\n *:* :: \"real\"\n} 0.0\n\nCCTK_REAL TOV_Velocity_y[10] \"(fixed) Velocity of neutron star, y coordinate (caution!)\" STEERABLE=always\n{\n *:* :: \"real\"\n} 0.0\n\nCCTK_REAL TOV_Velocity_z[10] \"(fixed) Velocity of neutron star, z coordinate (caution!)\" STEERABLE=always\n{\n *:* :: \"real\"\n} 0.0\n\nBOOLEAN TOV_ProperPosition \"For use only with two NSs, atm only handles equal mass\"\n{\n} \"no\"\n\nBOOLEAN TOV_Fast_Interpolation \"Use faster interpolation algorithm? Default is yes.\"\n{\n} \"yes\"\n\nBOOLEAN TOV_Clear_Initial_Data \"Clear initial data (spacetime)? Default is yes.\"\n{\n} \"yes\"\n\nBOOLEAN TOV_Use_Old_Initial_Data \"Take old initial data into account (spacetime)? Default is no.\"\n{\n} \"no\"\n\nBOOLEAN TOV_Use_Old_Matter_Initial_Data \"Use also old matter initial data? Default is no.\"\n{\n} \"no\"\n\nBOOLEAN TOV_Conformal_Flat_Three_Metric \"Use conformal factor to get the 3-metric flat. default is no\"\n{\n} \"no\"\n\nkeyword TOV_Combine_Method \"Which combine method should be used.\"\n{\n \"maximum\" :: \"Take the maximum of rho and gxx as clue for the rest as clue.\"\n \"average\" :: \"Take the average of all available parts.\"\n} \"average\"\n\nCCTK_INT TOV_Populate_Timelevels \"Populate that amount of timelevels\" STEERABLE=always\n{\n 1:3 :: \"1 (default) to 3\"\n} 1\n\nCCTK_INT TOV_Momentum_Psi_Power \"Power of Psi to be multiplied with J^i for Mom\"\n{\n *:* :: \"anything, 0 as default\"\n} 0\n\nCCTK_INT TOV_fake_evolution \"Fake evolution by setting ID at every step\" STEERABLE=always\n{\n *:* :: \"anything, 0 as off (default), everything else as on\"\n} 0\n\nSTRING TOV_save_to_datafile \"Only save data to file and exit\"\n{\n \".*\" :: \"Any filename, not used if empty\"\n} \"\"\n\nshares:HydroBase\n\nEXTENDS KEYWORD initial_hydro \"\"\n{\n \"tov\" :: \"TOV star initial hydrobase variables\"\n}\n\nshares:admbase\n\nEXTENDS KEYWORD initial_data\n{\n \"tov\" :: \"TOV star initial metric\"\n}\n\nEXTENDS KEYWORD initial_lapse\n{\n \"tov\" :: \"TOV star initial lapse; isotropic\"\n}\n\nEXTENDS KEYWORD initial_shift\n{\n \"tov\" :: \"TOV star initial shift\"\n}\n\nUSES KEYWORD metric_type\n\nshares:StaticConformal\n\nUSES KEYWORD conformal_storage\n", "schedule": "# Schedule definitions for thorn TOVSolver\n\nschedule TOV_C_ParamCheck AT PARAMCHECK\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Check parameters\"\n\nschedule TOV_C_AllocateMemory AT WRAGH\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Allocate memory for TOVSolver_C\"\n\nif (!TOV_fake_evolution)\n{\n schedule TOV_C_FreeMemory AT POSTPOSTINITIAL\n {\n LANG: C\n OPTIONS: GLOBAL\n } \"Free memory from TOVSolver_C\"\n}\n\nschedule GROUP TOV_Initial_Data IN HydroBase_Initial\n{\n# STORAGE: TOV_Scalars\n# STORAGE: TOV_Arrays\n SYNC:ADMBase::metric,ADMBase::curv,ADMBase::lapse,ADMBase::shift\n SYNC: rho\n SYNC: press\n SYNC: eps\n SYNC: vel\n SYNC: w_lorentz\n} \"Group for the TOV initial data\"\n\nschedule TOV_C_Integrate_RHS IN TOV_Initial_Data\n{\n LANG: C\n WRITES: StaticConformal::conformal_state(everywhere)\n OPTIONS: GLOBAL\n} \"Integrate the 1d equations for the TOV star\"\n\nif (!CCTK_Equals(TOV_save_to_datafile,\"\"))\n{\n schedule TOV_write_1D_datafile IN TOV_Initial_Data AFTER TOV_C_Integrate_RHS BEFORE TOV_C_Exact\n {\n LANG: C\n OPTIONS: GLOBAL\n } \"Save data to file and exit\"\n}\n\nif (TOV_ProperPosition)\n{\n schedule TOV_Set_ProperPositions in TOV_Initial_Data after TOV_C_Integrate_RHS before TOV_C_Exact\n {\n LANG: C\n Options: GLOBAL\n } \"Steer NS position parameters according to proper distance\"\n}\n\nif (CCTK_Equals(initial_data, \"tov\") || CCTK_Equals(initial_hydro, \"tov\") ||\n (TOV_Use_Old_Initial_Data > 0) || TOV_Enforce_Interpolation)\n{\n schedule TOV_C_Exact IN TOV_Initial_Data AFTER TOV_C_Integrate_RHS\n {\n LANG: C\n READS: StaticConformal::conformal_state\n READS: ADMBase::shift_state\n READS: GRID::coordinates\n WRITES: ADMBASE::alp(everywhere)\n WRITES: ADMBASE::curv(everywhere)\n WRITES: ADMBASE::metric_p_p(everywhere)\n WRITES: ADMBASE::metric_p(everywhere)\n WRITES: ADMBASE::metric(everywhere)\n WRITES: ADMBASE::shift(everywhere)\n WRITES: HYDROBASE::eps_p_p(everywhere), HYDROBASE::rho_p_p(everywhere),\n HYDROBASE::vel_p_p(everywhere), HYDROBASE::w_lorentz_p_p(everywhere)\n WRITES: HYDROBASE::eps_p(everywhere), HYDROBASE::rho_p(everywhere),\n HYDROBASE::vel_p(everywhere), HYDROBASE::w_lorentz_p(everywhere)\n WRITES: HYDROBASE::eps(everywhere), HYDROBASE::rho(everywhere),\n HYDROBASE::vel(everywhere), HYDROBASE::w_lorentz(everywhere)\n WRITES: HYDROBASE::press(everywhere)\n WRITES: StaticConformal::psi(everywhere)\n WRITES: StaticConformal::confac_1derivs(everywhere)\n WRITES: StaticConformal::confac_2derivs(everywhere)\n } \"Set up the 3d quantities for the TOV star\"\n}\n\nif (TOV_fake_evolution)\n{\n schedule TOV_Prepare_Fake_Evolution AFTER TOV_C_Exact\n {\n LANG: C\n } \"prepare for fake evolution\"\n schedule TOV_C_Exact IN MoL_PostStep AFTER HydroBase_PostStep\n {\n LANG: C\n READS: StaticConformal::conformal_state\n READS: ADMBase::shift_state\n WRITES: ADMBASE::alp(everywhere)\n WRITES: ADMBASE::curv(everywhere)\n WRITES: ADMBASE::metric(everywhere)\n WRITES: ADMBASE::shift(everywhere)\n WRITES: HYDROBASE::eps(everywhere)\n WRITES: HYDROBASE::press(everywhere)\n WRITES: HYDROBASE::rho(everywhere)\n WRITES: HYDROBASE::w_lorentz(everywhere)\n WRITES: HYDROBASE::vel(everywhere)\n WRITES: StaticConformal::psi(everywhere)\n WRITES: StaticConformal::confac_1derivs(everywhere)\n WRITES: StaticConformal::confac_2derivs(everywhere)\n } \"use fake evolution\"\n}\n\n", "src": { "make.code.deps": "tov.o: utils.inc external.inc\n", diff --git a/EinsteinInitialData_TwoPunctures.json b/EinsteinInitialData_TwoPunctures.json index 54c8c102fcc40cbc33da9207aa5ef7cf63856220..0194f53a6d9399c6a3fa32a5cac0ec383ddb1b78 100644 --- a/EinsteinInitialData_TwoPunctures.json +++ b/EinsteinInitialData_TwoPunctures.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteininitialdata.git", "configuration": "# Configuration definition for thorn TwoPunctures\n\nREQUIRES GSL\n", "interface": "# Interface definition for thorn TwoPunctures\n\nIMPLEMENTS: TwoPunctures\n\nINHERITS: ADMBase StaticConformal grid\n\nREAL puncture_u TYPE=gf tags='prolongation=\"none\"'\n\nCCTK_INT FUNCTION Set_Rho_ADM( \\\n CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_REAL ARRAY OUT source, \\\n CCTK_REAL ARRAY IN x, \\\n CCTK_REAL ARRAY IN y, \\\n CCTK_REAL ARRAY IN z \\\n )\nCCTK_INT FUNCTION Set_Initial_Guess_for_u( \\\n CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_REAL ARRAY OUT u, \\\n CCTK_REAL ARRAY IN x, \\\n CCTK_REAL ARRAY IN y, \\\n CCTK_REAL ARRAY IN z \\\n )\nCCTK_INT FUNCTION Rescale_Sources( \\\n CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_REAL ARRAY IN x, \\\n CCTK_REAL ARRAY IN y, \\\n CCTK_REAL ARRAY IN z, \\\n CCTK_REAL ARRAY IN psi, \\\n CCTK_REAL ARRAY IN gxx, \\\n CCTK_REAL ARRAY IN gyy, \\\n CCTK_REAL ARRAY IN gzz, \\\n CCTK_REAL ARRAY IN gxy, \\\n CCTK_REAL ARRAY IN gxz, \\\n CCTK_REAL ARRAY IN gyz \\\n )\nUSES FUNCTION Set_Rho_ADM\nUSES FUNCTION Set_Initial_Guess_for_u\nUSES FUNCTION Rescale_Sources\n\nPRIVATE:\n\nCCTK_REAL energy TYPE=scalar\n{\n E\n} \"ADM energy of the Bowen-York spacetime\"\n\nCCTK_REAL angular_momentum TYPE=scalar\n{\n J1, J2, J3\n} \"Angular momentum of the Bowen-York spacetime\"\n\nPUBLIC:\n\nCCTK_REAL bare_mass TYPE=scalar\n{\n mp mm\n} \"Bare masses of the punctures\"\n\nCCTK_REAL puncture_adm_mass TYPE=scalar\n{\n mp_adm mm_adm\n} \"ADM masses of the punctures (measured at the other spatial infinities)\"\n\n", - "params": "", + "param": "# Parameter definitions for thorn TwoPunctures\n\nSHARES: ADMBase\n\nUSES KEYWORD metric_type\n\nEXTENDS KEYWORD initial_data \n{\n \"twopunctures\" :: \"two puncture black holes\"\n} \n\nEXTENDS KEYWORD initial_lapse\n{\n \"twopunctures-antisymmetric\" :: \"antisymmetric lapse for two puncture black holes, -1 <= alpha <= +1\"\n \"twopunctures-averaged\" :: \"averaged lapse for two puncture black holes, 0 <= alpha <= +1\"\n \"psi^n\" :: \"Based on the initial conformal factor\"\n \"brownsville\" :: \"See Phys. Rev. D 74, 041501 (2006)\"\n}\n\n\n\nSHARES: StaticConformal\n\nUSES KEYWORD conformal_storage\n\nSHARES: IO\n\nUSES STRING out_dir\n\n\nRESTRICTED:\n\nBOOLEAN verbose \"Print screen output while solving\"\n{\n} \"no\"\n\nBOOLEAN keep_u_around \"Keep the variable u around after solving\"\n{\n} \"no\"\n\nBOOLEAN give_bare_mass \"User provides bare masses rather than target ADM masses\"\n{\n} \"yes\"\n\nCCTK_REAL adm_tol \"Tolerance of ADM masses when give_bare_mass=no\"\n{\n (0:*) :: \"\"\n} 1.0e-10\n\nKEYWORD grid_setup_method \"How to fill the 3D grid from the spectral grid\"\n{\n \"Taylor expansion\" :: \"use a Taylor expansion about the nearest collocation point (fast, but might be inaccurate)\"\n \"evaluation\" :: \"evaluate using all spectral coefficients (slow)\"\n} \"Taylor expansion\"\n\n\n\nINT npoints_A \"Number of coefficients in the compactified radial direction\"\n{\n 4:* :: \"\"\n} 30\n\nINT npoints_B \"Number of coefficients in the angular direction\"\n{\n 4:* :: \"\"\n} 30\n\nINT npoints_phi \"Number of coefficients in the phi direction\"\n{\n 4:*:2 :: \"\"\n} 16\n\n\n\nREAL Newton_tol \"Tolerance for Newton solver\"\n{\n (0:*) :: \"\"\n} 1.0e-10\n\nINT Newton_maxit \"Maximum number of Newton iterations\"\n{\n 0:* :: \"\"\n} 5\n\nREAL TP_epsilon \"A small number to smooth out singularities at the puncture locations\"\n{\n 0:* :: \"\"\n} 0.0\n\nREAL TP_Tiny \"Tiny number to avoid nans near or at the pucture locations\"\n{\n 0:* :: \"anything positive, usually very small\"\n} 0.0\nREAL TP_Extend_Radius \"Radius of an extended spacetime instead of the puncture\"\n{\n 0:* :: \"anything positive, should be smaller than the horizon\"\n} 0.0\n\nREAL par_b \"x coordinate of the m+ puncture\" STEERABLE=always\n{\n (0.0:*) :: \"\"\n} 1.0\n\nREAL par_m_plus \"mass of the m+ puncture\" STEERABLE = ALWAYS\n{\n 0.0:*) :: \"\"\n} 1.0\n\nREAL par_m_minus \"mass of the m- puncture\" STEERABLE = ALWAYS\n{\n 0.0:*) :: \"\"\n} 1.0\n\nREAL target_M_plus \"target ADM mass for m+\"\n{\n 0.0:*) :: \"\"\n} 0.5\n\nREAL target_M_minus \"target ADM mass for m-\"\n{\n 0.0:*) :: \"\"\n} 0.5\n\nREAL par_P_plus[3] \"momentum of the m+ puncture\"\n{\n (*:*) :: \"\"\n} 0.0\n\nREAL par_P_minus[3] \"momentum of the m- puncture\"\n{\n (*:*) :: \"\"\n} 0.0\n\nREAL par_S_plus[3] \"spin of the m+ puncture\"\n{\n (*:*) :: \"\"\n} 0.0\n\nREAL par_S_minus[3] \"spin of the m- puncture\"\n{\n (*:*) :: \"\"\n} 0.0\n\nREAL center_offset[3] \"offset b=0 to position (x,y,z)\"\n{\n (*:*) :: \"\"\n} 0.0\n\nREAL initial_lapse_psi_exponent \"Exponent n for psi^-n initial lapse profile\"\n{\n (*:*) :: \"Should be negative\"\n} -2.0\n\n\n\nBOOLEAN swap_xz \"Swap x and z coordinates when interpolating, so that the black holes are separated in the z direction\"\n{\n} \"no\"\n\n\n\nBOOLEAN use_sources \"Use sources?\"\n{\n} \"no\"\n\nBOOLEAN rescale_sources \"If sources are used - rescale them after solving?\"\n{\n} \"yes\"\n\nBOOLEAN use_external_initial_guess \"Set initial guess by external function?\"\n{\n} \"no\"\n\nBOOLEAN do_residuum_debug_output \"Output debug information about the residuum\"\n{\n} \"no\"\n\nBOOLEAN do_initial_debug_output \"Output debug information about initial guess\"\n{\n} \"no\"\n\nBOOLEAN multiply_old_lapse \"Multiply the old lapse with the new one\"\n{\n} \"no\"\n\nBOOLEAN schedule_in_ADMBase_InitialData \"Schedule in (instead of after) ADMBase_InitialData\"\n{\n} \"yes\"\n\nBOOLEAN solve_momentum_constraint \"Solve for momentum constraint?\"\n{\n} \"no\"\n\n", "schedule": "# Schedule definitions for thorn TwoPunctures\n\nif (CCTK_Equals(initial_data, \"twopunctures\"))\n{\n STORAGE: energy, angular_momentum, puncture_adm_mass, bare_mass\n\n if (keep_u_around) {\n STORAGE: puncture_u\n }\n\n SCHEDULE TwoPunctures_ParamCheck AT PARAMCHECK\n {\n LANG: C\n } \"Check parameters and thorn needs\"\n\n if (schedule_in_ADMBase_InitialData)\n {\n SCHEDULE GROUP TwoPunctures_Group IN ADMBase_InitialData\n {\n } \"TwoPunctures initial data group\"\n }\n else\n {\n SCHEDULE GROUP TwoPunctures_Group AT Initial AFTER ADMBase_InitialData BEFORE ADMBase_PostInitial AFTER HydroBase_Initial before SetTmunu before HydroBase_Prim2ConInitial\n {\n } \"TwoPunctures initial data group\"\n }\n\n SCHEDULE TwoPunctures IN TwoPunctures_Group\n {\n LANG: C\n STORAGE: puncture_u\n READS: Grid::coordinates(Everywhere)\n WRITES: Twopunctures::mp(Everywhere), Twopunctures::mm(Everywhere),\n Twopunctures::mp_adm(Everywhere), Twopunctures::mm_adm(Everywhere),\n Twopunctures::E(Everywhere), Twopunctures::J1(Everywhere),\n Twopunctures::J2(Everywhere), Twopunctures::J3(Everywhere),\n Twopunctures::puncture_u(Everywhere)\n WRITES: StaticConformal::conformal_state(Everywhere),\n StaticConformal::confac_2derivs(Everywhere),\n StaticConformal::confac_1derivs(Everywhere),\n StaticConformal::confac(Everywhere)\n WRITES: AdmBase::alp(Everywhere), AdmBase::metric(Everywhere), AdmBase::curv(Everywhere)\n # SYNC: ADMBase::metric ADMBase::curv ADMBase::lapse\n } \"Create puncture black hole initial data\"\n\n SCHEDULE TwoPunctures_Metadata IN TwoPunctures_Group after TwoPunctures\n {\n LANG: C\n OPTIONS: global\n } \"Output TwoPunctures metadata\"\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TwoPunctures\n\n# Source files in this directory\nSRCS = CoordTransf.c Equations.c FuncAndJacobian.c Newton.c TwoPunctures.c TP_utilities.c ParamCheck.c Metadata.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/EinsteinUtils_SetMask_SphericalSurface.json b/EinsteinUtils_SetMask_SphericalSurface.json index 37edf181010df703c3e4e0df4a53b0fbb4588e3e..9a99e33b2d510594426eeb5aa0de9471ce86f43f 100644 --- a/EinsteinUtils_SetMask_SphericalSurface.json +++ b/EinsteinUtils_SetMask_SphericalSurface.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinutils.git", "configuration": "", "interface": "# Interface definition for thorn SetMask_SphericalSurface\n\nimplements: SetMask_SphericalSurface\n\ninherits: HydroBase SphericalSurface\n\nUSES INCLUDE: HydroBase.h\n\n# translate SphericalSurface name into ID\nCCTK_INT \\\nFUNCTION sf_IdFromName (CCTK_INT IN id, CCTK_POINTER_TO_CONST IN name)\nUSES FUNCTION sf_IdFromName\n", - "params": "", + "param": "# Parameter definitions for thorn SetMask_SphericalSurface\n\nSTRING SetMask_MaskName \"Full variable name of the mask to be set\" STEERABLE=always\n{\n \".+\" :: \"Any full Cactus variable name, GF of type CCTK_BYTE\"\n} \"HydroBase::hydro_excision_mask\"\n\n#BOOLEAN SetMask_ResetAll \"'yes' (default): Overwrite complete mask, 'no': Only set excision points\"\n#{\n#} \"yes\"\n\n# SphericalSurface supports up to 42 spherical surfaces so we enforce the same limit\n# this must be less than SphericalSurface::nsurfaces at runtime\nCCTK_INT SetMask_SurfaceIndex[10] \"Index of spherical surface to use to set mask\" STEERABLE=always\n{\n -1:41 :: \"-1 to disable (default), >=0 for index\"\n} -1\n\nCCTK_String SetMask_SurfaceName[10] \"Name of spherical surface to use to set mask\" STEERABLE=always\n{\n \".*\":: \"emtpy to use SetMask_SurfaceIndex, any other string to use the name spherical surface\"\n} \"\"\n\nCCTK_REAL SetMask_RadiusFactor[10] \"Factor to modify radius of surface for mask\" STEERABLE=always\n{\n 0:* :: \"Some positive factor, default: 1\"\n} 1\n\nBOOLEAN SetMask_TrueShape[10] \"Use more sophisticated algorithm to closely resemble the 3d shape of the given spherical surface\" STEERABLE=always\n{\n} false\n\nshares: SphericalSurface\nuses CCTK_INT maxntheta\nuses CCTK_INT maxnphi\nuses CCTK_INT nsurfaces\n", "schedule": "# Schedule definitions for thorn SetMask_SphericalSurface\n\n# we need global loop-local since SphericalSurface_Set and AHFinderDirect run in global mode\nschedule SetMask_SphericalSurface AT CCTK_POSTSTEP after SphericalSurface_HasBeenSet before HydroBase_ExcisionHasBeenSet\n{\n LANG: C\n options: global loop-local\n} \"Set hydro_excision_mask according to spherical surface information\"\n\n# these must be local mode since they relate to HydroBase_InitExcisionMask\n# which must be local in PostRegrid\nschedule SetMask_SphericalSurface IN HydroBase_ExcisionMaskSetup after HydroBase_InitExcisionMask\n{\n LANG: C\n} \"Set hydro_excision_mask according to spherical surface information\"\n\nschedule SetMask_ParamCheck AT PARAMCHECK\n{\n LANG: C\n options: global\n} \"Check parameters for consistency\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn SetMask_SphericalSurface\n\n# Source files in this directory\nSRCS = SetMask.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/EinsteinUtils_TGRtensor.json b/EinsteinUtils_TGRtensor.json index 14ca86780901ca5be053b2996884d01f4a025391..712a0af444a24cec73b26a393d694dc7aff01bac 100644 --- a/EinsteinUtils_TGRtensor.json +++ b/EinsteinUtils_TGRtensor.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/einsteinutils.git", "configuration": "# Configuration definition for thorn TGRtensor\n# $Header$\n\nPROVIDES TGRtensor\n{\n}\n\nREQUIRES LAPACK\n", "interface": "# Interface definition for thorn TGRtensor\n# $Header$\n\nIMPLEMENTS: TGRtensor\n", - "params": "", + "param": "# Parameter definitions for thorn TGRtensor\n# $Header$\n", "schedule": "# Schedule definitions for thorn TGRtensor\n# $Header$\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TGRtensor -*-Makefile-*-\n# $Header$\n\n# Source files in this directory\nSRCS =\tadm_metric.F90\t\t\t\t\\\n\tadm_metric_simple.F90\t\t\t\\\n\tcactus.F90\t\t\t\t\\\n\tclassify.c\t\t\t\t\\\n\tclassify.F90\t\t\t\t\\\n\tconstants.F90\t\t\t\t\\\n\tconversion.F90\t\t\t\t\\\n\tcovderivs.F90\t\t\t\t\\\n\tcovderivs2.F90\t\t\t\t\\\n\tderivs.F90\t\t\t\t\\\n\tderivs2.F90\t\t\t\t\\\n\tgram_schmidt.F90\t\t\t\\\n\tmatdet.F90\t\t\t\t\\\n\tmatexp.F90\t\t\t\t\\\n\tmatinv.F90\t\t\t\t\\\n\tricci.F90\t\t\t\t\\\n\tricci2.F90\t\t\t\t\\\n\tricci4.F90\t\t\t\t\\\n\trotation.F90\t\t\t\t\\\n\ttensor.F90\t\t\t\t\\\n\ttensor2.F90\t\t\t\t\\\n\ttensor4.F90\t\t\t\t\\\n\ttimederivs.F90\t\t\t\t\\\n\tpointwise.F90\t\t\t\t\\\n\tpointwise2.F90\n\n# Subdirectories containing source files\nSUBDIRS = \n\n", diff --git a/ExternalLibraries_BLAS.json b/ExternalLibraries_BLAS.json index 38eac35906b94f89f039edbb954c9c3539f02fc1..d1849bca11d4a62f62396ee2f33d29d014e79466 100644 --- a/ExternalLibraries_BLAS.json +++ b/ExternalLibraries_BLAS.json @@ -3,7 +3,7 @@ "url": "https://github.com/EinsteinToolkit/$1-$2.git/branches/$ET_RELEASE", "configuration": "# Configuration definitions for thorn BLAS\n\nPROVIDES BLAS\n{\n SCRIPT configure.sh\n LANG bash\n OPTIONS BLAS_DIR BLAS_INSTALL_DIR BLAS_LIBS\n}\n", "interface": "# Interface definition for thorn BLAS\n\nIMPLEMENTS: BLAS\n", - "params": "", + "param": "# Parameter definitions for thorn BLAS\n", "schedule": "# Schedule definitions for thorn BLAS\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn BLAS\n\n# Source files in this directory\nSRCS = blas.F90\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/ExternalLibraries_FFTW3.json b/ExternalLibraries_FFTW3.json index 4eef0bda6786fca21c5bc605743fd1fa59540571..8524572f10806748ce82f189ecc640bb75db1a84 100644 --- a/ExternalLibraries_FFTW3.json +++ b/ExternalLibraries_FFTW3.json @@ -3,7 +3,7 @@ "url": "https://github.com/EinsteinToolkit/$1-$2.git/branches/$ET_RELEASE", "configuration": "# Configuration definitions for thorn FFTW3\n\nPROVIDES FFTW3\n{\n SCRIPT src/detect.sh\n LANG bash\n OPTIONS FFTW3_DIR FFTW3_INSTALL_DIR FFTW3_LIBS FFTW3_INC_DIRS FFTW3_LIB_DIRS\n}\n\n# Pass configuration options to build script\nREQUIRES FFTW3\n", "interface": "# Interface definition for thorn FFTW3\n\nIMPLEMENTS: FFTW3\n", - "params": "", + "param": "# Parameter definitions for thorn FFTW3\n", "schedule": "# Schedule definitions for thorn FFTW3\n", "src": { "make.code.deps": "# Main make.code.deps file for thorn FFTW3\n\nexport FFTW3_INSTALL_DIR\n\n$(CCTK_TARGET) $(OBJS) $(SRCS:%=%.d): $(SCRATCH_BUILD)/done/$(THORN)\n\nifneq ($(FFTW3_BUILD),)\n$(SCRATCH_BUILD)/done/$(THORN): $(SRCDIR)/build.sh\n\t+$(SRCDIR)/build.sh\nendif\n", diff --git a/ExternalLibraries_GSL.json b/ExternalLibraries_GSL.json index 977f59775187f00bd6700bdba5bbd7479833709a..4c038993127b1f38c913e474a763aa0c60fd8fea 100644 --- a/ExternalLibraries_GSL.json +++ b/ExternalLibraries_GSL.json @@ -3,7 +3,7 @@ "url": "https://github.com/EinsteinToolkit/$1-$2.git/branches/$ET_RELEASE", "configuration": "# Configuration definitions for thorn GSL\n\nPROVIDES GSL\n{\n SCRIPT src/detect.sh\n LANG bash\n OPTIONS GSL_DIR GSL_INSTALL_DIR GSL_LIBS\n}\n\n# Pass configuration options to build script\nREQUIRES GSL\n", "interface": "# Interface definition for thorn GSL\n\nIMPLEMENTS: GSL\n", - "params": "", + "param": "# Parameter definitions for thorn GSL\n", "schedule": "# Schedule definitions for thorn GSL\n", "src": { "make.code.deps": "# Main make.code.deps file for thorn GSL\n\nexport GSL_INSTALL_DIR\n\n$(CCTK_TARGET) $(OBJS) $(SRCS:%=%.d): $(SCRATCH_BUILD)/done/$(THORN)\n\nifneq ($(GSL_BUILD),)\n$(SCRATCH_BUILD)/done/$(THORN): $(SRCDIR)/build.sh\n\t+$(SRCDIR)/build.sh\nendif\n", diff --git a/ExternalLibraries_HDF5.json b/ExternalLibraries_HDF5.json index 7de03fc2152d470871b23d8e477a2004a6df1492..208513c7812d51190fe42612dd7918e1cb6e030d 100644 --- a/ExternalLibraries_HDF5.json +++ b/ExternalLibraries_HDF5.json @@ -3,7 +3,7 @@ "url": "https://github.com/EinsteinToolkit/$1-$2.git/branches/$ET_RELEASE", "configuration": "# Configuration definitions for thorn HDF5\n\nPROVIDES HDF5\n{\n SCRIPT src/detect.sh\n LANG bash\n OPTIONS HDF5 HDF5_DIR HDF5_INSTALL_DIR HDF5_ENABLE_CXX HDF5_ENABLE_FORTRAN ZLIB_DIR LIBSZ_DIR LIBZ_DIR HDF5_INC_DIRS HDF5_LIB_DIRS HDF5_LIBS\n}\n\n# Pass configuration options to build script\nREQUIRES HDF5\n\nREQUIRES zlib\n\n# HDF5 might require MPI\nOPTIONAL MPI\n{\n}\n", "interface": "# Interface definition for thorn HDF5\n\nIMPLEMENTS: HDF5\n", - "params": "", + "param": "# Parameter definitions for thorn HDF5\n", "schedule": "# Schedule definitions for thorn HDF5\n", "src": { "make.code.deps": "# Main make.code.deps file for thorn HDF5\n\nexport ZLIB_DIR ZLIB_INC_DIRS ZLIB_LIB_DIRS ZLIB_LIBS\n\nexport HDF5_ENABLE_CXX HDF5_ENABLE_FORTRAN\nexport LIBSZ_DIR LIBZ_DIR\nexport HDF5_INSTALL_DIR\n\n$(CCTK_TARGET) $(OBJS) $(SRCS:%=%.d): $(SCRATCH_BUILD)/done/$(THORN)\n\nifneq ($(HDF5_BUILD),)\n$(SCRATCH_BUILD)/done/$(THORN): $(SRCDIR)/build.sh\n\t+$(SRCDIR)/build.sh\nendif\n", diff --git a/ExternalLibraries_LAPACK.json b/ExternalLibraries_LAPACK.json index 15fe6cb8cff96ed1dec5b492f4d055aee42a0528..3f5d8d65c4bfa4feb6fc685a3ddd3a9e231e850d 100644 --- a/ExternalLibraries_LAPACK.json +++ b/ExternalLibraries_LAPACK.json @@ -3,7 +3,7 @@ "url": "https://github.com/EinsteinToolkit/$1-$2.git/branches/$ET_RELEASE", "configuration": "# Configuration definitions for thorn LAPACK\n\nPROVIDES LAPACK\n{\n SCRIPT configure.sh\n LANG bash\n OPTIONS LAPACK_DIR LAPACK_INC_DIRS LAPACK_LIB_DIRS LAPACK_LIBS LAPACK_INSTALL_DIR\n}\n\nREQUIRES BLAS\n", "interface": "# Interface definition for thorn LAPACK\n\nIMPLEMENTS: LAPACK\n", - "params": "", + "param": "# Parameter definitions for thorn LAPACK\n", "schedule": "# Schedule definitions for thorn LAPACK\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn LAPACK\n\n# Source files in this directory\nSRCS = lapack.F90\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/ExternalLibraries_LORENE.json b/ExternalLibraries_LORENE.json index 365d36c8b5c982072ead2ba4cec7120afdbd1c81..d43059b3d578c4e338cba43a9bb35213a62ce61d 100644 --- a/ExternalLibraries_LORENE.json +++ b/ExternalLibraries_LORENE.json @@ -3,7 +3,7 @@ "url": "https://github.com/EinsteinToolkit/$1-$2.git/branches/$ET_RELEASE", "configuration": "# Configuration definitions for thorn LORENE\n\nPROVIDES LORENE\n{\n SCRIPT src/detect.sh\n VERSION 2014-04-18-ET1\n LANG bash\n OPTIONS LORENE_DIR LORENE_EXTRA_LIB_DIRS LORENE_EXTRA_LIBS LORENE_INSTALL_DIR\n}\n\nREQUIRES BLAS LAPACK GSL\nREQUIRES LORENE\n", "interface": "# Interface definition for thorn LORENE\n\nIMPLEMENTS: LORENE\n", - "params": "", + "param": "# Parameter definitions for thorn LORENE\n", "schedule": "# Schedule definitions for thorn LORENE\n", "src": { "make.code.deps": "# Main make.code.deps file for thorn LORENE\n\nexport BLAS_DIR BLAS_INC_DIRS BLAS_LIB_DIRS BLAS_LIBS\nexport GSL_DIR GSL_INC_DIRS GSL_LIB_DIRS GSL_LIBS\nexport LAPACK_DIR LAPACK_INC_DIRS LAPACK_LIB_DIRS LAPACK_LIBS\n\nexport LORENE_EXTRA_LIB_DIRS LORENE_EXTRA_LIBS\nexport LORENE_INSTALL_DIR\n\n$(CCTK_TARGET) $(OBJS) $(SRCS:%=%.d): $(SCRATCH_BUILD)/done/$(THORN)\n\nifneq ($(LORENE_BUILD),)\n$(SCRATCH_BUILD)/done/$(THORN): $(SRCDIR)/build.sh $(wildcard $(SRCDIR)/../dist/*.tar.gz $(SRCDIR)/../dist/*.patch)\n\t+$(SRCDIR)/build.sh\nendif\n", diff --git a/ExternalLibraries_MPI.json b/ExternalLibraries_MPI.json index 252226bc27d920f1993091f78f6853b97808dee9..5bbbb47cb33ba3b3b5e5138178a250cfe8e40fbe 100644 --- a/ExternalLibraries_MPI.json +++ b/ExternalLibraries_MPI.json @@ -3,7 +3,7 @@ "url": "https://github.com/EinsteinToolkit/$1-$2.git/branches/$ET_RELEASE", "configuration": "# Configuration definitions for thorn MPI\n\nPROVIDES MPI\n{\n SCRIPT src/detect.pl\n LANG perl\n OPTIONS MPI MPI_DIR MPI_INC_DIRS MPI_LIB_DIRS MPI_LIBS MPI_INSTALL_DIR HWLOC_DIR\n}\n\n# Pass configuration options to build script\nREQUIRES MPI\n\nOPTIONAL hwloc\n{\n}\n", "interface": "# Interface definition for thorn MPI\n\nIMPLEMENTS: MPI\n", - "params": "", + "param": "# Parameter definitions for thorn MPI\n", "schedule": "# Schedule definitions for thorn MPI\n", "src": { "make.code.deps": "# Main make.code.deps file for thorn MPI\n\nexport MPI_INSTALL_DIR HWLOC_DIR\n\n$(CCTK_TARGET) $(OBJS) $(SRCS:%=%.d): $(SCRATCH_BUILD)/done/$(THORN)\n\nifneq ($(MPI_BUILD),)\n$(SCRATCH_BUILD)/done/$(THORN): $(SRCDIR)/build.pl\n\t+$(PERL) $(SRCDIR)/build.pl\nendif\n", diff --git a/ExternalLibraries_OpenSSL.json b/ExternalLibraries_OpenSSL.json index 744e05240cc27b7c1875d7531eeb31fb09be6bb9..f19dc44ab73f731678c09c4967fc648aee773ed5 100644 --- a/ExternalLibraries_OpenSSL.json +++ b/ExternalLibraries_OpenSSL.json @@ -3,7 +3,7 @@ "url": "https://github.com/EinsteinToolkit/$1-$2.git/branches/$ET_RELEASE", "configuration": "# Configuration definitions for thorn OpenSSL\n\nPROVIDES OpenSSL\n{\n SCRIPT configure.sh\n LANG bash\n OPTIONS OPENSSL_INSTALL_DIR OPENSSL_DIR OPENSSL_INC_DIRS OPENSSL_LIB_DIRS OPENSSL_LIBS\n}\n", "interface": "# Interface definition for thorn OpenSSL\n\nIMPLEMENTS: OpenSSL\n", - "params": "", + "param": "# Parameter definitions for thorn OpenSSL\n", "schedule": "# Schedule definitions for thorn OpenSSL\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn OpenSSL\n\n# Source files in this directory\nSRCS = \n\n# Subdirectories containing source files\nSUBDIRS = \n" diff --git a/ExternalLibraries_PAPI.json b/ExternalLibraries_PAPI.json index c7d91de5e71bde2df8e0bced806db4ecb1e11554..caa76d36dad67fb8010e5fac5ff3c538366dbd97 100644 --- a/ExternalLibraries_PAPI.json +++ b/ExternalLibraries_PAPI.json @@ -3,7 +3,7 @@ "url": "https://github.com/EinsteinToolkit/$1-$2.git/branches/$ET_RELEASE", "configuration": "# Configuration definitions for thorn PAPI\n\nPROVIDES PAPI\n{\n SCRIPT src/detect.sh\n LANG bash\n OPTIONS PAPI_DIR PAPI_INSTALL_DIR\n}\n\nREQUIRES PAPI\n", "interface": "# Interface definition for thorn PAPI\n\nIMPLEMENTS: PAPI\n", - "params": "", + "param": "# Parameter definitions for thorn PAPI\n\nBOOLEAN verbose \"Output debug messages?\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN per_thread_statistics \"Collect statistics per thread (instead of per process)\" STEERABLE=recover\n{\n} \"yes\"\n\nBOOLEAN define_statistics_clocks \"Define multiple clocks for each PAPI counter, providing min/max/avg/sdv\" STEERABLE=recover\n{\n} \"no\"\n\nBOOLEAN use_multiplexing \"Use multiplexing to gather more, but less accurate information\" STEERABLE=recover\n{\n} \"yes\"\n\nINT out_every \"Output statistics every so many iterations\" STEERABLE=always\n{\n 0 :: \"after initial data and shutdown\"\n 1:* :: \"every so many iterations\"\n -1 :: \"no statistics output\"\n} 0\n\n\n\nSTRING events_flops \"PAPI events for flop/sec\" STEERABLE=recover\n{\n \"\" :: \"\"\n} \"PAPI_FP_OPS PAPI_DP_OPS PAPI_VEC_DP PAPI_TOT_CYC PAPI_REF_CYC SIMD_FP_256:PACKED_DOUBLE\"\n\nSTRING events_ipc \"PAPI events for instructions/cycle\" STEERABLE=recover\n{\n \"\" :: \"\"\n} \"PAPI_TOT_CYC PAPI_TOT_INS PAPI_FP_INS PAPI_INT_INS\"\n\nSTRING events_icache \"PAPI events for instruction cache usage\" STEERABLE=recover\n{\n \"\" :: \"\"\n} \"PAPI_L1_ICA PAPI_L1_ICM PAPI_L2_ICA PAPI_L2_ICM PAPI_L3_ICA PAPI_L3_ICM\"\n\nSTRING events_dcache \"PAPI events for data cache usage\" STEERABLE=recover\n{\n \"\" :: \"\"\n} \"PAPI_L1_DCA PAPI_L1_DCM PAPI_L2_DCA PAPI_L2_DCM PAPI_L3_DCA PAPI_L3_DCM\"\n\nSTRING events_memory \"PAPI evens for memory accesses\" STEERABLE=recover\n{\n \"\" :: \"\"\n} \"PAPI_LD_INS PAPI_SR_INS PAPI_MEM_RCY PAPI_MEM_WCY\"\n\n\n\nINT dgemm_N \"Matrix size; mem = 32 N^2 bytes, cpu = 2 N^3 flop\"\n{\n 1:* :: \"N=2000 requires 128 Mbyte and 16 Gflop; N=5000 requires 800 Mbyte and 250 Gflop\"\n} 1000\n", "schedule": "# Schedule definitions for thorn PAPI\n\nSCHEDULE PAPI_init AT wragh\n{\n LANG: C\n OPTIONS: meta\n} \"Initialise PAPI\"\n\nSCHEDULE PAPI_register_clock AT wragh AFTER PAPI_init\n{\n LANG: C\n OPTIONS: meta\n} \"Set up Cactus clock for PAPI\"\n\nSCHEDULE PAPI_dgemm AT basegrid\n{\n LANG: C\n OPTIONS: meta\n} \"Run a DGEMM benchmark to test PAPI\"\n\nSCHEDULE PAPI_output_stats_analysis AT analysis\n{\n LANG: C\n OPTIONS: meta\n} \"Output PAPI statistics\"\n\nSCHEDULE PAPI_output_stats_terminate AT terminate\n{\n LANG: C\n OPTIONS: meta\n} \"Output PAPI statistics\"\n", "src": { "make.code.deps": "# Main make.code.deps file for thorn PAPI\n\nexport PAPI_INSTALL_DIR\n\n$(CCTK_TARGET) $(OBJS) $(SRCS:%=%.d): $(SCRATCH_BUILD)/done/$(THORN)\n\nifneq ($(PAPI_BUILD),)\n$(SCRATCH_BUILD)/done/$(THORN): $(SRCDIR)/build.sh\n\t+$(SRCDIR)/build.sh\nendif\n", diff --git a/ExternalLibraries_hwloc.json b/ExternalLibraries_hwloc.json index d8a9ecdc29a6046e76fed061d44243759d6e0c1e..ea530adf37161072c92d9a9b03baf1d2cee3d6f4 100644 --- a/ExternalLibraries_hwloc.json +++ b/ExternalLibraries_hwloc.json @@ -3,7 +3,7 @@ "url": "https://github.com/EinsteinToolkit/$1-$2.git/branches/$ET_RELEASE", "configuration": "# Configuration definitions for thorn hwloc\n\nREQUIRES zlib\n\nOPTIONAL pciutils\n{\n}\n\nPROVIDES hwloc\n{\n SCRIPT src/detect.sh\n LANG bash\n OPTIONS HWLOC_DIR HWLOC_LIB_DIRS HWLOC_INC_DIRS HWLOC_LIBS HWLOC_EXTRA_LIBS HWLOC_INSTALL_DIR\n}\n\nREQUIRES hwloc\n", "interface": "# Interface definition for thorn hwloc\n\nIMPLEMENTS: hwloc\n", - "params": "", + "param": "# Parameter definitions for thorn hwloc\n", "schedule": "# Schedule definitions for thorn hwloc\n\nSCHEDULE GROUP hwloc_startup AT startup\n{\n} \"hwloc startup group\"\n\nSCHEDULE hwloc_version IN hwloc_startup\n{\n LANG: C\n} \"Output hwloc version\"\n\n#SCHEDULE hwloc_lstopo IN hwloc_startup\n#{\n# LANG: C\n#} \"Output hardware locality information\"\n", "src": { "make.code.deps": "# Main make.code.deps file for thorn HWLOC\n\nexport HWLOC_INSTALL_DIR\n\n$(CCTK_TARGET) $(OBJS) $(SRCS:%=%.d): $(SCRATCH_BUILD)/done/$(THORN)\n\nifneq ($(HWLOC_BUILD),)\n$(SCRATCH_BUILD)/done/$(THORN): $(SRCDIR)/build.sh\n\t+$(SRCDIR)/build.sh\nendif\n", diff --git a/ExternalLibraries_libjpeg.json b/ExternalLibraries_libjpeg.json index e9ca792c3ae54427adf5efea386d2a7fc2ec91c8..85a020f7119f3ef647cf47d70135b36d1d0296ec 100644 --- a/ExternalLibraries_libjpeg.json +++ b/ExternalLibraries_libjpeg.json @@ -3,7 +3,7 @@ "url": "https://github.com/EinsteinToolkit/$1-$2.git/branches/$ET_RELEASE", "configuration": "# Configuration definitions for thorn libjpeg\n\nPROVIDES libjpeg\n{\n SCRIPT configure.sh\n LANG bash\n OPTIONS LIBJPEG_INSTALL_DIR LIBJPEG_DIR\n}\n", "interface": "# Interface definition for thorn libjpeg\n\nIMPLEMENTS: libjpeg\n", - "params": "", + "param": "# Parameter definitions for thorn libjpeg\n", "schedule": "# Schedule definitions for thorn libjpeg\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn libjpeg\n\n# Source files in this directory\nSRCS = \n\n# Subdirectories containing source files\nSUBDIRS = \n" diff --git a/ExternalLibraries_pthreads.json b/ExternalLibraries_pthreads.json index 4a57b56692af5c6153c19fc53c15453c3281689a..217cb0b7cfb11362fb3caf73cd89cf60a621c731 100644 --- a/ExternalLibraries_pthreads.json +++ b/ExternalLibraries_pthreads.json @@ -3,7 +3,7 @@ "url": "https://github.com/EinsteinToolkit/$1-$2.git/branches/$ET_RELEASE", "configuration": "# Configuration definitions for thorn PTHREADS\n\nPROVIDES PTHREADS\n{\n SCRIPT src/detect.sh\n LANG bash\n OPTIONS PTHREADS PTHREADS_DIR PTHREADS_INC_DIRS PTHREADS_LIB_DIRS PTHREADS_LIBS\n}\n\nREQUIRES PTHREADS\n", "interface": "# Interface definition for thorn PTHREADS\n\nIMPLEMENTS: PTHREADS\n", - "params": "", + "param": "# Parameter definitions for thorn PTHREADS\n", "schedule": "# Schedule definitions for thorn PTHREADS\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn PTHREADS\n\n# Source files in this directory\nSRCS = \n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/ExternalLibraries_zlib.json b/ExternalLibraries_zlib.json index d20b61a5dc39507c6f9ba7b41218d8c7b70a4d7e..b8d0ed9ee23814ec5dc521debe1891bad1da55e5 100644 --- a/ExternalLibraries_zlib.json +++ b/ExternalLibraries_zlib.json @@ -3,7 +3,7 @@ "url": "https://github.com/EinsteinToolkit/$1-$2.git/branches/$ET_RELEASE", "configuration": "# Configuration definitions for thorn zlib\n\nPROVIDES zlib\n{\n SCRIPT configure.sh\n LANG bash\n OPTIONS ZLIB_DIR ZLIB_INSTALL_DIR\n}\n", "interface": "# Interface definition for thorn zlib\n\nIMPLEMENTS: zlib\n", - "params": "", + "param": "# Parameter definitions for thorn zlib\n", "schedule": "# Schedule definitions for thorn zlib\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn zlib\n\n# Source files in this directory\nSRCS = \n\n# Subdirectories containing source files\nSUBDIRS = \n" diff --git a/KrancNumericalTools_GenericFD.json b/KrancNumericalTools_GenericFD.json index 483e133177af97584bf77fd8a0047dfc3b1a7b9c..7db60df35c5d983dd03616ebb17d90b8e551ef1e 100644 --- a/KrancNumericalTools_GenericFD.json +++ b/KrancNumericalTools_GenericFD.json @@ -3,7 +3,7 @@ "url": "https://github.com/ianhinder/Kranc.git", "configuration": "# GenericFD/configuration.ccl \n# Configuration definition for thorn GenericFD\n# author: E. Schnetter\n\nPROVIDES GenericFD\n{\n SCRIPT\n LANG\n}\n", "interface": "# GenericFD/interface.ccl \n# Interface definition for thorn GenericFD\n# author: S. Husa \n\n# $Header$ \n\nimplements: GenericFD\n\nINCLUDE HEADER: GenericFD.h in GenericFD.h\nINCLUDE HEADER: sbp_calc_coeffs.h in sbp_calc_coeffs.h\n\nUSES INCLUDE: Boundary.h\nUSES INCLUDE: Symmetry.h\n\nCCTK_INT FUNCTION \\\n GetBoundarySpecification (CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetMap \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetBbox \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY bbox)\nUSES FUNCTION MultiPatch_GetBbox\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetBoundarySpecification \\\n (CCTK_INT IN map, \\\n CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION MultiPatch_GetBoundarySpecification\n\nCCTK_INT FUNCTION \\\n SymmetryTableHandleForGrid (CCTK_POINTER_TO_CONST IN cctkGH)\nREQUIRES FUNCTION SymmetryTableHandleForGrid\n\nCCTK_REAL jacobian type=GF timelevels=1 tags='checkpoint=\"no\" prolongation=\"none\"'\n{\n J11, J12, J13, J21, J22, J23, J31, J32, J33\n} \"Jacobian J_(ik) = da^i/dx^k of the coordinate transformation (a: local, x: global)\"\n\nCCTK_REAL jacobian2 type=GF timelevels=1 tags='checkpoint=\"no\" prolongation=\"none\"'\n{\n dJ111, dJ112, dJ113, dJ122, dJ123, dJ133,\n dJ211, dJ212, dJ213, dJ222, dJ223, dJ233,\n dJ311, dJ312, dJ313, dJ322, dJ323, dJ333,\n} \"Derivative of the Jacobian d^2[local]/d[global]^2\"\n", - "params": "", + "param": "# GenericFD/param.ccl \n# Parameter definition for thorn GenericFD\n# author: S. Husa\n\n# $Header$ \n\nrestricted:\n\nCCTK_INT stencil_width \"stencil width used near boundary DEPRECATED\"\n{\n -1:* :: \"outgoing characteristic speed > 0, default of -1 is intentionally invalid\"\n} -1\n\nCCTK_INT stencil_width_x \"stencil width used near boundary DEPRECATED\"\n{\n -1:* :: \"outgoing characteristic speed > 0, default of -1 is intentionally invalid\"\n} -1\n\nCCTK_INT stencil_width_y \"stencil width used near boundary DEPRECATED\"\n{\n -1:* :: \"outgoing characteristic speed > 0, default of -1 is intentionally invalid\"\n} -1\n\nCCTK_INT stencil_width_z \"stencil width used near boundary DEPRECATED\"\n{\n -1:* :: \"outgoing characteristic speed > 0, default of -1 is intentionally invalid\"\n} -1\n\nCCTK_INT boundary_width \"width of boundary (fix later to use Cactus boundary calls) DEPRECATED\"\n{\n -1:* :: \"Any integer\"\n} 1\n\nrestricted:\nCCTK_INT assume_stress_energy_state \"Assume stress_energy_state has a particular value\" STEERABLE=RECOVER\n{\n -1 :: \"do not assume anything\"\n 0:1 :: \"assume off or on\"\n} -1\n\nCCTK_INT assume_use_jacobian \"Assume use_jacobian has a particular value\" STEERABLE=RECOVER\n{\n -1 :: \"do not assume anything\"\n 0:1 :: \"assume off or on\"\n} -1\n\nCCTK_STRING jacobian_group \"Name of group containing Jacobian\" STEERABLE=RECOVER\n{\n \"\" :: \"String of the form ::\"\n} \"\"\n\nCCTK_STRING jacobian_determinant_group \"Name of group containing Jacobian determinant\" STEERABLE=RECOVER\n{\n \"\" :: \"String of the form ::\"\n} \"\"\n\nCCTK_STRING jacobian_inverse_group \"Name of group containing Jacobian inverse\" STEERABLE=RECOVER\n{\n \"\" :: \"String of the form ::\"\n} \"\"\n\nCCTK_STRING jacobian_derivative_group \"Name of group containing Jacobian derivative\" STEERABLE=RECOVER\n{\n \"\" :: \"String of the form ::\"\n} \"\"\n\nCCTK_INT jacobian_identity_map \"Map number on which the Jacobian should not be applied\"\n{\n -1:* :: \"Any integer\"\n} -1\n\nCCTK_BOOLEAN allocate_genericfd_jacobian \"Allocate memory for the GenericFD Jacobian (used for benchmarks)\"\n{\n} \"no\"\n", "schedule": "# GenericFD/schedule.ccl \n# Schedule definition for thorn GenericFD\n# author: S. Husa\n\n# $Header$ \n\nif (allocate_genericfd_jacobian)\n{\n STORAGE: jacobian, jacobian2\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn GenericFD\n# $Header$\n\n# Source files in this directory\nSRCS = GenericFD.c\n\n# Subdirectories containing source files\nSUBDIRS =\n", diff --git a/Lean_LeanBSSNMoL.json b/Lean_LeanBSSNMoL.json index 5b7b0e9ec336e841642c827e253daa5daf198ff6..bd07ffed1a61c9421f844de86ef0ff6387aa4725 100644 --- a/Lean_LeanBSSNMoL.json +++ b/Lean_LeanBSSNMoL.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/canuda/lean_public.git", "configuration": "# Configuration definition for thorn LeanBSSNMoL\n", "interface": "# Interface definition for thorn LeanBSSNMoL\n\nimplements: LeanBSSNMoL\ninherits: ADMBase TmunuBase Boundary CoordGauge \n\nUSES INCLUDE: Slicing.h\n\n\nCCTK_INT FUNCTION \\\n Boundary_SelectGroupForBC \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, \\\n CCTK_INT IN boundary_width, \\\n CCTK_INT IN table_handle, \\\n CCTK_STRING IN group_name, \\\n CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT FUNCTION \\\n ExtrapolateGammas \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_REAL ARRAY INOUT var)\nUSES FUNCTION ExtrapolateGammas\n\nCCTK_INT FUNCTION \\\n NewRad_Apply \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_REAL ARRAY IN var, \\\n CCTK_REAL ARRAY INOUT rhs, \\\n CCTK_REAL IN var0, \\\n CCTK_REAL IN v0, \\\n CCTK_INT IN radpower)\nUSES FUNCTION NewRad_Apply\n\n#########################################\n### Aliased functions from Carpet ###\n#########################################\n\nCCTK_INT FUNCTION \\\n GetRefinementLevel \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION GetRefinementLevel\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetMap\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n\n\n####################################################\n### Functions provided by MoL for registration ###\n####################################################\n\nCCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\nCCTK_INT FUNCTION MoLRegisterEvolvedGroup(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\nCCTK_INT FUNCTION MoLRegisterSaveAndRestoreGroup(CCTK_INT IN SandRIndex)\nCCTK_INT FUNCTION MoLRegisterConstrainedGroup(CCTK_INT IN ConstrainedIndex)\n\nUSES FUNCTION MoLRegisterEvolved\nUSES FUNCTION MoLRegisterEvolvedGroup\nUSES FUNCTION MoLRegisterSaveAndRestoreGroup\nUSES FUNCTION MoLRegisterConstrainedGroup\n\n\n\npublic:\n\n# see https://einsteintoolkit.org/documentation/ThornDoc/CactusBase/SymBase/\n\nCCTK_REAL conf_fac type=gf timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=-0.33333333333333333333' \"conformal factor\"\n\nCCTK_REAL rhs_conf_fac type=gf timelevels=1 tags='tensortypealias=\"Scalar\" tensorweight=-0.33333333333333333333 prolongation=\"none\"' \"conformal factor\"\n\n\nCCTK_REAL hmetric type=gf timelevels=3 tags='tensortypealias=\"DD_sym\" tensorweight=-0.66666666666666666667'\n{\n hxx hxy hxz hyy hyz hzz\n} \"\\tilde gamma_ij\"\n\nCCTK_REAL rhs_hmetric type=gf timelevels=1 tags='tensortypealias=\"DD_sym\" tensorweight=-0.66666666666666666667 prolongation=\"none\"'\n{\n rhs_hxx rhs_hxy rhs_hxz rhs_hyy rhs_hyz rhs_hzz\n} \"\\tilde gamma_ij\"\n\n\nCCTK_REAL hcurv type=gf timelevels=3 tags='tensortypealias=\"DD_sym\" tensorweight=-0.66666666666666666667'\n{\n axx axy axz ayy ayz azz\n} \"\\tilde a_ij\"\n\nCCTK_REAL rhs_hcurv type=gf timelevels=1 tags='tensortypealias=\"DD_sym\" tensorweight=-0.66666666666666666667 prolongation=\"none\"'\n{\n rhs_axx rhs_axy rhs_axz rhs_ayy rhs_ayz rhs_azz\n} \"\\tilde a_ij\"\n\n\nCCTK_REAL trk type=gf timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n tracek\n} \"Tr(K)\"\n\nCCTK_REAL rhs_trk type=gf timelevels=1 tags='tensortypealias=\"Scalar\" tensorweight=0 prolongation=\"none\"'\n{\n rhs_tracek\n} \"Tr(K)\"\n\n\nCCTK_REAL gammat type=gf timelevels=3 tags='tensortypealias=\"U\" tensorweight=0.66666666666666666667 tensorspecial=\"Gamma\"'\n{\n gammatx gammaty gammatz\n} \"\\tilde \\Gamma^i\"\n\nCCTK_REAL rhs_gammat type=gf timelevels=3 tags='tensortypealias=\"U\" tensorweight=0.66666666666666666667 tensorspecial=\"Gamma\" prolongation=\"none\"'\n{\n rhs_gammatx rhs_gammaty rhs_gammatz\n} \"\\tilde \\Gamma^i\"\n\n\nCCTK_REAL rhs_lapse type=gf timelevels=1 tags='tensortypealias=\"Scalar\" prolongation=\"none\"'\n{\n rhs_alp\n} \"lapse function\" \n\n\nCCTK_REAL rhs_shift type=gf timelevels=1 tags='tensortypealias=\"U\" prolongation=\"none\"'\n{\n rhs_betax rhs_betay rhs_betaz\n} \"shift vector\"\n\n\nCCTK_REAL ham type=gf timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n hc\n} \"Hamiltonian constraint\"\n\nCCTK_REAL mom type=gf timelevels=3 tags='tensortypealias=\"D\" tensorweight=0'\n{\n mcx mcy mcz\n} \"momentum constraints\"\n", - "params": "", + "param": "# Parameter definitions for thorn LeanBSSNMoL\n\nshares: ADMBase\nEXTENDS CCTK_KEYWORD evolution_method \"evolution_method\"\n{\n LeanBSSNMoL :: \"\"\n}\nEXTENDS CCTK_KEYWORD lapse_evolution_method \"lapse_evolution_method\"\n{\n LeanBSSNMoL :: \"\"\n}\nEXTENDS CCTK_KEYWORD shift_evolution_method \"shift_evolution_method\"\n{\n LeanBSSNMoL :: \"\"\n}\nEXTENDS CCTK_KEYWORD dtlapse_evolution_method \"dtlapse_evolution_method\"\n{\n LeanBSSNMoL :: \"\"\n}\nEXTENDS CCTK_KEYWORD dtshift_evolution_method \"dtshift_evolution_method\"\n{\n LeanBSSNMoL :: \"\"\n}\n\n\nshares: MethodOfLines\nUSES CCTK_INT MoL_Num_Evolved_Vars\nUSES CCTK_INT MoL_Num_Constrained_Vars\nUSES CCTK_INT MoL_Num_SaveAndRestore_Vars\n\n\nrestricted:\n\nCCTK_INT LeanBSSN_MaxNumEvolvedVars \"The maximum number of evolved variables used by LeanBSSNMoL\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Evolved_Vars\n{\n 21:21 :: \"lapse (1), shift(3), hmetric (6), hcurv(6), trK (1), conf_fac(1), Gamma (3)\"\n} 21\n\nCCTK_INT LeanBSSN_MaxNumConstrainedVars \"The maximum number of constrained variables used by LeanBSSNMoL\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Constrained_Vars\n{\n 16:16 :: \"metric(6), extrinsic curvature(6), dtlapse(1) and dtshift(3)\"\n} 16\n\nCCTK_INT LeanBSSN_MaxNumSandRVars \"The maximum number of save and restore variables used by LeanBSSNMoL\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_SaveAndRestore_Vars\n{\n 0:0 :: \"none\"\n} 0\n\n\nprivate:\n\nCCTK_REAL conf_fac_floor \"Minimal value of conformal factor\"\n{\n *:* :: \"Any value possible\"\n} 1.0d-04\n\n\nBOOLEAN impose_conf_fac_floor_at_initial \"Use floor value on initial data?\"\n{\n} \"no\"\n\nCCTK_REAL eps_r \"Minimal value of radius\"\n{\n 0:* :: \"Any value possible\"\n} 1.0d-06\n\n\nBOOLEAN calculate_constraints \"Calculate the BSSN constraints?\"\n{\n} \"no\"\n\n\n\n# Parameters related to the particular structure of the BSSN equations\n#=====================================================================\n\nCCTK_INT derivs_order \"Order for derivatives\"\n{\n 4 :: \"4th order stencils\"\n 6 :: \"6th order stencils\"\n} 4\n\n\nBOOLEAN use_advection_stencils \"Use lop-sided stencils for advection derivs\"\n{\n} \"yes\"\n\n\nCCTK_REAL chi_gamma \"adding Yo-term to the gamma equation\"\n{\n *:* :: \"2/3 is a good value; the sign must be the same as betak,k\"\n} 0.0\n\n\nBOOLEAN make_aa_tracefree \"Remove trace of aij after each timestep?\"\n{\n} \"yes\"\n\nBOOLEAN reset_dethh \"Reset determinant of conformal metric?\"\n{\n} \"no\"\n\n# BOOLEAN reset_gamma \"Reset gamma according to gamma^a = hu^{mn} chr^a_{mn}\"\n# {\n# } \"no\"\n\n\n# Parameters for the gauge conditions\n#====================================\n\nBOOLEAN precollapsed_lapse \"Initialize lapse as alp*psi^{-2} ?\"\n{\n} \"no\"\n\nBOOLEAN rescale_shift_initial \"Initialize shift as psi^{-2} beta ?\"\n{\n} \"no\"\n\n\nCCTK_REAL zeta_alpha \"Coefficient in front of the ad1_alpha term in slicing\"\n{\n *:* :: \"Anything possible\"\n} 1\n\n\nBOOLEAN eta_transition \"...\"\n{\n} \"no\"\n\nBOOLEAN moving_eta_transition \"...\"\n{\n} \"no\"\n\n\nBOOLEAN eta_beta_dynamic \"Use dynamic eta?\"\n{\n} \"no\"\n\nCCTK_REAL eta_transition_r \"Damping parameter in live shift\"\n{\n 0:* :: \"non-negative\"\n} 1\n\n\nCCTK_REAL eta_beta \"Damping parameter in live shift\"\n{\n 0:* :: \"non-negative\"\n} 1\n\n\nCCTK_REAL zeta_beta \"Factor in front of ad1_beta in the live shift\"\n{\n 0:* :: \"non-negative\"\n} 1\n\n\nCCTK_REAL beta_Alp \"Exponent for lapse in front of the Gamma^i term in the shift\"\n{\n *:* :: \"Anything possible, default is zero\"\n} 0.0\n\n\nCCTK_REAL beta_Gamma \"Coefficient in front of the Gamma^i term in the shift\"\n{\n *:* :: \"Anything possible\"\n} 0.75\n\nCCTK_REAL beta_f_delta1 \"delta1 coefficient for the shift condition of 1702.01755\"\n{\n 0:* :: \"non-negative\"\n} 0.0125\n\nCCTK_REAL beta_f_delta2 \"delta2 coefficient for the shift condition of 1702.01755\"\n{\n 0:* :: \"non-negative\"\n} 0.0005\n\n\n# Parameters for the outer boundary condition\n#============================================\n\nCCTK_INT n_hij \"n power of outgoing boundary r^n fall off rate for h_ij\"\n{\n 0:2 :: \"1 is reasonable\"\n} 1\n\nCCTK_INT n_aij \"n power of outgoing boundary r^n fall off rate for A_ij\"\n{\n 0:2 :: \"2 is reasonable\"\n} 2\n\nCCTK_INT n_conf_fac \"n power of outgoing boundary r^n fall off rate for conf_fac\"\n{\n 0:2 :: \"1 is reasonable\"\n} 1\n\nCCTK_INT n_alpha \"n power of outgoing boundary r^n fall off rate for alpha\"\n{\n 0:2 :: \"1 is my guess\"\n} 1\n\nCCTK_INT n_beta \"n power of outgoing boundary r^n fall off rate for beta\"\n{\n 0:2 :: \"1 is my guess\"\n} 1\n\nCCTK_INT n_trk \"n power of outgoing boundary r^n fall off rate for A_ij\"\n{\n 0:2 :: \"2 is reasonable\"\n} 2\n\nCCTK_INT n_gammat \"n power of outgoing boundary r^n fall off rate for Gamma^i\"\n{\n 0:2 :: \"Maybe 1?\"\n} 1\n\nBOOLEAN z_is_radial \"use with multipatch\"\n{\n} \"no\"\n", "schedule": "# Schedule definitions for thorn LeanBSSNMoL\n\n# Schedule lean evolution if evolution_method=LeanBSSNMoL\nif (CCTK_EQUALS (evolution_method, \"LeanBSSNMoL\")) {\n\nSTORAGE: conf_fac[3], rhs_conf_fac[1]\nSTORAGE: hmetric[3], rhs_hmetric[1]\nSTORAGE: hcurv[3], rhs_hcurv[1]\nSTORAGE: trk[3], rhs_trk[1]\nSTORAGE: gammat[3], rhs_gammat[1]\nSTORAGE: rhs_lapse[1]\nSTORAGE: rhs_shift[1]\n\nif (calculate_constraints)\n{\n STORAGE: ham[3]\n STORAGE: mom[3]\n}\n\nschedule LeanBSSN_RegisterSlicing at STARTUP\n{\n LANG: C\n OPTIONS: meta\n} \"Register slicing\"\n\nschedule LeanBSSN_symmetries at BASEGRID\n{\n LANG: Fortran\n OPTIONS: Global\n} \"Register symmetries of the BSSN grid functions\"\n\nschedule LeanBSSN_zero_rhs at BASEGRID after LeanBSSN_symmetries\n{\n LANG: Fortran\n} \"set all rhs functions to zero to prevent spurious nans\"\n\nschedule LeanBSSN_adm2bssn at CCTK_INITIAL after ADMBase_PostInitial\n{\n LANG: Fortran\n OPTIONS: Local\n SYNC: gammat\n} \"Convert initial data into BSSN variables\"\n\nschedule GROUP ApplyBCs as LeanBSSN_ApplyBCs at CCTK_INITIAL after LeanBSSN_adm2bssn\n{\n} \"Apply boundary conditions\"\n\n\n# MoL: registration\n\nschedule LeanBSSN_RegisterVars in MoL_Register\n{\n LANG: C\n OPTIONS: META\n} \"Register variables for MoL\"\n\n\n# MoL: compute source terms, etc\n\nschedule LeanBSSN_calc_bssn_rhs in MoL_CalcRHS as LeanBSSN_CalcRHS\n{\n LANG: Fortran\n} \"MoL RHS calculation\"\n\nif (!z_is_radial) {\n schedule LeanBSSN_calc_bssn_rhs_bdry in MoL_CalcRHS as LeanBSSN_CalcRHS_Bdry \\\n after LeanBSSN_CalcRHS\n {\n LANG: Fortran\n } \"MoL boundary RHS calculation\"\n}\n\nif (z_is_radial) {\n schedule LeanBSSN_calc_bssn_rhs_bdry_sph in MoL_RHSBoundaries as LeanBSSN_CalcRHS_Bdry_Sph\n {\n LANG: Fortran\n } \"MoL boundary RHS calculation in spherical coordinates\"\n}\n\nif (reset_dethh)\n{\n schedule LeanBSSN_reset_detmetric in MoL_PostStep before LeanBSSN_Boundaries\n {\n LANG: Fortran\n } \"reset dethh = 1\"\n}\n\nif (make_aa_tracefree)\n{\n schedule LeanBSSN_remove_trA in MoL_PostStep before LeanBSSN_Boundaries after reset_detmetric\n {\n LANG: Fortran\n } \"Remove trace of A\"\n}\n\nschedule LeanBSSN_impose_conf_fac_floor in MoL_PostStep before LeanBSSN_Boundaries\n{\n LANG: Fortran\n} \"Make sure conformal factor does not drop below specified value\"\n\n\nschedule LeanBSSN_Boundaries in MoL_PostStep\n{\n LANG: Fortran\n OPTIONS: LEVEL\n SYNC: ADMBase::lapse\n SYNC: ADMBase::shift\n SYNC: LeanBSSNMoL::conf_fac\n SYNC: LeanBSSNMoL::hmetric\n SYNC: LeanBSSNMoL::hcurv\n SYNC: LeanBSSNMoL::trk\n SYNC: LeanBSSNMoL::gammat\n} \"MoL boundary enforcement\"\n\nschedule GROUP ApplyBCs as LeanBSSN_ApplyBCs in MoL_PostStep after LeanBSSN_Boundaries\n{\n} \"Apply boundary conditions\"\n\n\n# MoL should now be done. update ADM variables here\n\nschedule LeanBSSN_bssn2adm in MoL_PostStep after LeanBSSN_ApplyBCs before ADMBase_SetADMVars\n{\n LANG: Fortran\n OPTIONS: Local\n} \"Convert variables back to the ADM ones\"\n\n\n# compute constraints\n\nif (calculate_constraints)\n{\n schedule LeanBSSN_bssn_constraints in MoL_PseudoEvolution\n {\n LANG: Fortran\n OPTIONS: Local\n } \"Compute constraints\"\n\n schedule LeanBSSN_Constraints_Boundaries in MoL_PseudoEvolution after LeanBSSN_bssn_constraints\n {\n LANG: Fortran\n OPTIONS: LEVEL\n SYNC: LeanBSSNMoL::ham\n SYNC: LeanBSSNMoL::mom\n } \"Enforce symmetry BCs in constraint computation\"\n\n schedule GROUP ApplyBCs as LeanBSSN_Constraints_ApplyBCs in MoL_PseudoEvolution after LeanBSSN_Constraints_Boundaries\n {\n } \"Apply boundary conditions\"\n\n}\n\n\n} # end if evolution_method=\"Lean_BSSN\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn LeanBSSNMoL\n\n# Source files in this directory\nSRCS = adm_vs_bssn.F90 \\\n boundaries.F90 \\\n calc_bssn_rhs.F90 \\\n RegisterSlicing.c \\\n Basegrid.F90 \\\n bssn_constraints.F90 \\\n evolve_utils.F90 \\\n RegisterVars.c \\\n zero_rhs.F90\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/Lean_NPScalars.json b/Lean_NPScalars.json index 49c37f372b8d0547491a221acefc9c77b464fca4..41d815c6a89d103ab9b3b26b7b80de7378a537fd 100644 --- a/Lean_NPScalars.json +++ b/Lean_NPScalars.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/canuda/lean_public.git", "configuration": "# Configuration definition for thorn NPScalars\n", "interface": "# Interface definition for thorn NPScalars\n\nimplements: NPScalars\n\ninherits: ADMBase\n\n## From thorn cactusbase/Boundary:\nCCTK_INT FUNCTION \\\n Boundary_SelectGroupForBC \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, \\\n CCTK_INT IN boundary_width, \\\n CCTK_INT IN table_handle, \\\n CCTK_STRING IN group_name, \\\n CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nprivate:\n\nCCTK_REAL NPPsi4R_group type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0 tensorparity=1'\n{\n psi4re\n}\n\nCCTK_REAL NPPsi4I_group type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0 tensorparity=-1'\n{\n psi4im\n}\n", - "params": "", + "param": "# Parameter definitions for thorn NPScalars\n\nprivate:\n\nCCTK_INT NP_order \"Second or fourth order accuracy?\" STEERABLE=recover\n{\n 2 :: \"Second order\"\n 4 :: \"Fourth order\"\n 6 :: \"Sixth order\"\n} 4\n", "schedule": "# Schedule definitions for thorn NPScalars\n\nSTORAGE: NPPsi4R_group[3]\nSTORAGE: NPPsi4I_group[3]\n\n\n#=============================================================================\n# Set symmetries for NPScalars grid functions\n#=============================================================================\nschedule NP_symmetries AT BASEGRID\n{\n LANG: Fortran\n OPTIONS: Meta\n} \"Set symmetries for grid functions\"\n\n\n#=============================================================================\n# Calculate NPScalars grid functions\n#=============================================================================\n\nschedule GROUP CalcNPScalars AT POSTINITIAL\n{\n} \"Calculate NPScalars\"\n\nschedule GROUP CalcNPScalars AT ANALYSIS\n{\n} \"Calculate NPScalars\"\n\n## Calculate Psi4 as grid function\nschedule NP_calcPsiGF IN CalcNPScalars\n{\n LANG: Fortran\n OPTIONS: Local\n} \"calculate Psi4 as grid function\"\n\n\nschedule GROUP CalcNPScalars_BC IN CalcNPScalars AFTER NP_calcPsiGF\n{\n} \"Boundary conditions\"\n\nschedule GROUP CalcNPScalars_BC AT PostRegridInitial AFTER MoL_PostStep\n{\n} \"Boundary conditions\"\n\nschedule GROUP CalcNPScalars_BC AT PostRegrid AFTER MoL_PostStep\n{\n} \"Boundary conditions\"\n\nschedule GROUP CalcNPScalars_BC AT PostRestrictInitial AFTER MoL_PostStep\n{\n} \"Boundary conditions\"\n\nschedule GROUP CalcNPScalars_BC AT PostRestrict AFTER MoL_PostStep\n{\n} \"Boundary conditions\"\n\n\n\n## Call symmetry boundary conditions\nschedule NPboundaries IN CalcNPScalars_BC\n{\n LANG: Fortran\n OPTIONS: level\n SYNC: NPPsi4R_group\n SYNC: NPPsi4I_group\n} \"Symmetry boundary conditions\"\n\nschedule GROUP ApplyBCs AS ApplyBCs_NP IN CalcNPScalars_BC AFTER NPboundaries\n{\n} \"Apply boundary conditions\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn NPScalars\n\n# Source files in this directory\nSRCS = \tBasegrid.F90 \\\n\tNP_calc_psi_gfs.F90\t\t \\\n\tNP_boundaries.F90 \n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/Llama_ADMDerivatives.json b/Llama_ADMDerivatives.json index e75bfce2f1333803cd8cc23758910356297d766f..cc75e2de6c05d378b188d07616fc1edeb71230e7 100644 --- a/Llama_ADMDerivatives.json +++ b/Llama_ADMDerivatives.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/llamacode/llama.git", "configuration": "REQUIRES THORNS: SummationByParts\n", "interface": "# Interface definition for thorn ADMDerivatives\n# $Header:$\n\nimplements: ADMDerivatives\ninherits: Coordinates ADMBase \n\n\nuses include: loopcontrol.h\nuses include: GlobalDerivative.h\n\n\n\n# Specify whether multipatch supports Thornburg04 6-patch system\nCCTK_INT FUNCTION \\\n MultiPatch_ProvidesThornburg04 \\\n ()\nUSES FUNCTION MultiPatch_ProvidesThornburg04\n\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetMap \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n \nCCTK_INT FUNCTION \\\n MultiPatch_GetBbox \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY bbox)\nUSES FUNCTION MultiPatch_GetBbox\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetBoundarySpecification \\\n (CCTK_INT IN map, \\\n CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION MultiPatch_GetBoundarySpecification\n\nSUBROUTINE Diff_coeff ( CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN dir, \\\n CCTK_INT IN nsize, \\\n CCTK_INT OUT ARRAY imin, \\\n CCTK_INT OUT ARRAY imax, \\\n CCTK_REAL OUT ARRAY q, \\\n CCTK_INT IN table_handle )\nUSES FUNCTION Diff_coeff\n\n\n### From CactusBase/SymBase\n\nCCTK_INT FUNCTION \\\n SymmetryTableHandleForGrid (CCTK_POINTER_TO_CONST IN cctkGH)\nREQUIRES FUNCTION SymmetryTableHandleForGrid\n\n### From CoordBase\n\nCCTK_INT FUNCTION \\\n GetBoundarySpecification (CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\n\nREQUIRES FUNCTION Boundary_SelectVarForBC\nREQUIRES FUNCTION Boundary_SelectGroupForBC\n\n\nPUBLIC:\n\n\nREAL dr_lapse TYPE=GF TIMELEVELS=3 TAGS='checkpoint=\"no\" prolongation=\"none\" tensortypealias=\"Scalar\"'\n{\n alp_dr\n} \"Radial derivatives of ADM lapse\"\n\n\nREAL dr_shift TYPE=GF TIMELEVELS=3 TAGS='checkpoint=\"no\" prolongation=\"none\" tensortypealias=\"U\"'\n{\n betax_dr, betay_dr, betaz_dr\n} \"Radial derivatives of ADM shift\"\n\n\nREAL dr_metric TYPE=GF TIMELEVELS=3 TAGS='checkpoint=\"no\" prolongation=\"none\" tensortypealias=\"DD_sym\"'\n{\n gxx_dr, gxy_dr, gxz_dr\n gyy_dr, gyz_dr\n gzz_dr\n} \"Radial derivatives of ADM 3-metric\"\n\n\nREAL dx_vars TYPE=GF TIMELEVELS=1 TAGS='checkpoint=\"no\" prolongation=\"none\"'\n{\n alp_dx\n betax_dx, betay_dx, betaz_dx\n gxx_dx, gxy_dx, gxz_dx\n gyy_dx, gyz_dx\n gzz_dx\n alp_dy\n betax_dy, betay_dy, betaz_dy\n gxx_dy, gxy_dy, gxz_dy\n gyy_dy, gyz_dy\n gzz_dy\n alp_dz\n betax_dz, betay_dz, betaz_dz\n gxx_dz, gxy_dz, gxz_dz\n gyy_dz, gyz_dz\n gzz_dz\n} \"Cartesian derivatives of ADM lapse, shift, 3-metric\"\n\n\n\nREAL dt_metric TYPE=GF TIMELEVELS=3 TAGS='checkpoint=\"no\" prolongation=\"none\" tensortypealias=\"DD_sym\"'\n{\n gxx_dt, gxy_dt, gxz_dt\n gyy_dt, gyz_dt\n gzz_dt\n} \"Time derivatives of ADM 3-metric\"\n\n\n", - "params": "", + "param": "# Parameter definitions for thorn ADMDerivatives\n# $Header:$\n\n\nBOOLEAN store_radial_derivatives \"Switch calculation of radial derivatives of ADM lapse, shift, 3-metric on/off\" \\\n STEERABLE=recover\n{\n} yes\n\n\nBOOLEAN store_cartesian_derivatives \"Switch calculation of cartesian derivatives of ADM lapse, shift, 3-metric on/off\" \\\n STEERABLE=recover\n{\n} no\n\n\n\nBOOLEAN store_time_derivatives \"Switch calculation of time derivatives of ADM lapse, shift, 3-metric on/off\" \\\n STEERABLE=recover\n{\n} yes\n\n\nCCTK_INT spatial_deriv_order \"Order of spatial derivatives\"\n{\n -1 :: \"Use whatever is specified by SummationByParts\"\n 2:8 :: \"Use this order\"\n} -1\n \n\n\nCCTK_INT timelevels \"Number of timelevels for all variables\"\n{\n 1 :: \"Only one active level\"\n 3 :: \"Useful for time interpolation\"\n} 1\n\n\n\n\nBOOLEAN synchronize \"switch off synchronization -- experimental\"\n{\n} yes", "schedule": "# Schedule definitions for thorn ADMDerivatives\n# $Header:$\n\n\nif (store_radial_derivatives)\n{\n if (timelevels == 1)\n {\n STORAGE: dr_lapse[1]\n STORAGE: dr_shift[1]\n STORAGE: dr_metric[1]\n }\n if (timelevels == 3)\n {\n STORAGE: dr_lapse[3]\n STORAGE: dr_shift[3]\n STORAGE: dr_metric[3]\n }\n}\n\nif (store_time_derivatives)\n{\n if (timelevels == 1)\n {\n STORAGE: dt_metric[1]\n }\n if (timelevels == 3)\n {\n STORAGE: dt_metric[3]\n }\n}\n\n\nif (store_cartesian_derivatives)\n{\n STORAGE: dx_vars\n}\n\n\nSCHEDULE GROUP ADMDerivatives_Group AT CCTK_POSTSTEP\n{\n} \"Group for ADMDerivatives computations.\"\n\n\nSCHEDULE GROUP ADMDerivatives_Group AT CCTK_POST_RECOVER_VARIABLES\n{\n} \"Group for ADMDerivatives computations.\"\n\n\nSCHEDULE ADMDerivatives_CalcDerivatives IN ADMDerivatives_Group\n{\n LANG: C\n OPTIONS: LOCAL\n} \"Calculate requested derivatives of ADM lapse, shift, 3-metric\"\n\n\n\nif (synchronize)\n{\n\n# This bin applies all (Cactus) boundary and symmetry conditions\nSCHEDULE GROUP ApplyBCs as ADMDerivatives_ApplyBCs IN ADMDerivatives_Group AFTER (ADMDerivatives_radial_SelectBC ADMDerivatives_cartesian_SelectBC ADMDerivatives_time_SelectBC)\n{\n} \"Apply boundary conditions controlled by thorn Boundary\"\n\n\nif (store_radial_derivatives)\n{\n SCHEDULE ADMDerivatives_radial_SelectBC IN ADMDerivatives_Group AFTER ADMDerivatives_CalcDerivatives\n {\n OPTIONS: LEVEL\n LANG: C\n SYNC: ADMDerivatives::dr_lapse\n SYNC: ADMDerivatives::dr_shift\n SYNC: ADMDerivatives::dr_metric\n } \"Selecting BC for metric radial derivatives\" \n}\n\nif (store_cartesian_derivatives)\n{\n SCHEDULE ADMDerivatives_cartesian_SelectBC IN ADMDerivatives_Group AFTER ADMDerivatives_CalcDerivatives\n {\n OPTIONS: LEVEL\n LANG: C\n SYNC: ADMDerivatives::dx_vars\n } \"Selecting BC for metric cartesian derivatives\" \n}\n\n\nif (store_time_derivatives)\n{\n SCHEDULE ADMDerivatives_time_SelectBC IN ADMDerivatives_Group AFTER ADMDerivatives_CalcDerivatives\n {\n OPTIONS: LEVEL\n LANG: C\n SYNC: ADMDerivatives::dt_metric\n } \"Selecting BC for metric time derivatives\" \n}\n\n}\n\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn ADMDerivatives\n# $Header:$\n\n# Source files in this directory\nSRCS = calc_derivs.cc sync.cc grids.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/Llama_Coordinates.json b/Llama_Coordinates.json index 69795215f3c46bf4e235ddcd49554c354b7bfa61..2b80dda8a69e9b8d30d43e8d88de57c04f89a8dd 100644 --- a/Llama_Coordinates.json +++ b/Llama_Coordinates.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/llamacode/llama.git", "configuration": "REQUIRES Carpet TensorTypes TGRtensor\n", "interface": "implements: Coordinates\ninherits: grid\n\nuses include: carpet.hh\nuses include: tensortypes.h\n\n\n# Get information about the boundaries\n\nCCTK_INT FUNCTION \\\n SymmetryRegister \\\n (CCTK_STRING IN sym_name)\nREQUIRES FUNCTION SymmetryRegister\n\nCCTK_INT FUNCTION \\\n SymmetryRegisterGrid \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT IN ARRAY which_faces, \\\n CCTK_INT IN ARRAY symmetry_zone_width)\nREQUIRES FUNCTION SymmetryRegisterGrid\n\nCCTK_INT FUNCTION \\\n SymmetryRegisterGridInterpolator \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT CCTK_FPOINTER IN symmetry_interpolate \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays, \\\n CCTK_INT IN faces))\nREQUIRES FUNCTION SymmetryRegisterGridInterpolator\n\nCCTK_INT FUNCTION \\\n SymmetryInterpolateFaces \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays, \\\n CCTK_INT IN faces)\nREQUIRES FUNCTION SymmetryInterpolateFaces\n\nCCTK_INT FUNCTION \\\n MultiPatch_SymmetryInterpolateFaces \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays, \\\n CCTK_INT IN faces)\nPROVIDES FUNCTION MultiPatch_SymmetryInterpolateFaces \\\n WITH Coordinates_SymmetryInterpolate \\\n LANGUAGE C\n\n\nCCTK_INT FUNCTION \\\n SymmetryTableHandleForGrid \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nREQUIRES FUNCTION SymmetryTableHandleForGrid\n\n\n\n# Tell Carpet and CoordBase about the patch system\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetSystemSpecification \\\n (CCTK_INT OUT maps)\nPROVIDES FUNCTION MultiPatch_GetSystemSpecification \\\n WITH Coordinates_GetSystemSpecification \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetBoundarySpecification \\\n (CCTK_INT IN map, \\\n CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nPROVIDES FUNCTION MultiPatch_GetBoundarySpecification \\\n WITH Coordinates_GetBoundarySpecification \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetDomainSpecification \\\n (CCTK_INT IN map, \\\n CCTK_INT IN size, \\\n CCTK_REAL OUT ARRAY physical_min, \\\n CCTK_REAL OUT ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL OUT ARRAY spacing)\nPROVIDES FUNCTION MultiPatch_GetDomainSpecification \\\n WITH Coordinates_GetDomainSpecification \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n MultiPatch_ConvertFromPhysicalBoundary \\\n (CCTK_INT IN map, \\\n CCTK_INT IN size, \\\n CCTK_REAL IN ARRAY physical_min, \\\n CCTK_REAL IN ARRAY physical_max, \\\n CCTK_REAL OUT ARRAY interior_min, \\\n CCTK_REAL OUT ARRAY interior_max, \\\n CCTK_REAL OUT ARRAY exterior_min, \\\n CCTK_REAL OUT ARRAY exterior_max, \\\n CCTK_REAL IN ARRAY spacing)\nPROVIDES FUNCTION MultiPatch_ConvertFromPhysicalBoundary \\\n WITH Coordinates_ConvertFromPhysicalBoundary \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n GetBoundarySpecification (CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY nboundaryzones, \\\n CCTK_INT OUT ARRAY is_internal, \\\n CCTK_INT OUT ARRAY is_staggered, \\\n CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\n\n# Give other thorns information about the current state\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetMap \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nPROVIDES FUNCTION MultiPatch_GetMap \\\n WITH Coordinates_GetMap \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetMaps \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nPROVIDES FUNCTION MultiPatch_GetMaps \\\n WITH Coordinates_GetMaps \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetBbox \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY bbox)\nPROVIDES FUNCTION MultiPatch_GetBbox \\\n WITH Coordinates_GetBbox \\\n LANGUAGE C\n\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetSymmetryBoundaries \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY symmbnd)\nPROVIDES FUNCTION MultiPatch_GetSymmetryBoundaries \\\n WITH Coordinates_GetSymmetryBoundaries \\\n LANGUAGE C\n\n\nCCTK_INT FUNCTION \\\n MultiPatch_ProvidesThornburg04 \\\n ()\nPROVIDES FUNCTION MultiPatch_ProvidesThornburg04 \\\n WITH Coordinates_ProvidesThornburg04 \\\n LANGUAGE C\n\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetInnerRadius \\\n ()\nPROVIDES FUNCTION MultiPatch_GetInnerRadius \\\n WITH Coordinates_GetInnerRadius \\\n LANGUAGE C\n\n\nCCTK_INT FUNCTION \\\n MultiPatch_GetSymmetrySpecification \\\n (CCTK_INT IN map, \\\n CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY type, \\\n CCTK_INT OUT symmetry_overlap, \\\n CCTK_INT OUT symmetry_dir)\nPROVIDES FUNCTION MultiPatch_GetSymmetrySpecification \\\n WITH Coordinates_GetSymmetrySpecification \\\n LANGUAGE C\n\n\n# External symmetry interpolator that handle reflection and rotation\n\nCCTK_INT FUNCTION \\\n CoordinatesSymmetry_Interpolate \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays, \\\n CCTK_INT IN faces)\nUSES FUNCTION CoordinatesSymmetry_Interpolate\n\n\n# Coordinate transformations\n\nCCTK_INT FUNCTION \\\n MultiPatch_LocalToGlobal \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN ndims, \\\n CCTK_INT IN npoints, \\\n CCTK_INT ARRAY IN patch, \\\n CCTK_POINTER_TO_CONST IN localcoords, \\\n CCTK_POINTER IN globalcoords, \\\n CCTK_POINTER IN dxda, \\\n CCTK_POINTER IN det_dxda, \\\n CCTK_POINTER IN dadx, \\\n CCTK_POINTER IN ddxdada, \\\n\t CCTK_POINTER IN ddadxdx, \\\n CCTK_POINTER IN dddxdadada)\nPROVIDES FUNCTION MultiPatch_LocalToGlobal \\\n WITH Coordinates_LocalToGlobal \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n MultiPatch_GlobalToLocal \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN ndims, \\\n CCTK_INT IN npoints, \\\n CCTK_POINTER_TO_CONST IN globalcoords, \\\n CCTK_INT ARRAY OUT patch, \\\n CCTK_POINTER IN localcoords, \\\n CCTK_POINTER IN dadx, \\\n CCTK_POINTER IN ddadxdx)\nPROVIDES FUNCTION MultiPatch_GlobalToLocal \\\n WITH Coordinates_GlobalToLocal \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n MultiPatch_MapIsCartesian \\\n (CCTK_INT IN map)\nPROVIDES FUNCTION MultiPatch_MapIsCartesian \\\n WITH Coordinates_MapIsCartesian \\\n LANGUAGE C\n\n\n\n\n# Query Carpet about current refinement level (same as Carpet::reflevel)\n\nCCTK_INT FUNCTION \\\n GetRefinementLevel \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION GetRefinementLevel\n\n\n\n# Utility functions for users to get information about the grid structure\n\nvoid FUNCTION Util_GetPhysicalBoundaries(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT ARRAY OUT do_bc)\nPROVIDES FUNCTION Util_GetPhysicalBoundaries \\\n WITH Coordinates_Util_GetPhysicalBoundaries \\\n LANGUAGE C\n\nCCTK_INT FUNCTION Util_GetGridRanges (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT ARRAY OUT istart, \\\n CCTK_INT ARRAY OUT iend)\nPROVIDES FUNCTION Util_GetGridRanges \\\n WITH Coordinates_Util_GetGridRanges \\\n LANGUAGE C\n\n\n\npublic:\n\n# TODO:\n# Don't store the Jacobian and its derivative,\n# since only the inverses are needed\n\nint general_coordinates type=SCALAR tags='checkpoint=\"no\"' \\\n \"Compute derivatives for generalised coordinates, involving a non-trivial Jacobian\"\n\nint interpolate_boundary_points type=SCALAR tags='checkpoint=\"no\"' \\\n \"Interpolate to points which are on both an inter-patch boundary and an outer boundary\"\n\nint jacobian_state type=SCALAR \\\n \"State of storage for jacobian\"\n\nint jacobian_derivative_state type=SCALAR \\\n \"State of storage for derivative of jacobian\"\n\nint inverse_jacobian_state type=SCALAR \\\n \"State of storage for inverse jacobian\"\n\nint volume_form_state type=SCALAR \\\n \"State of storage for volume form\"\n\n\nreal jacobian type=GF timelevels=1 tags='checkpoint=\"no\" prolongation=\"none\"'\n{\n J11, J12, J13, J21, J22, J23, J31, J32, J33\n} \"Jacobian J_(ik) = da^i/dx^k of the coordinate transformation (a: local, x: global)\"\n\nreal inverse_jacobian type=GF timelevels=1 tags='checkpoint=\"no\" prolongation=\"none\"'\n{\n iJ11, iJ12, iJ13, iJ21, iJ22, iJ23, iJ31, iJ32, iJ33\n} \"Jacobian J_(ik) = dx^i/da^k of the inverse coordinate transformation (a: local, x: global)\"\n\nreal jacobian2 type=GF timelevels=1 tags='checkpoint=\"no\" prolongation=\"none\"'\n{\n dJ111, dJ112, dJ113, dJ122, dJ123, dJ133,\n dJ211, dJ212, dJ213, dJ222, dJ223, dJ233,\n dJ311, dJ312, dJ313, dJ322, dJ323, dJ333,\n} \"Derivative of the Jacobian d^2[local]/d[global]^2\"\n\n# This must be checkpointed. The fraction of a nominal overlapping cell is computed via Monte-Carlo particles.\n# Since this is (pseudo) stochastic, we want to compute this only once!!\nreal volume_form type=GF timelevels=1 tags='prolongation=\"none\"' \"Volume form d^3x = da db dc det(dx^i/da^k) * M, where M is mask of nominal cell volume\"\n\n", - "params": "", + "param": "restricted:\n\nkeyword coordinate_system \"Available patch systems\"\n{\n \"Cartesian\" :: \"Cartesian coordinates (unit Jacobian)\"\n \"TwoPatchCartesian\" :: \"Two Cartesian patches with one common face\"\n \"TwoPatchDistorted\" :: \"One Cartesian and one distorted patch, overlapping\"\n \"Thornburg04\" :: \"Jonathan's AHFinderDirect coordinates\"\n \"Thornburg13\" :: \"Jonathan's AHFinderDirect coordinates as a 13 patch system (Do not use with radial stretch)\"\n \"Thornburg04nc\" :: \"Jonathan's system without a central Cartesian patch\"\n \"CylinderInBox\" :: \"A hollow (spherical) cylinder in a (Cartesian) box\"\n \"Sphere+Column\" :: \"Excision type overlapping sphere + column grid\"\n \"Cylinder+Column\" :: \"Cylindrical grid + central column\"\n} \"Cartesian\"\n\n\nprivate:\n\nkeyword symmetry \"Select a symmetry\"\n{\n \"full\" :: \"full domain\"\n \"+z bitant\" :: \"bitant mode (positive z)\"\n \"+xyz octant\" :: \"octant mode (positive xyz)\"\n} \"full\"\n\nboolean verbose \"Output information periodically\"\n{\n} \"yes\"\n\n\n# Choices about storage\n\n# \"'No' is currently not implemented here, but needed for a Coordinate abstraction layer:\"\nboolean store_jacobian \"Numerically evaluate and store the transformation da^i/dx^k (a: local, x: global)\"\n{\n} \"yes\"\n\nboolean store_inverse_jacobian \"Numerically evaluate and store the transformation dx^i/da^k (a: local, x: global)\"\n{\n} \"no\"\n\n# \"'No'\" is currently not implemented here, but needed for a Coordinate abstraction layer:\"\nboolean store_jacobian_derivative \"Store the derivative of the Jacobian d^2[global]/d[local]^2\"\n{\n} \"yes\"\n\n\nboolean store_volume_form \"Store determinant of Jacobian\"\n{\n} \"no\"\n\n\n# Choices about inter-patch and outer boundaries\n\nint patch_boundary_size \"Number of inter-patch boundary points which are filled via interpolation (should be >= nghostzones)\"\n{\n 0:* :: \"\"\n} 1\n\nboolean stagger_patch_boundaries \"Stagger the grid at the inter-patch boundaries?\"\n{\n} \"no\"\n\nint additional_overlap_size \"Additional overlap between patches; this overlap is evolved, not interpolated\"\n{\n 0:* :: \"\"\n} 0\n\nboolean register_symmetry \"Register patch boundaries as symmetries\"\n{\n} \"yes\"\n\nint outer_boundary_size \"Number of outer boundary points\"\n{\n 0:* :: \"\"\n} 1\n\nboolean internal_outer_boundaries \"Do the outer boundary points extend inwards?\"\n{\n} \"no\"\n\nboolean stagger_outer_boundaries \"Stagger the grid at the outer boundaries\"\n{\n} \"no\"\n\nint shiftout_outer_boundaries \"Offset between the boundary location and the first outer boundary point\"\n{\n *:* :: \"\"\n} 0\n\nint additional_symmetry_size \"Additional shiftout for symmetry boundaries\"\n{\n 0:1 :: \"Must be 0 for staggered boundaries (cell-centered AMR); otherwise 1\"\n} 0\n\n\nint nMonteCarloParticles \"Number of Monte-Carlo particles for determining fraction of cells that are on the nominal grid. This is used for the computation of the volume form.\"\n{\n 0:* :: \"the larger the better\"\n} 500000\n\n\nint MonteCarloSeed \"A seed for random number generator to get Monte Carlo particle distribution.\"\n{\n 0:* :: \"Something positive\"\n} 1\n\n\n# Setup of the one-patch system\n\nint ncells_x \"Number of cells in the x direction\"\n{\n 0:* :: \"\"\n} 10\n\nint ncells_y \"Number of cells in the x direction\"\n{\n 0:* :: \"\"\n} 10\n\nint ncells_z \"Number of cells in the x direction\"\n{\n 0:* :: \"\"\n} 10\n\nreal patch_xmin \"xmin for the patch\"\n{\n *:* :: \"\"\n} 0.0\nreal patch_ymin \"ymin for the patch\"\n{\n *:* :: \"\"\n} -0.5\nreal patch_zmin \"zmin for the patch\"\n{\n *:* :: \"\"\n} -0.5\n\nreal patch_xmax \"xmin for the patch\"\n{\n *:* :: \"\"\n} 1.0\nreal patch_ymax \"ymin for the patch\"\n{\n *:* :: \"\"\n} 0.5\nreal patch_zmax \"zmin for the patch\"\n{\n *:* :: \"\"\n} 0.5\n\n\n\n# Setup of the two-patch system\n\nint patch_one_ncells_x \"Number of cells in the x direction for patch one\"\n{\n 0:* :: \"\"\n} 10\n\nint patch_one_ncells_y \"Number of cells in the y direction for patch one\"\n{\n 0:* :: \"\"\n} 10\n\nint patch_one_ncells_z \"Number of cells in the z direction for patch one\"\n{\n 0:* :: \"\"\n} 10\n\nreal patch_one_xmin \"xmin for patch one\"\n{\n *:* :: \"\"\n} 0.0\nreal patch_one_ymin \"ymin for patch one\"\n{\n *:* :: \"\"\n} -0.5\nreal patch_one_zmin \"zmin for patch one\"\n{\n *:* :: \"\"\n} -0.5\n\nreal patch_one_xmax \"xmin for patch one\"\n{\n *:* :: \"\"\n} 1.0\nreal patch_one_ymax \"ymin for patch one\"\n{\n *:* :: \"\"\n} 0.5\nreal patch_one_zmax \"zmin for patch one\"\n{\n *:* :: \"\"\n} 0.5\n\n####\n\nint patch_two_ncells_x \"Number of cells in the x direction for patch two\"\n{\n 0:* :: \"\"\n} 10\n\nint patch_two_ncells_y \"Number of cells in the y direction for patch two\"\n{\n 0:* :: \"\"\n} 10\n\nint patch_two_ncells_z \"Number of cells in the z direction for patch two\"\n{\n 0:* :: \"\"\n} 10\n\nreal patch_two_xmin \"xmin for patch two\"\n{\n *:* :: \"\"\n} -1.0\nreal patch_two_ymin \"ymin for patch two\"\n{\n *:* :: \"\"\n} -0.5\nreal patch_two_zmin \"zmin for patch two\"\n{\n *:* :: \"\"\n} -0.5\n\nreal patch_two_xmax \"xmin for patch two\"\n{\n *:* :: \"\"\n} 0.0\nreal patch_two_ymax \"ymin for patch two\"\n{\n *:* :: \"\"\n} 0.5\nreal patch_two_zmax \"zmin for patch two\"\n{\n *:* :: \"\"\n} 0.5\n\n\n\n### Setup of the TwoPatchDistorted system\n\n# Parameters are the same as for the two-patch system. Note that the\n# common boundary is always the right \\partial_a (right \\partial x) boundary \n# of patch 1, and also the right \\partial_a (_left_ \\partial_x!) boundary \n# of patch 2.\n\n\n\n### Setup of the 7-patch system\n\nreal h_cartesian \"Inner cube resolution\"\n{\n 0:* :: \"positive\"\n} 0.0\n\nreal h_radial \"Radial resolution\"\n{\n 0:* :: \"positive\"\n} 0.0 \n\n\nreal sphere_inner_radius \"Inner radius for the spherical grids\"\n{\n 0:* :: \"positive\"\n} 0.0\n\nreal sphere_outer_radius \"Location of the physical outer boundary.\"\n{\n 0:* :: \"positive\"\n} 0.0\n\n# Make this even to ensure a grid point on the axis\nint n_angular \"Number of grid cells in the angular directions on the outer grids\"\n{\n 0:*:2 :: \"even numbers required when bitant symmetry is used with non-staggered boundaries\"\n 1:*:2 :: \"odd numbers required when bitant symmetry is used with non-staggered boundaries\"\n} 0\n\n\n\n### Parameters that are specific to the Thornburg13 patch system\n\nreal h_radial_inner \"Radial resolution for patches 1-6 of Thornburg13\"\n{\n 0:* :: \"positive\"\n} 0.0 \n\nreal h_radial_outer \"Radial resolution for patches 7-13 of Thornburg13\"\n{\n 0:* :: \"positive\"\n} 0.0 \n\nreal sphere_medium_radius \"Medium radius for the 13 patch system spherical grids\"\n{\n 0:* :: \"positive\"\n} 0.0\n\nint n_angular_inner \"Number of gridpoints in angular directions on the patches 1-6\"\n{\n 0:* :: \"positive\"\n} 0\n\nint n_angular_outer \"Number of gridpoints in angular directions on the patches 7-13\"\n{\n 0:* :: \"positive\"\n} 0\n\n### Cubical Inner boundary: Currently only works with Thornburg13. Not fully tested. (Do not use with radial stretch)\nboolean cubical_inner_boundary \"give the inner boundary a cubical shape\"\n{\n} \"no\"\n\n\n\n### Radial coordinate stretch\n\nboolean radial_stretch \"Stretch the radial coordinate\"\n{\n} \"no\"\n\n\nreal stretch_rmin_1 \"Inner radius of first stretching region\"\n{\n 0:* :: \"positive\"\n} 1e10\n\nreal stretch_rmax_1 \"Outer radius of first stretching region\"\n{\n 0:* :: \"positive\"\n} 2e10\n\nreal h_radial_1 \"Intended radial resolution of the first stretched domain\"\n{\n * :: \"negative turns off stretching\"\n} -1\n\n\n\n# Setup of the Cylinder-in-Box system\n\n# h_cartesian\n# h_radial\n# n_angular\n\nreal box_radius \"Half-size of Cartesian box\"\n{\n 0:* :: \"\"\n} 3.0\n\nreal cylinder_radius \"Inner radius of cylinder\"\n{\n 0:* :: \"\"\n} 1.0\n\nreal transition_radius \"Transition radius between box and cylinder\"\n{\n (0:* :: \"\"\n} 2.0\n\n\n\n# Setup of the Sphere+Column system\n\n# h_radial\n# h_radial_1\n# stretch_rmin_1\n# stretch_rmax_1\n# sphere_inner_radius\n# sphere_outer_radius\n\nreal theta_min \"Minimal polar angle to cover by the spherical grid patch, in degrees\"\n{\n (0:90) :: \"positive please\"\n} 10\n\nint n_angular_phi \"Number of angular points in the phi direction\"\n{\n 0:* :: \"positive\"\n} 40\n \nint n_angular_theta \"Number of angular points in the theta direction\"\n{\n 0:* :: \"positive\"\n} 10\n \nint n_xy \"Number of points in xy-direction on the column patches\"\n{\n 0:* :: \"positive\"\n} 10\n\n\n# Setup of the Cylinder+Column system\n\n# h_cartesian\n# h_radial\n# n_angular_phi\n# n_xy\n\nreal cylinder_inner_radius \"Inner radius of the cylinder\"\n{\n 0:* :: \"\"\n} 1.0\n\nreal cylinder_outer_radius \"Outer radius of the cylinder\"\n{\n 0:* :: \"\"\n} 2.0\n\nreal cylinder_zmin \"Minimum z for cylinder and column\"\n{\n *:* :: \"\"\n} -2.0\n\nreal cylinder_zmax \"Maximum z for cylinder and column\"\n{\n *:* :: \"\"\n} 2.0\n\nreal h_z \"Spacing in z direction\"\n{\n 0:* :: \"\"\n} 0.1\n\n", "schedule": "STORAGE: jacobian\nSTORAGE: jacobian2\nSTORAGE: general_coordinates\nSTORAGE: interpolate_boundary_points\nSTORAGE: jacobian_state\nSTORAGE: jacobian_derivative_state\nSTORAGE: inverse_jacobian_state\nSTORAGE: volume_form_state\n\nif (store_inverse_jacobian)\n{\n STORAGE: inverse_jacobian\n}\n\nif (store_volume_form)\n{\n STORAGE: volume_form\n}\n\nschedule Coordinates_ParamCheck at CCTK_PARAMCHECK\n{\n LANG: C\n} \"Check thorn parameters for consistency.\"\n\nschedule Coordinates_ChoosePatchSystem at CCTK_STARTUP before Driver_Startup\n{\n LANG: C\n OPTIONS: meta\n} \"Choose patch system\"\n\nif (register_symmetry)\n{\n schedule Coordinates_RegisterSymmetry in SymmetryRegister\n {\n LANG: C\n OPTIONS: meta\n } \"Register inter-patch boundaries as symmetries\"\n}\n\nschedule group Coordinates_SetGlobalCoords_Group at CCTK_BASEGRID after SpatialCoordinates as MultiPatch_SpatialCoordinates\n{\n} \"Determine the global coordinates of each gridpoint.\"\n\nschedule group Coordinates_SetGlobalCoords_Group at CCTK_POSTREGRIDINITIAL after SpatialCoordinates as MultiPatch_SpatialCoordinates\n{\n} \"Determine the global coordinates of each gridpoint.\"\n\nschedule group Coordinates_SetGlobalCoords_Group at CCTK_POSTREGRID after SpatialCoordinates as MultiPatch_SpatialCoordinates\n{\n} \"Determine the global coordinates of each gridpoint.\"\n\n\nif (CCTK_Equals(coordinate_system, \"cartesian\"))\n{\n schedule Coordinates_SetJacobian_Cartesian in Coordinates_SetGlobalCoords_Group \\\n as Coordinates_SetJacobian\n {\n LANG: C\n OPTIONS: local\n WRITES: general_coordinates, interpolate_boundary_points, jacobian_state,\n jacobian_derivative_state\n WRITES: jacobian(everywhere), jacobian2(everywhere)\n } \"Fill in the Jacobian matrices for cartesian coordinates.\"\n}\n\n\nif (CCTK_Equals(coordinate_system, \"twopatchcartesian\"))\n{\n schedule Coordinates_SetGlobalCoords_TwoPatchCartesian in Coordinates_SetGlobalCoords_Group \\\n as Coordinates_SetGlobalCoords\n {\n LANG: C\n OPTIONS: local\n WRITES: grid::coordinates(everywhere)\n } \"Determine the global coordinates of each gridpoint.\"\n\n schedule Coordinates_SetJacobian_TwoPatchCartesian in Coordinates_SetGlobalCoords_Group \\\n as Coordinates_SetJacobian\n {\n LANG: C\n OPTIONS: local\n WRITES: general_coordinates, interpolate_boundary_points, jacobian_state,\n jacobian_derivative_state\n WRITES: jacobian(everywhere), jacobian2(everywhere)\n } \"Fill in the Jacobian matrices for two patch cartesian coordinates.\"\n}\n\n\nif (CCTK_Equals(coordinate_system, \"TwoPatchDistorted\"))\n{\n schedule Coordinates_SetGlobalCoords_TwoPatchDistorted in Coordinates_SetGlobalCoords_Group \\\n as Coordinates_SetGlobalCoords\n {\n LANG: C\n OPTIONS: local\n WRITES: grid::coordinates(everywhere)\n } \"Determine the global coordinates of each gridpoint.\"\n\n schedule Coordinates_SetJacobian_TwoPatchDistorted in Coordinates_SetGlobalCoords_Group \\\n as Coordinates_SetJacobian\n {\n LANG: C\n OPTIONS: local\n READS: grid::coordinates(everywhere)\n WRITES: general_coordinates, interpolate_boundary_points, jacobian_state,\n jacobian_derivative_state\n WRITES: jacobian(everywhere), jacobian2(everywhere)\n } \"Fill in the Jacobian matrices for TwoPatchDistorted coordinates.\"\n}\n\n\n\nif (CCTK_Equals(coordinate_system, \"Thornburg04\"))\n{\n schedule Coordinates_SetGlobalCoords_Thornburg04 \\\n in Coordinates_SetGlobalCoords_Group \\\n as Coordinates_SetGlobalCoords\n {\n LANG: C\n OPTIONS: local\n WRITES: grid::coordinates(everywhere)\n } \"Determine the global coordinates of each gridpoint.\"\n\n schedule Coordinates_SetJacobian_Thornburg04 in Coordinates_SetGlobalCoords_Group \\\n as Coordinates_SetJacobian\n {\n LANG: C\n OPTIONS: local\n READS: grid::coordinates(everywhere)\n WRITES: general_coordinates, interpolate_boundary_points, jacobian_state,\n jacobian_derivative_state\n WRITES: jacobian(everywhere), jacobian2(everywhere)\n } \"Fill in the Jacobian matrices for Thornburg04 coordinates.\"\n \n schedule Coordinates_SetVolumeForm_Thornburg04 in Coordinates_SetGlobalCoords_Group \\\n as Coordinates_SetVolumeForm AFTER (Coordinates_SetJacobian, Coordinates_SetGlobalCoords, Coordinates_SetInverseJacobian)\n {\n LANG: C\n OPTIONS: local\n READS: grid::coordinates(everywhere)\n READS: jacobian(everywhere)\n WRITES: volume_form(everywhere), volume_form_state\n } \"Set weight mask (for Carpet reduction operators)\"\n}\n\n\n\nif (CCTK_Equals(coordinate_system, \"Thornburg13\"))\n{\n schedule Coordinates_SetGlobalCoords_Thornburg13 in Coordinates_SetGlobalCoords_Group \\\n as Coordinates_SetGlobalCoords\n {\n LANG: C\n OPTIONS: local\n WRITES: grid::coordinates(everywhere)\n } \"Determine the global coordinates of each gridpoint.\"\n\n schedule Coordinates_SetJacobian_Thornburg13 in Coordinates_SetGlobalCoords_Group \\\n as Coordinates_SetJacobian\n {\n LANG: C\n OPTIONS: local\n READS: grid::coordinates(everywhere)\n WRITES: general_coordinates, interpolate_boundary_points, jacobian_state,\n jacobian_derivative_state\n WRITES: jacobian(everywhere), jacobian2(everywhere)\n } \"Fill in the Jacobian matrices for Thornburg13 coordinates.\"\n \n schedule Coordinates_SetVolumeForm_Thornburg13 in Coordinates_SetGlobalCoords_Group \\\n as Coordinates_SetVolumeForm AFTER (Coordinates_SetJacobian, Coordinates_SetGlobalCoords, Coordinates_SetInverseJacobian)\n {\n LANG: C\n OPTIONS: local\n READS: grid::coordinates(everywhere)\n READS: jacobian(everywhere)\n WRITES: volume_form(everywhere), volume_form_state\n } \"Set weight mask (for Carpet reduction operators)\"\n}\n\n\nif (CCTK_Equals(coordinate_system, \"Thornburg04nc\"))\n{\n schedule Coordinates_SetGlobalCoords_Thornburg04nc in Coordinates_SetGlobalCoords_Group \\\n as Coordinates_SetGlobalCoords\n {\n LANG: C\n OPTIONS: local\n WRITES: grid::coordinates(everywhere)\n } \"Determine the global coordinates of each gridpoint.\"\n\n schedule Coordinates_SetJacobian_Thornburg04nc in Coordinates_SetGlobalCoords_Group \\\n as Coordinates_SetJacobian\n {\n LANG: C\n OPTIONS: local\n READS: grid::coordinates(everywhere)\n WRITES: general_coordinates, interpolate_boundary_points, jacobian_state,\n jacobian_derivative_state\n WRITES: jacobian(everywhere), jacobian2(everywhere)\n } \"Fill in the Jacobian matrices for Thornburg04nc coordinates.\"\n}\n\n\nif (CCTK_Equals(coordinate_system, \"CylinderInBox\"))\n{\n schedule Coordinates_SetGlobalCoords_CylinderInBox in Coordinates_SetGlobalCoords_Group \\\n as Coordinates_SetGlobalCoords\n {\n LANG: C\n OPTIONS: local\n WRITES: grid::coordinates(everywhere)\n } \"Determine the global coordinates of each gridpoint.\"\n\n schedule Coordinates_SetJacobian_CylinderInBox in Coordinates_SetGlobalCoords_Group \\\n as Coordinates_SetJacobian\n {\n LANG: C\n OPTIONS: local\n READS: grid::coordinates(everywhere)\n WRITES: general_coordinates, interpolate_boundary_points, jacobian_state,\n jacobian_derivative_state\n WRITES: jacobian(everywhere), jacobian2(everywhere)\n } \"Fill in the Jacobian matrices for CylinderInBox coordinates.\"\n}\n\nif (CCTK_Equals(coordinate_system, \"Sphere+Column\"))\n{\n schedule Coordinates_SetGlobalCoords_SphereColumn in Coordinates_SetGlobalCoords_Group \\\n as Coordinates_SetGlobalCoords\n {\n LANG: C\n OPTIONS: local\n WRITES: grid::coordinates(everywhere)\n } \"Determine the global coordinates of each gridpoint.\"\n\n schedule Coordinates_SetJacobian_SphereColumn in Coordinates_SetGlobalCoords_Group \\\n as Coordinates_SetJacobian\n {\n LANG: C\n OPTIONS: local\n READS: grid::coordinates(everywhere)\n WRITES: general_coordinates, interpolate_boundary_points, jacobian_state,\n jacobian_derivative_state\n WRITES: jacobian(everywhere), jacobian2(everywhere)\n } \"Fill in the Jacobian matrices for Sphere+Column coordinates.\"\n}\n\nif (CCTK_Equals(coordinate_system, \"Cylinder+Column\"))\n{\n schedule Coordinates_SetGlobalCoords_CylinderColumn in Coordinates_SetGlobalCoords_Group \\\n as Coordinates_SetGlobalCoords\n {\n LANG: C\n OPTIONS: local\n WRITES: grid::coordinates(everywhere)\n } \"Determine the global coordinates of each gridpoint.\"\n\n schedule Coordinates_SetJacobian_CylinderColumn in Coordinates_SetGlobalCoords_Group \\\n as Coordinates_SetJacobian\n {\n LANG: C\n OPTIONS: local\n READS: grid::coordinates(everywhere)\n WRITES: general_coordinates, interpolate_boundary_points, jacobian_state,\n jacobian_derivative_state\n WRITES: jacobian(everywhere), jacobian2(everywhere)\n } \"Fill in the Jacobian matrices for Cylinder+Column coordinates.\"\n}\n\nif (store_inverse_jacobian || store_volume_form)\n{\n schedule Coordinates_SetInverseJacobian in Coordinates_SetGlobalCoords_Group after Coordinates_SetJacobian\n {\n LANG: Fortran\n OPTIONS: local\n } \"Numerically evaluate the inverse Jacobian matrices.\"\n\t\n}\n", "src": { "twopatchcartesian.cc": "\n/* Copyright 2013 Peter Diener, Nils Dorband, Roland Haas, Ian Hinder,\nChristian Ott, Denis Pollney, Thomas Radke, Christian Reisswig, Erik\nSchnetter, Barry Wardell and Burkhard Zink\n\nThis file is part of Llama.\n\nLlama is free software: you can redistribute it and/or modify it under\nthe terms of the GNU General Public License as published by the Free\nSoftware Foundation, either version 2 of the License, or (at your\noption) any later version.\n\nLlama is distributed in the hope that it will be useful, but WITHOUT\nANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\nFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License\nfor more details.\n\nYou should have received a copy of the GNU General Public License\nalong with Llama. If not, see . */\n\n#include \n\n#include \n#include \n#include \n\n#include \"patchsystem.hh\"\n\n#ifndef DECLARE_CCTK_ARGUMENTS_CHECKED\n#define DECLARE_CCTK_ARGUMENTS_CHECKED(func) DECLARE_CCTK_ARGUMENTS\n#endif\n\nnamespace Coordinates\n{\n \n using namespace std;\n \n // Determine the extent of the global coordinate system\n static\n void\n get_global_coordinates (CCTK_INT const map,\n CCTK_INT const size,\n CCTK_INT * const ncells,\n CCTK_REAL * const physical_min,\n CCTK_REAL * const physical_max,\n CCTK_REAL * const interior_min,\n CCTK_REAL * const interior_max,\n CCTK_REAL * const exterior_min,\n CCTK_REAL * const exterior_max,\n CCTK_REAL * const spacing)\n {\n /*for (int d=0; d<3; ++d) {\n physical_min[d] = patch_descriptions.at(map).xmin[d];\n physical_max[d] = patch_descriptions.at(map).xmax[d];\n ncells[d] = patch_descriptions.at(map).ncells[d];\n spacing[d] = (physical_max[d] - physical_min[d]) / ncells[d];\n }\n \n // Calculate the exterior boundaries\n CCTK_INT const ierr = MultiPatch_ConvertFromPhysicalBoundary\n (map, 3,\n physical_min, physical_max,\n interior_min, interior_max,\n exterior_min, exterior_max,\n spacing);\n assert (not ierr);*/\n\n CCTK_INT const ierr = Coordinates_GetDomainSpecification (map,\n size,\n physical_min,\n physical_max,\n interior_min,\n interior_max,\n exterior_min,\n exterior_max,\n spacing);\n\n assert (not ierr);\n\n }\n \n \n \n extern \"C\"\n void\n Coordinates_SetGlobalCoords_TwoPatchCartesian(CCTK_ARGUMENTS)\n {\n DECLARE_CCTK_ARGUMENTS_CHECKED(Coordinates_SetGlobalCoords_TwoPatchCartesian);\n DECLARE_CCTK_PARAMETERS;\n \n CCTK_INT const map = MultiPatch_GetMap (cctkGH);\n assert (map >= 0);\n \n // Determine the extent of the global coordinate system\n CCTK_INT ncells[3];\n CCTK_REAL physical_min[3];\n CCTK_REAL physical_max[3];\n CCTK_REAL interior_min[3];\n CCTK_REAL interior_max[3];\n CCTK_REAL exterior_min[3];\n CCTK_REAL exterior_max[3];\n CCTK_REAL spacing[3];\n get_global_coordinates\n (map, 3,\n ncells,\n physical_min, physical_max,\n interior_min, interior_max,\n exterior_min, exterior_max,\n spacing);\n \n // Set the global coordinates\n for (int k=0; k= switch_output_format)\n {\n schedule WavExtrL_WriteLotsOfData after WavExtrL_CalcsAtDetector \\\n at ANALYSIS\n {\n LANG: C\n OPTIONS: GLOBAL\n } \"Output one file per (l,m) mode, all detectors in one file\"\n }\n}\n", "src": { "AdjustDetector.c": "\n/* Copyright 2013 Peter Diener, Nils Dorband, Roland Haas, Ian Hinder,\nChristian Ott, Denis Pollney, Thomas Radke, Christian Reisswig, Erik\nSchnetter, Barry Wardell and Burkhard Zink\n\nThis file is part of Llama.\n\nLlama is free software: you can redistribute it and/or modify it under\nthe terms of the GNU General Public License as published by the Free\nSoftware Foundation, either version 2 of the License, or (at your\noption) any later version.\n\nLlama is distributed in the hope that it will be useful, but WITHOUT\nANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\nFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License\nfor more details.\n\nYou should have received a copy of the GNU General Public License\nalong with Llama. If not, see . */\n\n /*@@\n @file AdjustDetector.c\n @date Mon Nov 25 13:01:43 2002\n @author Frank Herrmann\n @desc \n Adjust next detector, increase the variable current_detector\n @enddesc \n @version $Id: AdjustDetector.c 6 2004-06-30 18:08:24Z herrmann $\n @@*/\n\n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Parameters.h\"\n\nvoid WavExtrL_AdjustDetector(CCTK_ARGUMENTS);\n\n /*@@\n @routine WavExtrL_AdjustDetector\n @date Mon Nov 25 13:02:44 2002\n @author Frank Herrmann\n @desc \n Adjust next detector. This function decreases the variable \n current_detector by one.\n @enddesc \n @calls \n @calledby \n @history \n \n @endhistory \n\n@@*/\nvoid WavExtrL_AdjustDetector(CCTK_ARGUMENTS)\n{\n\n DECLARE_CCTK_ARGUMENTS\n DECLARE_CCTK_PARAMETERS\n\n if (verbose>4)\n CCTK_INFO(\"Adjust next detector\");\n\n if (*do_nothing == 1)\n *do_nothing = 0;\n\n if (*current_detector != 0) \n *current_detector=*current_detector-1;\n\n if (*current_detector < 0)\n *current_detector=0;\n\n if (verbose >2)\n CCTK_VInfo(CCTK_THORNSTRING,\"Done with detector %d, next will go to Detector No. %d\",(int)*current_detector +1,(int)*current_detector);\n}\n", diff --git a/McLachlan_ML_ADMConstraints.json b/McLachlan_ML_ADMConstraints.json index 940ec78fe211e27fde32e2fee56a3915392d013e..29ded9bbd93119592a639c7e611078bf9759dadd 100644 --- a/McLachlan_ML_ADMConstraints.json +++ b/McLachlan_ML_ADMConstraints.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/mclachlan.git", "configuration": "# File produced by Kranc\n\nREQUIRES GenericFD\nOPTIONAL LoopControl\n{\n}\n", "interface": "# File produced by Kranc\n\nimplements: ML_ADMConstraints\n\ninherits: ADMBase Boundary GenericFD Grid TmunuBase\n\n\n\nUSES INCLUDE: loopcontrol.h\nUSES INCLUDE: Symmetry.h\nUSES INCLUDE: Boundary.h\n\nCCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex)\nUSES FUNCTION MoLRegisterEvolved\n\nSUBROUTINE Diff_coeff(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN dir, CCTK_INT IN nsize, CCTK_INT OUT ARRAY imin, CCTK_INT OUT ARRAY imax, CCTK_REAL OUT ARRAY q, CCTK_INT IN table_handle)\nUSES FUNCTION Diff_coeff\n\nCCTK_INT FUNCTION MultiPatch_GetMap(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n\nCCTK_INT FUNCTION MultiPatch_GetBbox(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN size, CCTK_INT OUT ARRAY bbox)\nUSES FUNCTION MultiPatch_GetBbox\n\nCCTK_INT FUNCTION GetBoundarySpecification(CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\nCCTK_INT FUNCTION MultiPatch_GetBoundarySpecification(CCTK_INT IN map, CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION MultiPatch_GetBoundarySpecification\n\nCCTK_INT FUNCTION SymmetryTableHandleForGrid(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION SymmetryTableHandleForGrid\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT FUNCTION Driver_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectGroupForBC\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectVarForBC\n\nCCTK_INT FUNCTION Driver_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectVarForBC\n\npublic:\nCCTK_REAL ML_Ham type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n H\n} \"ML_Ham\"\n\npublic:\nCCTK_REAL ML_mom type=GF timelevels=3 tags='tensortypealias=\"D\" tensorweight=0'\n{\n M1,\n M2,\n M3\n} \"ML_mom\"\n", - "params": "", + "param": "# File produced by Kranc\n\n\nshares: GenericFD\n\nUSES CCTK_INT assume_stress_energy_state\nUSES CCTK_INT assume_use_jacobian\nUSES CCTK_STRING jacobian_group\nUSES CCTK_STRING jacobian_determinant_group\nUSES CCTK_STRING jacobian_inverse_group\nUSES CCTK_STRING jacobian_derivative_group\nUSES CCTK_INT jacobian_identity_map\n\n\nshares: MethodOfLines\n\nUSES CCTK_INT MoL_Num_Evolved_Vars\nUSES CCTK_INT MoL_Num_ArrayEvolved_Vars\n\nrestricted:\nCCTK_INT verbose \"verbose\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT other_timelevels \"Number of active timelevels for non-evolved grid functions\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 1\n\nrestricted:\nCCTK_INT tile_size \"Loop tile size\"\n{\n *:* :: \"\"\n} -1\n\nrestricted:\nCCTK_INT ML_ADMConstraints_MaxNumEvolvedVars \"Number of evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Evolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT ML_ADMConstraints_MaxNumArrayEvolvedVars \"Number of Array evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_ArrayEvolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of Array evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT timelevels \"Number of active timelevels\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 3\n\nrestricted:\nCCTK_INT rhs_timelevels \"Number of active RHS timelevels\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_ADMConstraints_evaluate_calc_every \"ML_ADMConstraints_evaluate_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_ADMConstraints_evaluate_calc_offset \"ML_ADMConstraints_evaluate_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\n", "schedule": "# File produced by Kranc\n\nSTORAGE: ML_Ham[timelevels]\n\nSTORAGE: ML_mom[timelevels]\nschedule ML_ADMConstraints_Startup at STARTUP\n{\n LANG: C\n OPTIONS: meta\n} \"create banner\"\n\nschedule ML_ADMConstraints_RegisterSymmetries in SymmetryRegister\n{\n LANG: C\n OPTIONS: meta\n} \"register symmetries\"\n\nschedule group ML_ADMConstraints_evaluate_group in MoL_PseudoEvolution after MoL_PostStep\n{\n} \"ML_ADMConstraints_evaluate\"\n\nschedule ML_ADMConstraints_evaluate in ML_ADMConstraints_evaluate_group\n{\n LANG: C\n READS: TmunuBase::stress_energy_state\n READS: ADMBase::kxx(Everywhere)\n READS: ADMBase::kxy(Everywhere)\n READS: ADMBase::kxz(Everywhere)\n READS: ADMBase::kyy(Everywhere)\n READS: ADMBase::kyz(Everywhere)\n READS: ADMBase::kzz(Everywhere)\n READS: ADMBase::alp(Everywhere)\n READS: ADMBase::gxx(Everywhere)\n READS: ADMBase::gxy(Everywhere)\n READS: ADMBase::gxz(Everywhere)\n READS: ADMBase::gyy(Everywhere)\n READS: ADMBase::gyz(Everywhere)\n READS: ADMBase::gzz(Everywhere)\n READS: ADMBase::betax(Everywhere)\n READS: ADMBase::betay(Everywhere)\n READS: ADMBase::betaz(Everywhere)\n READS: TmunuBase::eTtt(Everywhere)\n READS: TmunuBase::eTxx(Everywhere)\n READS: TmunuBase::eTxy(Everywhere)\n READS: TmunuBase::eTxz(Everywhere)\n READS: TmunuBase::eTyy(Everywhere)\n READS: TmunuBase::eTyz(Everywhere)\n READS: TmunuBase::eTzz(Everywhere)\n READS: TmunuBase::eTtx(Everywhere)\n READS: TmunuBase::eTty(Everywhere)\n READS: TmunuBase::eTtz(Everywhere)\n WRITES: ML_ADMConstraints::H(Interior)\n WRITES: ML_ADMConstraints::M1(Interior)\n WRITES: ML_ADMConstraints::M2(Interior)\n WRITES: ML_ADMConstraints::M3(Interior)\n} \"ML_ADMConstraints_evaluate\"\n\nschedule ML_ADMConstraints_evaluate_SelectBCs in ML_ADMConstraints_evaluate_bc_group\n{\n LANG: C\n OPTIONS: level\n SYNC: ML_Ham\n SYNC: ML_mom\n} \"ML_ADMConstraints_evaluate_SelectBCs\"\n\nschedule group ApplyBCs as ML_ADMConstraints_evaluate_ApplyBCs in ML_ADMConstraints_evaluate_bc_group after ML_ADMConstraints_evaluate_SelectBCs\n{\n} \"Apply BCs for groups set in ML_ADMConstraints_evaluate\"\n\nschedule group ML_ADMConstraints_evaluate_bc_group in ML_ADMConstraints_evaluate_group after ML_ADMConstraints_evaluate\n{\n} \"ML_ADMConstraints_evaluate\"\n\nschedule group ML_ADMConstraints_evaluate_bc_group in MoL_PseudoEvolutionBoundaries after MoL_PostStep\n{\n} \"ML_ADMConstraints_evaluate\"\n\nschedule ML_ADMConstraints_SelectBoundConds in MoL_PostStep\n{\n LANG: C\n OPTIONS: level\n} \"select boundary conditions\"\n\nschedule ML_ADMConstraints_CheckBoundaries at BASEGRID\n{\n LANG: C\n OPTIONS: meta\n} \"check boundaries treatment\"\n\nschedule ML_ADMConstraints_RegisterVars in MoL_Register\n{\n LANG: C\n OPTIONS: meta\n} \"Register Variables for MoL\"\nschedule group ApplyBCs as ML_ADMConstraints_ApplyBCs in MoL_PostStep after ML_ADMConstraints_SelectBoundConds\n{\n} \"Apply boundary conditions controlled by thorn Boundary\"\n", "src": { "make.code.deps": "# Certain versions of the Intel compiler produce incorrect code when\n# using -O2 or above in ML_ADMConstraints_evaluate. In those cases,\n# setting -fp-model precise seems to disable the broken optimisations\n# and leads to correct code, presumably at the cost of some\n# performance. See https://trac.einsteintoolkit.org/ticket/1995.\n\nML_ADMConstraints_evaluate.cc.o: HAVE_BROKEN_COMPILER := $(shell $(CC) -V 2>&1 | grep 'Intel.*Version 1[5-8]\\.')\nML_ADMConstraints_evaluate.cc.o: CXXFLAGS += $(if $(HAVE_BROKEN_COMPILER),-fp-model precise) \n", diff --git a/McLachlan_ML_ADMQuantities.json b/McLachlan_ML_ADMQuantities.json index 752ced348de5bbd385ea95778e67fb101d1c3a25..914b46c1236f843c919da136c4008a4a10f79526 100644 --- a/McLachlan_ML_ADMQuantities.json +++ b/McLachlan_ML_ADMQuantities.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/mclachlan.git", "configuration": "# File produced by Kranc\n\nREQUIRES GenericFD\nOPTIONAL LoopControl\n{\n}\n", "interface": "# File produced by Kranc\n\nimplements: ML_ADMQuantities\n\ninherits: ADMBase Boundary GenericFD Grid ML_BSSN TmunuBase\n\n\n\nUSES INCLUDE: loopcontrol.h\nUSES INCLUDE: Symmetry.h\nUSES INCLUDE: Boundary.h\n\nCCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex)\nUSES FUNCTION MoLRegisterEvolved\n\nSUBROUTINE Diff_coeff(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN dir, CCTK_INT IN nsize, CCTK_INT OUT ARRAY imin, CCTK_INT OUT ARRAY imax, CCTK_REAL OUT ARRAY q, CCTK_INT IN table_handle)\nUSES FUNCTION Diff_coeff\n\nCCTK_INT FUNCTION MultiPatch_GetMap(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n\nCCTK_INT FUNCTION MultiPatch_GetBbox(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN size, CCTK_INT OUT ARRAY bbox)\nUSES FUNCTION MultiPatch_GetBbox\n\nCCTK_INT FUNCTION GetBoundarySpecification(CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\nCCTK_INT FUNCTION MultiPatch_GetBoundarySpecification(CCTK_INT IN map, CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION MultiPatch_GetBoundarySpecification\n\nCCTK_INT FUNCTION SymmetryTableHandleForGrid(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION SymmetryTableHandleForGrid\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT FUNCTION Driver_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectGroupForBC\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectVarForBC\n\nCCTK_INT FUNCTION Driver_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectVarForBC\n\npublic:\nCCTK_REAL ML_Madm type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n Madm\n} \"ML_Madm\"\n\npublic:\nCCTK_REAL ML_Jadm type=GF timelevels=3 tags='tensortypealias=\"D\" tensorweight=0'\n{\n Jadm1,\n Jadm2,\n Jadm3\n} \"ML_Jadm\"\n", - "params": "", + "param": "# File produced by Kranc\n\n\nshares: GenericFD\n\nUSES CCTK_INT assume_stress_energy_state\nUSES CCTK_INT assume_use_jacobian\nUSES CCTK_STRING jacobian_group\nUSES CCTK_STRING jacobian_determinant_group\nUSES CCTK_STRING jacobian_inverse_group\nUSES CCTK_STRING jacobian_derivative_group\nUSES CCTK_INT jacobian_identity_map\n\n\nshares: MethodOfLines\n\nUSES CCTK_INT MoL_Num_Evolved_Vars\nUSES CCTK_INT MoL_Num_ArrayEvolved_Vars\n\nrestricted:\nCCTK_INT verbose \"verbose\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT other_timelevels \"Number of active timelevels for non-evolved grid functions\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 1\n\nrestricted:\nCCTK_INT conformalMethod \"Treatment of conformal factor\"\n{\n 0 :: \"phi method\"\n 1 :: \"W method\"\n} 0\n\nrestricted:\nCCTK_INT tile_size \"Loop tile size\"\n{\n *:* :: \"\"\n} -1\n\nrestricted:\nCCTK_INT ML_ADMQuantities_MaxNumEvolvedVars \"Number of evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Evolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT ML_ADMQuantities_MaxNumArrayEvolvedVars \"Number of Array evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_ArrayEvolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of Array evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT timelevels \"Number of active timelevels\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 3\n\nrestricted:\nCCTK_INT rhs_timelevels \"Number of active RHS timelevels\" STEERABLE=RECOVER\n{\n 0:3 :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_ADMQuantities_calculate_calc_every \"ML_ADMQuantities_calculate_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_ADMQuantities_calculate_calc_offset \"ML_ADMQuantities_calculate_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\n", "schedule": "# File produced by Kranc\n\nSTORAGE: ML_Madm[timelevels]\n\nSTORAGE: ML_Jadm[timelevels]\nschedule ML_ADMQuantities_Startup at STARTUP\n{\n LANG: C\n OPTIONS: meta\n} \"create banner\"\n\nschedule ML_ADMQuantities_RegisterSymmetries in SymmetryRegister\n{\n LANG: C\n OPTIONS: meta\n} \"register symmetries\"\n\nschedule group ML_ADMQuantities_calculate_group in MoL_PseudoEvolution after MoL_PostStep\n{\n} \"ML_ADMQuantities_calculate\"\n\nschedule ML_ADMQuantities_calculate in ML_ADMQuantities_calculate_group\n{\n LANG: C\n READS: TmunuBase::stress_energy_state\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n READS: ML_BSSN::At11(Everywhere)\n READS: ML_BSSN::At12(Everywhere)\n READS: ML_BSSN::At13(Everywhere)\n READS: ML_BSSN::At22(Everywhere)\n READS: ML_BSSN::At23(Everywhere)\n READS: ML_BSSN::At33(Everywhere)\n READS: ML_BSSN::Xt1(Everywhere)\n READS: ML_BSSN::Xt2(Everywhere)\n READS: ML_BSSN::Xt3(Everywhere)\n READS: ML_BSSN::alpha(Everywhere)\n READS: ML_BSSN::phi(Everywhere)\n READS: ML_BSSN::gt11(Everywhere)\n READS: ML_BSSN::gt12(Everywhere)\n READS: ML_BSSN::gt13(Everywhere)\n READS: ML_BSSN::gt22(Everywhere)\n READS: ML_BSSN::gt23(Everywhere)\n READS: ML_BSSN::gt33(Everywhere)\n READS: ML_BSSN::beta1(Everywhere)\n READS: ML_BSSN::beta2(Everywhere)\n READS: ML_BSSN::beta3(Everywhere)\n READS: ML_BSSN::trK(Everywhere)\n READS: TmunuBase::eTtt(Everywhere)\n READS: TmunuBase::eTxx(Everywhere)\n READS: TmunuBase::eTxy(Everywhere)\n READS: TmunuBase::eTxz(Everywhere)\n READS: TmunuBase::eTyy(Everywhere)\n READS: TmunuBase::eTyz(Everywhere)\n READS: TmunuBase::eTzz(Everywhere)\n READS: TmunuBase::eTtx(Everywhere)\n READS: TmunuBase::eTty(Everywhere)\n READS: TmunuBase::eTtz(Everywhere)\n WRITES: ML_ADMQuantities::Jadm1(Interior)\n WRITES: ML_ADMQuantities::Jadm2(Interior)\n WRITES: ML_ADMQuantities::Jadm3(Interior)\n WRITES: ML_ADMQuantities::Madm(Interior)\n} \"ML_ADMQuantities_calculate\"\n\nschedule ML_ADMQuantities_calculate_SelectBCs in ML_ADMQuantities_calculate_bc_group\n{\n LANG: C\n OPTIONS: level\n SYNC: ML_Jadm\n SYNC: ML_Madm\n} \"ML_ADMQuantities_calculate_SelectBCs\"\n\nschedule group ApplyBCs as ML_ADMQuantities_calculate_ApplyBCs in ML_ADMQuantities_calculate_bc_group after ML_ADMQuantities_calculate_SelectBCs\n{\n} \"Apply BCs for groups set in ML_ADMQuantities_calculate\"\n\nschedule group ML_ADMQuantities_calculate_bc_group in ML_ADMQuantities_calculate_group after ML_ADMQuantities_calculate\n{\n} \"ML_ADMQuantities_calculate\"\n\nschedule group ML_ADMQuantities_calculate_bc_group in MoL_PseudoEvolutionBoundaries after MoL_PostStep\n{\n} \"ML_ADMQuantities_calculate\"\n\nschedule ML_ADMQuantities_SelectBoundConds in MoL_PostStep\n{\n LANG: C\n OPTIONS: level\n} \"select boundary conditions\"\n\nschedule ML_ADMQuantities_CheckBoundaries at BASEGRID\n{\n LANG: C\n OPTIONS: meta\n} \"check boundaries treatment\"\n\nschedule ML_ADMQuantities_RegisterVars in MoL_Register\n{\n LANG: C\n OPTIONS: meta\n} \"Register Variables for MoL\"\nschedule group ApplyBCs as ML_ADMQuantities_ApplyBCs in MoL_PostStep after ML_ADMQuantities_SelectBoundConds\n{\n} \"Apply boundary conditions controlled by thorn Boundary\"\n", "src": { "make.code.defn": "# File produced by Kranc\n\nSRCS = Boundaries.cc Kranc.cc ML_ADMQuantities_calculate.cc RegisterMoL.cc RegisterSymmetries.cc Startup.cc \n", diff --git a/McLachlan_ML_BSSN.json b/McLachlan_ML_BSSN.json index 63c9a837f1b14552a6a810c590120d0e721b1bbd..b172f70c2264bba0ef0d92682607c44beaa3ffb6 100644 --- a/McLachlan_ML_BSSN.json +++ b/McLachlan_ML_BSSN.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/mclachlan.git", "configuration": "# File produced by Kranc\n\nREQUIRES GenericFD\nREQUIRES LoopControl\nREQUIRES Vectors\n", "interface": "# File produced by Kranc\n\nimplements: ML_BSSN\n\ninherits: ADMBase Boundary GenericFD Grid TmunuBase\n\n\n\nUSES INCLUDE: loopcontrol.h\nUSES INCLUDE: Symmetry.h\nUSES INCLUDE: vectors.h\nUSES INCLUDE: Boundary.h\n\nCCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex)\nUSES FUNCTION MoLRegisterEvolved\n\nSUBROUTINE Diff_coeff(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN dir, CCTK_INT IN nsize, CCTK_INT OUT ARRAY imin, CCTK_INT OUT ARRAY imax, CCTK_REAL OUT ARRAY q, CCTK_INT IN table_handle)\nUSES FUNCTION Diff_coeff\n\nCCTK_INT FUNCTION MultiPatch_GetMap(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n\nCCTK_INT FUNCTION MultiPatch_GetBbox(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN size, CCTK_INT OUT ARRAY bbox)\nUSES FUNCTION MultiPatch_GetBbox\n\nCCTK_INT FUNCTION GetBoundarySpecification(CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\nCCTK_INT FUNCTION MultiPatch_GetBoundarySpecification(CCTK_INT IN map, CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION MultiPatch_GetBoundarySpecification\n\nCCTK_INT FUNCTION SymmetryTableHandleForGrid(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION SymmetryTableHandleForGrid\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT FUNCTION Driver_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectGroupForBC\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectVarForBC\n\nCCTK_INT FUNCTION Driver_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectVarForBC\n\npublic:\nCCTK_REAL ML_log_confac type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0.16666666666666666667'\n{\n phi\n} \"ML_log_confac\"\n\npublic:\nCCTK_REAL ML_metric type=GF timelevels=4 tags='tensortypealias=\"DD_sym\" tensorweight=-0.66666666666666666667'\n{\n gt11,\n gt12,\n gt13,\n gt22,\n gt23,\n gt33\n} \"ML_metric\"\n\npublic:\nCCTK_REAL ML_Gamma type=GF timelevels=4 tags='tensortypealias=\"U\" tensorweight=0.66666666666666666667'\n{\n Xt1,\n Xt2,\n Xt3\n} \"ML_Gamma\"\n\npublic:\nCCTK_REAL ML_trace_curv type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n trK\n} \"ML_trace_curv\"\n\npublic:\nCCTK_REAL ML_curv type=GF timelevels=4 tags='tensortypealias=\"DD_sym\" tensorweight=-0.66666666666666666667'\n{\n At11,\n At12,\n At13,\n At22,\n At23,\n At33\n} \"ML_curv\"\n\npublic:\nCCTK_REAL ML_lapse type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n alpha\n} \"ML_lapse\"\n\npublic:\nCCTK_REAL ML_dtlapse type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n A\n} \"ML_dtlapse\"\n\npublic:\nCCTK_REAL ML_shift type=GF timelevels=4 tags='tensortypealias=\"U\" tensorweight=0'\n{\n beta1,\n beta2,\n beta3\n} \"ML_shift\"\n\npublic:\nCCTK_REAL ML_dtshift type=GF timelevels=4 tags='tensortypealias=\"U\" tensorweight=0'\n{\n B1,\n B2,\n B3\n} \"ML_dtshift\"\n\npublic:\nCCTK_REAL ML_Ham type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n H\n} \"ML_Ham\"\n\npublic:\nCCTK_REAL ML_mom type=GF timelevels=4 tags='tensortypealias=\"D\" tensorweight=0'\n{\n M1,\n M2,\n M3\n} \"ML_mom\"\n\npublic:\nCCTK_REAL ML_cons_detg type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=2'\n{\n cS\n} \"ML_cons_detg\"\n\npublic:\nCCTK_REAL ML_cons_Gamma type=GF timelevels=4 tags='tensortypealias=\"U\" tensorweight=0.66666666666666666667'\n{\n cXt1,\n cXt2,\n cXt3\n} \"ML_cons_Gamma\"\n\npublic:\nCCTK_REAL ML_cons_traceA type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n cA\n} \"ML_cons_traceA\"\n\npublic:\nCCTK_REAL ML_curvrhs type=GF timelevels=4 tags='tensortypealias=\"DD_sym\" tensorweight=-0.66666666666666666667 Prolongation=\"None\"'\n{\n At11rhs,\n At12rhs,\n At13rhs,\n At22rhs,\n At23rhs,\n At33rhs\n} \"ML_curvrhs\"\n\npublic:\nCCTK_REAL ML_dtlapserhs type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0 Prolongation=\"None\"'\n{\n Arhs\n} \"ML_dtlapserhs\"\n\npublic:\nCCTK_REAL ML_dtshiftrhs type=GF timelevels=4 tags='tensortypealias=\"U\" tensorweight=0 Prolongation=\"None\"'\n{\n B1rhs,\n B2rhs,\n B3rhs\n} \"ML_dtshiftrhs\"\n\npublic:\nCCTK_REAL ML_Gammarhs type=GF timelevels=4 tags='tensortypealias=\"U\" tensorweight=0.66666666666666666667 Prolongation=\"None\"'\n{\n Xt1rhs,\n Xt2rhs,\n Xt3rhs\n} \"ML_Gammarhs\"\n\npublic:\nCCTK_REAL ML_lapserhs type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0 Prolongation=\"None\"'\n{\n alpharhs\n} \"ML_lapserhs\"\n\npublic:\nCCTK_REAL ML_log_confacrhs type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0.16666666666666666667 Prolongation=\"None\"'\n{\n phirhs\n} \"ML_log_confacrhs\"\n\npublic:\nCCTK_REAL ML_metricrhs type=GF timelevels=4 tags='tensortypealias=\"DD_sym\" tensorweight=-0.66666666666666666667 Prolongation=\"None\"'\n{\n gt11rhs,\n gt12rhs,\n gt13rhs,\n gt22rhs,\n gt23rhs,\n gt33rhs\n} \"ML_metricrhs\"\n\npublic:\nCCTK_REAL ML_shiftrhs type=GF timelevels=4 tags='tensortypealias=\"U\" tensorweight=0 Prolongation=\"None\"'\n{\n beta1rhs,\n beta2rhs,\n beta3rhs\n} \"ML_shiftrhs\"\n\npublic:\nCCTK_REAL ML_trace_curvrhs type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0 Prolongation=\"None\"'\n{\n trKrhs\n} \"ML_trace_curvrhs\"\n", - "params": "", + "param": "# File produced by Kranc\n\n\nshares: ADMBase\n\n\nEXTENDS CCTK_KEYWORD evolution_method \"evolution_method\"\n{\n \"ML_BSSN\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD lapse_evolution_method \"lapse_evolution_method\"\n{\n \"ML_BSSN\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD shift_evolution_method \"shift_evolution_method\"\n{\n \"ML_BSSN\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD dtlapse_evolution_method \"dtlapse_evolution_method\"\n{\n \"ML_BSSN\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD dtshift_evolution_method \"dtshift_evolution_method\"\n{\n \"ML_BSSN\" :: \"\"\n} \n\n\n\nshares: GenericFD\n\nUSES CCTK_INT assume_stress_energy_state\nUSES CCTK_INT assume_use_jacobian\nUSES CCTK_STRING jacobian_group\nUSES CCTK_STRING jacobian_determinant_group\nUSES CCTK_STRING jacobian_inverse_group\nUSES CCTK_STRING jacobian_derivative_group\nUSES CCTK_INT jacobian_identity_map\n\n\nshares: MethodOfLines\n\nUSES CCTK_INT MoL_Num_Evolved_Vars\nUSES CCTK_INT MoL_Num_ArrayEvolved_Vars\n\nrestricted:\nCCTK_INT verbose \"verbose\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT other_timelevels \"Number of active timelevels for non-evolved grid functions\" STEERABLE=RECOVER\n{\n 0:4 :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL harmonicF \"d/dt alpha = - f alpha^n K (harmonic: f=1, 1+log: f=2)\"\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL alphaDriver \"d/dt alpha = ... - alphaDriver (alpha - 1) (use 1/M (?))\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftGammaCoeff \"d/dt beta^i = C Xt^i (use C=0.75/M)\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL betaDriver \"d/dt beta^i = ... - betaDriver alpha^shiftAlphaPower beta^i (use 1/M (?))\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftAlphaPower \"d/dt beta^i = ... - betaDriver alpha^shiftAlphaPower beta^i (use 0 (?))\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL spatialBetaDriverRadius \"Radius at which the betaDriver starts to be reduced\"\n{\n (0:* :: \"positive\"\n} 1000000000000\n\nrestricted:\nCCTK_REAL spatialShiftGammaCoeffRadius \"Radius at which shiftGammaCoeff starts to be reduced\"\n{\n (0:* :: \"positive\"\n} 1000000000000\n\nrestricted:\nCCTK_REAL minimumLapse \"Enforced minimum of the lapse function\"\n{\n 0:* :: \"non-negative\"\n} 0\n\nrestricted:\nCCTK_REAL epsDiss \"Dissipation strength\" STEERABLE=ALWAYS\n{\n 0:* :: \"non-negative\"\n} 0\n\nrestricted:\nCCTK_REAL LapseACoeff \"(OUTDATED) Evolve time derivative of lapse A? (now evolveA)\" STEERABLE=ALWAYS\n{\n 0. :: \"off\"\n 1. :: \"on\"\n -1. :: \"default\"\n} -1.\n\nrestricted:\nCCTK_REAL ShiftBCoeff \"(OUTDATED) Evolve time derivative of shift B^i? (now evolveB)\" STEERABLE=ALWAYS\n{\n 0. :: \"off\"\n 1. :: \"on\"\n -1. :: \"default\"\n} -1.\n\nrestricted:\nCCTK_REAL LapseAdvectionCoeff \"(OUTDATED) Advect lapse? (now advectLapse)\"\n{\n 0. :: \"off\"\n 1. :: \"on\"\n -1. :: \"default\"\n} -1.\n\nrestricted:\nCCTK_REAL ShiftAdvectionCoeff \"(OUTDATED) Advect shift? (now advectShift)\"\n{\n 0. :: \"off\"\n 1. :: \"on\"\n -1. :: \"default\"\n} -1.\n\nrestricted:\nCCTK_INT fdOrder \"Finite differencing order\"\n{\n 2 :: \"\"\n 4 :: \"\"\n 6 :: \"\"\n 8 :: \"\"\n} 4\n\nrestricted:\nCCTK_INT conformalMethod \"Treatment of conformal factor\"\n{\n 0 :: \"phi method\"\n 1 :: \"W method\"\n} 0\n\nrestricted:\nCCTK_INT evolveA \"Evolve time derivative of lapse A? (former LapseACoeff)\" STEERABLE=ALWAYS\n{\n 0 :: \"off\"\n 1 :: \"on\"\n} 0\n\nrestricted:\nCCTK_INT evolveB \"Evolve time derivative of shift B^i? (former ShiftBCoeff)\" STEERABLE=ALWAYS\n{\n 0 :: \"off\"\n 1 :: \"on\"\n} 1\n\nrestricted:\nCCTK_INT harmonicN \"d/dt alpha = - f alpha^n K (harmonic: n=2, 1+log: n=1)\"\n{\n *:* :: \"\"\n} 2\n\nrestricted:\nCCTK_INT shiftFormulation \"shift formulation\"\n{\n 0 :: \"Gamma driver\"\n 1 :: \"harmonic\"\n} 0\n\nrestricted:\nCCTK_INT useSpatialBetaDriver \"Enable spatially varying betaDriver\"\n{\n 0 :: \"off\"\n 1 :: \"on\"\n} 0\n\nrestricted:\nCCTK_INT useSpatialShiftGammaCoeff \"Enable spatially varying shiftGammaCoeff\"\n{\n 0 :: \"off\"\n 1 :: \"on\"\n} 0\n\nrestricted:\nCCTK_INT advectLapse \"Advect lapse? (former LapseAdvectionCoeff)\" STEERABLE=ALWAYS\n{\n 0 :: \"off\"\n 1 :: \"on\"\n} 1\n\nrestricted:\nCCTK_INT advectShift \"Advect shift? (former ShiftAdvectionCoeff)\" STEERABLE=ALWAYS\n{\n 0 :: \"off\"\n 1 :: \"on\"\n} 1\n\nrestricted:\nCCTK_INT fixAdvectionTerms \"Modify driver and advection terms to work better?\"\n{\n 0 :: \"off\"\n 1 :: \"on\"\n} 0\n\nrestricted:\nCCTK_INT tile_size \"Loop tile size\"\n{\n *:* :: \"\"\n} -1\n\nrestricted:\nCCTK_KEYWORD initial_boundary_condition \"Boundary condition for initial condition for some of the BSSN variables\" STEERABLE=ALWAYS\n{\n \"scalar\" :: \"not recommended; use ML_BSSN_Helper's value 'extrapolate-gammas' instead\"\n} \"scalar\"\n\nrestricted:\nCCTK_KEYWORD rhs_boundary_condition \"Boundary condition for BSSN RHS and some of the ADMBase variables\" STEERABLE=ALWAYS\n{\n \"scalar\" :: \"not recommended; use ML_BSSN_Helper's option 'NewRad' instead\"\n} \"scalar\"\n\nrestricted:\nCCTK_KEYWORD rhs_evaluation \"Whether and how the RHS routine should be split to improve performance\" STEERABLE=ALWAYS\n{\n \"combined\" :: \"use a single routine (probably slow)\"\n \"splitBy\" :: \"split into 3 routines via Kranc\"\n} \"splitBy\"\n\nrestricted:\nCCTK_KEYWORD my_initial_data \"(OUTDATED)\"\n{\n \"ADMBase\" :: \"from ADMBase\"\n \"default\" :: \"do nothing\"\n} \"default\"\n\nrestricted:\nCCTK_KEYWORD my_initial_boundary_condition \"(OUTDATED)\"\n{\n \"none\" :: \"none\"\n \"default\" :: \"do nothing\"\n} \"default\"\n\nrestricted:\nCCTK_KEYWORD my_rhs_boundary_condition \"(OUTDATED)\"\n{\n \"none\" :: \"none\"\n \"static\" :: \"static\"\n \"default\" :: \"do nothing\"\n} \"default\"\n\nrestricted:\nCCTK_KEYWORD my_boundary_condition \"(OUTDATED)\"\n{\n \"none\" :: \"none\"\n \"Minkowski\" :: \"Minkowski\"\n \"default\" :: \"do nothing\"\n} \"default\"\n\nprivate:\nCCTK_KEYWORD dt_lapse_shift_method \"(OUTDATED) Treatment of ADMBase dtlapse and dtshift\"\n{\n \"correct\" :: \"(unused)\"\n \"noLapseShiftAdvection\" :: \"(unused)\"\n \"default\" :: \"do nothing\"\n} \"default\"\n\nrestricted:\nCCTK_KEYWORD apply_dissipation \"(OUTDATED) Whether to apply dissipation to the RHSs\"\n{\n \"always\" :: \"yes\"\n \"never\" :: \"no\"\n \"default\" :: \"do nothing\"\n} \"default\"\n\nrestricted:\nCCTK_INT ML_BSSN_MaxNumEvolvedVars \"Number of evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Evolved_Vars STEERABLE=RECOVER\n{\n 25:25 :: \"Number of evolved variables used by this thorn\"\n} 25\n\nrestricted:\nCCTK_INT ML_BSSN_MaxNumArrayEvolvedVars \"Number of Array evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_ArrayEvolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of Array evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT timelevels \"Number of active timelevels\" STEERABLE=RECOVER\n{\n 0:4 :: \"\"\n} 3\n\nrestricted:\nCCTK_INT rhs_timelevels \"Number of active RHS timelevels\" STEERABLE=RECOVER\n{\n 0:4 :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_BSSN_InitialADMBase1Everywhere_calc_every \"ML_BSSN_InitialADMBase1Everywhere_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_BSSN_InitialADMBase2Interior_calc_every \"ML_BSSN_InitialADMBase2Interior_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_BSSN_InitialADMBase2BoundaryScalar_calc_every \"ML_BSSN_InitialADMBase2BoundaryScalar_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_BSSN_EnforceEverywhere_calc_every \"ML_BSSN_EnforceEverywhere_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_BSSN_ADMBaseEverywhere_calc_every \"ML_BSSN_ADMBaseEverywhere_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_BSSN_ADMBaseInterior_calc_every \"ML_BSSN_ADMBaseInterior_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_BSSN_ADMBaseBoundaryScalar_calc_every \"ML_BSSN_ADMBaseBoundaryScalar_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_BSSN_EvolutionInterior_calc_every \"ML_BSSN_EvolutionInterior_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_BSSN_EvolutionInteriorSplitBy1_calc_every \"ML_BSSN_EvolutionInteriorSplitBy1_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_BSSN_EvolutionInteriorSplitBy2_calc_every \"ML_BSSN_EvolutionInteriorSplitBy2_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_BSSN_EvolutionInteriorSplitBy3_calc_every \"ML_BSSN_EvolutionInteriorSplitBy3_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_BSSN_EvolutionBoundaryScalar_calc_every \"ML_BSSN_EvolutionBoundaryScalar_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_BSSN_EvolutionAnalysisInit_calc_every \"ML_BSSN_EvolutionAnalysisInit_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_BSSN_EvolutionAnalysisInterior_calc_every \"ML_BSSN_EvolutionAnalysisInterior_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_BSSN_ConstraintsEverywhere_calc_every \"ML_BSSN_ConstraintsEverywhere_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_BSSN_ConstraintsInterior_calc_every \"ML_BSSN_ConstraintsInterior_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_BSSN_InitialADMBase1Everywhere_calc_offset \"ML_BSSN_InitialADMBase1Everywhere_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_BSSN_InitialADMBase2Interior_calc_offset \"ML_BSSN_InitialADMBase2Interior_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_BSSN_InitialADMBase2BoundaryScalar_calc_offset \"ML_BSSN_InitialADMBase2BoundaryScalar_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_BSSN_EnforceEverywhere_calc_offset \"ML_BSSN_EnforceEverywhere_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_BSSN_ADMBaseEverywhere_calc_offset \"ML_BSSN_ADMBaseEverywhere_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_BSSN_ADMBaseInterior_calc_offset \"ML_BSSN_ADMBaseInterior_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_BSSN_ADMBaseBoundaryScalar_calc_offset \"ML_BSSN_ADMBaseBoundaryScalar_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_BSSN_EvolutionInterior_calc_offset \"ML_BSSN_EvolutionInterior_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_BSSN_EvolutionInteriorSplitBy1_calc_offset \"ML_BSSN_EvolutionInteriorSplitBy1_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_BSSN_EvolutionInteriorSplitBy2_calc_offset \"ML_BSSN_EvolutionInteriorSplitBy2_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_BSSN_EvolutionInteriorSplitBy3_calc_offset \"ML_BSSN_EvolutionInteriorSplitBy3_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_BSSN_EvolutionBoundaryScalar_calc_offset \"ML_BSSN_EvolutionBoundaryScalar_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_BSSN_EvolutionAnalysisInit_calc_offset \"ML_BSSN_EvolutionAnalysisInit_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_BSSN_EvolutionAnalysisInterior_calc_offset \"ML_BSSN_EvolutionAnalysisInterior_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_BSSN_ConstraintsEverywhere_calc_offset \"ML_BSSN_ConstraintsEverywhere_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_BSSN_ConstraintsInterior_calc_offset \"ML_BSSN_ConstraintsInterior_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nprivate:\nCCTK_KEYWORD phi_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD gt11_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD gt12_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD gt13_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD gt22_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD gt23_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD gt33_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD Xt1_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD Xt2_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD Xt3_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD trK_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD At11_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD At12_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD At13_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD At22_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD At23_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD At33_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD alpha_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD A_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD beta1_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD beta2_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD beta3_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD B1_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD B2_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD B3_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD ML_log_confac_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_KEYWORD ML_metric_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_KEYWORD ML_Gamma_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_KEYWORD ML_trace_curv_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_KEYWORD ML_curv_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_KEYWORD ML_lapse_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_KEYWORD ML_dtlapse_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_KEYWORD ML_shift_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_KEYWORD ML_dtshift_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_REAL phi_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL gt11_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL gt12_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL gt13_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL gt22_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL gt23_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL gt33_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL Xt1_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL Xt2_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL Xt3_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL trK_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL At11_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL At12_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL At13_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL At22_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL At23_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL At33_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL alpha_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL A_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL beta1_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL beta2_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL beta3_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL B1_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL B2_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL B3_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL ML_log_confac_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL ML_metric_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL ML_Gamma_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL ML_trace_curv_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL ML_curv_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL ML_lapse_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL ML_dtlapse_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL ML_shift_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL ML_dtshift_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL phi_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt11_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt12_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt13_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt22_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt23_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt33_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL Xt1_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL Xt2_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL Xt3_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL trK_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At11_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At12_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At13_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At22_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At23_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At33_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL alpha_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL A_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL beta1_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL beta2_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL beta3_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL B1_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL B2_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL B3_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_log_confac_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_metric_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_Gamma_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_trace_curv_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_curv_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_lapse_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_dtlapse_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_shift_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_dtshift_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL phi_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt11_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt12_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt13_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt22_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt23_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt33_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL Xt1_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL Xt2_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL Xt3_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL trK_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At11_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At12_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At13_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At22_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At23_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At33_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL alpha_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL A_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL beta1_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL beta2_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL beta3_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL B1_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL B2_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL B3_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_log_confac_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_metric_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_Gamma_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_trace_curv_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_curv_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_lapse_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_dtlapse_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_shift_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_dtshift_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\n", "schedule": "# File produced by Kranc\n\nSTORAGE: ML_log_confac[timelevels]\n\nSTORAGE: ML_metric[timelevels]\n\nSTORAGE: ML_Gamma[timelevels]\n\nSTORAGE: ML_trace_curv[timelevels]\n\nSTORAGE: ML_curv[timelevels]\n\nSTORAGE: ML_lapse[timelevels]\n\nSTORAGE: ML_dtlapse[timelevels]\n\nSTORAGE: ML_shift[timelevels]\n\nSTORAGE: ML_dtshift[timelevels]\n\nSTORAGE: ML_Ham[timelevels]\n\nSTORAGE: ML_mom[timelevels]\n\nSTORAGE: ML_cons_detg[timelevels]\n\nSTORAGE: ML_cons_Gamma[timelevels]\n\nSTORAGE: ML_cons_traceA[timelevels]\n\nSTORAGE: ML_curvrhs[rhs_timelevels]\n\nSTORAGE: ML_dtlapserhs[rhs_timelevels]\n\nSTORAGE: ML_dtshiftrhs[rhs_timelevels]\n\nSTORAGE: ML_Gammarhs[rhs_timelevels]\n\nSTORAGE: ML_lapserhs[rhs_timelevels]\n\nSTORAGE: ML_log_confacrhs[rhs_timelevels]\n\nSTORAGE: ML_metricrhs[rhs_timelevels]\n\nSTORAGE: ML_shiftrhs[rhs_timelevels]\n\nSTORAGE: ML_trace_curvrhs[rhs_timelevels]\nschedule ML_BSSN_Startup at STARTUP\n{\n LANG: C\n OPTIONS: meta\n} \"create banner\"\n\nschedule ML_BSSN_RegisterSymmetries in SymmetryRegister\n{\n LANG: C\n OPTIONS: meta\n} \"register symmetries\"\n\nif (CCTK_EQUALS(evolution_method, \"ML_BSSN\"))\n{\n schedule ML_BSSN_InitialADMBase1Everywhere AT initial AFTER ADMBase_PostInitial\n {\n LANG: C\n READS: ADMBase::kxx(Everywhere)\n READS: ADMBase::kxy(Everywhere)\n READS: ADMBase::kxz(Everywhere)\n READS: ADMBase::kyy(Everywhere)\n READS: ADMBase::kyz(Everywhere)\n READS: ADMBase::kzz(Everywhere)\n READS: ADMBase::alp(Everywhere)\n READS: ADMBase::gxx(Everywhere)\n READS: ADMBase::gxy(Everywhere)\n READS: ADMBase::gxz(Everywhere)\n READS: ADMBase::gyy(Everywhere)\n READS: ADMBase::gyz(Everywhere)\n READS: ADMBase::gzz(Everywhere)\n READS: ADMBase::betax(Everywhere)\n READS: ADMBase::betay(Everywhere)\n READS: ADMBase::betaz(Everywhere)\n READS: grid::r(Everywhere)\n WRITES: ML_BSSN::alpha(Everywhere)\n WRITES: ML_BSSN::At11(Everywhere)\n WRITES: ML_BSSN::At12(Everywhere)\n WRITES: ML_BSSN::At13(Everywhere)\n WRITES: ML_BSSN::At22(Everywhere)\n WRITES: ML_BSSN::At23(Everywhere)\n WRITES: ML_BSSN::At33(Everywhere)\n WRITES: ML_BSSN::beta1(Everywhere)\n WRITES: ML_BSSN::beta2(Everywhere)\n WRITES: ML_BSSN::beta3(Everywhere)\n WRITES: ML_BSSN::gt11(Everywhere)\n WRITES: ML_BSSN::gt12(Everywhere)\n WRITES: ML_BSSN::gt13(Everywhere)\n WRITES: ML_BSSN::gt22(Everywhere)\n WRITES: ML_BSSN::gt23(Everywhere)\n WRITES: ML_BSSN::gt33(Everywhere)\n WRITES: ML_BSSN::phi(Everywhere)\n WRITES: ML_BSSN::trK(Everywhere)\n } \"ML_BSSN_InitialADMBase1Everywhere\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_BSSN\"))\n{\n schedule ML_BSSN_InitialADMBase2Interior AT initial AFTER ADMBase_PostInitial AFTER ML_BSSN_InitialADMBase1Everywhere\n {\n LANG: C\n SYNC: ML_dtlapse\n SYNC: ML_dtshift\n SYNC: ML_Gamma\n READS: ADMBase::dtalp(Everywhere)\n READS: ADMBase::dtbetax(Everywhere)\n READS: ADMBase::dtbetay(Everywhere)\n READS: ADMBase::dtbetaz(Everywhere)\n READS: ADMBase::alp(Everywhere)\n READS: ADMBase::gxx(Everywhere)\n READS: ADMBase::gxy(Everywhere)\n READS: ADMBase::gxz(Everywhere)\n READS: ADMBase::gyy(Everywhere)\n READS: ADMBase::gyz(Everywhere)\n READS: ADMBase::gzz(Everywhere)\n READS: ADMBase::betax(Everywhere)\n READS: ADMBase::betay(Everywhere)\n READS: ADMBase::betaz(Everywhere)\n READS: grid::r(Everywhere)\n READS: ML_BSSN::phi(Everywhere)\n READS: ML_BSSN::gt11(Everywhere)\n READS: ML_BSSN::gt12(Everywhere)\n READS: ML_BSSN::gt13(Everywhere)\n READS: ML_BSSN::gt22(Everywhere)\n READS: ML_BSSN::gt23(Everywhere)\n READS: ML_BSSN::gt33(Everywhere)\n WRITES: ML_BSSN::A(Interior)\n WRITES: ML_BSSN::B1(Interior)\n WRITES: ML_BSSN::B2(Interior)\n WRITES: ML_BSSN::B3(Interior)\n WRITES: ML_BSSN::Xt1(Interior)\n WRITES: ML_BSSN::Xt2(Interior)\n WRITES: ML_BSSN::Xt3(Interior)\n } \"ML_BSSN_InitialADMBase2Interior\"\n}\n\nif (CCTK_EQUALS(initial_boundary_condition, \"scalar\"))\n{\n if (CCTK_EQUALS(evolution_method, \"ML_BSSN\"))\n {\n schedule ML_BSSN_InitialADMBase2BoundaryScalar AT initial AFTER ADMBase_PostInitial\n {\n LANG: C\n WRITES: ML_BSSN::A(Boundary)\n WRITES: ML_BSSN::B1(Boundary)\n WRITES: ML_BSSN::B2(Boundary)\n WRITES: ML_BSSN::B3(Boundary)\n WRITES: ML_BSSN::Xt1(Boundary)\n WRITES: ML_BSSN::Xt2(Boundary)\n WRITES: ML_BSSN::Xt3(Boundary)\n } \"ML_BSSN_InitialADMBase2BoundaryScalar\"\n }\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_BSSN\"))\n{\n schedule ML_BSSN_EnforceEverywhere IN MoL_PostStepModify\n {\n LANG: C\n READS: ML_BSSN::At11(Everywhere)\n READS: ML_BSSN::At12(Everywhere)\n READS: ML_BSSN::At13(Everywhere)\n READS: ML_BSSN::At22(Everywhere)\n READS: ML_BSSN::At23(Everywhere)\n READS: ML_BSSN::At33(Everywhere)\n READS: ML_BSSN::alpha(Everywhere)\n READS: ML_BSSN::gt11(Everywhere)\n READS: ML_BSSN::gt12(Everywhere)\n READS: ML_BSSN::gt13(Everywhere)\n READS: ML_BSSN::gt22(Everywhere)\n READS: ML_BSSN::gt23(Everywhere)\n READS: ML_BSSN::gt33(Everywhere)\n WRITES: ML_BSSN::alpha(Everywhere)\n WRITES: ML_BSSN::At11(Everywhere)\n WRITES: ML_BSSN::At12(Everywhere)\n WRITES: ML_BSSN::At13(Everywhere)\n WRITES: ML_BSSN::At22(Everywhere)\n WRITES: ML_BSSN::At23(Everywhere)\n WRITES: ML_BSSN::At33(Everywhere)\n WRITES: ML_BSSN::gt11(Everywhere)\n WRITES: ML_BSSN::gt12(Everywhere)\n WRITES: ML_BSSN::gt13(Everywhere)\n WRITES: ML_BSSN::gt22(Everywhere)\n WRITES: ML_BSSN::gt23(Everywhere)\n WRITES: ML_BSSN::gt33(Everywhere)\n } \"ML_BSSN_EnforceEverywhere\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_BSSN\"))\n{\n schedule ML_BSSN_ADMBaseEverywhere IN MoL_PostStep AFTER ML_BSSN_ApplyBCs BEFORE ADMBase_SetADMVars\n {\n LANG: C\n READS: TmunuBase::stress_energy_state\n READS: grid::r(Everywhere)\n READS: TmunuBase::eTtt(Everywhere)\n READS: TmunuBase::eTxx(Everywhere)\n READS: TmunuBase::eTxy(Everywhere)\n READS: TmunuBase::eTxz(Everywhere)\n READS: TmunuBase::eTyy(Everywhere)\n READS: TmunuBase::eTyz(Everywhere)\n READS: TmunuBase::eTzz(Everywhere)\n READS: TmunuBase::eTtx(Everywhere)\n READS: TmunuBase::eTty(Everywhere)\n READS: TmunuBase::eTtz(Everywhere)\n READS: ML_BSSN::At11(Everywhere)\n READS: ML_BSSN::At12(Everywhere)\n READS: ML_BSSN::At13(Everywhere)\n READS: ML_BSSN::At22(Everywhere)\n READS: ML_BSSN::At23(Everywhere)\n READS: ML_BSSN::At33(Everywhere)\n READS: ML_BSSN::A(Everywhere)\n READS: ML_BSSN::B1(Everywhere)\n READS: ML_BSSN::B2(Everywhere)\n READS: ML_BSSN::B3(Everywhere)\n READS: ML_BSSN::Xt1(Everywhere)\n READS: ML_BSSN::Xt2(Everywhere)\n READS: ML_BSSN::Xt3(Everywhere)\n READS: ML_BSSN::alpha(Everywhere)\n READS: ML_BSSN::phi(Everywhere)\n READS: ML_BSSN::gt11(Everywhere)\n READS: ML_BSSN::gt12(Everywhere)\n READS: ML_BSSN::gt13(Everywhere)\n READS: ML_BSSN::gt22(Everywhere)\n READS: ML_BSSN::gt23(Everywhere)\n READS: ML_BSSN::gt33(Everywhere)\n READS: ML_BSSN::beta1(Everywhere)\n READS: ML_BSSN::beta2(Everywhere)\n READS: ML_BSSN::beta3(Everywhere)\n READS: ML_BSSN::trK(Everywhere)\n WRITES: ADMBase::alp(Everywhere)\n WRITES: ADMBase::betax(Everywhere)\n WRITES: ADMBase::betay(Everywhere)\n WRITES: ADMBase::betaz(Everywhere)\n WRITES: ADMBase::gxx(Everywhere)\n WRITES: ADMBase::gxy(Everywhere)\n WRITES: ADMBase::gxz(Everywhere)\n WRITES: ADMBase::gyy(Everywhere)\n WRITES: ADMBase::gyz(Everywhere)\n WRITES: ADMBase::gzz(Everywhere)\n WRITES: ADMBase::kxx(Everywhere)\n WRITES: ADMBase::kxy(Everywhere)\n WRITES: ADMBase::kxz(Everywhere)\n WRITES: ADMBase::kyy(Everywhere)\n WRITES: ADMBase::kyz(Everywhere)\n WRITES: ADMBase::kzz(Everywhere)\n } \"ML_BSSN_ADMBaseEverywhere\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_BSSN\"))\n{\n schedule ML_BSSN_ADMBaseInterior IN MoL_PostStep AFTER ML_BSSN_ApplyBCs BEFORE ADMBase_SetADMVars\n {\n LANG: C\n READS: TmunuBase::stress_energy_state\n READS: grid::r(Everywhere)\n READS: TmunuBase::eTtt(Everywhere)\n READS: TmunuBase::eTxx(Everywhere)\n READS: TmunuBase::eTxy(Everywhere)\n READS: TmunuBase::eTxz(Everywhere)\n READS: TmunuBase::eTyy(Everywhere)\n READS: TmunuBase::eTyz(Everywhere)\n READS: TmunuBase::eTzz(Everywhere)\n READS: TmunuBase::eTtx(Everywhere)\n READS: TmunuBase::eTty(Everywhere)\n READS: TmunuBase::eTtz(Everywhere)\n READS: ML_BSSN::At11(Everywhere)\n READS: ML_BSSN::At12(Everywhere)\n READS: ML_BSSN::At13(Everywhere)\n READS: ML_BSSN::At22(Everywhere)\n READS: ML_BSSN::At23(Everywhere)\n READS: ML_BSSN::At33(Everywhere)\n READS: ML_BSSN::A(Everywhere)\n READS: ML_BSSN::B1(Everywhere)\n READS: ML_BSSN::B2(Everywhere)\n READS: ML_BSSN::B3(Everywhere)\n READS: ML_BSSN::Xt1(Everywhere)\n READS: ML_BSSN::Xt2(Everywhere)\n READS: ML_BSSN::Xt3(Everywhere)\n READS: ML_BSSN::alpha(Everywhere)\n READS: ML_BSSN::phi(Everywhere)\n READS: ML_BSSN::gt11(Everywhere)\n READS: ML_BSSN::gt12(Everywhere)\n READS: ML_BSSN::gt13(Everywhere)\n READS: ML_BSSN::gt22(Everywhere)\n READS: ML_BSSN::gt23(Everywhere)\n READS: ML_BSSN::gt33(Everywhere)\n READS: ML_BSSN::beta1(Everywhere)\n READS: ML_BSSN::beta2(Everywhere)\n READS: ML_BSSN::beta3(Everywhere)\n READS: ML_BSSN::trK(Everywhere)\n WRITES: ADMBase::dtalp(Interior)\n WRITES: ADMBase::dtbetax(Interior)\n WRITES: ADMBase::dtbetay(Interior)\n WRITES: ADMBase::dtbetaz(Interior)\n } \"ML_BSSN_ADMBaseInterior\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_BSSN\"))\n{\n schedule ML_BSSN_ADMBaseBoundaryScalar IN MoL_PostStep AFTER ML_BSSN_ApplyBCs AFTER ML_BSSN_ADMBaseInterior BEFORE ADMBase_SetADMVars\n {\n LANG: C\n SYNC: ADMBase::dtlapse\n SYNC: ADMBase::dtshift\n WRITES: ADMBase::dtalp(Boundary)\n WRITES: ADMBase::dtbetax(Boundary)\n WRITES: ADMBase::dtbetay(Boundary)\n WRITES: ADMBase::dtbetaz(Boundary)\n } \"ML_BSSN_ADMBaseBoundaryScalar\"\n}\n\nif (CCTK_EQUALS(rhs_evaluation, \"combined\"))\n{\n if (CCTK_EQUALS(evolution_method, \"ML_BSSN\"))\n {\n schedule ML_BSSN_EvolutionInterior IN MoL_CalcRHS\n {\n LANG: C\n READS: TmunuBase::stress_energy_state\n READS: grid::r(Everywhere)\n READS: TmunuBase::eTtt(Everywhere)\n READS: TmunuBase::eTxx(Everywhere)\n READS: TmunuBase::eTxy(Everywhere)\n READS: TmunuBase::eTxz(Everywhere)\n READS: TmunuBase::eTyy(Everywhere)\n READS: TmunuBase::eTyz(Everywhere)\n READS: TmunuBase::eTzz(Everywhere)\n READS: TmunuBase::eTtx(Everywhere)\n READS: TmunuBase::eTty(Everywhere)\n READS: TmunuBase::eTtz(Everywhere)\n READS: ML_BSSN::At11(Everywhere)\n READS: ML_BSSN::At12(Everywhere)\n READS: ML_BSSN::At13(Everywhere)\n READS: ML_BSSN::At22(Everywhere)\n READS: ML_BSSN::At23(Everywhere)\n READS: ML_BSSN::At33(Everywhere)\n READS: ML_BSSN::A(Everywhere)\n READS: ML_BSSN::B1(Everywhere)\n READS: ML_BSSN::B2(Everywhere)\n READS: ML_BSSN::B3(Everywhere)\n READS: ML_BSSN::Xt1(Everywhere)\n READS: ML_BSSN::Xt2(Everywhere)\n READS: ML_BSSN::Xt3(Everywhere)\n READS: ML_BSSN::alpha(Everywhere)\n READS: ML_BSSN::phi(Everywhere)\n READS: ML_BSSN::gt11(Everywhere)\n READS: ML_BSSN::gt12(Everywhere)\n READS: ML_BSSN::gt13(Everywhere)\n READS: ML_BSSN::gt22(Everywhere)\n READS: ML_BSSN::gt23(Everywhere)\n READS: ML_BSSN::gt33(Everywhere)\n READS: ML_BSSN::beta1(Everywhere)\n READS: ML_BSSN::beta2(Everywhere)\n READS: ML_BSSN::beta3(Everywhere)\n READS: ML_BSSN::trK(Everywhere)\n WRITES: ML_BSSN::alpharhs(Interior)\n WRITES: ML_BSSN::Arhs(Interior)\n WRITES: ML_BSSN::At11rhs(Interior)\n WRITES: ML_BSSN::At12rhs(Interior)\n WRITES: ML_BSSN::At13rhs(Interior)\n WRITES: ML_BSSN::At22rhs(Interior)\n WRITES: ML_BSSN::At23rhs(Interior)\n WRITES: ML_BSSN::At33rhs(Interior)\n WRITES: ML_BSSN::B1rhs(Interior)\n WRITES: ML_BSSN::B2rhs(Interior)\n WRITES: ML_BSSN::B3rhs(Interior)\n WRITES: ML_BSSN::beta1rhs(Interior)\n WRITES: ML_BSSN::beta2rhs(Interior)\n WRITES: ML_BSSN::beta3rhs(Interior)\n WRITES: ML_BSSN::gt11rhs(Interior)\n WRITES: ML_BSSN::gt12rhs(Interior)\n WRITES: ML_BSSN::gt13rhs(Interior)\n WRITES: ML_BSSN::gt22rhs(Interior)\n WRITES: ML_BSSN::gt23rhs(Interior)\n WRITES: ML_BSSN::gt33rhs(Interior)\n WRITES: ML_BSSN::phirhs(Interior)\n WRITES: ML_BSSN::trKrhs(Interior)\n WRITES: ML_BSSN::Xt1rhs(Interior)\n WRITES: ML_BSSN::Xt2rhs(Interior)\n WRITES: ML_BSSN::Xt3rhs(Interior)\n } \"ML_BSSN_EvolutionInterior\"\n }\n}\n\nif (CCTK_EQUALS(rhs_evaluation, \"splitBy\"))\n{\n if (CCTK_EQUALS(evolution_method, \"ML_BSSN\"))\n {\n schedule ML_BSSN_EvolutionInteriorSplitBy1 in ML_BSSN_EvolutionInteriorSplitBy\n {\n LANG: C\n READS: TmunuBase::stress_energy_state\n READS: grid::r(Everywhere)\n READS: TmunuBase::eTtt(Everywhere)\n READS: TmunuBase::eTxx(Everywhere)\n READS: TmunuBase::eTxy(Everywhere)\n READS: TmunuBase::eTxz(Everywhere)\n READS: TmunuBase::eTyy(Everywhere)\n READS: TmunuBase::eTyz(Everywhere)\n READS: TmunuBase::eTzz(Everywhere)\n READS: TmunuBase::eTtx(Everywhere)\n READS: TmunuBase::eTty(Everywhere)\n READS: TmunuBase::eTtz(Everywhere)\n READS: ML_BSSN::At11(Everywhere)\n READS: ML_BSSN::At12(Everywhere)\n READS: ML_BSSN::At13(Everywhere)\n READS: ML_BSSN::At22(Everywhere)\n READS: ML_BSSN::At23(Everywhere)\n READS: ML_BSSN::At33(Everywhere)\n READS: ML_BSSN::A(Everywhere)\n READS: ML_BSSN::B1(Everywhere)\n READS: ML_BSSN::B2(Everywhere)\n READS: ML_BSSN::B3(Everywhere)\n READS: ML_BSSN::Xt1(Everywhere)\n READS: ML_BSSN::Xt2(Everywhere)\n READS: ML_BSSN::Xt3(Everywhere)\n READS: ML_BSSN::alpha(Everywhere)\n READS: ML_BSSN::phi(Everywhere)\n READS: ML_BSSN::gt11(Everywhere)\n READS: ML_BSSN::gt12(Everywhere)\n READS: ML_BSSN::gt13(Everywhere)\n READS: ML_BSSN::gt22(Everywhere)\n READS: ML_BSSN::gt23(Everywhere)\n READS: ML_BSSN::gt33(Everywhere)\n READS: ML_BSSN::beta1(Everywhere)\n READS: ML_BSSN::beta2(Everywhere)\n READS: ML_BSSN::beta3(Everywhere)\n READS: ML_BSSN::trK(Everywhere)\n WRITES: ML_BSSN::alpharhs(Interior)\n WRITES: ML_BSSN::Arhs(Interior)\n WRITES: ML_BSSN::gt11rhs(Interior)\n WRITES: ML_BSSN::gt12rhs(Interior)\n WRITES: ML_BSSN::gt13rhs(Interior)\n WRITES: ML_BSSN::gt22rhs(Interior)\n WRITES: ML_BSSN::gt23rhs(Interior)\n WRITES: ML_BSSN::gt33rhs(Interior)\n WRITES: ML_BSSN::phirhs(Interior)\n } \"ML_BSSN_EvolutionInteriorSplitBy1\"\n }\n}\n\nif (CCTK_EQUALS(rhs_evaluation, \"splitBy\"))\n{\n if (CCTK_EQUALS(evolution_method, \"ML_BSSN\"))\n {\n schedule ML_BSSN_EvolutionInteriorSplitBy2 in ML_BSSN_EvolutionInteriorSplitBy\n {\n LANG: C\n READS: TmunuBase::stress_energy_state\n READS: grid::r(Everywhere)\n READS: TmunuBase::eTtt(Everywhere)\n READS: TmunuBase::eTxx(Everywhere)\n READS: TmunuBase::eTxy(Everywhere)\n READS: TmunuBase::eTxz(Everywhere)\n READS: TmunuBase::eTyy(Everywhere)\n READS: TmunuBase::eTyz(Everywhere)\n READS: TmunuBase::eTzz(Everywhere)\n READS: TmunuBase::eTtx(Everywhere)\n READS: TmunuBase::eTty(Everywhere)\n READS: TmunuBase::eTtz(Everywhere)\n READS: ML_BSSN::At11(Everywhere)\n READS: ML_BSSN::At12(Everywhere)\n READS: ML_BSSN::At13(Everywhere)\n READS: ML_BSSN::At22(Everywhere)\n READS: ML_BSSN::At23(Everywhere)\n READS: ML_BSSN::At33(Everywhere)\n READS: ML_BSSN::A(Everywhere)\n READS: ML_BSSN::B1(Everywhere)\n READS: ML_BSSN::B2(Everywhere)\n READS: ML_BSSN::B3(Everywhere)\n READS: ML_BSSN::Xt1(Everywhere)\n READS: ML_BSSN::Xt2(Everywhere)\n READS: ML_BSSN::Xt3(Everywhere)\n READS: ML_BSSN::alpha(Everywhere)\n READS: ML_BSSN::phi(Everywhere)\n READS: ML_BSSN::gt11(Everywhere)\n READS: ML_BSSN::gt12(Everywhere)\n READS: ML_BSSN::gt13(Everywhere)\n READS: ML_BSSN::gt22(Everywhere)\n READS: ML_BSSN::gt23(Everywhere)\n READS: ML_BSSN::gt33(Everywhere)\n READS: ML_BSSN::beta1(Everywhere)\n READS: ML_BSSN::beta2(Everywhere)\n READS: ML_BSSN::beta3(Everywhere)\n READS: ML_BSSN::trK(Everywhere)\n WRITES: ML_BSSN::B1rhs(Interior)\n WRITES: ML_BSSN::B2rhs(Interior)\n WRITES: ML_BSSN::B3rhs(Interior)\n WRITES: ML_BSSN::beta1rhs(Interior)\n WRITES: ML_BSSN::beta2rhs(Interior)\n WRITES: ML_BSSN::beta3rhs(Interior)\n WRITES: ML_BSSN::trKrhs(Interior)\n WRITES: ML_BSSN::Xt1rhs(Interior)\n WRITES: ML_BSSN::Xt2rhs(Interior)\n WRITES: ML_BSSN::Xt3rhs(Interior)\n } \"ML_BSSN_EvolutionInteriorSplitBy2\"\n }\n}\n\nif (CCTK_EQUALS(rhs_evaluation, \"splitBy\"))\n{\n if (CCTK_EQUALS(evolution_method, \"ML_BSSN\"))\n {\n schedule ML_BSSN_EvolutionInteriorSplitBy3 in ML_BSSN_EvolutionInteriorSplitBy\n {\n LANG: C\n READS: TmunuBase::stress_energy_state\n READS: grid::r(Everywhere)\n READS: TmunuBase::eTtt(Everywhere)\n READS: TmunuBase::eTxx(Everywhere)\n READS: TmunuBase::eTxy(Everywhere)\n READS: TmunuBase::eTxz(Everywhere)\n READS: TmunuBase::eTyy(Everywhere)\n READS: TmunuBase::eTyz(Everywhere)\n READS: TmunuBase::eTzz(Everywhere)\n READS: TmunuBase::eTtx(Everywhere)\n READS: TmunuBase::eTty(Everywhere)\n READS: TmunuBase::eTtz(Everywhere)\n READS: ML_BSSN::At11(Everywhere)\n READS: ML_BSSN::At12(Everywhere)\n READS: ML_BSSN::At13(Everywhere)\n READS: ML_BSSN::At22(Everywhere)\n READS: ML_BSSN::At23(Everywhere)\n READS: ML_BSSN::At33(Everywhere)\n READS: ML_BSSN::A(Everywhere)\n READS: ML_BSSN::B1(Everywhere)\n READS: ML_BSSN::B2(Everywhere)\n READS: ML_BSSN::B3(Everywhere)\n READS: ML_BSSN::Xt1(Everywhere)\n READS: ML_BSSN::Xt2(Everywhere)\n READS: ML_BSSN::Xt3(Everywhere)\n READS: ML_BSSN::alpha(Everywhere)\n READS: ML_BSSN::phi(Everywhere)\n READS: ML_BSSN::gt11(Everywhere)\n READS: ML_BSSN::gt12(Everywhere)\n READS: ML_BSSN::gt13(Everywhere)\n READS: ML_BSSN::gt22(Everywhere)\n READS: ML_BSSN::gt23(Everywhere)\n READS: ML_BSSN::gt33(Everywhere)\n READS: ML_BSSN::beta1(Everywhere)\n READS: ML_BSSN::beta2(Everywhere)\n READS: ML_BSSN::beta3(Everywhere)\n READS: ML_BSSN::trK(Everywhere)\n WRITES: ML_BSSN::At11rhs(Interior)\n WRITES: ML_BSSN::At12rhs(Interior)\n WRITES: ML_BSSN::At13rhs(Interior)\n WRITES: ML_BSSN::At22rhs(Interior)\n WRITES: ML_BSSN::At23rhs(Interior)\n WRITES: ML_BSSN::At33rhs(Interior)\n } \"ML_BSSN_EvolutionInteriorSplitBy3\"\n }\n}\n\nif (CCTK_EQUALS(rhs_boundary_condition, \"scalar\"))\n{\n if (CCTK_EQUALS(evolution_method, \"ML_BSSN\"))\n {\n schedule ML_BSSN_EvolutionBoundaryScalar IN MoL_CalcRHS\n {\n LANG: C\n WRITES: ML_BSSN::alpharhs(Boundary)\n WRITES: ML_BSSN::Arhs(Boundary)\n WRITES: ML_BSSN::At11rhs(Boundary)\n WRITES: ML_BSSN::At12rhs(Boundary)\n WRITES: ML_BSSN::At13rhs(Boundary)\n WRITES: ML_BSSN::At22rhs(Boundary)\n WRITES: ML_BSSN::At23rhs(Boundary)\n WRITES: ML_BSSN::At33rhs(Boundary)\n WRITES: ML_BSSN::B1rhs(Boundary)\n WRITES: ML_BSSN::B2rhs(Boundary)\n WRITES: ML_BSSN::B3rhs(Boundary)\n WRITES: ML_BSSN::beta1rhs(Boundary)\n WRITES: ML_BSSN::beta2rhs(Boundary)\n WRITES: ML_BSSN::beta3rhs(Boundary)\n WRITES: ML_BSSN::gt11rhs(Boundary)\n WRITES: ML_BSSN::gt12rhs(Boundary)\n WRITES: ML_BSSN::gt13rhs(Boundary)\n WRITES: ML_BSSN::gt22rhs(Boundary)\n WRITES: ML_BSSN::gt23rhs(Boundary)\n WRITES: ML_BSSN::gt33rhs(Boundary)\n WRITES: ML_BSSN::phirhs(Boundary)\n WRITES: ML_BSSN::trKrhs(Boundary)\n WRITES: ML_BSSN::Xt1rhs(Boundary)\n WRITES: ML_BSSN::Xt2rhs(Boundary)\n WRITES: ML_BSSN::Xt3rhs(Boundary)\n } \"ML_BSSN_EvolutionBoundaryScalar\"\n }\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_BSSN\"))\n{\n schedule ML_BSSN_EvolutionAnalysisInit IN ML_BSSN_EvolutionAnalysis before ML_BSSN_EvolutionAnalysisInterior\n {\n LANG: C\n WRITES: ML_BSSN::alpharhs(Everywhere)\n WRITES: ML_BSSN::Arhs(Everywhere)\n WRITES: ML_BSSN::At11rhs(Everywhere)\n WRITES: ML_BSSN::At12rhs(Everywhere)\n WRITES: ML_BSSN::At13rhs(Everywhere)\n WRITES: ML_BSSN::At22rhs(Everywhere)\n WRITES: ML_BSSN::At23rhs(Everywhere)\n WRITES: ML_BSSN::At33rhs(Everywhere)\n WRITES: ML_BSSN::B1rhs(Everywhere)\n WRITES: ML_BSSN::B2rhs(Everywhere)\n WRITES: ML_BSSN::B3rhs(Everywhere)\n WRITES: ML_BSSN::beta1rhs(Everywhere)\n WRITES: ML_BSSN::beta2rhs(Everywhere)\n WRITES: ML_BSSN::beta3rhs(Everywhere)\n WRITES: ML_BSSN::gt11rhs(Everywhere)\n WRITES: ML_BSSN::gt12rhs(Everywhere)\n WRITES: ML_BSSN::gt13rhs(Everywhere)\n WRITES: ML_BSSN::gt22rhs(Everywhere)\n WRITES: ML_BSSN::gt23rhs(Everywhere)\n WRITES: ML_BSSN::gt33rhs(Everywhere)\n WRITES: ML_BSSN::phirhs(Everywhere)\n WRITES: ML_BSSN::trKrhs(Everywhere)\n WRITES: ML_BSSN::Xt1rhs(Everywhere)\n WRITES: ML_BSSN::Xt2rhs(Everywhere)\n WRITES: ML_BSSN::Xt3rhs(Everywhere)\n } \"ML_BSSN_EvolutionAnalysisInit\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_BSSN\"))\n{\n schedule ML_BSSN_EvolutionAnalysisInterior IN ML_BSSN_EvolutionAnalysis\n {\n LANG: C\n READS: TmunuBase::stress_energy_state\n READS: grid::r(Everywhere)\n READS: TmunuBase::eTtt(Everywhere)\n READS: TmunuBase::eTxx(Everywhere)\n READS: TmunuBase::eTxy(Everywhere)\n READS: TmunuBase::eTxz(Everywhere)\n READS: TmunuBase::eTyy(Everywhere)\n READS: TmunuBase::eTyz(Everywhere)\n READS: TmunuBase::eTzz(Everywhere)\n READS: TmunuBase::eTtx(Everywhere)\n READS: TmunuBase::eTty(Everywhere)\n READS: TmunuBase::eTtz(Everywhere)\n READS: ML_BSSN::At11(Everywhere)\n READS: ML_BSSN::At12(Everywhere)\n READS: ML_BSSN::At13(Everywhere)\n READS: ML_BSSN::At22(Everywhere)\n READS: ML_BSSN::At23(Everywhere)\n READS: ML_BSSN::At33(Everywhere)\n READS: ML_BSSN::A(Everywhere)\n READS: ML_BSSN::B1(Everywhere)\n READS: ML_BSSN::B2(Everywhere)\n READS: ML_BSSN::B3(Everywhere)\n READS: ML_BSSN::Xt1(Everywhere)\n READS: ML_BSSN::Xt2(Everywhere)\n READS: ML_BSSN::Xt3(Everywhere)\n READS: ML_BSSN::alpha(Everywhere)\n READS: ML_BSSN::phi(Everywhere)\n READS: ML_BSSN::gt11(Everywhere)\n READS: ML_BSSN::gt12(Everywhere)\n READS: ML_BSSN::gt13(Everywhere)\n READS: ML_BSSN::gt22(Everywhere)\n READS: ML_BSSN::gt23(Everywhere)\n READS: ML_BSSN::gt33(Everywhere)\n READS: ML_BSSN::beta1(Everywhere)\n READS: ML_BSSN::beta2(Everywhere)\n READS: ML_BSSN::beta3(Everywhere)\n READS: ML_BSSN::trK(Everywhere)\n WRITES: ML_BSSN::alpharhs(Interior)\n WRITES: ML_BSSN::Arhs(Interior)\n WRITES: ML_BSSN::At11rhs(Interior)\n WRITES: ML_BSSN::At12rhs(Interior)\n WRITES: ML_BSSN::At13rhs(Interior)\n WRITES: ML_BSSN::At22rhs(Interior)\n WRITES: ML_BSSN::At23rhs(Interior)\n WRITES: ML_BSSN::At33rhs(Interior)\n WRITES: ML_BSSN::B1rhs(Interior)\n WRITES: ML_BSSN::B2rhs(Interior)\n WRITES: ML_BSSN::B3rhs(Interior)\n WRITES: ML_BSSN::beta1rhs(Interior)\n WRITES: ML_BSSN::beta2rhs(Interior)\n WRITES: ML_BSSN::beta3rhs(Interior)\n WRITES: ML_BSSN::gt11rhs(Interior)\n WRITES: ML_BSSN::gt12rhs(Interior)\n WRITES: ML_BSSN::gt13rhs(Interior)\n WRITES: ML_BSSN::gt22rhs(Interior)\n WRITES: ML_BSSN::gt23rhs(Interior)\n WRITES: ML_BSSN::gt33rhs(Interior)\n WRITES: ML_BSSN::phirhs(Interior)\n WRITES: ML_BSSN::trKrhs(Interior)\n WRITES: ML_BSSN::Xt1rhs(Interior)\n WRITES: ML_BSSN::Xt2rhs(Interior)\n WRITES: ML_BSSN::Xt3rhs(Interior)\n } \"ML_BSSN_EvolutionAnalysisInterior\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_BSSN\"))\n{\n schedule group ML_BSSN_ConstraintsEverywhere_group in MoL_PseudoEvolution\n {\n } \"ML_BSSN_ConstraintsEverywhere\"\n}\n\nschedule ML_BSSN_ConstraintsEverywhere in ML_BSSN_ConstraintsEverywhere_group\n{\n LANG: C\n READS: TmunuBase::stress_energy_state\n READS: grid::r(Everywhere)\n READS: TmunuBase::eTtt(Everywhere)\n READS: TmunuBase::eTxx(Everywhere)\n READS: TmunuBase::eTxy(Everywhere)\n READS: TmunuBase::eTxz(Everywhere)\n READS: TmunuBase::eTyy(Everywhere)\n READS: TmunuBase::eTyz(Everywhere)\n READS: TmunuBase::eTzz(Everywhere)\n READS: TmunuBase::eTtx(Everywhere)\n READS: TmunuBase::eTty(Everywhere)\n READS: TmunuBase::eTtz(Everywhere)\n READS: ML_BSSN::At11(Everywhere)\n READS: ML_BSSN::At12(Everywhere)\n READS: ML_BSSN::At13(Everywhere)\n READS: ML_BSSN::At22(Everywhere)\n READS: ML_BSSN::At23(Everywhere)\n READS: ML_BSSN::At33(Everywhere)\n READS: ML_BSSN::A(Everywhere)\n READS: ML_BSSN::B1(Everywhere)\n READS: ML_BSSN::B2(Everywhere)\n READS: ML_BSSN::B3(Everywhere)\n READS: ML_BSSN::Xt1(Everywhere)\n READS: ML_BSSN::Xt2(Everywhere)\n READS: ML_BSSN::Xt3(Everywhere)\n READS: ML_BSSN::alpha(Everywhere)\n READS: ML_BSSN::phi(Everywhere)\n READS: ML_BSSN::gt11(Everywhere)\n READS: ML_BSSN::gt12(Everywhere)\n READS: ML_BSSN::gt13(Everywhere)\n READS: ML_BSSN::gt22(Everywhere)\n READS: ML_BSSN::gt23(Everywhere)\n READS: ML_BSSN::gt33(Everywhere)\n READS: ML_BSSN::beta1(Everywhere)\n READS: ML_BSSN::beta2(Everywhere)\n READS: ML_BSSN::beta3(Everywhere)\n READS: ML_BSSN::trK(Everywhere)\n WRITES: ML_BSSN::cA(Interior)\n WRITES: ML_BSSN::cS(Interior)\n} \"ML_BSSN_ConstraintsEverywhere\"\n\nschedule ML_BSSN_ConstraintsEverywhere_SelectBCs in ML_BSSN_ConstraintsEverywhere_bc_group\n{\n LANG: C\n OPTIONS: level\n SYNC: ML_cons_detg\n SYNC: ML_cons_traceA\n} \"ML_BSSN_ConstraintsEverywhere_SelectBCs\"\n\nschedule group ApplyBCs as ML_BSSN_ConstraintsEverywhere_ApplyBCs in ML_BSSN_ConstraintsEverywhere_bc_group after ML_BSSN_ConstraintsEverywhere_SelectBCs\n{\n} \"Apply BCs for groups set in ML_BSSN_ConstraintsEverywhere\"\n\nif (CCTK_EQUALS(evolution_method, \"ML_BSSN\"))\n{\n schedule group ML_BSSN_ConstraintsEverywhere_bc_group in ML_BSSN_ConstraintsEverywhere_group after ML_BSSN_ConstraintsEverywhere\n {\n } \"ML_BSSN_ConstraintsEverywhere\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_BSSN\"))\n{\n schedule group ML_BSSN_ConstraintsEverywhere_bc_group in MoL_PseudoEvolutionBoundaries after MoL_PostStep\n {\n } \"ML_BSSN_ConstraintsEverywhere\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_BSSN\"))\n{\n schedule group ML_BSSN_ConstraintsInterior_group in MoL_PseudoEvolution\n {\n } \"ML_BSSN_ConstraintsInterior\"\n}\n\nschedule ML_BSSN_ConstraintsInterior in ML_BSSN_ConstraintsInterior_group\n{\n LANG: C\n READS: TmunuBase::stress_energy_state\n READS: grid::r(Everywhere)\n READS: TmunuBase::eTtt(Everywhere)\n READS: TmunuBase::eTxx(Everywhere)\n READS: TmunuBase::eTxy(Everywhere)\n READS: TmunuBase::eTxz(Everywhere)\n READS: TmunuBase::eTyy(Everywhere)\n READS: TmunuBase::eTyz(Everywhere)\n READS: TmunuBase::eTzz(Everywhere)\n READS: TmunuBase::eTtx(Everywhere)\n READS: TmunuBase::eTty(Everywhere)\n READS: TmunuBase::eTtz(Everywhere)\n READS: ML_BSSN::At11(Everywhere)\n READS: ML_BSSN::At12(Everywhere)\n READS: ML_BSSN::At13(Everywhere)\n READS: ML_BSSN::At22(Everywhere)\n READS: ML_BSSN::At23(Everywhere)\n READS: ML_BSSN::At33(Everywhere)\n READS: ML_BSSN::A(Everywhere)\n READS: ML_BSSN::B1(Everywhere)\n READS: ML_BSSN::B2(Everywhere)\n READS: ML_BSSN::B3(Everywhere)\n READS: ML_BSSN::Xt1(Everywhere)\n READS: ML_BSSN::Xt2(Everywhere)\n READS: ML_BSSN::Xt3(Everywhere)\n READS: ML_BSSN::alpha(Everywhere)\n READS: ML_BSSN::phi(Everywhere)\n READS: ML_BSSN::gt11(Everywhere)\n READS: ML_BSSN::gt12(Everywhere)\n READS: ML_BSSN::gt13(Everywhere)\n READS: ML_BSSN::gt22(Everywhere)\n READS: ML_BSSN::gt23(Everywhere)\n READS: ML_BSSN::gt33(Everywhere)\n READS: ML_BSSN::beta1(Everywhere)\n READS: ML_BSSN::beta2(Everywhere)\n READS: ML_BSSN::beta3(Everywhere)\n READS: ML_BSSN::trK(Everywhere)\n WRITES: ML_BSSN::cXt1(Interior)\n WRITES: ML_BSSN::cXt2(Interior)\n WRITES: ML_BSSN::cXt3(Interior)\n WRITES: ML_BSSN::H(Interior)\n WRITES: ML_BSSN::M1(Interior)\n WRITES: ML_BSSN::M2(Interior)\n WRITES: ML_BSSN::M3(Interior)\n} \"ML_BSSN_ConstraintsInterior\"\n\nschedule ML_BSSN_ConstraintsInterior_SelectBCs in ML_BSSN_ConstraintsInterior_bc_group\n{\n LANG: C\n OPTIONS: level\n SYNC: ML_cons_Gamma\n SYNC: ML_Ham\n SYNC: ML_mom\n} \"ML_BSSN_ConstraintsInterior_SelectBCs\"\n\nschedule group ApplyBCs as ML_BSSN_ConstraintsInterior_ApplyBCs in ML_BSSN_ConstraintsInterior_bc_group after ML_BSSN_ConstraintsInterior_SelectBCs\n{\n} \"Apply BCs for groups set in ML_BSSN_ConstraintsInterior\"\n\nif (CCTK_EQUALS(evolution_method, \"ML_BSSN\"))\n{\n schedule group ML_BSSN_ConstraintsInterior_bc_group in ML_BSSN_ConstraintsInterior_group after ML_BSSN_ConstraintsInterior\n {\n } \"ML_BSSN_ConstraintsInterior\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_BSSN\"))\n{\n schedule group ML_BSSN_ConstraintsInterior_bc_group in MoL_PseudoEvolutionBoundaries after MoL_PostStep\n {\n } \"ML_BSSN_ConstraintsInterior\"\n}\n\nschedule ML_BSSN_SelectBoundConds in MoL_PostStep\n{\n LANG: C\n OPTIONS: level\n SYNC: ML_log_confac\n SYNC: ML_metric\n SYNC: ML_Gamma\n SYNC: ML_trace_curv\n SYNC: ML_curv\n SYNC: ML_lapse\n SYNC: ML_dtlapse\n SYNC: ML_shift\n SYNC: ML_dtshift\n} \"select boundary conditions\"\n\nschedule ML_BSSN_CheckBoundaries at BASEGRID\n{\n LANG: C\n OPTIONS: meta\n} \"check boundaries treatment\"\n\nschedule ML_BSSN_RegisterVars in MoL_Register\n{\n LANG: C\n OPTIONS: meta\n} \"Register Variables for MoL\"\nschedule group ApplyBCs as ML_BSSN_ApplyBCs in MoL_PostStep after ML_BSSN_SelectBoundConds\n{\n} \"Apply boundary conditions controlled by thorn Boundary\"\n\nschedule group ML_BSSN_EvolutionInteriorSplitBy IN MoL_CalcRHS\n{\n} \"\"\n", "src": { "ML_BSSN_EnforceEverywhere.cc": "/* File produced by Kranc */\n\n#define KRANC_C\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Parameters.h\"\n#include \"Kranc.hh\"\n#include \"Differencing.h\"\n#include \"loopcontrol.h\"\n#include \"vectors.h\"\n\nnamespace ML_BSSN {\n\n\nstatic void ML_BSSN_EnforceEverywhere_Body(const cGH* restrict const cctkGH, const int dir, const int face, const CCTK_REAL normal[3], const CCTK_REAL tangentA[3], const CCTK_REAL tangentB[3], const int imin[3], const int imax[3], const int n_subblock_gfs, CCTK_REAL* restrict const subblock_gfs[])\n{\n DECLARE_CCTK_ARGUMENTS;\n DECLARE_CCTK_PARAMETERS;\n \n /* Include user-supplied include files */\n /* Initialise finite differencing variables */\n const ptrdiff_t di CCTK_ATTRIBUTE_UNUSED = 1;\n const ptrdiff_t dj CCTK_ATTRIBUTE_UNUSED = \n CCTK_GFINDEX3D(cctkGH,0,1,0) - CCTK_GFINDEX3D(cctkGH,0,0,0);\n const ptrdiff_t dk CCTK_ATTRIBUTE_UNUSED = \n CCTK_GFINDEX3D(cctkGH,0,0,1) - CCTK_GFINDEX3D(cctkGH,0,0,0);\n const ptrdiff_t cdi CCTK_ATTRIBUTE_UNUSED = sizeof(CCTK_REAL) * di;\n const ptrdiff_t cdj CCTK_ATTRIBUTE_UNUSED = sizeof(CCTK_REAL) * dj;\n const ptrdiff_t cdk CCTK_ATTRIBUTE_UNUSED = sizeof(CCTK_REAL) * dk;\n const ptrdiff_t cctkLbnd1 CCTK_ATTRIBUTE_UNUSED = cctk_lbnd[0];\n const ptrdiff_t cctkLbnd2 CCTK_ATTRIBUTE_UNUSED = cctk_lbnd[1];\n const ptrdiff_t cctkLbnd3 CCTK_ATTRIBUTE_UNUSED = cctk_lbnd[2];\n const CCTK_REAL_VEC t CCTK_ATTRIBUTE_UNUSED = ToReal(cctk_time);\n const CCTK_REAL_VEC cctkOriginSpace1 CCTK_ATTRIBUTE_UNUSED = \n ToReal(CCTK_ORIGIN_SPACE(0));\n const CCTK_REAL_VEC cctkOriginSpace2 CCTK_ATTRIBUTE_UNUSED = \n ToReal(CCTK_ORIGIN_SPACE(1));\n const CCTK_REAL_VEC cctkOriginSpace3 CCTK_ATTRIBUTE_UNUSED = \n ToReal(CCTK_ORIGIN_SPACE(2));\n const CCTK_REAL_VEC dt CCTK_ATTRIBUTE_UNUSED = \n ToReal(CCTK_DELTA_TIME);\n const CCTK_REAL_VEC dx CCTK_ATTRIBUTE_UNUSED = \n ToReal(CCTK_DELTA_SPACE(0));\n const CCTK_REAL_VEC dy CCTK_ATTRIBUTE_UNUSED = \n ToReal(CCTK_DELTA_SPACE(1));\n const CCTK_REAL_VEC dz CCTK_ATTRIBUTE_UNUSED = \n ToReal(CCTK_DELTA_SPACE(2));\n const CCTK_REAL_VEC dxi CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(1),dx);\n const CCTK_REAL_VEC dyi CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(1),dy);\n const CCTK_REAL_VEC dzi CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(1),dz);\n const CCTK_REAL_VEC khalf CCTK_ATTRIBUTE_UNUSED = ToReal(0.5);\n const CCTK_REAL_VEC kthird CCTK_ATTRIBUTE_UNUSED = \n ToReal(0.333333333333333333333333333333);\n const CCTK_REAL_VEC ktwothird CCTK_ATTRIBUTE_UNUSED = \n ToReal(0.666666666666666666666666666667);\n const CCTK_REAL_VEC kfourthird CCTK_ATTRIBUTE_UNUSED = \n ToReal(1.33333333333333333333333333333);\n const CCTK_REAL_VEC hdxi CCTK_ATTRIBUTE_UNUSED = \n kmul(dxi,ToReal(0.5));\n const CCTK_REAL_VEC hdyi CCTK_ATTRIBUTE_UNUSED = \n kmul(dyi,ToReal(0.5));\n const CCTK_REAL_VEC hdzi CCTK_ATTRIBUTE_UNUSED = \n kmul(dzi,ToReal(0.5));\n /* Initialize predefined quantities */\n const CCTK_REAL_VEC p1o1024dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0009765625),dx);\n const CCTK_REAL_VEC p1o1024dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0009765625),dy);\n const CCTK_REAL_VEC p1o1024dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0009765625),dz);\n const CCTK_REAL_VEC p1o120dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00833333333333333333333333333333),dx);\n const CCTK_REAL_VEC p1o120dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00833333333333333333333333333333),dy);\n const CCTK_REAL_VEC p1o120dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00833333333333333333333333333333),dz);\n const CCTK_REAL_VEC p1o12dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0833333333333333333333333333333),dx);\n const CCTK_REAL_VEC p1o12dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0833333333333333333333333333333),dy);\n const CCTK_REAL_VEC p1o12dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0833333333333333333333333333333),dz);\n const CCTK_REAL_VEC p1o144dxdy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00694444444444444444444444444444),kmul(dx,dy));\n const CCTK_REAL_VEC p1o144dxdz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00694444444444444444444444444444),kmul(dx,dz));\n const CCTK_REAL_VEC p1o144dydz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00694444444444444444444444444444),kmul(dy,dz));\n const CCTK_REAL_VEC p1o1680dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.000595238095238095238095238095238),dx);\n const CCTK_REAL_VEC p1o1680dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.000595238095238095238095238095238),dy);\n const CCTK_REAL_VEC p1o1680dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.000595238095238095238095238095238),dz);\n const CCTK_REAL_VEC p1o180dx2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00555555555555555555555555555556),kmul(dx,dx));\n const CCTK_REAL_VEC p1o180dy2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00555555555555555555555555555556),kmul(dy,dy));\n const CCTK_REAL_VEC p1o180dz2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00555555555555555555555555555556),kmul(dz,dz));\n const CCTK_REAL_VEC p1o24dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0416666666666666666666666666667),dx);\n const CCTK_REAL_VEC p1o24dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0416666666666666666666666666667),dy);\n const CCTK_REAL_VEC p1o24dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0416666666666666666666666666667),dz);\n const CCTK_REAL_VEC p1o2dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.5),dx);\n const CCTK_REAL_VEC p1o2dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.5),dy);\n const CCTK_REAL_VEC p1o2dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.5),dz);\n const CCTK_REAL_VEC p1o3600dxdy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.000277777777777777777777777777778),kmul(dx,dy));\n const CCTK_REAL_VEC p1o3600dxdz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.000277777777777777777777777777778),kmul(dx,dz));\n const CCTK_REAL_VEC p1o3600dydz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.000277777777777777777777777777778),kmul(dy,dz));\n const CCTK_REAL_VEC p1o4dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.25),dx);\n const CCTK_REAL_VEC p1o4dxdy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.25),kmul(dx,dy));\n const CCTK_REAL_VEC p1o4dxdz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.25),kmul(dx,dz));\n const CCTK_REAL_VEC p1o4dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.25),dy);\n const CCTK_REAL_VEC p1o4dydz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.25),kmul(dy,dz));\n const CCTK_REAL_VEC p1o4dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.25),dz);\n const CCTK_REAL_VEC p1o5040dx2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.000198412698412698412698412698413),kmul(dx,dx));\n const CCTK_REAL_VEC p1o5040dy2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.000198412698412698412698412698413),kmul(dy,dy));\n const CCTK_REAL_VEC p1o5040dz2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.000198412698412698412698412698413),kmul(dz,dz));\n const CCTK_REAL_VEC p1o560dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00178571428571428571428571428571),dx);\n const CCTK_REAL_VEC p1o560dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00178571428571428571428571428571),dy);\n const CCTK_REAL_VEC p1o560dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00178571428571428571428571428571),dz);\n const CCTK_REAL_VEC p1o60dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0166666666666666666666666666667),dx);\n const CCTK_REAL_VEC p1o60dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0166666666666666666666666666667),dy);\n const CCTK_REAL_VEC p1o60dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0166666666666666666666666666667),dz);\n const CCTK_REAL_VEC p1o64dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.015625),dx);\n const CCTK_REAL_VEC p1o64dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.015625),dy);\n const CCTK_REAL_VEC p1o64dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.015625),dz);\n const CCTK_REAL_VEC p1o6dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.166666666666666666666666666667),dx);\n const CCTK_REAL_VEC p1o6dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.166666666666666666666666666667),dy);\n const CCTK_REAL_VEC p1o6dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.166666666666666666666666666667),dz);\n const CCTK_REAL_VEC p1o705600dxdy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(1.41723356009070294784580498866e-6),kmul(dx,dy));\n const CCTK_REAL_VEC p1o705600dxdz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(1.41723356009070294784580498866e-6),kmul(dx,dz));\n const CCTK_REAL_VEC p1o705600dydz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(1.41723356009070294784580498866e-6),kmul(dy,dz));\n const CCTK_REAL_VEC p1o840dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00119047619047619047619047619048),dx);\n const CCTK_REAL_VEC p1o840dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00119047619047619047619047619048),dy);\n const CCTK_REAL_VEC p1o840dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00119047619047619047619047619048),dz);\n const CCTK_REAL_VEC p1odx2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(1),kmul(dx,dx));\n const CCTK_REAL_VEC p1ody2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(1),kmul(dy,dy));\n const CCTK_REAL_VEC p1odz2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(1),kmul(dz,dz));\n const CCTK_REAL_VEC pm1o120dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.00833333333333333333333333333333),dx);\n const CCTK_REAL_VEC pm1o120dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.00833333333333333333333333333333),dy);\n const CCTK_REAL_VEC pm1o120dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.00833333333333333333333333333333),dz);\n const CCTK_REAL_VEC pm1o12dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0833333333333333333333333333333),dx);\n const CCTK_REAL_VEC pm1o12dx2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0833333333333333333333333333333),kmul(dx,dx));\n const CCTK_REAL_VEC pm1o12dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0833333333333333333333333333333),dy);\n const CCTK_REAL_VEC pm1o12dy2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0833333333333333333333333333333),kmul(dy,dy));\n const CCTK_REAL_VEC pm1o12dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0833333333333333333333333333333),dz);\n const CCTK_REAL_VEC pm1o12dz2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0833333333333333333333333333333),kmul(dz,dz));\n const CCTK_REAL_VEC pm1o16dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0625),dx);\n const CCTK_REAL_VEC pm1o16dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0625),dy);\n const CCTK_REAL_VEC pm1o16dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0625),dz);\n const CCTK_REAL_VEC pm1o256dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.00390625),dx);\n const CCTK_REAL_VEC pm1o256dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.00390625),dy);\n const CCTK_REAL_VEC pm1o256dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.00390625),dz);\n const CCTK_REAL_VEC pm1o2dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.5),dx);\n const CCTK_REAL_VEC pm1o2dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.5),dy);\n const CCTK_REAL_VEC pm1o2dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.5),dz);\n const CCTK_REAL_VEC pm1o4dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.25),dx);\n const CCTK_REAL_VEC pm1o4dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.25),dy);\n const CCTK_REAL_VEC pm1o4dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.25),dz);\n const CCTK_REAL_VEC pm1o60dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0166666666666666666666666666667),dx);\n const CCTK_REAL_VEC pm1o60dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0166666666666666666666666666667),dy);\n const CCTK_REAL_VEC pm1o60dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0166666666666666666666666666667),dz);\n /* Jacobian variable pointers */\n const bool usejacobian1 = (!CCTK_IsFunctionAliased(\"MultiPatch_GetMap\") || MultiPatch_GetMap(cctkGH) != jacobian_identity_map)\n && strlen(jacobian_group) > 0;\n const bool usejacobian = assume_use_jacobian>=0 ? assume_use_jacobian : usejacobian1;\n if (usejacobian && (strlen(jacobian_derivative_group) == 0))\n {\n CCTK_WARN(CCTK_WARN_ALERT, \"GenericFD::jacobian_group and GenericFD::jacobian_derivative_group must both be set to valid group names\");\n }\n \n const CCTK_REAL* restrict jacobian_ptrs[9];\n if (usejacobian) GroupDataPointers(cctkGH, jacobian_group,\n 9, jacobian_ptrs);\n \n const CCTK_REAL* restrict const J11 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_ptrs[0] : 0;\n const CCTK_REAL* restrict const J12 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_ptrs[1] : 0;\n const CCTK_REAL* restrict const J13 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_ptrs[2] : 0;\n const CCTK_REAL* restrict const J21 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_ptrs[3] : 0;\n const CCTK_REAL* restrict const J22 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_ptrs[4] : 0;\n const CCTK_REAL* restrict const J23 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_ptrs[5] : 0;\n const CCTK_REAL* restrict const J31 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_ptrs[6] : 0;\n const CCTK_REAL* restrict const J32 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_ptrs[7] : 0;\n const CCTK_REAL* restrict const J33 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_ptrs[8] : 0;\n \n const CCTK_REAL* restrict jacobian_determinant_ptrs[1] CCTK_ATTRIBUTE_UNUSED;\n if (usejacobian && strlen(jacobian_determinant_group) > 0) GroupDataPointers(cctkGH, jacobian_determinant_group,\n 1, jacobian_determinant_ptrs);\n \n const CCTK_REAL* restrict const detJ CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_determinant_ptrs[0] : 0;\n \n const CCTK_REAL* restrict jacobian_inverse_ptrs[9] CCTK_ATTRIBUTE_UNUSED;\n if (usejacobian && strlen(jacobian_inverse_group) > 0) GroupDataPointers(cctkGH, jacobian_inverse_group,\n 9, jacobian_inverse_ptrs);\n \n const CCTK_REAL* restrict const iJ11 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_inverse_ptrs[0] : 0;\n const CCTK_REAL* restrict const iJ12 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_inverse_ptrs[1] : 0;\n const CCTK_REAL* restrict const iJ13 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_inverse_ptrs[2] : 0;\n const CCTK_REAL* restrict const iJ21 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_inverse_ptrs[3] : 0;\n const CCTK_REAL* restrict const iJ22 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_inverse_ptrs[4] : 0;\n const CCTK_REAL* restrict const iJ23 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_inverse_ptrs[5] : 0;\n const CCTK_REAL* restrict const iJ31 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_inverse_ptrs[6] : 0;\n const CCTK_REAL* restrict const iJ32 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_inverse_ptrs[7] : 0;\n const CCTK_REAL* restrict const iJ33 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_inverse_ptrs[8] : 0;\n \n const CCTK_REAL* restrict jacobian_derivative_ptrs[18] CCTK_ATTRIBUTE_UNUSED;\n if (usejacobian) GroupDataPointers(cctkGH, jacobian_derivative_group,\n 18, jacobian_derivative_ptrs);\n \n const CCTK_REAL* restrict const dJ111 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[0] : 0;\n const CCTK_REAL* restrict const dJ112 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[1] : 0;\n const CCTK_REAL* restrict const dJ113 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[2] : 0;\n const CCTK_REAL* restrict const dJ122 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[3] : 0;\n const CCTK_REAL* restrict const dJ123 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[4] : 0;\n const CCTK_REAL* restrict const dJ133 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[5] : 0;\n const CCTK_REAL* restrict const dJ211 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[6] : 0;\n const CCTK_REAL* restrict const dJ212 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[7] : 0;\n const CCTK_REAL* restrict const dJ213 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[8] : 0;\n const CCTK_REAL* restrict const dJ222 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[9] : 0;\n const CCTK_REAL* restrict const dJ223 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[10] : 0;\n const CCTK_REAL* restrict const dJ233 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[11] : 0;\n const CCTK_REAL* restrict const dJ311 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[12] : 0;\n const CCTK_REAL* restrict const dJ312 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[13] : 0;\n const CCTK_REAL* restrict const dJ313 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[14] : 0;\n const CCTK_REAL* restrict const dJ322 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[15] : 0;\n const CCTK_REAL* restrict const dJ323 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[16] : 0;\n const CCTK_REAL* restrict const dJ333 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[17] : 0;\n /* Assign local copies of arrays functions */\n \n \n /* Calculate temporaries and arrays functions */\n /* Copy local copies back to grid functions */\n /* Loop over the grid points */\n const int imin0=imin[0];\n const int imin1=imin[1];\n const int imin2=imin[2];\n const int imax0=imax[0];\n const int imax1=imax[1];\n const int imax2=imax[2];\n #pragma omp parallel\n CCTK_LOOP3STR(ML_BSSN_EnforceEverywhere,\n i,j,k, imin0,imin1,imin2, imax0,imax1,imax2,\n cctk_ash[0],cctk_ash[1],cctk_ash[2],\n vecimin,vecimax, CCTK_REAL_VEC_SIZE)\n {\n const ptrdiff_t index CCTK_ATTRIBUTE_UNUSED = di*i + dj*j + dk*k;\n /* Assign local copies of grid functions */\n \n CCTK_REAL_VEC alphaL CCTK_ATTRIBUTE_UNUSED = vec_load(alpha[index]);\n CCTK_REAL_VEC At11L CCTK_ATTRIBUTE_UNUSED = vec_load(At11[index]);\n CCTK_REAL_VEC At12L CCTK_ATTRIBUTE_UNUSED = vec_load(At12[index]);\n CCTK_REAL_VEC At13L CCTK_ATTRIBUTE_UNUSED = vec_load(At13[index]);\n CCTK_REAL_VEC At22L CCTK_ATTRIBUTE_UNUSED = vec_load(At22[index]);\n CCTK_REAL_VEC At23L CCTK_ATTRIBUTE_UNUSED = vec_load(At23[index]);\n CCTK_REAL_VEC At33L CCTK_ATTRIBUTE_UNUSED = vec_load(At33[index]);\n CCTK_REAL_VEC gt11L CCTK_ATTRIBUTE_UNUSED = vec_load(gt11[index]);\n CCTK_REAL_VEC gt12L CCTK_ATTRIBUTE_UNUSED = vec_load(gt12[index]);\n CCTK_REAL_VEC gt13L CCTK_ATTRIBUTE_UNUSED = vec_load(gt13[index]);\n CCTK_REAL_VEC gt22L CCTK_ATTRIBUTE_UNUSED = vec_load(gt22[index]);\n CCTK_REAL_VEC gt23L CCTK_ATTRIBUTE_UNUSED = vec_load(gt23[index]);\n CCTK_REAL_VEC gt33L CCTK_ATTRIBUTE_UNUSED = vec_load(gt33[index]);\n \n \n /* Include user supplied include files */\n /* Precompute derivatives */\n \n switch (fdOrder)\n {\n case 2:\n {\n break;\n }\n \n case 4:\n {\n break;\n }\n \n case 6:\n {\n break;\n }\n \n case 8:\n {\n break;\n }\n default:\n CCTK_BUILTIN_UNREACHABLE();\n }\n /* Calculate temporaries and grid functions */\n CCTK_REAL_VEC detgt CCTK_ATTRIBUTE_UNUSED = ToReal(1);\n \n gt11L = kmul(gt11L,kpow(detgt,-0.333333333333333333333333333333));\n \n gt12L = kmul(gt12L,kpow(detgt,-0.333333333333333333333333333333));\n \n gt13L = kmul(gt13L,kpow(detgt,-0.333333333333333333333333333333));\n \n gt22L = kmul(gt22L,kpow(detgt,-0.333333333333333333333333333333));\n \n gt23L = kmul(gt23L,kpow(detgt,-0.333333333333333333333333333333));\n \n gt33L = kmul(gt33L,kpow(detgt,-0.333333333333333333333333333333));\n \n detgt = ToReal(1);\n \n CCTK_REAL_VEC gtu11 CCTK_ATTRIBUTE_UNUSED = \n kdiv(kmsub(gt22L,gt33L,kmul(gt23L,gt23L)),detgt);\n \n CCTK_REAL_VEC gtu12 CCTK_ATTRIBUTE_UNUSED = \n kdiv(kmsub(gt13L,gt23L,kmul(gt12L,gt33L)),detgt);\n \n CCTK_REAL_VEC gtu13 CCTK_ATTRIBUTE_UNUSED = \n kdiv(kmsub(gt12L,gt23L,kmul(gt13L,gt22L)),detgt);\n \n CCTK_REAL_VEC gtu22 CCTK_ATTRIBUTE_UNUSED = \n kdiv(kmsub(gt11L,gt33L,kmul(gt13L,gt13L)),detgt);\n \n CCTK_REAL_VEC gtu23 CCTK_ATTRIBUTE_UNUSED = \n kdiv(kmsub(gt12L,gt13L,kmul(gt11L,gt23L)),detgt);\n \n CCTK_REAL_VEC gtu33 CCTK_ATTRIBUTE_UNUSED = \n kdiv(kmsub(gt11L,gt22L,kmul(gt12L,gt12L)),detgt);\n \n CCTK_REAL_VEC Atm11 CCTK_ATTRIBUTE_UNUSED = \n kmadd(At11L,gtu11,kmadd(At12L,gtu12,kmul(At13L,gtu13)));\n \n CCTK_REAL_VEC Atm22 CCTK_ATTRIBUTE_UNUSED = \n kmadd(At12L,gtu12,kmadd(At22L,gtu22,kmul(At23L,gtu23)));\n \n CCTK_REAL_VEC Atm33 CCTK_ATTRIBUTE_UNUSED = \n kmadd(At13L,gtu13,kmadd(At23L,gtu23,kmul(At33L,gtu33)));\n \n CCTK_REAL_VEC trAt CCTK_ATTRIBUTE_UNUSED = \n kadd(Atm11,kadd(Atm22,Atm33));\n \n At11L = \n kmadd(ToReal(-0.333333333333333333333333333333),kmul(gt11L,trAt),At11L);\n \n At12L = \n kmadd(ToReal(-0.333333333333333333333333333333),kmul(gt12L,trAt),At12L);\n \n At13L = \n kmadd(ToReal(-0.333333333333333333333333333333),kmul(gt13L,trAt),At13L);\n \n At22L = \n kmadd(ToReal(-0.333333333333333333333333333333),kmul(gt22L,trAt),At22L);\n \n At23L = \n kmadd(ToReal(-0.333333333333333333333333333333),kmul(gt23L,trAt),At23L);\n \n At33L = \n kmadd(ToReal(-0.333333333333333333333333333333),kmul(gt33L,trAt),At33L);\n \n alphaL = kfmax(alphaL,ToReal(minimumLapse));\n /* Copy local copies back to grid functions */\n vec_store_partial_prepare(i,vecimin,vecimax);\n vec_store_nta_partial(alpha[index],alphaL);\n vec_store_nta_partial(At11[index],At11L);\n vec_store_nta_partial(At12[index],At12L);\n vec_store_nta_partial(At13[index],At13L);\n vec_store_nta_partial(At22[index],At22L);\n vec_store_nta_partial(At23[index],At23L);\n vec_store_nta_partial(At33[index],At33L);\n vec_store_nta_partial(gt11[index],gt11L);\n vec_store_nta_partial(gt12[index],gt12L);\n vec_store_nta_partial(gt13[index],gt13L);\n vec_store_nta_partial(gt22[index],gt22L);\n vec_store_nta_partial(gt23[index],gt23L);\n vec_store_nta_partial(gt33[index],gt33L);\n }\n CCTK_ENDLOOP3STR(ML_BSSN_EnforceEverywhere);\n}\nextern \"C\" void ML_BSSN_EnforceEverywhere(CCTK_ARGUMENTS)\n{\n #ifdef DECLARE_CCTK_ARGUMENTS_ML_BSSN_EnforceEverywhere\n DECLARE_CCTK_ARGUMENTS_CHECKED(ML_BSSN_EnforceEverywhere);\n #else\n DECLARE_CCTK_ARGUMENTS;\n #endif\n DECLARE_CCTK_PARAMETERS;\n \n if (verbose > 1)\n {\n CCTK_VInfo(CCTK_THORNSTRING,\"Entering ML_BSSN_EnforceEverywhere_Body\");\n }\n if (cctk_iteration % ML_BSSN_EnforceEverywhere_calc_every != ML_BSSN_EnforceEverywhere_calc_offset)\n {\n return;\n }\n \n const char* const groups[] = {\n \"ML_BSSN::ML_curv\",\n \"ML_BSSN::ML_lapse\",\n \"ML_BSSN::ML_metric\"};\n AssertGroupStorage(cctkGH, \"ML_BSSN_EnforceEverywhere\", 3, groups);\n \n switch (fdOrder)\n {\n case 2:\n {\n break;\n }\n \n case 4:\n {\n break;\n }\n \n case 6:\n {\n break;\n }\n \n case 8:\n {\n break;\n }\n default:\n CCTK_BUILTIN_UNREACHABLE();\n }\n \n LoopOverEverything(cctkGH, ML_BSSN_EnforceEverywhere_Body);\n if (verbose > 1)\n {\n CCTK_VInfo(CCTK_THORNSTRING,\"Leaving ML_BSSN_EnforceEverywhere_Body\");\n }\n}\n\n} // namespace ML_BSSN\n", diff --git a/McLachlan_ML_BSSN_Helper.json b/McLachlan_ML_BSSN_Helper.json index 5f9ca3a7b69fc1548ade71da8eaac80d0fe8c5c4..b857faf8595d8c8da192c1c58921f5af621aeacf 100644 --- a/McLachlan_ML_BSSN_Helper.json +++ b/McLachlan_ML_BSSN_Helper.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/mclachlan.git", "configuration": "# ML_BSSN_Helper\n\nREQUIRES THORNS: CartGrid3D CoordGauge\n", "interface": "# ML_BSSN_Helper\n\nIMPLEMENTS: ML_BSSN_Helper\n\nINHERITS: ADMBase CoordGauge ML_BSSN\n\nUSES INCLUDE: Slicing.h\nUSES INCLUDE: Symmetry.h\n\n\n\nCCTK_INT FUNCTION MoLRegisterConstrainedGroup \\\n (CCTK_INT IN ConstrainedIndex)\nUSES FUNCTION MoLRegisterConstrainedGroup\n\nCCTK_INT FUNCTION \\\n Boundary_SelectGroupForBC \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN faces, \\\n CCTK_INT IN boundary_width, \\\n CCTK_INT IN table_handle, \\\n CCTK_STRING IN group_name, \\\n CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT FUNCTION \\\n ExtrapolateGammas \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_REAL ARRAY INOUT var)\nUSES FUNCTION ExtrapolateGammas\n\nCCTK_INT FUNCTION \\\n NewRad_Apply \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_REAL ARRAY IN var, \\\n CCTK_REAL ARRAY INOUT rhs, \\\n CCTK_REAL IN var0, \\\n CCTK_REAL IN v0, \\\n CCTK_INT IN radpower)\nUSES FUNCTION NewRad_Apply\n\nCCTK_INT FUNCTION Driver_RequireValidData\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT ARRAY IN variables,\n CCTK_INT ARRAY IN tls,\n CCTK_INT IN nvariables,\n CCTK_INT ARRAY IN where)\nUSES FUNCTION Driver_RequireValidData\n\nCCTK_INT FUNCTION Driver_NotifyDataModified\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT ARRAY IN variables,\n CCTK_INT ARRAY IN tls,\n CCTK_INT IN nvariables,\n CCTK_INT ARRAY IN where)\nUSES FUNCTION Driver_NotifyDataModified\n\nCCTK_INT FUNCTION\n Driver_SelectGroupForBC\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT IN faces,\n CCTK_INT IN width,\n CCTK_INT IN table_handle,\n CCTK_STRING IN group_name,\n CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectGroupForBC\n", - "params": "", + "param": "# ML_BSSN_Helper\n\nSHARES: Boundary\n\nUSES CCTK_INT radpower\n\nSHARES: MethodofLines\n\nUSES CCTK_INT MoL_Num_Constrained_Vars\n\nSHARES: ADMBase\n\nUSES KEYWORD evolution_method\n\nSHARES: GenericFD\n\nUSES CCTK_INT boundary_width\n\nSHARES: ML_BSSN\n\n# For backward compatibility\nUSES KEYWORD my_initial_data\nEXTENDS KEYWORD my_initial_boundary_condition\n{\n \"extrapolate-gammas\" :: \"extrapolate-gammas\"\n}\nEXTENDS KEYWORD my_rhs_boundary_condition\n{\n \"NewRad\" :: \"NewRad\"\n}\nUSES KEYWORD my_boundary_condition\nUSES KEYWORD apply_dissipation\nUSES CCTK_REAL shiftGammaCoeff\nUSES CCTK_REAL LapseACoeff\nUSES CCTK_REAL ShiftBCoeff\nUSES CCTK_REAL LapseAdvectionCoeff\nUSES CCTK_REAL ShiftAdvectionCoeff\nUSES CCTK_INT evolveB\n\nUSES CCTK_INT timelevels\nUSES CCTK_INT rhs_timelevels\nUSES CCTK_INT other_timelevels\n\nUSES CCTK_REAL harmonicF\nUSES CCTK_INT conformalMethod\n\nEXTENDS KEYWORD initial_boundary_condition\n{\n \"extrapolate-gammas\" :: \"extrapolate-gammas\"\n}\nEXTENDS KEYWORD rhs_boundary_condition\n{\n \"NewRad\" :: \"NewRad\"\n}\n\nPRIVATE:\n\nCCTK_INT ML_BSSN_MaxNumConstrainedVars \"Number of constrained variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Constrained_Vars\n{\n 20:20 :: \"Number of constrained variables used by this thorn\"\n} 20\n", "schedule": "# ML_BSSN_Helper\n\nif (CCTK_EQUALS(evolution_method, \"ML_BSSN\")) {\n \n # ADMBase variables are pseudo-evolved:\n # They are set in MoL_PostStep, can be prolongated,\n # and need to be checkpointed\n # TODO: Use other_timelevels instead of timelevels.\n # TODO: Do not allocate these timelevels;\n # instead, require the user to do so in the parameter file.\n STORAGE: ADMBase::metric[timelevels]\n STORAGE: ADMBase::curv[timelevels]\n STORAGE: ADMBase::lapse[timelevels]\n STORAGE: ADMBase::shift[timelevels]\n STORAGE: ADMBase::dtlapse[timelevels]\n STORAGE: ADMBase::dtshift[timelevels]\n \n \n \n SCHEDULE ML_BSSN_RegisterSlicing AT startup\n {\n LANG: C\n OPTIONS: meta\n } \"Register slicing\"\n \n SCHEDULE ML_BSSN_SetGroupTags AT startup BEFORE Driver_Startup\n {\n LANG: C\n OPTIONS: meta\n } \"Set checkpointing and prolongation group tags\"\n \n SCHEDULE ML_BSSN_ParamCompat AT wragh\n {\n LANG: C\n OPTIONS: meta\n } \"Handle parameter backward compatibility\"\n \n SCHEDULE ML_BSSN_ParamCheck AT paramcheck\n {\n LANG: C\n OPTIONS: meta\n } \"Check parameters\"\n \n SCHEDULE ML_BSSN_RegisterConstrained IN MoL_Register\n {\n LANG: C\n OPTIONS: meta\n } \"Register ADMBase variables as constrained\"\n \n \n \n SCHEDULE GROUP ML_BSSN_EvolutionAnalysis AT analysis\n {\n # TODO: Correct list of group names\n TRIGGERS: ML_log_confacrhs\n TRIGGERS: ML_metricrhs\n TRIGGERS: ML_Gammarhs\n TRIGGERS: ML_trace_curvrhs\n TRIGGERS: ML_curvrhs\n # TRIGGERS: ML_Thetarhs\n TRIGGERS: ML_lapserhs\n TRIGGERS: ML_dtlapserhs\n TRIGGERS: ML_shiftrhs\n TRIGGERS: ML_dtshiftrhs\n } \"Calculate RHS at analysis\"\n \n # May override initial_boundary_condition for compatibility\n if (CCTK_EQUALS(initial_boundary_condition, \"extrapolate-gammas\") ||\n CCTK_EQUALS(my_initial_boundary_condition, \"extrapolate-gammas\"))\n {\n SCHEDULE ML_BSSN_ExtrapolateGammas AT initial AFTER ML_BSSN_InitialADMBase2Interior\n {\n LANG: C\n READS: ML_BSSN::ML_Gamma(interior)\n WRITES: ML_BSSN::ML_Gamma(boundary)\n # No need to sync here -- the evolution boundary condition will sync\n } \"Extrapolate Gammas and time derivatives of lapse and shift\"\n }\n \n # May override rhs_boundary_condition for compatibility\n if (CCTK_EQUALS(rhs_boundary_condition, \"NewRad\") ||\n CCTK_EQUALS(my_rhs_boundary_condition, \"NewRad\"))\n {\n SCHEDULE ML_BSSN_NewRad IN MoL_CalcRHS AFTER ML_BSSN_EvolutionInterior\n {\n LANG: C\n # No need to sync here -- the RHS variables are never synced\n READS: ML_BSSN::ML_Gamma(interior)\n READS: ML_BSSN::ML_curv(interior)\n READS: ML_BSSN::ML_lapse(interior)\n READS: ML_BSSN::ML_metric(interior)\n READS: ML_BSSN::ML_shift(interior)\n READS: ML_BSSN::phi(interior)\n READS: ML_BSSN::trK(interior)\n WRITES: ML_BSSN::ML_Gammarhs(boundary)\n WRITES: ML_BSSN::ML_curvrhs(boundary)\n WRITES: ML_BSSN::ML_lapserhs(boundary)\n WRITES: ML_BSSN::ML_metricrhs(boundary)\n WRITES: ML_BSSN::ML_shiftrhs(boundary)\n WRITES: ML_BSSN::phirhs(boundary)\n WRITES: ML_BSSN::trKrhs(boundary)\n } \"Apply NewRad boundary conditions to RHS\"\n \n SCHEDULE ML_BSSN_NewRad IN ML_BSSN_EvolutionAnalysis AFTER ML_BSSN_EvolutionAnalysisInterior\n {\n LANG: C\n # No need to sync here -- the RHS variables are never synced\n READS: ML_BSSN::ML_Gamma(interior)\n READS: ML_BSSN::ML_curv(interior)\n READS: ML_BSSN::ML_lapse(interior)\n READS: ML_BSSN::ML_metric(interior)\n READS: ML_BSSN::ML_shift(interior)\n READS: ML_BSSN::phi(interior)\n READS: ML_BSSN::trK(interior)\n WRITES: ML_BSSN::ML_Gammarhs(boundary)\n WRITES: ML_BSSN::ML_curvrhs(boundary)\n WRITES: ML_BSSN::ML_lapserhs(boundary)\n WRITES: ML_BSSN::ML_metricrhs(boundary)\n WRITES: ML_BSSN::ML_shiftrhs(boundary)\n WRITES: ML_BSSN::phirhs(boundary)\n WRITES: ML_BSSN::trKrhs(boundary)\n } \"Apply NewRad boundary conditions to RHS\"\n }\n \n # TODO COMPATIBILITY:\n # Do not apply boundary conditions to Everywhere ADMBase variables\n SCHEDULE ML_BSSN_ADMBase_SelectBCs IN MoL_PostStep AFTER ML_BSSN_ADMBaseEverywhere AFTER ML_BSSN_ADMBaseInterior AFTER ML_BSSN_ADMBaseBoundaryScalar\n {\n LANG: C\n OPTIONS: level\n } \"Select boundary conditions for ADMBase variables\"\n \n SCHEDULE GROUP ApplyBCs AS ML_BSSN_ADMBase_ApplyBCs IN MoL_PostStep AFTER ML_BSSN_ADMBase_SelectBCs BEFORE ADMBase_SetADMVars\n {\n } \"Apply boundary conditions to ADMBase variables\"\n \n}\n", "src": { "ExtrapolateGammas.c": "#include \n#include \n\n#include \n\n#ifndef DECLARE_CCTK_ARGUMENTS_CHECKED\n#define DECLARE_CCTK_ARGUMENTS_CHECKED(func) DECLARE_CCTK_ARGUMENTS\n#endif\n\nstatic void extrap(const cGH *cctkGH, CCTK_REAL *var);\n\nvoid ML_BSSN_ExtrapolateGammas(CCTK_ARGUMENTS) {\n DECLARE_CCTK_ARGUMENTS_CHECKED(ML_BSSN_ExtrapolateGammas);\n\n extrap(cctkGH, Xt1);\n extrap(cctkGH, Xt2);\n extrap(cctkGH, Xt3);\n\n static bool have_A_index = false;\n static int A_index;\n if (!have_A_index) {\n A_index = CCTK_VarIndex(\"ML_BSSN::A\");\n have_A_index = true;\n }\n if (A_index >= 0) {\n if(CCTK_IsFunctionAliased(\"Driver_RequireValidData\")) {\n CCTK_INT variables[1] = {A_index};\n CCTK_INT tls[1] = {0};\n CCTK_INT where[1] = {CCTK_VALID_INTERIOR};\n CCTK_INT ierr = Driver_RequireValidData(cctkGH, variables, tls, 1, where);\n assert(!ierr);\n }\n CCTK_REAL *A_ptr = CCTK_VarDataPtrI(cctkGH, 0, A_index);\n extrap(cctkGH, A_ptr);\n if(CCTK_IsFunctionAliased(\"Driver_NotifyDataModified\")) {\n CCTK_INT variables[1] = {A_index};\n CCTK_INT tls[1] = {0};\n CCTK_INT where[1] = {CCTK_VALID_BOUNDARY};\n CCTK_INT ierr = Driver_NotifyDataModified(cctkGH, variables, tls, 1,\n where);\n assert(!ierr);\n }\n }\n\n static bool have_B_index = false;\n static int B_index;\n if (!have_B_index) {\n B_index = CCTK_VarIndex(\"ML_BSSN::B1\");\n have_B_index = true;\n }\n if (B_index >= 0) {\n if(CCTK_IsFunctionAliased(\"Driver_RequireValidData\")) {\n CCTK_INT variables[3] = {B_index, B_index + 1, B_index + 2};\n CCTK_INT tls[3] = {0, 0 ,0};\n CCTK_INT where[3] = {CCTK_VALID_INTERIOR, CCTK_VALID_INTERIOR,\n CCTK_VALID_INTERIOR};\n CCTK_INT ierr = Driver_RequireValidData(cctkGH, variables, tls, 3, where);\n assert(!ierr);\n }\n CCTK_REAL *B1_ptr = CCTK_VarDataPtrI(cctkGH, 0, B_index);\n CCTK_REAL *B2_ptr = CCTK_VarDataPtrI(cctkGH, 0, B_index + 1);\n CCTK_REAL *B3_ptr = CCTK_VarDataPtrI(cctkGH, 0, B_index + 2);\n extrap(cctkGH, B1_ptr);\n extrap(cctkGH, B2_ptr);\n extrap(cctkGH, B3_ptr);\n if(CCTK_IsFunctionAliased(\"Driver_NotifyDataModified\")) {\n CCTK_INT variables[3] = {B_index, B_index + 1, B_index + 2};\n CCTK_INT tls[3] = {0, 0 ,0};\n CCTK_INT where[3] = {CCTK_VALID_INTERIOR, CCTK_VALID_INTERIOR,\n CCTK_VALID_INTERIOR};\n CCTK_INT ierr = Driver_NotifyDataModified(cctkGH, variables, tls, 3,\n where);\n assert(!ierr);\n }\n }\n}\n\nstatic void extrap(const cGH *cctkGH, CCTK_REAL *var) {\n ExtrapolateGammas(cctkGH, var);\n}\n", diff --git a/McLachlan_ML_BSSN_Test.json b/McLachlan_ML_BSSN_Test.json index a7ed74997f1b25e601ce26441cb1fdf3da277993..c26294c6957326c8ed0ee5b21cce415660890a85 100644 --- a/McLachlan_ML_BSSN_Test.json +++ b/McLachlan_ML_BSSN_Test.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/mclachlan.git", "configuration": "", "interface": "implements: ML_BSSN_Test\n", - "params": "", + "param": "", "schedule": "", "src": { "make.code.defn": "" diff --git a/McLachlan_ML_CCZ4.json b/McLachlan_ML_CCZ4.json index 8a2ca57b90f0d06ea0cc528a709a0cb29b3faa89..2ff3cf5b318e48e8eb05c8367bd392b8f32bdb5e 100644 --- a/McLachlan_ML_CCZ4.json +++ b/McLachlan_ML_CCZ4.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/mclachlan.git", "configuration": "# File produced by Kranc\n\nREQUIRES GenericFD\nREQUIRES LoopControl\nREQUIRES Vectors\n", "interface": "# File produced by Kranc\n\nimplements: ML_CCZ4\n\ninherits: ADMBase Boundary GenericFD Grid TmunuBase\n\n\n\nUSES INCLUDE: loopcontrol.h\nUSES INCLUDE: Symmetry.h\nUSES INCLUDE: vectors.h\nUSES INCLUDE: Boundary.h\n\nCCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex)\nUSES FUNCTION MoLRegisterEvolved\n\nSUBROUTINE Diff_coeff(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN dir, CCTK_INT IN nsize, CCTK_INT OUT ARRAY imin, CCTK_INT OUT ARRAY imax, CCTK_REAL OUT ARRAY q, CCTK_INT IN table_handle)\nUSES FUNCTION Diff_coeff\n\nCCTK_INT FUNCTION MultiPatch_GetMap(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n\nCCTK_INT FUNCTION MultiPatch_GetBbox(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN size, CCTK_INT OUT ARRAY bbox)\nUSES FUNCTION MultiPatch_GetBbox\n\nCCTK_INT FUNCTION GetBoundarySpecification(CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\nCCTK_INT FUNCTION MultiPatch_GetBoundarySpecification(CCTK_INT IN map, CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION MultiPatch_GetBoundarySpecification\n\nCCTK_INT FUNCTION SymmetryTableHandleForGrid(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION SymmetryTableHandleForGrid\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT FUNCTION Driver_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectGroupForBC\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectVarForBC\n\nCCTK_INT FUNCTION Driver_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectVarForBC\n\npublic:\nCCTK_REAL ML_log_confac type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0.16666666666666666667'\n{\n phi\n} \"ML_log_confac\"\n\npublic:\nCCTK_REAL ML_metric type=GF timelevels=4 tags='tensortypealias=\"DD_sym\" tensorweight=-0.66666666666666666667'\n{\n gt11,\n gt12,\n gt13,\n gt22,\n gt23,\n gt33\n} \"ML_metric\"\n\npublic:\nCCTK_REAL ML_Gamma type=GF timelevels=4 tags='tensortypealias=\"U\" tensorweight=0.66666666666666666667'\n{\n Xt1,\n Xt2,\n Xt3\n} \"ML_Gamma\"\n\npublic:\nCCTK_REAL ML_trace_curv type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n trK\n} \"ML_trace_curv\"\n\npublic:\nCCTK_REAL ML_curv type=GF timelevels=4 tags='tensortypealias=\"DD_sym\" tensorweight=-0.66666666666666666667'\n{\n At11,\n At12,\n At13,\n At22,\n At23,\n At33\n} \"ML_curv\"\n\npublic:\nCCTK_REAL ML_Theta type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n Theta\n} \"ML_Theta\"\n\npublic:\nCCTK_REAL ML_lapse type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n alpha\n} \"ML_lapse\"\n\npublic:\nCCTK_REAL ML_dtlapse type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n A\n} \"ML_dtlapse\"\n\npublic:\nCCTK_REAL ML_shift type=GF timelevels=4 tags='tensortypealias=\"U\" tensorweight=0'\n{\n beta1,\n beta2,\n beta3\n} \"ML_shift\"\n\npublic:\nCCTK_REAL ML_dtshift type=GF timelevels=4 tags='tensortypealias=\"U\" tensorweight=0'\n{\n B1,\n B2,\n B3\n} \"ML_dtshift\"\n\npublic:\nCCTK_REAL ML_Ham type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n H\n} \"ML_Ham\"\n\npublic:\nCCTK_REAL ML_mom type=GF timelevels=4 tags='tensortypealias=\"D\" tensorweight=0'\n{\n M1,\n M2,\n M3\n} \"ML_mom\"\n\npublic:\nCCTK_REAL ML_cons_detg type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=2'\n{\n cS\n} \"ML_cons_detg\"\n\npublic:\nCCTK_REAL ML_cons_Gamma type=GF timelevels=4 tags='tensortypealias=\"U\" tensorweight=0.66666666666666666667'\n{\n cXt1,\n cXt2,\n cXt3\n} \"ML_cons_Gamma\"\n\npublic:\nCCTK_REAL ML_cons_traceA type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n cA\n} \"ML_cons_traceA\"\n\npublic:\nCCTK_REAL ML_curvrhs type=GF timelevels=4 tags='tensortypealias=\"DD_sym\" tensorweight=-0.66666666666666666667 Prolongation=\"None\"'\n{\n At11rhs,\n At12rhs,\n At13rhs,\n At22rhs,\n At23rhs,\n At33rhs\n} \"ML_curvrhs\"\n\npublic:\nCCTK_REAL ML_dtlapserhs type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0 Prolongation=\"None\"'\n{\n Arhs\n} \"ML_dtlapserhs\"\n\npublic:\nCCTK_REAL ML_dtshiftrhs type=GF timelevels=4 tags='tensortypealias=\"U\" tensorweight=0 Prolongation=\"None\"'\n{\n B1rhs,\n B2rhs,\n B3rhs\n} \"ML_dtshiftrhs\"\n\npublic:\nCCTK_REAL ML_Gammarhs type=GF timelevels=4 tags='tensortypealias=\"U\" tensorweight=0.66666666666666666667 Prolongation=\"None\"'\n{\n Xt1rhs,\n Xt2rhs,\n Xt3rhs\n} \"ML_Gammarhs\"\n\npublic:\nCCTK_REAL ML_lapserhs type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0 Prolongation=\"None\"'\n{\n alpharhs\n} \"ML_lapserhs\"\n\npublic:\nCCTK_REAL ML_log_confacrhs type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0.16666666666666666667 Prolongation=\"None\"'\n{\n phirhs\n} \"ML_log_confacrhs\"\n\npublic:\nCCTK_REAL ML_metricrhs type=GF timelevels=4 tags='tensortypealias=\"DD_sym\" tensorweight=-0.66666666666666666667 Prolongation=\"None\"'\n{\n gt11rhs,\n gt12rhs,\n gt13rhs,\n gt22rhs,\n gt23rhs,\n gt33rhs\n} \"ML_metricrhs\"\n\npublic:\nCCTK_REAL ML_shiftrhs type=GF timelevels=4 tags='tensortypealias=\"U\" tensorweight=0 Prolongation=\"None\"'\n{\n beta1rhs,\n beta2rhs,\n beta3rhs\n} \"ML_shiftrhs\"\n\npublic:\nCCTK_REAL ML_Thetarhs type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0 Prolongation=\"None\"'\n{\n Thetarhs\n} \"ML_Thetarhs\"\n\npublic:\nCCTK_REAL ML_trace_curvrhs type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0 Prolongation=\"None\"'\n{\n trKrhs\n} \"ML_trace_curvrhs\"\n", - "params": "", + "param": "# File produced by Kranc\n\n\nshares: ADMBase\n\n\nEXTENDS CCTK_KEYWORD evolution_method \"evolution_method\"\n{\n \"ML_CCZ4\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD lapse_evolution_method \"lapse_evolution_method\"\n{\n \"ML_CCZ4\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD shift_evolution_method \"shift_evolution_method\"\n{\n \"ML_CCZ4\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD dtlapse_evolution_method \"dtlapse_evolution_method\"\n{\n \"ML_CCZ4\" :: \"\"\n} \n\n\nEXTENDS CCTK_KEYWORD dtshift_evolution_method \"dtshift_evolution_method\"\n{\n \"ML_CCZ4\" :: \"\"\n} \n\n\n\nshares: GenericFD\n\nUSES CCTK_INT assume_stress_energy_state\nUSES CCTK_INT assume_use_jacobian\nUSES CCTK_STRING jacobian_group\nUSES CCTK_STRING jacobian_determinant_group\nUSES CCTK_STRING jacobian_inverse_group\nUSES CCTK_STRING jacobian_derivative_group\nUSES CCTK_INT jacobian_identity_map\n\n\nshares: MethodOfLines\n\nUSES CCTK_INT MoL_Num_Evolved_Vars\nUSES CCTK_INT MoL_Num_ArrayEvolved_Vars\n\nrestricted:\nCCTK_INT verbose \"verbose\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT other_timelevels \"Number of active timelevels for non-evolved grid functions\" STEERABLE=RECOVER\n{\n 0:4 :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL GammaShift \"CCZ4 dovariant shift term in Gamma\"\n{\n *:* :: \"\"\n} 0.5\n\nrestricted:\nCCTK_REAL dampk1 \"CCZ4 damping term 1 for Theta and Z\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL dampk2 \"CCZ4 damping term 2 for Theta and Z\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL harmonicF \"d/dt alpha = - f alpha^n K (harmonic: f=1, 1+log: f=2)\"\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL alphaDriver \"d/dt alpha = ... - alphaDriver (alpha - 1) (use 1/M (?))\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftGammaCoeff \"d/dt beta^i = C Xt^i (use C=0.75/M)\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL betaDriver \"d/dt beta^i = ... - betaDriver alpha^shiftAlphaPower beta^i (use 1/M (?))\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL shiftAlphaPower \"d/dt beta^i = ... - betaDriver alpha^shiftAlphaPower beta^i (use 0 (?))\"\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_REAL spatialBetaDriverRadius \"Radius at which the betaDriver starts to be reduced\"\n{\n (0:* :: \"positive\"\n} 1000000000000\n\nrestricted:\nCCTK_REAL spatialShiftGammaCoeffRadius \"Radius at which shiftGammaCoeff starts to be reduced\"\n{\n (0:* :: \"positive\"\n} 1000000000000\n\nrestricted:\nCCTK_REAL minimumLapse \"Enforced minimum of the lapse function\"\n{\n 0:* :: \"non-negative\"\n} 0\n\nrestricted:\nCCTK_REAL epsDiss \"Dissipation strength\" STEERABLE=ALWAYS\n{\n 0:* :: \"non-negative\"\n} 0\n\nrestricted:\nCCTK_REAL LapseACoeff \"(OUTDATED) Evolve time derivative of lapse A? (now evolveA)\" STEERABLE=ALWAYS\n{\n 0. :: \"off\"\n 1. :: \"on\"\n -1. :: \"default\"\n} -1.\n\nrestricted:\nCCTK_REAL ShiftBCoeff \"(OUTDATED) Evolve time derivative of shift B^i? (now evolveB)\" STEERABLE=ALWAYS\n{\n 0. :: \"off\"\n 1. :: \"on\"\n -1. :: \"default\"\n} -1.\n\nrestricted:\nCCTK_REAL LapseAdvectionCoeff \"(OUTDATED) Advect lapse? (now advectLapse)\"\n{\n 0. :: \"off\"\n 1. :: \"on\"\n -1. :: \"default\"\n} -1.\n\nrestricted:\nCCTK_REAL ShiftAdvectionCoeff \"(OUTDATED) Advect shift? (now advectShift)\"\n{\n 0. :: \"off\"\n 1. :: \"on\"\n -1. :: \"default\"\n} -1.\n\nrestricted:\nCCTK_INT fdOrder \"Finite differencing order\"\n{\n 2 :: \"\"\n 4 :: \"\"\n 6 :: \"\"\n 8 :: \"\"\n} 4\n\nrestricted:\nCCTK_INT conformalMethod \"Treatment of conformal factor\"\n{\n 1 :: \"W method\"\n} 1\n\nrestricted:\nCCTK_INT evolveA \"Evolve time derivative of lapse A? (former LapseACoeff)\" STEERABLE=ALWAYS\n{\n 0 :: \"off\"\n 1 :: \"on\"\n} 0\n\nrestricted:\nCCTK_INT evolveB \"Evolve time derivative of shift B^i? (former ShiftBCoeff)\" STEERABLE=ALWAYS\n{\n 0 :: \"off\"\n 1 :: \"on\"\n} 1\n\nrestricted:\nCCTK_INT harmonicN \"d/dt alpha = - f alpha^n K (harmonic: n=2, 1+log: n=1)\"\n{\n *:* :: \"\"\n} 2\n\nrestricted:\nCCTK_INT shiftFormulation \"shift formulation\"\n{\n 0 :: \"Gamma driver\"\n 1 :: \"harmonic\"\n} 0\n\nrestricted:\nCCTK_INT useSpatialBetaDriver \"Enable spatially varying betaDriver\"\n{\n 0 :: \"off\"\n 1 :: \"on\"\n} 0\n\nrestricted:\nCCTK_INT useSpatialShiftGammaCoeff \"Enable spatially varying shiftGammaCoeff\"\n{\n 0 :: \"off\"\n 1 :: \"on\"\n} 0\n\nrestricted:\nCCTK_INT advectLapse \"Advect lapse? (former LapseAdvectionCoeff)\" STEERABLE=ALWAYS\n{\n 0 :: \"off\"\n 1 :: \"on\"\n} 1\n\nrestricted:\nCCTK_INT advectShift \"Advect shift? (former ShiftAdvectionCoeff)\" STEERABLE=ALWAYS\n{\n 0 :: \"off\"\n 1 :: \"on\"\n} 1\n\nrestricted:\nCCTK_INT fixAdvectionTerms \"Modify driver and advection terms to work better?\"\n{\n 0 :: \"off\"\n 1 :: \"on\"\n} 0\n\nrestricted:\nCCTK_INT tile_size \"Loop tile size\"\n{\n *:* :: \"\"\n} -1\n\nrestricted:\nCCTK_KEYWORD initial_boundary_condition \"Boundary condition for initial condition for some of the BSSN variables\" STEERABLE=ALWAYS\n{\n \"scalar\" :: \"not recommended; use ML_BSSN_Helper's value 'extrapolate-gammas' instead\"\n} \"scalar\"\n\nrestricted:\nCCTK_KEYWORD rhs_boundary_condition \"Boundary condition for BSSN RHS and some of the ADMBase variables\" STEERABLE=ALWAYS\n{\n \"scalar\" :: \"not recommended; use ML_BSSN_Helper's option 'NewRad' instead\"\n} \"scalar\"\n\nrestricted:\nCCTK_KEYWORD rhs_evaluation \"Whether and how the RHS routine should be split to improve performance\" STEERABLE=ALWAYS\n{\n \"combined\" :: \"use a single routine (probably slow)\"\n \"splitBy\" :: \"split into 3 routines via Kranc\"\n} \"splitBy\"\n\nrestricted:\nCCTK_KEYWORD my_initial_data \"(OUTDATED)\"\n{\n \"ADMBase\" :: \"from ADMBase\"\n \"default\" :: \"do nothing\"\n} \"default\"\n\nrestricted:\nCCTK_KEYWORD my_initial_boundary_condition \"(OUTDATED)\"\n{\n \"none\" :: \"none\"\n \"default\" :: \"do nothing\"\n} \"default\"\n\nrestricted:\nCCTK_KEYWORD my_rhs_boundary_condition \"(OUTDATED)\"\n{\n \"none\" :: \"none\"\n \"static\" :: \"static\"\n \"default\" :: \"do nothing\"\n} \"default\"\n\nrestricted:\nCCTK_KEYWORD my_boundary_condition \"(OUTDATED)\"\n{\n \"none\" :: \"none\"\n \"Minkowski\" :: \"Minkowski\"\n \"default\" :: \"do nothing\"\n} \"default\"\n\nprivate:\nCCTK_KEYWORD dt_lapse_shift_method \"(OUTDATED) Treatment of ADMBase dtlapse and dtshift\"\n{\n \"correct\" :: \"(unused)\"\n \"noLapseShiftAdvection\" :: \"(unused)\"\n \"default\" :: \"do nothing\"\n} \"default\"\n\nrestricted:\nCCTK_KEYWORD apply_dissipation \"(OUTDATED) Whether to apply dissipation to the RHSs\"\n{\n \"always\" :: \"yes\"\n \"never\" :: \"no\"\n \"default\" :: \"do nothing\"\n} \"default\"\n\nrestricted:\nCCTK_INT ML_CCZ4_MaxNumEvolvedVars \"Number of evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Evolved_Vars STEERABLE=RECOVER\n{\n 26:26 :: \"Number of evolved variables used by this thorn\"\n} 26\n\nrestricted:\nCCTK_INT ML_CCZ4_MaxNumArrayEvolvedVars \"Number of Array evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_ArrayEvolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of Array evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT timelevels \"Number of active timelevels\" STEERABLE=RECOVER\n{\n 0:4 :: \"\"\n} 3\n\nrestricted:\nCCTK_INT rhs_timelevels \"Number of active RHS timelevels\" STEERABLE=RECOVER\n{\n 0:4 :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_CCZ4_InitialADMBase1Everywhere_calc_every \"ML_CCZ4_InitialADMBase1Everywhere_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_CCZ4_InitialADMBase2Interior_calc_every \"ML_CCZ4_InitialADMBase2Interior_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_CCZ4_InitialADMBase2BoundaryScalar_calc_every \"ML_CCZ4_InitialADMBase2BoundaryScalar_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_CCZ4_EnforceEverywhere_calc_every \"ML_CCZ4_EnforceEverywhere_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_CCZ4_ADMBaseEverywhere_calc_every \"ML_CCZ4_ADMBaseEverywhere_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_CCZ4_ADMBaseInterior_calc_every \"ML_CCZ4_ADMBaseInterior_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_CCZ4_ADMBaseBoundaryScalar_calc_every \"ML_CCZ4_ADMBaseBoundaryScalar_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_CCZ4_EvolutionInterior_calc_every \"ML_CCZ4_EvolutionInterior_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_CCZ4_EvolutionInteriorSplitBy1_calc_every \"ML_CCZ4_EvolutionInteriorSplitBy1_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_CCZ4_EvolutionInteriorSplitBy2_calc_every \"ML_CCZ4_EvolutionInteriorSplitBy2_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_CCZ4_EvolutionInteriorSplitBy3_calc_every \"ML_CCZ4_EvolutionInteriorSplitBy3_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_CCZ4_EvolutionBoundaryScalar_calc_every \"ML_CCZ4_EvolutionBoundaryScalar_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_CCZ4_EvolutionAnalysisInit_calc_every \"ML_CCZ4_EvolutionAnalysisInit_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_CCZ4_EvolutionAnalysisInterior_calc_every \"ML_CCZ4_EvolutionAnalysisInterior_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_CCZ4_ConstraintsEverywhere_calc_every \"ML_CCZ4_ConstraintsEverywhere_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_CCZ4_ConstraintsInterior_calc_every \"ML_CCZ4_ConstraintsInterior_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT ML_CCZ4_InitialADMBase1Everywhere_calc_offset \"ML_CCZ4_InitialADMBase1Everywhere_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_CCZ4_InitialADMBase2Interior_calc_offset \"ML_CCZ4_InitialADMBase2Interior_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_CCZ4_InitialADMBase2BoundaryScalar_calc_offset \"ML_CCZ4_InitialADMBase2BoundaryScalar_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_CCZ4_EnforceEverywhere_calc_offset \"ML_CCZ4_EnforceEverywhere_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_CCZ4_ADMBaseEverywhere_calc_offset \"ML_CCZ4_ADMBaseEverywhere_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_CCZ4_ADMBaseInterior_calc_offset \"ML_CCZ4_ADMBaseInterior_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_CCZ4_ADMBaseBoundaryScalar_calc_offset \"ML_CCZ4_ADMBaseBoundaryScalar_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_CCZ4_EvolutionInterior_calc_offset \"ML_CCZ4_EvolutionInterior_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_CCZ4_EvolutionInteriorSplitBy1_calc_offset \"ML_CCZ4_EvolutionInteriorSplitBy1_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_CCZ4_EvolutionInteriorSplitBy2_calc_offset \"ML_CCZ4_EvolutionInteriorSplitBy2_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_CCZ4_EvolutionInteriorSplitBy3_calc_offset \"ML_CCZ4_EvolutionInteriorSplitBy3_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_CCZ4_EvolutionBoundaryScalar_calc_offset \"ML_CCZ4_EvolutionBoundaryScalar_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_CCZ4_EvolutionAnalysisInit_calc_offset \"ML_CCZ4_EvolutionAnalysisInit_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_CCZ4_EvolutionAnalysisInterior_calc_offset \"ML_CCZ4_EvolutionAnalysisInterior_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_CCZ4_ConstraintsEverywhere_calc_offset \"ML_CCZ4_ConstraintsEverywhere_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT ML_CCZ4_ConstraintsInterior_calc_offset \"ML_CCZ4_ConstraintsInterior_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nprivate:\nCCTK_KEYWORD phi_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD gt11_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD gt12_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD gt13_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD gt22_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD gt23_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD gt33_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD Xt1_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD Xt2_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD Xt3_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD trK_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD At11_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD At12_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD At13_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD At22_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD At23_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD At33_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD Theta_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD alpha_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD A_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD beta1_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD beta2_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD beta3_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD B1_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD B2_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD B3_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD ML_log_confac_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_KEYWORD ML_metric_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_KEYWORD ML_Gamma_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_KEYWORD ML_trace_curv_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_KEYWORD ML_curv_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_KEYWORD ML_Theta_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_KEYWORD ML_lapse_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_KEYWORD ML_dtlapse_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_KEYWORD ML_shift_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_KEYWORD ML_dtshift_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_REAL phi_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL gt11_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL gt12_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL gt13_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL gt22_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL gt23_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL gt33_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL Xt1_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL Xt2_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL Xt3_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL trK_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL At11_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL At12_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL At13_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL At22_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL At23_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL At33_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL Theta_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL alpha_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL A_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL beta1_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL beta2_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL beta3_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL B1_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL B2_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL B3_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL ML_log_confac_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL ML_metric_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL ML_Gamma_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL ML_trace_curv_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL ML_curv_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL ML_Theta_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL ML_lapse_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL ML_dtlapse_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL ML_shift_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL ML_dtshift_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL phi_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt11_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt12_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt13_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt22_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt23_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt33_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL Xt1_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL Xt2_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL Xt3_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL trK_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At11_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At12_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At13_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At22_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At23_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At33_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL Theta_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL alpha_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL A_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL beta1_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL beta2_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL beta3_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL B1_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL B2_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL B3_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_log_confac_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_metric_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_Gamma_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_trace_curv_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_curv_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_Theta_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_lapse_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_dtlapse_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_shift_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_dtshift_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL phi_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt11_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt12_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt13_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt22_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt23_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL gt33_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL Xt1_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL Xt2_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL Xt3_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL trK_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At11_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At12_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At13_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At22_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At23_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL At33_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL Theta_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL alpha_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL A_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL beta1_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL beta2_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL beta3_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL B1_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL B2_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL B3_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_log_confac_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_metric_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_Gamma_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_trace_curv_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_curv_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_Theta_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_lapse_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_dtlapse_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_shift_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL ML_dtshift_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\n", "schedule": "# File produced by Kranc\n\nSTORAGE: ML_log_confac[timelevels]\n\nSTORAGE: ML_metric[timelevels]\n\nSTORAGE: ML_Gamma[timelevels]\n\nSTORAGE: ML_trace_curv[timelevels]\n\nSTORAGE: ML_curv[timelevels]\n\nSTORAGE: ML_Theta[timelevels]\n\nSTORAGE: ML_lapse[timelevels]\n\nSTORAGE: ML_dtlapse[timelevels]\n\nSTORAGE: ML_shift[timelevels]\n\nSTORAGE: ML_dtshift[timelevels]\n\nSTORAGE: ML_Ham[timelevels]\n\nSTORAGE: ML_mom[timelevels]\n\nSTORAGE: ML_cons_detg[timelevels]\n\nSTORAGE: ML_cons_Gamma[timelevels]\n\nSTORAGE: ML_cons_traceA[timelevels]\n\nSTORAGE: ML_curvrhs[rhs_timelevels]\n\nSTORAGE: ML_dtlapserhs[rhs_timelevels]\n\nSTORAGE: ML_dtshiftrhs[rhs_timelevels]\n\nSTORAGE: ML_Gammarhs[rhs_timelevels]\n\nSTORAGE: ML_lapserhs[rhs_timelevels]\n\nSTORAGE: ML_log_confacrhs[rhs_timelevels]\n\nSTORAGE: ML_metricrhs[rhs_timelevels]\n\nSTORAGE: ML_shiftrhs[rhs_timelevels]\n\nSTORAGE: ML_Thetarhs[rhs_timelevels]\n\nSTORAGE: ML_trace_curvrhs[rhs_timelevels]\nschedule ML_CCZ4_Startup at STARTUP\n{\n LANG: C\n OPTIONS: meta\n} \"create banner\"\n\nschedule ML_CCZ4_RegisterSymmetries in SymmetryRegister\n{\n LANG: C\n OPTIONS: meta\n} \"register symmetries\"\n\nif (CCTK_EQUALS(evolution_method, \"ML_CCZ4\"))\n{\n schedule ML_CCZ4_InitialADMBase1Everywhere AT initial AFTER ADMBase_PostInitial\n {\n LANG: C\n READS: ADMBase::kxx(Everywhere)\n READS: ADMBase::kxy(Everywhere)\n READS: ADMBase::kxz(Everywhere)\n READS: ADMBase::kyy(Everywhere)\n READS: ADMBase::kyz(Everywhere)\n READS: ADMBase::kzz(Everywhere)\n READS: ADMBase::alp(Everywhere)\n READS: ADMBase::gxx(Everywhere)\n READS: ADMBase::gxy(Everywhere)\n READS: ADMBase::gxz(Everywhere)\n READS: ADMBase::gyy(Everywhere)\n READS: ADMBase::gyz(Everywhere)\n READS: ADMBase::gzz(Everywhere)\n READS: ADMBase::betax(Everywhere)\n READS: ADMBase::betay(Everywhere)\n READS: ADMBase::betaz(Everywhere)\n READS: grid::r(Everywhere)\n WRITES: ML_CCZ4::alpha(Everywhere)\n WRITES: ML_CCZ4::At11(Everywhere)\n WRITES: ML_CCZ4::At12(Everywhere)\n WRITES: ML_CCZ4::At13(Everywhere)\n WRITES: ML_CCZ4::At22(Everywhere)\n WRITES: ML_CCZ4::At23(Everywhere)\n WRITES: ML_CCZ4::At33(Everywhere)\n WRITES: ML_CCZ4::beta1(Everywhere)\n WRITES: ML_CCZ4::beta2(Everywhere)\n WRITES: ML_CCZ4::beta3(Everywhere)\n WRITES: ML_CCZ4::gt11(Everywhere)\n WRITES: ML_CCZ4::gt12(Everywhere)\n WRITES: ML_CCZ4::gt13(Everywhere)\n WRITES: ML_CCZ4::gt22(Everywhere)\n WRITES: ML_CCZ4::gt23(Everywhere)\n WRITES: ML_CCZ4::gt33(Everywhere)\n WRITES: ML_CCZ4::phi(Everywhere)\n WRITES: ML_CCZ4::Theta(Everywhere)\n WRITES: ML_CCZ4::trK(Everywhere)\n } \"ML_CCZ4_InitialADMBase1Everywhere\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_CCZ4\"))\n{\n schedule ML_CCZ4_InitialADMBase2Interior AT initial AFTER ADMBase_PostInitial AFTER ML_CCZ4_InitialADMBase1Everywhere\n {\n LANG: C\n SYNC: ML_dtlapse\n SYNC: ML_dtshift\n SYNC: ML_Gamma\n READS: ADMBase::dtalp(Everywhere)\n READS: ADMBase::dtbetax(Everywhere)\n READS: ADMBase::dtbetay(Everywhere)\n READS: ADMBase::dtbetaz(Everywhere)\n READS: ADMBase::alp(Everywhere)\n READS: ADMBase::gxx(Everywhere)\n READS: ADMBase::gxy(Everywhere)\n READS: ADMBase::gxz(Everywhere)\n READS: ADMBase::gyy(Everywhere)\n READS: ADMBase::gyz(Everywhere)\n READS: ADMBase::gzz(Everywhere)\n READS: ADMBase::betax(Everywhere)\n READS: ADMBase::betay(Everywhere)\n READS: ADMBase::betaz(Everywhere)\n READS: grid::r(Everywhere)\n READS: ML_CCZ4::phi(Everywhere)\n READS: ML_CCZ4::gt11(Everywhere)\n READS: ML_CCZ4::gt12(Everywhere)\n READS: ML_CCZ4::gt13(Everywhere)\n READS: ML_CCZ4::gt22(Everywhere)\n READS: ML_CCZ4::gt23(Everywhere)\n READS: ML_CCZ4::gt33(Everywhere)\n WRITES: ML_CCZ4::A(Interior)\n WRITES: ML_CCZ4::B1(Interior)\n WRITES: ML_CCZ4::B2(Interior)\n WRITES: ML_CCZ4::B3(Interior)\n WRITES: ML_CCZ4::Xt1(Interior)\n WRITES: ML_CCZ4::Xt2(Interior)\n WRITES: ML_CCZ4::Xt3(Interior)\n } \"ML_CCZ4_InitialADMBase2Interior\"\n}\n\nif (CCTK_EQUALS(initial_boundary_condition, \"scalar\"))\n{\n if (CCTK_EQUALS(evolution_method, \"ML_CCZ4\"))\n {\n schedule ML_CCZ4_InitialADMBase2BoundaryScalar AT initial AFTER ADMBase_PostInitial\n {\n LANG: C\n WRITES: ML_CCZ4::A(Boundary)\n WRITES: ML_CCZ4::B1(Boundary)\n WRITES: ML_CCZ4::B2(Boundary)\n WRITES: ML_CCZ4::B3(Boundary)\n WRITES: ML_CCZ4::Xt1(Boundary)\n WRITES: ML_CCZ4::Xt2(Boundary)\n WRITES: ML_CCZ4::Xt3(Boundary)\n } \"ML_CCZ4_InitialADMBase2BoundaryScalar\"\n }\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_CCZ4\"))\n{\n schedule ML_CCZ4_EnforceEverywhere IN MoL_PostStepModify\n {\n LANG: C\n READS: ML_CCZ4::At11(Everywhere)\n READS: ML_CCZ4::At12(Everywhere)\n READS: ML_CCZ4::At13(Everywhere)\n READS: ML_CCZ4::At22(Everywhere)\n READS: ML_CCZ4::At23(Everywhere)\n READS: ML_CCZ4::At33(Everywhere)\n READS: ML_CCZ4::alpha(Everywhere)\n READS: ML_CCZ4::gt11(Everywhere)\n READS: ML_CCZ4::gt12(Everywhere)\n READS: ML_CCZ4::gt13(Everywhere)\n READS: ML_CCZ4::gt22(Everywhere)\n READS: ML_CCZ4::gt23(Everywhere)\n READS: ML_CCZ4::gt33(Everywhere)\n WRITES: ML_CCZ4::alpha(Everywhere)\n WRITES: ML_CCZ4::At11(Everywhere)\n WRITES: ML_CCZ4::At12(Everywhere)\n WRITES: ML_CCZ4::At13(Everywhere)\n WRITES: ML_CCZ4::At22(Everywhere)\n WRITES: ML_CCZ4::At23(Everywhere)\n WRITES: ML_CCZ4::At33(Everywhere)\n WRITES: ML_CCZ4::gt11(Everywhere)\n WRITES: ML_CCZ4::gt12(Everywhere)\n WRITES: ML_CCZ4::gt13(Everywhere)\n WRITES: ML_CCZ4::gt22(Everywhere)\n WRITES: ML_CCZ4::gt23(Everywhere)\n WRITES: ML_CCZ4::gt33(Everywhere)\n } \"ML_CCZ4_EnforceEverywhere\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_CCZ4\"))\n{\n schedule ML_CCZ4_ADMBaseEverywhere IN MoL_PostStep AFTER ML_CCZ4_ApplyBCs BEFORE ADMBase_SetADMVars\n {\n LANG: C\n READS: TmunuBase::stress_energy_state\n READS: grid::r(Everywhere)\n READS: TmunuBase::eTtt(Everywhere)\n READS: TmunuBase::eTxx(Everywhere)\n READS: TmunuBase::eTxy(Everywhere)\n READS: TmunuBase::eTxz(Everywhere)\n READS: TmunuBase::eTyy(Everywhere)\n READS: TmunuBase::eTyz(Everywhere)\n READS: TmunuBase::eTzz(Everywhere)\n READS: TmunuBase::eTtx(Everywhere)\n READS: TmunuBase::eTty(Everywhere)\n READS: TmunuBase::eTtz(Everywhere)\n READS: ML_CCZ4::At11(Everywhere)\n READS: ML_CCZ4::At12(Everywhere)\n READS: ML_CCZ4::At13(Everywhere)\n READS: ML_CCZ4::At22(Everywhere)\n READS: ML_CCZ4::At23(Everywhere)\n READS: ML_CCZ4::At33(Everywhere)\n READS: ML_CCZ4::A(Everywhere)\n READS: ML_CCZ4::B1(Everywhere)\n READS: ML_CCZ4::B2(Everywhere)\n READS: ML_CCZ4::B3(Everywhere)\n READS: ML_CCZ4::Xt1(Everywhere)\n READS: ML_CCZ4::Xt2(Everywhere)\n READS: ML_CCZ4::Xt3(Everywhere)\n READS: ML_CCZ4::alpha(Everywhere)\n READS: ML_CCZ4::phi(Everywhere)\n READS: ML_CCZ4::gt11(Everywhere)\n READS: ML_CCZ4::gt12(Everywhere)\n READS: ML_CCZ4::gt13(Everywhere)\n READS: ML_CCZ4::gt22(Everywhere)\n READS: ML_CCZ4::gt23(Everywhere)\n READS: ML_CCZ4::gt33(Everywhere)\n READS: ML_CCZ4::beta1(Everywhere)\n READS: ML_CCZ4::beta2(Everywhere)\n READS: ML_CCZ4::beta3(Everywhere)\n READS: ML_CCZ4::Theta(Everywhere)\n READS: ML_CCZ4::trK(Everywhere)\n WRITES: ADMBase::alp(Everywhere)\n WRITES: ADMBase::betax(Everywhere)\n WRITES: ADMBase::betay(Everywhere)\n WRITES: ADMBase::betaz(Everywhere)\n WRITES: ADMBase::gxx(Everywhere)\n WRITES: ADMBase::gxy(Everywhere)\n WRITES: ADMBase::gxz(Everywhere)\n WRITES: ADMBase::gyy(Everywhere)\n WRITES: ADMBase::gyz(Everywhere)\n WRITES: ADMBase::gzz(Everywhere)\n WRITES: ADMBase::kxx(Everywhere)\n WRITES: ADMBase::kxy(Everywhere)\n WRITES: ADMBase::kxz(Everywhere)\n WRITES: ADMBase::kyy(Everywhere)\n WRITES: ADMBase::kyz(Everywhere)\n WRITES: ADMBase::kzz(Everywhere)\n } \"ML_CCZ4_ADMBaseEverywhere\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_CCZ4\"))\n{\n schedule ML_CCZ4_ADMBaseInterior IN MoL_PostStep AFTER ML_CCZ4_ApplyBCs BEFORE ADMBase_SetADMVars\n {\n LANG: C\n READS: TmunuBase::stress_energy_state\n READS: grid::r(Everywhere)\n READS: TmunuBase::eTtt(Everywhere)\n READS: TmunuBase::eTxx(Everywhere)\n READS: TmunuBase::eTxy(Everywhere)\n READS: TmunuBase::eTxz(Everywhere)\n READS: TmunuBase::eTyy(Everywhere)\n READS: TmunuBase::eTyz(Everywhere)\n READS: TmunuBase::eTzz(Everywhere)\n READS: TmunuBase::eTtx(Everywhere)\n READS: TmunuBase::eTty(Everywhere)\n READS: TmunuBase::eTtz(Everywhere)\n READS: ML_CCZ4::At11(Everywhere)\n READS: ML_CCZ4::At12(Everywhere)\n READS: ML_CCZ4::At13(Everywhere)\n READS: ML_CCZ4::At22(Everywhere)\n READS: ML_CCZ4::At23(Everywhere)\n READS: ML_CCZ4::At33(Everywhere)\n READS: ML_CCZ4::A(Everywhere)\n READS: ML_CCZ4::B1(Everywhere)\n READS: ML_CCZ4::B2(Everywhere)\n READS: ML_CCZ4::B3(Everywhere)\n READS: ML_CCZ4::Xt1(Everywhere)\n READS: ML_CCZ4::Xt2(Everywhere)\n READS: ML_CCZ4::Xt3(Everywhere)\n READS: ML_CCZ4::alpha(Everywhere)\n READS: ML_CCZ4::phi(Everywhere)\n READS: ML_CCZ4::gt11(Everywhere)\n READS: ML_CCZ4::gt12(Everywhere)\n READS: ML_CCZ4::gt13(Everywhere)\n READS: ML_CCZ4::gt22(Everywhere)\n READS: ML_CCZ4::gt23(Everywhere)\n READS: ML_CCZ4::gt33(Everywhere)\n READS: ML_CCZ4::beta1(Everywhere)\n READS: ML_CCZ4::beta2(Everywhere)\n READS: ML_CCZ4::beta3(Everywhere)\n READS: ML_CCZ4::Theta(Everywhere)\n READS: ML_CCZ4::trK(Everywhere)\n WRITES: ADMBase::dtalp(Interior)\n WRITES: ADMBase::dtbetax(Interior)\n WRITES: ADMBase::dtbetay(Interior)\n WRITES: ADMBase::dtbetaz(Interior)\n } \"ML_CCZ4_ADMBaseInterior\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_CCZ4\"))\n{\n schedule ML_CCZ4_ADMBaseBoundaryScalar IN MoL_PostStep AFTER ML_CCZ4_ApplyBCs AFTER ML_CCZ4_ADMBaseInterior BEFORE ADMBase_SetADMVars\n {\n LANG: C\n SYNC: ADMBase::dtlapse\n SYNC: ADMBase::dtshift\n WRITES: ADMBase::dtalp(Boundary)\n WRITES: ADMBase::dtbetax(Boundary)\n WRITES: ADMBase::dtbetay(Boundary)\n WRITES: ADMBase::dtbetaz(Boundary)\n } \"ML_CCZ4_ADMBaseBoundaryScalar\"\n}\n\nif (CCTK_EQUALS(rhs_evaluation, \"combined\"))\n{\n if (CCTK_EQUALS(evolution_method, \"ML_CCZ4\"))\n {\n schedule ML_CCZ4_EvolutionInterior IN MoL_CalcRHS\n {\n LANG: C\n READS: TmunuBase::stress_energy_state\n READS: grid::r(Everywhere)\n READS: TmunuBase::eTtt(Everywhere)\n READS: TmunuBase::eTxx(Everywhere)\n READS: TmunuBase::eTxy(Everywhere)\n READS: TmunuBase::eTxz(Everywhere)\n READS: TmunuBase::eTyy(Everywhere)\n READS: TmunuBase::eTyz(Everywhere)\n READS: TmunuBase::eTzz(Everywhere)\n READS: TmunuBase::eTtx(Everywhere)\n READS: TmunuBase::eTty(Everywhere)\n READS: TmunuBase::eTtz(Everywhere)\n READS: ML_CCZ4::At11(Everywhere)\n READS: ML_CCZ4::At12(Everywhere)\n READS: ML_CCZ4::At13(Everywhere)\n READS: ML_CCZ4::At22(Everywhere)\n READS: ML_CCZ4::At23(Everywhere)\n READS: ML_CCZ4::At33(Everywhere)\n READS: ML_CCZ4::A(Everywhere)\n READS: ML_CCZ4::B1(Everywhere)\n READS: ML_CCZ4::B2(Everywhere)\n READS: ML_CCZ4::B3(Everywhere)\n READS: ML_CCZ4::Xt1(Everywhere)\n READS: ML_CCZ4::Xt2(Everywhere)\n READS: ML_CCZ4::Xt3(Everywhere)\n READS: ML_CCZ4::alpha(Everywhere)\n READS: ML_CCZ4::phi(Everywhere)\n READS: ML_CCZ4::gt11(Everywhere)\n READS: ML_CCZ4::gt12(Everywhere)\n READS: ML_CCZ4::gt13(Everywhere)\n READS: ML_CCZ4::gt22(Everywhere)\n READS: ML_CCZ4::gt23(Everywhere)\n READS: ML_CCZ4::gt33(Everywhere)\n READS: ML_CCZ4::beta1(Everywhere)\n READS: ML_CCZ4::beta2(Everywhere)\n READS: ML_CCZ4::beta3(Everywhere)\n READS: ML_CCZ4::Theta(Everywhere)\n READS: ML_CCZ4::trK(Everywhere)\n WRITES: ML_CCZ4::alpharhs(Interior)\n WRITES: ML_CCZ4::Arhs(Interior)\n WRITES: ML_CCZ4::At11rhs(Interior)\n WRITES: ML_CCZ4::At12rhs(Interior)\n WRITES: ML_CCZ4::At13rhs(Interior)\n WRITES: ML_CCZ4::At22rhs(Interior)\n WRITES: ML_CCZ4::At23rhs(Interior)\n WRITES: ML_CCZ4::At33rhs(Interior)\n WRITES: ML_CCZ4::B1rhs(Interior)\n WRITES: ML_CCZ4::B2rhs(Interior)\n WRITES: ML_CCZ4::B3rhs(Interior)\n WRITES: ML_CCZ4::beta1rhs(Interior)\n WRITES: ML_CCZ4::beta2rhs(Interior)\n WRITES: ML_CCZ4::beta3rhs(Interior)\n WRITES: ML_CCZ4::gt11rhs(Interior)\n WRITES: ML_CCZ4::gt12rhs(Interior)\n WRITES: ML_CCZ4::gt13rhs(Interior)\n WRITES: ML_CCZ4::gt22rhs(Interior)\n WRITES: ML_CCZ4::gt23rhs(Interior)\n WRITES: ML_CCZ4::gt33rhs(Interior)\n WRITES: ML_CCZ4::phirhs(Interior)\n WRITES: ML_CCZ4::Thetarhs(Interior)\n WRITES: ML_CCZ4::trKrhs(Interior)\n WRITES: ML_CCZ4::Xt1rhs(Interior)\n WRITES: ML_CCZ4::Xt2rhs(Interior)\n WRITES: ML_CCZ4::Xt3rhs(Interior)\n } \"ML_CCZ4_EvolutionInterior\"\n }\n}\n\nif (CCTK_EQUALS(rhs_evaluation, \"splitBy\"))\n{\n if (CCTK_EQUALS(evolution_method, \"ML_CCZ4\"))\n {\n schedule ML_CCZ4_EvolutionInteriorSplitBy1 in ML_CCZ4_EvolutionInteriorSplitBy\n {\n LANG: C\n READS: TmunuBase::stress_energy_state\n READS: grid::r(Everywhere)\n READS: TmunuBase::eTtt(Everywhere)\n READS: TmunuBase::eTxx(Everywhere)\n READS: TmunuBase::eTxy(Everywhere)\n READS: TmunuBase::eTxz(Everywhere)\n READS: TmunuBase::eTyy(Everywhere)\n READS: TmunuBase::eTyz(Everywhere)\n READS: TmunuBase::eTzz(Everywhere)\n READS: TmunuBase::eTtx(Everywhere)\n READS: TmunuBase::eTty(Everywhere)\n READS: TmunuBase::eTtz(Everywhere)\n READS: ML_CCZ4::At11(Everywhere)\n READS: ML_CCZ4::At12(Everywhere)\n READS: ML_CCZ4::At13(Everywhere)\n READS: ML_CCZ4::At22(Everywhere)\n READS: ML_CCZ4::At23(Everywhere)\n READS: ML_CCZ4::At33(Everywhere)\n READS: ML_CCZ4::A(Everywhere)\n READS: ML_CCZ4::B1(Everywhere)\n READS: ML_CCZ4::B2(Everywhere)\n READS: ML_CCZ4::B3(Everywhere)\n READS: ML_CCZ4::Xt1(Everywhere)\n READS: ML_CCZ4::Xt2(Everywhere)\n READS: ML_CCZ4::Xt3(Everywhere)\n READS: ML_CCZ4::alpha(Everywhere)\n READS: ML_CCZ4::phi(Everywhere)\n READS: ML_CCZ4::gt11(Everywhere)\n READS: ML_CCZ4::gt12(Everywhere)\n READS: ML_CCZ4::gt13(Everywhere)\n READS: ML_CCZ4::gt22(Everywhere)\n READS: ML_CCZ4::gt23(Everywhere)\n READS: ML_CCZ4::gt33(Everywhere)\n READS: ML_CCZ4::beta1(Everywhere)\n READS: ML_CCZ4::beta2(Everywhere)\n READS: ML_CCZ4::beta3(Everywhere)\n READS: ML_CCZ4::Theta(Everywhere)\n READS: ML_CCZ4::trK(Everywhere)\n READS: ML_CCZ4::Thetarhs(Everywhere)\n WRITES: ML_CCZ4::alpharhs(Interior)\n WRITES: ML_CCZ4::Arhs(Interior)\n WRITES: ML_CCZ4::gt11rhs(Interior)\n WRITES: ML_CCZ4::gt12rhs(Interior)\n WRITES: ML_CCZ4::gt13rhs(Interior)\n WRITES: ML_CCZ4::gt22rhs(Interior)\n WRITES: ML_CCZ4::gt23rhs(Interior)\n WRITES: ML_CCZ4::gt33rhs(Interior)\n WRITES: ML_CCZ4::phirhs(Interior)\n } \"ML_CCZ4_EvolutionInteriorSplitBy1\"\n }\n}\n\nif (CCTK_EQUALS(rhs_evaluation, \"splitBy\"))\n{\n if (CCTK_EQUALS(evolution_method, \"ML_CCZ4\"))\n {\n schedule ML_CCZ4_EvolutionInteriorSplitBy2 in ML_CCZ4_EvolutionInteriorSplitBy\n {\n LANG: C\n READS: TmunuBase::stress_energy_state\n READS: grid::r(Everywhere)\n READS: TmunuBase::eTtt(Everywhere)\n READS: TmunuBase::eTxx(Everywhere)\n READS: TmunuBase::eTxy(Everywhere)\n READS: TmunuBase::eTxz(Everywhere)\n READS: TmunuBase::eTyy(Everywhere)\n READS: TmunuBase::eTyz(Everywhere)\n READS: TmunuBase::eTzz(Everywhere)\n READS: TmunuBase::eTtx(Everywhere)\n READS: TmunuBase::eTty(Everywhere)\n READS: TmunuBase::eTtz(Everywhere)\n READS: ML_CCZ4::At11(Everywhere)\n READS: ML_CCZ4::At12(Everywhere)\n READS: ML_CCZ4::At13(Everywhere)\n READS: ML_CCZ4::At22(Everywhere)\n READS: ML_CCZ4::At23(Everywhere)\n READS: ML_CCZ4::At33(Everywhere)\n READS: ML_CCZ4::A(Everywhere)\n READS: ML_CCZ4::B1(Everywhere)\n READS: ML_CCZ4::B2(Everywhere)\n READS: ML_CCZ4::B3(Everywhere)\n READS: ML_CCZ4::Xt1(Everywhere)\n READS: ML_CCZ4::Xt2(Everywhere)\n READS: ML_CCZ4::Xt3(Everywhere)\n READS: ML_CCZ4::alpha(Everywhere)\n READS: ML_CCZ4::phi(Everywhere)\n READS: ML_CCZ4::gt11(Everywhere)\n READS: ML_CCZ4::gt12(Everywhere)\n READS: ML_CCZ4::gt13(Everywhere)\n READS: ML_CCZ4::gt22(Everywhere)\n READS: ML_CCZ4::gt23(Everywhere)\n READS: ML_CCZ4::gt33(Everywhere)\n READS: ML_CCZ4::beta1(Everywhere)\n READS: ML_CCZ4::beta2(Everywhere)\n READS: ML_CCZ4::beta3(Everywhere)\n READS: ML_CCZ4::Theta(Everywhere)\n READS: ML_CCZ4::trK(Everywhere)\n WRITES: ML_CCZ4::B1rhs(Interior)\n WRITES: ML_CCZ4::B2rhs(Interior)\n WRITES: ML_CCZ4::B3rhs(Interior)\n WRITES: ML_CCZ4::beta1rhs(Interior)\n WRITES: ML_CCZ4::beta2rhs(Interior)\n WRITES: ML_CCZ4::beta3rhs(Interior)\n WRITES: ML_CCZ4::Thetarhs(Interior)\n WRITES: ML_CCZ4::trKrhs(Interior)\n WRITES: ML_CCZ4::Xt1rhs(Interior)\n WRITES: ML_CCZ4::Xt2rhs(Interior)\n WRITES: ML_CCZ4::Xt3rhs(Interior)\n } \"ML_CCZ4_EvolutionInteriorSplitBy2\"\n }\n}\n\nif (CCTK_EQUALS(rhs_evaluation, \"splitBy\"))\n{\n if (CCTK_EQUALS(evolution_method, \"ML_CCZ4\"))\n {\n schedule ML_CCZ4_EvolutionInteriorSplitBy3 in ML_CCZ4_EvolutionInteriorSplitBy\n {\n LANG: C\n READS: TmunuBase::stress_energy_state\n READS: grid::r(Everywhere)\n READS: TmunuBase::eTtt(Everywhere)\n READS: TmunuBase::eTxx(Everywhere)\n READS: TmunuBase::eTxy(Everywhere)\n READS: TmunuBase::eTxz(Everywhere)\n READS: TmunuBase::eTyy(Everywhere)\n READS: TmunuBase::eTyz(Everywhere)\n READS: TmunuBase::eTzz(Everywhere)\n READS: TmunuBase::eTtx(Everywhere)\n READS: TmunuBase::eTty(Everywhere)\n READS: TmunuBase::eTtz(Everywhere)\n READS: ML_CCZ4::At11(Everywhere)\n READS: ML_CCZ4::At12(Everywhere)\n READS: ML_CCZ4::At13(Everywhere)\n READS: ML_CCZ4::At22(Everywhere)\n READS: ML_CCZ4::At23(Everywhere)\n READS: ML_CCZ4::At33(Everywhere)\n READS: ML_CCZ4::A(Everywhere)\n READS: ML_CCZ4::B1(Everywhere)\n READS: ML_CCZ4::B2(Everywhere)\n READS: ML_CCZ4::B3(Everywhere)\n READS: ML_CCZ4::Xt1(Everywhere)\n READS: ML_CCZ4::Xt2(Everywhere)\n READS: ML_CCZ4::Xt3(Everywhere)\n READS: ML_CCZ4::alpha(Everywhere)\n READS: ML_CCZ4::phi(Everywhere)\n READS: ML_CCZ4::gt11(Everywhere)\n READS: ML_CCZ4::gt12(Everywhere)\n READS: ML_CCZ4::gt13(Everywhere)\n READS: ML_CCZ4::gt22(Everywhere)\n READS: ML_CCZ4::gt23(Everywhere)\n READS: ML_CCZ4::gt33(Everywhere)\n READS: ML_CCZ4::beta1(Everywhere)\n READS: ML_CCZ4::beta2(Everywhere)\n READS: ML_CCZ4::beta3(Everywhere)\n READS: ML_CCZ4::Theta(Everywhere)\n READS: ML_CCZ4::trK(Everywhere)\n WRITES: ML_CCZ4::At11rhs(Interior)\n WRITES: ML_CCZ4::At12rhs(Interior)\n WRITES: ML_CCZ4::At13rhs(Interior)\n WRITES: ML_CCZ4::At22rhs(Interior)\n WRITES: ML_CCZ4::At23rhs(Interior)\n WRITES: ML_CCZ4::At33rhs(Interior)\n } \"ML_CCZ4_EvolutionInteriorSplitBy3\"\n }\n}\n\nif (CCTK_EQUALS(rhs_boundary_condition, \"scalar\"))\n{\n if (CCTK_EQUALS(evolution_method, \"ML_CCZ4\"))\n {\n schedule ML_CCZ4_EvolutionBoundaryScalar IN MoL_CalcRHS\n {\n LANG: C\n WRITES: ML_CCZ4::alpharhs(Boundary)\n WRITES: ML_CCZ4::Arhs(Boundary)\n WRITES: ML_CCZ4::At11rhs(Boundary)\n WRITES: ML_CCZ4::At12rhs(Boundary)\n WRITES: ML_CCZ4::At13rhs(Boundary)\n WRITES: ML_CCZ4::At22rhs(Boundary)\n WRITES: ML_CCZ4::At23rhs(Boundary)\n WRITES: ML_CCZ4::At33rhs(Boundary)\n WRITES: ML_CCZ4::B1rhs(Boundary)\n WRITES: ML_CCZ4::B2rhs(Boundary)\n WRITES: ML_CCZ4::B3rhs(Boundary)\n WRITES: ML_CCZ4::beta1rhs(Boundary)\n WRITES: ML_CCZ4::beta2rhs(Boundary)\n WRITES: ML_CCZ4::beta3rhs(Boundary)\n WRITES: ML_CCZ4::gt11rhs(Boundary)\n WRITES: ML_CCZ4::gt12rhs(Boundary)\n WRITES: ML_CCZ4::gt13rhs(Boundary)\n WRITES: ML_CCZ4::gt22rhs(Boundary)\n WRITES: ML_CCZ4::gt23rhs(Boundary)\n WRITES: ML_CCZ4::gt33rhs(Boundary)\n WRITES: ML_CCZ4::phirhs(Boundary)\n WRITES: ML_CCZ4::Thetarhs(Boundary)\n WRITES: ML_CCZ4::trKrhs(Boundary)\n WRITES: ML_CCZ4::Xt1rhs(Boundary)\n WRITES: ML_CCZ4::Xt2rhs(Boundary)\n WRITES: ML_CCZ4::Xt3rhs(Boundary)\n } \"ML_CCZ4_EvolutionBoundaryScalar\"\n }\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_CCZ4\"))\n{\n schedule ML_CCZ4_EvolutionAnalysisInit IN ML_CCZ4_EvolutionAnalysis before ML_CCZ4_EvolutionAnalysisInterior\n {\n LANG: C\n WRITES: ML_CCZ4::alpharhs(Everywhere)\n WRITES: ML_CCZ4::Arhs(Everywhere)\n WRITES: ML_CCZ4::At11rhs(Everywhere)\n WRITES: ML_CCZ4::At12rhs(Everywhere)\n WRITES: ML_CCZ4::At13rhs(Everywhere)\n WRITES: ML_CCZ4::At22rhs(Everywhere)\n WRITES: ML_CCZ4::At23rhs(Everywhere)\n WRITES: ML_CCZ4::At33rhs(Everywhere)\n WRITES: ML_CCZ4::B1rhs(Everywhere)\n WRITES: ML_CCZ4::B2rhs(Everywhere)\n WRITES: ML_CCZ4::B3rhs(Everywhere)\n WRITES: ML_CCZ4::beta1rhs(Everywhere)\n WRITES: ML_CCZ4::beta2rhs(Everywhere)\n WRITES: ML_CCZ4::beta3rhs(Everywhere)\n WRITES: ML_CCZ4::gt11rhs(Everywhere)\n WRITES: ML_CCZ4::gt12rhs(Everywhere)\n WRITES: ML_CCZ4::gt13rhs(Everywhere)\n WRITES: ML_CCZ4::gt22rhs(Everywhere)\n WRITES: ML_CCZ4::gt23rhs(Everywhere)\n WRITES: ML_CCZ4::gt33rhs(Everywhere)\n WRITES: ML_CCZ4::phirhs(Everywhere)\n WRITES: ML_CCZ4::Thetarhs(Everywhere)\n WRITES: ML_CCZ4::trKrhs(Everywhere)\n WRITES: ML_CCZ4::Xt1rhs(Everywhere)\n WRITES: ML_CCZ4::Xt2rhs(Everywhere)\n WRITES: ML_CCZ4::Xt3rhs(Everywhere)\n } \"ML_CCZ4_EvolutionAnalysisInit\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_CCZ4\"))\n{\n schedule ML_CCZ4_EvolutionAnalysisInterior IN ML_CCZ4_EvolutionAnalysis\n {\n LANG: C\n READS: TmunuBase::stress_energy_state\n READS: grid::r(Everywhere)\n READS: TmunuBase::eTtt(Everywhere)\n READS: TmunuBase::eTxx(Everywhere)\n READS: TmunuBase::eTxy(Everywhere)\n READS: TmunuBase::eTxz(Everywhere)\n READS: TmunuBase::eTyy(Everywhere)\n READS: TmunuBase::eTyz(Everywhere)\n READS: TmunuBase::eTzz(Everywhere)\n READS: TmunuBase::eTtx(Everywhere)\n READS: TmunuBase::eTty(Everywhere)\n READS: TmunuBase::eTtz(Everywhere)\n READS: ML_CCZ4::At11(Everywhere)\n READS: ML_CCZ4::At12(Everywhere)\n READS: ML_CCZ4::At13(Everywhere)\n READS: ML_CCZ4::At22(Everywhere)\n READS: ML_CCZ4::At23(Everywhere)\n READS: ML_CCZ4::At33(Everywhere)\n READS: ML_CCZ4::A(Everywhere)\n READS: ML_CCZ4::B1(Everywhere)\n READS: ML_CCZ4::B2(Everywhere)\n READS: ML_CCZ4::B3(Everywhere)\n READS: ML_CCZ4::Xt1(Everywhere)\n READS: ML_CCZ4::Xt2(Everywhere)\n READS: ML_CCZ4::Xt3(Everywhere)\n READS: ML_CCZ4::alpha(Everywhere)\n READS: ML_CCZ4::phi(Everywhere)\n READS: ML_CCZ4::gt11(Everywhere)\n READS: ML_CCZ4::gt12(Everywhere)\n READS: ML_CCZ4::gt13(Everywhere)\n READS: ML_CCZ4::gt22(Everywhere)\n READS: ML_CCZ4::gt23(Everywhere)\n READS: ML_CCZ4::gt33(Everywhere)\n READS: ML_CCZ4::beta1(Everywhere)\n READS: ML_CCZ4::beta2(Everywhere)\n READS: ML_CCZ4::beta3(Everywhere)\n READS: ML_CCZ4::Theta(Everywhere)\n READS: ML_CCZ4::trK(Everywhere)\n WRITES: ML_CCZ4::alpharhs(Interior)\n WRITES: ML_CCZ4::Arhs(Interior)\n WRITES: ML_CCZ4::At11rhs(Interior)\n WRITES: ML_CCZ4::At12rhs(Interior)\n WRITES: ML_CCZ4::At13rhs(Interior)\n WRITES: ML_CCZ4::At22rhs(Interior)\n WRITES: ML_CCZ4::At23rhs(Interior)\n WRITES: ML_CCZ4::At33rhs(Interior)\n WRITES: ML_CCZ4::B1rhs(Interior)\n WRITES: ML_CCZ4::B2rhs(Interior)\n WRITES: ML_CCZ4::B3rhs(Interior)\n WRITES: ML_CCZ4::beta1rhs(Interior)\n WRITES: ML_CCZ4::beta2rhs(Interior)\n WRITES: ML_CCZ4::beta3rhs(Interior)\n WRITES: ML_CCZ4::gt11rhs(Interior)\n WRITES: ML_CCZ4::gt12rhs(Interior)\n WRITES: ML_CCZ4::gt13rhs(Interior)\n WRITES: ML_CCZ4::gt22rhs(Interior)\n WRITES: ML_CCZ4::gt23rhs(Interior)\n WRITES: ML_CCZ4::gt33rhs(Interior)\n WRITES: ML_CCZ4::phirhs(Interior)\n WRITES: ML_CCZ4::Thetarhs(Interior)\n WRITES: ML_CCZ4::trKrhs(Interior)\n WRITES: ML_CCZ4::Xt1rhs(Interior)\n WRITES: ML_CCZ4::Xt2rhs(Interior)\n WRITES: ML_CCZ4::Xt3rhs(Interior)\n } \"ML_CCZ4_EvolutionAnalysisInterior\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_CCZ4\"))\n{\n schedule group ML_CCZ4_ConstraintsEverywhere_group in MoL_PseudoEvolution\n {\n } \"ML_CCZ4_ConstraintsEverywhere\"\n}\n\nschedule ML_CCZ4_ConstraintsEverywhere in ML_CCZ4_ConstraintsEverywhere_group\n{\n LANG: C\n READS: TmunuBase::stress_energy_state\n READS: grid::r(Everywhere)\n READS: TmunuBase::eTtt(Everywhere)\n READS: TmunuBase::eTxx(Everywhere)\n READS: TmunuBase::eTxy(Everywhere)\n READS: TmunuBase::eTxz(Everywhere)\n READS: TmunuBase::eTyy(Everywhere)\n READS: TmunuBase::eTyz(Everywhere)\n READS: TmunuBase::eTzz(Everywhere)\n READS: TmunuBase::eTtx(Everywhere)\n READS: TmunuBase::eTty(Everywhere)\n READS: TmunuBase::eTtz(Everywhere)\n READS: ML_CCZ4::At11(Everywhere)\n READS: ML_CCZ4::At12(Everywhere)\n READS: ML_CCZ4::At13(Everywhere)\n READS: ML_CCZ4::At22(Everywhere)\n READS: ML_CCZ4::At23(Everywhere)\n READS: ML_CCZ4::At33(Everywhere)\n READS: ML_CCZ4::A(Everywhere)\n READS: ML_CCZ4::B1(Everywhere)\n READS: ML_CCZ4::B2(Everywhere)\n READS: ML_CCZ4::B3(Everywhere)\n READS: ML_CCZ4::Xt1(Everywhere)\n READS: ML_CCZ4::Xt2(Everywhere)\n READS: ML_CCZ4::Xt3(Everywhere)\n READS: ML_CCZ4::alpha(Everywhere)\n READS: ML_CCZ4::phi(Everywhere)\n READS: ML_CCZ4::gt11(Everywhere)\n READS: ML_CCZ4::gt12(Everywhere)\n READS: ML_CCZ4::gt13(Everywhere)\n READS: ML_CCZ4::gt22(Everywhere)\n READS: ML_CCZ4::gt23(Everywhere)\n READS: ML_CCZ4::gt33(Everywhere)\n READS: ML_CCZ4::beta1(Everywhere)\n READS: ML_CCZ4::beta2(Everywhere)\n READS: ML_CCZ4::beta3(Everywhere)\n READS: ML_CCZ4::Theta(Everywhere)\n READS: ML_CCZ4::trK(Everywhere)\n WRITES: ML_CCZ4::cA(Interior)\n WRITES: ML_CCZ4::cS(Interior)\n} \"ML_CCZ4_ConstraintsEverywhere\"\n\nschedule ML_CCZ4_ConstraintsEverywhere_SelectBCs in ML_CCZ4_ConstraintsEverywhere_bc_group\n{\n LANG: C\n OPTIONS: level\n SYNC: ML_cons_detg\n SYNC: ML_cons_traceA\n} \"ML_CCZ4_ConstraintsEverywhere_SelectBCs\"\n\nschedule group ApplyBCs as ML_CCZ4_ConstraintsEverywhere_ApplyBCs in ML_CCZ4_ConstraintsEverywhere_bc_group after ML_CCZ4_ConstraintsEverywhere_SelectBCs\n{\n} \"Apply BCs for groups set in ML_CCZ4_ConstraintsEverywhere\"\n\nif (CCTK_EQUALS(evolution_method, \"ML_CCZ4\"))\n{\n schedule group ML_CCZ4_ConstraintsEverywhere_bc_group in ML_CCZ4_ConstraintsEverywhere_group after ML_CCZ4_ConstraintsEverywhere\n {\n } \"ML_CCZ4_ConstraintsEverywhere\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_CCZ4\"))\n{\n schedule group ML_CCZ4_ConstraintsEverywhere_bc_group in MoL_PseudoEvolutionBoundaries after MoL_PostStep\n {\n } \"ML_CCZ4_ConstraintsEverywhere\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_CCZ4\"))\n{\n schedule group ML_CCZ4_ConstraintsInterior_group in MoL_PseudoEvolution\n {\n } \"ML_CCZ4_ConstraintsInterior\"\n}\n\nschedule ML_CCZ4_ConstraintsInterior in ML_CCZ4_ConstraintsInterior_group\n{\n LANG: C\n READS: TmunuBase::stress_energy_state\n READS: grid::r(Everywhere)\n READS: TmunuBase::eTtt(Everywhere)\n READS: TmunuBase::eTxx(Everywhere)\n READS: TmunuBase::eTxy(Everywhere)\n READS: TmunuBase::eTxz(Everywhere)\n READS: TmunuBase::eTyy(Everywhere)\n READS: TmunuBase::eTyz(Everywhere)\n READS: TmunuBase::eTzz(Everywhere)\n READS: TmunuBase::eTtx(Everywhere)\n READS: TmunuBase::eTty(Everywhere)\n READS: TmunuBase::eTtz(Everywhere)\n READS: ML_CCZ4::At11(Everywhere)\n READS: ML_CCZ4::At12(Everywhere)\n READS: ML_CCZ4::At13(Everywhere)\n READS: ML_CCZ4::At22(Everywhere)\n READS: ML_CCZ4::At23(Everywhere)\n READS: ML_CCZ4::At33(Everywhere)\n READS: ML_CCZ4::A(Everywhere)\n READS: ML_CCZ4::B1(Everywhere)\n READS: ML_CCZ4::B2(Everywhere)\n READS: ML_CCZ4::B3(Everywhere)\n READS: ML_CCZ4::Xt1(Everywhere)\n READS: ML_CCZ4::Xt2(Everywhere)\n READS: ML_CCZ4::Xt3(Everywhere)\n READS: ML_CCZ4::alpha(Everywhere)\n READS: ML_CCZ4::phi(Everywhere)\n READS: ML_CCZ4::gt11(Everywhere)\n READS: ML_CCZ4::gt12(Everywhere)\n READS: ML_CCZ4::gt13(Everywhere)\n READS: ML_CCZ4::gt22(Everywhere)\n READS: ML_CCZ4::gt23(Everywhere)\n READS: ML_CCZ4::gt33(Everywhere)\n READS: ML_CCZ4::beta1(Everywhere)\n READS: ML_CCZ4::beta2(Everywhere)\n READS: ML_CCZ4::beta3(Everywhere)\n READS: ML_CCZ4::Theta(Everywhere)\n READS: ML_CCZ4::trK(Everywhere)\n WRITES: ML_CCZ4::cXt1(Interior)\n WRITES: ML_CCZ4::cXt2(Interior)\n WRITES: ML_CCZ4::cXt3(Interior)\n WRITES: ML_CCZ4::H(Interior)\n WRITES: ML_CCZ4::M1(Interior)\n WRITES: ML_CCZ4::M2(Interior)\n WRITES: ML_CCZ4::M3(Interior)\n} \"ML_CCZ4_ConstraintsInterior\"\n\nschedule ML_CCZ4_ConstraintsInterior_SelectBCs in ML_CCZ4_ConstraintsInterior_bc_group\n{\n LANG: C\n OPTIONS: level\n SYNC: ML_cons_Gamma\n SYNC: ML_Ham\n SYNC: ML_mom\n} \"ML_CCZ4_ConstraintsInterior_SelectBCs\"\n\nschedule group ApplyBCs as ML_CCZ4_ConstraintsInterior_ApplyBCs in ML_CCZ4_ConstraintsInterior_bc_group after ML_CCZ4_ConstraintsInterior_SelectBCs\n{\n} \"Apply BCs for groups set in ML_CCZ4_ConstraintsInterior\"\n\nif (CCTK_EQUALS(evolution_method, \"ML_CCZ4\"))\n{\n schedule group ML_CCZ4_ConstraintsInterior_bc_group in ML_CCZ4_ConstraintsInterior_group after ML_CCZ4_ConstraintsInterior\n {\n } \"ML_CCZ4_ConstraintsInterior\"\n}\n\nif (CCTK_EQUALS(evolution_method, \"ML_CCZ4\"))\n{\n schedule group ML_CCZ4_ConstraintsInterior_bc_group in MoL_PseudoEvolutionBoundaries after MoL_PostStep\n {\n } \"ML_CCZ4_ConstraintsInterior\"\n}\n\nschedule ML_CCZ4_SelectBoundConds in MoL_PostStep\n{\n LANG: C\n OPTIONS: level\n SYNC: ML_log_confac\n SYNC: ML_metric\n SYNC: ML_Gamma\n SYNC: ML_trace_curv\n SYNC: ML_curv\n SYNC: ML_Theta\n SYNC: ML_lapse\n SYNC: ML_dtlapse\n SYNC: ML_shift\n SYNC: ML_dtshift\n} \"select boundary conditions\"\n\nschedule ML_CCZ4_CheckBoundaries at BASEGRID\n{\n LANG: C\n OPTIONS: meta\n} \"check boundaries treatment\"\n\nschedule ML_CCZ4_RegisterVars in MoL_Register\n{\n LANG: C\n OPTIONS: meta\n} \"Register Variables for MoL\"\nschedule group ApplyBCs as ML_CCZ4_ApplyBCs in MoL_PostStep after ML_CCZ4_SelectBoundConds\n{\n} \"Apply boundary conditions controlled by thorn Boundary\"\n\nschedule group ML_CCZ4_EvolutionInteriorSplitBy IN MoL_CalcRHS\n{\n} \"\"\n", "src": { "ML_CCZ4_EvolutionInteriorSplitBy1.cc": "/* File produced by Kranc */\n\n#define KRANC_C\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Parameters.h\"\n#include \"Kranc.hh\"\n#include \"Differencing.h\"\n#include \"loopcontrol.h\"\n#include \"vectors.h\"\n\nnamespace ML_CCZ4 {\n\nextern \"C\" void ML_CCZ4_EvolutionInteriorSplitBy1_SelectBCs(CCTK_ARGUMENTS)\n{\n #ifdef DECLARE_CCTK_ARGUMENTS_ML_CCZ4_EvolutionInteriorSplitBy1_SelectBCs\n DECLARE_CCTK_ARGUMENTS_CHECKED(ML_CCZ4_EvolutionInteriorSplitBy1_SelectBCs);\n #else\n DECLARE_CCTK_ARGUMENTS;\n #endif\n DECLARE_CCTK_PARAMETERS;\n \n if (cctk_iteration % ML_CCZ4_EvolutionInteriorSplitBy1_calc_every != ML_CCZ4_EvolutionInteriorSplitBy1_calc_offset)\n return;\n CCTK_INT ierr CCTK_ATTRIBUTE_UNUSED = 0;\n ierr = KrancBdy_SelectGroupForBC(cctkGH, CCTK_ALL_FACES, GetBoundaryWidth(cctkGH), -1 /* no table */, \"ML_CCZ4::ML_dtlapserhs\",\"flat\");\n if (ierr < 0)\n CCTK_WARN(CCTK_WARN_ALERT, \"Failed to register flat BC for ML_CCZ4::ML_dtlapserhs.\");\n ierr = KrancBdy_SelectGroupForBC(cctkGH, CCTK_ALL_FACES, GetBoundaryWidth(cctkGH), -1 /* no table */, \"ML_CCZ4::ML_lapserhs\",\"flat\");\n if (ierr < 0)\n CCTK_WARN(CCTK_WARN_ALERT, \"Failed to register flat BC for ML_CCZ4::ML_lapserhs.\");\n ierr = KrancBdy_SelectGroupForBC(cctkGH, CCTK_ALL_FACES, GetBoundaryWidth(cctkGH), -1 /* no table */, \"ML_CCZ4::ML_log_confacrhs\",\"flat\");\n if (ierr < 0)\n CCTK_WARN(CCTK_WARN_ALERT, \"Failed to register flat BC for ML_CCZ4::ML_log_confacrhs.\");\n ierr = KrancBdy_SelectGroupForBC(cctkGH, CCTK_ALL_FACES, GetBoundaryWidth(cctkGH), -1 /* no table */, \"ML_CCZ4::ML_metricrhs\",\"flat\");\n if (ierr < 0)\n CCTK_WARN(CCTK_WARN_ALERT, \"Failed to register flat BC for ML_CCZ4::ML_metricrhs.\");\n return;\n}\n\nstatic void ML_CCZ4_EvolutionInteriorSplitBy1_Body(const cGH* restrict const cctkGH, const int dir, const int face, const CCTK_REAL normal[3], const CCTK_REAL tangentA[3], const CCTK_REAL tangentB[3], const int imin[3], const int imax[3], const int n_subblock_gfs, CCTK_REAL* restrict const subblock_gfs[])\n{\n DECLARE_CCTK_ARGUMENTS;\n DECLARE_CCTK_PARAMETERS;\n \n /* Include user-supplied include files */\n /* Initialise finite differencing variables */\n const ptrdiff_t di CCTK_ATTRIBUTE_UNUSED = 1;\n const ptrdiff_t dj CCTK_ATTRIBUTE_UNUSED = \n CCTK_GFINDEX3D(cctkGH,0,1,0) - CCTK_GFINDEX3D(cctkGH,0,0,0);\n const ptrdiff_t dk CCTK_ATTRIBUTE_UNUSED = \n CCTK_GFINDEX3D(cctkGH,0,0,1) - CCTK_GFINDEX3D(cctkGH,0,0,0);\n const ptrdiff_t cdi CCTK_ATTRIBUTE_UNUSED = sizeof(CCTK_REAL) * di;\n const ptrdiff_t cdj CCTK_ATTRIBUTE_UNUSED = sizeof(CCTK_REAL) * dj;\n const ptrdiff_t cdk CCTK_ATTRIBUTE_UNUSED = sizeof(CCTK_REAL) * dk;\n const ptrdiff_t cctkLbnd1 CCTK_ATTRIBUTE_UNUSED = cctk_lbnd[0];\n const ptrdiff_t cctkLbnd2 CCTK_ATTRIBUTE_UNUSED = cctk_lbnd[1];\n const ptrdiff_t cctkLbnd3 CCTK_ATTRIBUTE_UNUSED = cctk_lbnd[2];\n const CCTK_REAL_VEC t CCTK_ATTRIBUTE_UNUSED = ToReal(cctk_time);\n const CCTK_REAL_VEC cctkOriginSpace1 CCTK_ATTRIBUTE_UNUSED = \n ToReal(CCTK_ORIGIN_SPACE(0));\n const CCTK_REAL_VEC cctkOriginSpace2 CCTK_ATTRIBUTE_UNUSED = \n ToReal(CCTK_ORIGIN_SPACE(1));\n const CCTK_REAL_VEC cctkOriginSpace3 CCTK_ATTRIBUTE_UNUSED = \n ToReal(CCTK_ORIGIN_SPACE(2));\n const CCTK_REAL_VEC dt CCTK_ATTRIBUTE_UNUSED = \n ToReal(CCTK_DELTA_TIME);\n const CCTK_REAL_VEC dx CCTK_ATTRIBUTE_UNUSED = \n ToReal(CCTK_DELTA_SPACE(0));\n const CCTK_REAL_VEC dy CCTK_ATTRIBUTE_UNUSED = \n ToReal(CCTK_DELTA_SPACE(1));\n const CCTK_REAL_VEC dz CCTK_ATTRIBUTE_UNUSED = \n ToReal(CCTK_DELTA_SPACE(2));\n const CCTK_REAL_VEC dxi CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(1),dx);\n const CCTK_REAL_VEC dyi CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(1),dy);\n const CCTK_REAL_VEC dzi CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(1),dz);\n const CCTK_REAL_VEC khalf CCTK_ATTRIBUTE_UNUSED = ToReal(0.5);\n const CCTK_REAL_VEC kthird CCTK_ATTRIBUTE_UNUSED = \n ToReal(0.333333333333333333333333333333);\n const CCTK_REAL_VEC ktwothird CCTK_ATTRIBUTE_UNUSED = \n ToReal(0.666666666666666666666666666667);\n const CCTK_REAL_VEC kfourthird CCTK_ATTRIBUTE_UNUSED = \n ToReal(1.33333333333333333333333333333);\n const CCTK_REAL_VEC hdxi CCTK_ATTRIBUTE_UNUSED = \n kmul(dxi,ToReal(0.5));\n const CCTK_REAL_VEC hdyi CCTK_ATTRIBUTE_UNUSED = \n kmul(dyi,ToReal(0.5));\n const CCTK_REAL_VEC hdzi CCTK_ATTRIBUTE_UNUSED = \n kmul(dzi,ToReal(0.5));\n /* Initialize predefined quantities */\n const CCTK_REAL_VEC p1o1024dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0009765625),dx);\n const CCTK_REAL_VEC p1o1024dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0009765625),dy);\n const CCTK_REAL_VEC p1o1024dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0009765625),dz);\n const CCTK_REAL_VEC p1o120dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00833333333333333333333333333333),dx);\n const CCTK_REAL_VEC p1o120dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00833333333333333333333333333333),dy);\n const CCTK_REAL_VEC p1o120dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00833333333333333333333333333333),dz);\n const CCTK_REAL_VEC p1o12dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0833333333333333333333333333333),dx);\n const CCTK_REAL_VEC p1o12dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0833333333333333333333333333333),dy);\n const CCTK_REAL_VEC p1o12dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0833333333333333333333333333333),dz);\n const CCTK_REAL_VEC p1o144dxdy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00694444444444444444444444444444),kmul(dx,dy));\n const CCTK_REAL_VEC p1o144dxdz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00694444444444444444444444444444),kmul(dx,dz));\n const CCTK_REAL_VEC p1o144dydz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00694444444444444444444444444444),kmul(dy,dz));\n const CCTK_REAL_VEC p1o1680dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.000595238095238095238095238095238),dx);\n const CCTK_REAL_VEC p1o1680dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.000595238095238095238095238095238),dy);\n const CCTK_REAL_VEC p1o1680dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.000595238095238095238095238095238),dz);\n const CCTK_REAL_VEC p1o180dx2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00555555555555555555555555555556),kmul(dx,dx));\n const CCTK_REAL_VEC p1o180dy2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00555555555555555555555555555556),kmul(dy,dy));\n const CCTK_REAL_VEC p1o180dz2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00555555555555555555555555555556),kmul(dz,dz));\n const CCTK_REAL_VEC p1o24dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0416666666666666666666666666667),dx);\n const CCTK_REAL_VEC p1o24dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0416666666666666666666666666667),dy);\n const CCTK_REAL_VEC p1o24dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0416666666666666666666666666667),dz);\n const CCTK_REAL_VEC p1o2dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.5),dx);\n const CCTK_REAL_VEC p1o2dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.5),dy);\n const CCTK_REAL_VEC p1o2dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.5),dz);\n const CCTK_REAL_VEC p1o3600dxdy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.000277777777777777777777777777778),kmul(dx,dy));\n const CCTK_REAL_VEC p1o3600dxdz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.000277777777777777777777777777778),kmul(dx,dz));\n const CCTK_REAL_VEC p1o3600dydz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.000277777777777777777777777777778),kmul(dy,dz));\n const CCTK_REAL_VEC p1o4dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.25),dx);\n const CCTK_REAL_VEC p1o4dxdy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.25),kmul(dx,dy));\n const CCTK_REAL_VEC p1o4dxdz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.25),kmul(dx,dz));\n const CCTK_REAL_VEC p1o4dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.25),dy);\n const CCTK_REAL_VEC p1o4dydz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.25),kmul(dy,dz));\n const CCTK_REAL_VEC p1o4dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.25),dz);\n const CCTK_REAL_VEC p1o5040dx2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.000198412698412698412698412698413),kmul(dx,dx));\n const CCTK_REAL_VEC p1o5040dy2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.000198412698412698412698412698413),kmul(dy,dy));\n const CCTK_REAL_VEC p1o5040dz2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.000198412698412698412698412698413),kmul(dz,dz));\n const CCTK_REAL_VEC p1o560dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00178571428571428571428571428571),dx);\n const CCTK_REAL_VEC p1o560dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00178571428571428571428571428571),dy);\n const CCTK_REAL_VEC p1o560dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00178571428571428571428571428571),dz);\n const CCTK_REAL_VEC p1o60dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0166666666666666666666666666667),dx);\n const CCTK_REAL_VEC p1o60dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0166666666666666666666666666667),dy);\n const CCTK_REAL_VEC p1o60dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.0166666666666666666666666666667),dz);\n const CCTK_REAL_VEC p1o64dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.015625),dx);\n const CCTK_REAL_VEC p1o64dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.015625),dy);\n const CCTK_REAL_VEC p1o64dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.015625),dz);\n const CCTK_REAL_VEC p1o6dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.166666666666666666666666666667),dx);\n const CCTK_REAL_VEC p1o6dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.166666666666666666666666666667),dy);\n const CCTK_REAL_VEC p1o6dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.166666666666666666666666666667),dz);\n const CCTK_REAL_VEC p1o705600dxdy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(1.41723356009070294784580498866e-6),kmul(dx,dy));\n const CCTK_REAL_VEC p1o705600dxdz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(1.41723356009070294784580498866e-6),kmul(dx,dz));\n const CCTK_REAL_VEC p1o705600dydz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(1.41723356009070294784580498866e-6),kmul(dy,dz));\n const CCTK_REAL_VEC p1o840dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00119047619047619047619047619048),dx);\n const CCTK_REAL_VEC p1o840dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00119047619047619047619047619048),dy);\n const CCTK_REAL_VEC p1o840dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(0.00119047619047619047619047619048),dz);\n const CCTK_REAL_VEC p1odx2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(1),kmul(dx,dx));\n const CCTK_REAL_VEC p1ody2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(1),kmul(dy,dy));\n const CCTK_REAL_VEC p1odz2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(1),kmul(dz,dz));\n const CCTK_REAL_VEC pm1o120dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.00833333333333333333333333333333),dx);\n const CCTK_REAL_VEC pm1o120dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.00833333333333333333333333333333),dy);\n const CCTK_REAL_VEC pm1o120dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.00833333333333333333333333333333),dz);\n const CCTK_REAL_VEC pm1o12dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0833333333333333333333333333333),dx);\n const CCTK_REAL_VEC pm1o12dx2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0833333333333333333333333333333),kmul(dx,dx));\n const CCTK_REAL_VEC pm1o12dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0833333333333333333333333333333),dy);\n const CCTK_REAL_VEC pm1o12dy2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0833333333333333333333333333333),kmul(dy,dy));\n const CCTK_REAL_VEC pm1o12dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0833333333333333333333333333333),dz);\n const CCTK_REAL_VEC pm1o12dz2 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0833333333333333333333333333333),kmul(dz,dz));\n const CCTK_REAL_VEC pm1o16dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0625),dx);\n const CCTK_REAL_VEC pm1o16dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0625),dy);\n const CCTK_REAL_VEC pm1o16dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0625),dz);\n const CCTK_REAL_VEC pm1o256dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.00390625),dx);\n const CCTK_REAL_VEC pm1o256dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.00390625),dy);\n const CCTK_REAL_VEC pm1o256dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.00390625),dz);\n const CCTK_REAL_VEC pm1o2dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.5),dx);\n const CCTK_REAL_VEC pm1o2dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.5),dy);\n const CCTK_REAL_VEC pm1o2dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.5),dz);\n const CCTK_REAL_VEC pm1o4dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.25),dx);\n const CCTK_REAL_VEC pm1o4dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.25),dy);\n const CCTK_REAL_VEC pm1o4dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.25),dz);\n const CCTK_REAL_VEC pm1o60dx CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0166666666666666666666666666667),dx);\n const CCTK_REAL_VEC pm1o60dy CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0166666666666666666666666666667),dy);\n const CCTK_REAL_VEC pm1o60dz CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.0166666666666666666666666666667),dz);\n /* Jacobian variable pointers */\n const bool usejacobian1 = (!CCTK_IsFunctionAliased(\"MultiPatch_GetMap\") || MultiPatch_GetMap(cctkGH) != jacobian_identity_map)\n && strlen(jacobian_group) > 0;\n const bool usejacobian = assume_use_jacobian>=0 ? assume_use_jacobian : usejacobian1;\n if (usejacobian && (strlen(jacobian_derivative_group) == 0))\n {\n CCTK_WARN(CCTK_WARN_ALERT, \"GenericFD::jacobian_group and GenericFD::jacobian_derivative_group must both be set to valid group names\");\n }\n \n const CCTK_REAL* restrict jacobian_ptrs[9];\n if (usejacobian) GroupDataPointers(cctkGH, jacobian_group,\n 9, jacobian_ptrs);\n \n const CCTK_REAL* restrict const J11 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_ptrs[0] : 0;\n const CCTK_REAL* restrict const J12 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_ptrs[1] : 0;\n const CCTK_REAL* restrict const J13 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_ptrs[2] : 0;\n const CCTK_REAL* restrict const J21 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_ptrs[3] : 0;\n const CCTK_REAL* restrict const J22 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_ptrs[4] : 0;\n const CCTK_REAL* restrict const J23 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_ptrs[5] : 0;\n const CCTK_REAL* restrict const J31 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_ptrs[6] : 0;\n const CCTK_REAL* restrict const J32 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_ptrs[7] : 0;\n const CCTK_REAL* restrict const J33 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_ptrs[8] : 0;\n \n const CCTK_REAL* restrict jacobian_determinant_ptrs[1] CCTK_ATTRIBUTE_UNUSED;\n if (usejacobian && strlen(jacobian_determinant_group) > 0) GroupDataPointers(cctkGH, jacobian_determinant_group,\n 1, jacobian_determinant_ptrs);\n \n const CCTK_REAL* restrict const detJ CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_determinant_ptrs[0] : 0;\n \n const CCTK_REAL* restrict jacobian_inverse_ptrs[9] CCTK_ATTRIBUTE_UNUSED;\n if (usejacobian && strlen(jacobian_inverse_group) > 0) GroupDataPointers(cctkGH, jacobian_inverse_group,\n 9, jacobian_inverse_ptrs);\n \n const CCTK_REAL* restrict const iJ11 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_inverse_ptrs[0] : 0;\n const CCTK_REAL* restrict const iJ12 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_inverse_ptrs[1] : 0;\n const CCTK_REAL* restrict const iJ13 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_inverse_ptrs[2] : 0;\n const CCTK_REAL* restrict const iJ21 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_inverse_ptrs[3] : 0;\n const CCTK_REAL* restrict const iJ22 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_inverse_ptrs[4] : 0;\n const CCTK_REAL* restrict const iJ23 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_inverse_ptrs[5] : 0;\n const CCTK_REAL* restrict const iJ31 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_inverse_ptrs[6] : 0;\n const CCTK_REAL* restrict const iJ32 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_inverse_ptrs[7] : 0;\n const CCTK_REAL* restrict const iJ33 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_inverse_ptrs[8] : 0;\n \n const CCTK_REAL* restrict jacobian_derivative_ptrs[18] CCTK_ATTRIBUTE_UNUSED;\n if (usejacobian) GroupDataPointers(cctkGH, jacobian_derivative_group,\n 18, jacobian_derivative_ptrs);\n \n const CCTK_REAL* restrict const dJ111 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[0] : 0;\n const CCTK_REAL* restrict const dJ112 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[1] : 0;\n const CCTK_REAL* restrict const dJ113 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[2] : 0;\n const CCTK_REAL* restrict const dJ122 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[3] : 0;\n const CCTK_REAL* restrict const dJ123 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[4] : 0;\n const CCTK_REAL* restrict const dJ133 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[5] : 0;\n const CCTK_REAL* restrict const dJ211 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[6] : 0;\n const CCTK_REAL* restrict const dJ212 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[7] : 0;\n const CCTK_REAL* restrict const dJ213 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[8] : 0;\n const CCTK_REAL* restrict const dJ222 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[9] : 0;\n const CCTK_REAL* restrict const dJ223 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[10] : 0;\n const CCTK_REAL* restrict const dJ233 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[11] : 0;\n const CCTK_REAL* restrict const dJ311 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[12] : 0;\n const CCTK_REAL* restrict const dJ312 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[13] : 0;\n const CCTK_REAL* restrict const dJ313 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[14] : 0;\n const CCTK_REAL* restrict const dJ322 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[15] : 0;\n const CCTK_REAL* restrict const dJ323 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[16] : 0;\n const CCTK_REAL* restrict const dJ333 CCTK_ATTRIBUTE_UNUSED = usejacobian ? jacobian_derivative_ptrs[17] : 0;\n /* Assign local copies of arrays functions */\n \n \n /* Calculate temporaries and arrays functions */\n /* Copy local copies back to grid functions */\n /* Loop over the grid points */\n const int imin0=imin[0];\n const int imin1=imin[1];\n const int imin2=imin[2];\n const int imax0=imax[0];\n const int imax1=imax[1];\n const int imax2=imax[2];\n #pragma omp parallel\n CCTK_LOOP3STR(ML_CCZ4_EvolutionInteriorSplitBy1,\n i,j,k, imin0,imin1,imin2, imax0,imax1,imax2,\n cctk_ash[0],cctk_ash[1],cctk_ash[2],\n vecimin,vecimax, CCTK_REAL_VEC_SIZE)\n {\n const ptrdiff_t index CCTK_ATTRIBUTE_UNUSED = di*i + dj*j + dk*k;\n /* Assign local copies of grid functions */\n \n CCTK_REAL_VEC AL CCTK_ATTRIBUTE_UNUSED = vec_load(A[index]);\n CCTK_REAL_VEC alphaL CCTK_ATTRIBUTE_UNUSED = vec_load(alpha[index]);\n CCTK_REAL_VEC At11L CCTK_ATTRIBUTE_UNUSED = vec_load(At11[index]);\n CCTK_REAL_VEC At12L CCTK_ATTRIBUTE_UNUSED = vec_load(At12[index]);\n CCTK_REAL_VEC At13L CCTK_ATTRIBUTE_UNUSED = vec_load(At13[index]);\n CCTK_REAL_VEC At22L CCTK_ATTRIBUTE_UNUSED = vec_load(At22[index]);\n CCTK_REAL_VEC At23L CCTK_ATTRIBUTE_UNUSED = vec_load(At23[index]);\n CCTK_REAL_VEC At33L CCTK_ATTRIBUTE_UNUSED = vec_load(At33[index]);\n CCTK_REAL_VEC beta1L CCTK_ATTRIBUTE_UNUSED = vec_load(beta1[index]);\n CCTK_REAL_VEC beta2L CCTK_ATTRIBUTE_UNUSED = vec_load(beta2[index]);\n CCTK_REAL_VEC beta3L CCTK_ATTRIBUTE_UNUSED = vec_load(beta3[index]);\n CCTK_REAL_VEC gt11L CCTK_ATTRIBUTE_UNUSED = vec_load(gt11[index]);\n CCTK_REAL_VEC gt12L CCTK_ATTRIBUTE_UNUSED = vec_load(gt12[index]);\n CCTK_REAL_VEC gt13L CCTK_ATTRIBUTE_UNUSED = vec_load(gt13[index]);\n CCTK_REAL_VEC gt22L CCTK_ATTRIBUTE_UNUSED = vec_load(gt22[index]);\n CCTK_REAL_VEC gt23L CCTK_ATTRIBUTE_UNUSED = vec_load(gt23[index]);\n CCTK_REAL_VEC gt33L CCTK_ATTRIBUTE_UNUSED = vec_load(gt33[index]);\n CCTK_REAL_VEC phiL CCTK_ATTRIBUTE_UNUSED = vec_load(phi[index]);\n CCTK_REAL_VEC ThetaL CCTK_ATTRIBUTE_UNUSED = vec_load(Theta[index]);\n CCTK_REAL_VEC ThetarhsL CCTK_ATTRIBUTE_UNUSED = \n vec_load(Thetarhs[index]);\n CCTK_REAL_VEC trKL CCTK_ATTRIBUTE_UNUSED = vec_load(trK[index]);\n CCTK_REAL_VEC Xt1L CCTK_ATTRIBUTE_UNUSED = vec_load(Xt1[index]);\n CCTK_REAL_VEC Xt2L CCTK_ATTRIBUTE_UNUSED = vec_load(Xt2[index]);\n CCTK_REAL_VEC Xt3L CCTK_ATTRIBUTE_UNUSED = vec_load(Xt3[index]);\n \n CCTK_REAL_VEC eTttL, eTtxL, eTtyL, eTtzL, eTxxL, eTxyL, eTxzL, eTyyL, eTyzL, eTzzL CCTK_ATTRIBUTE_UNUSED ;\n \n if (assume_stress_energy_state>=0 ? assume_stress_energy_state : *stress_energy_state)\n {\n eTttL = vec_load(eTtt[index]);\n eTtxL = vec_load(eTtx[index]);\n eTtyL = vec_load(eTty[index]);\n eTtzL = vec_load(eTtz[index]);\n eTxxL = vec_load(eTxx[index]);\n eTxyL = vec_load(eTxy[index]);\n eTxzL = vec_load(eTxz[index]);\n eTyyL = vec_load(eTyy[index]);\n eTyzL = vec_load(eTyz[index]);\n eTzzL = vec_load(eTzz[index]);\n }\n else\n {\n eTttL = ToReal(0.);\n eTtxL = ToReal(0.);\n eTtyL = ToReal(0.);\n eTtzL = ToReal(0.);\n eTxxL = ToReal(0.);\n eTxyL = ToReal(0.);\n eTxzL = ToReal(0.);\n eTyyL = ToReal(0.);\n eTyzL = ToReal(0.);\n eTzzL = ToReal(0.);\n }\n \n CCTK_REAL_VEC dJ111L, dJ112L, dJ113L, dJ122L, dJ123L, dJ133L, dJ211L, dJ212L, dJ213L, dJ222L, dJ223L, dJ233L, dJ311L, dJ312L, dJ313L, dJ322L, dJ323L, dJ333L, J11L, J12L, J13L, J21L, J22L, J23L, J31L, J32L, J33L CCTK_ATTRIBUTE_UNUSED ;\n \n if (usejacobian)\n {\n dJ111L = vec_load(dJ111[index]);\n dJ112L = vec_load(dJ112[index]);\n dJ113L = vec_load(dJ113[index]);\n dJ122L = vec_load(dJ122[index]);\n dJ123L = vec_load(dJ123[index]);\n dJ133L = vec_load(dJ133[index]);\n dJ211L = vec_load(dJ211[index]);\n dJ212L = vec_load(dJ212[index]);\n dJ213L = vec_load(dJ213[index]);\n dJ222L = vec_load(dJ222[index]);\n dJ223L = vec_load(dJ223[index]);\n dJ233L = vec_load(dJ233[index]);\n dJ311L = vec_load(dJ311[index]);\n dJ312L = vec_load(dJ312[index]);\n dJ313L = vec_load(dJ313[index]);\n dJ322L = vec_load(dJ322[index]);\n dJ323L = vec_load(dJ323[index]);\n dJ333L = vec_load(dJ333[index]);\n J11L = vec_load(J11[index]);\n J12L = vec_load(J12[index]);\n J13L = vec_load(J13[index]);\n J21L = vec_load(J21[index]);\n J22L = vec_load(J22[index]);\n J23L = vec_load(J23[index]);\n J31L = vec_load(J31[index]);\n J32L = vec_load(J32[index]);\n J33L = vec_load(J33[index]);\n }\n /* Include user supplied include files */\n /* Precompute derivatives */\n CCTK_REAL_VEC PDupwindNthSymm1A CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm2A CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm3A CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti1A CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti2A CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti3A CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth1A CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth2A CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth3A CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth1alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth2alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth3alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth11alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth22alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth33alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth12alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth13alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth23alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm1alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm2alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm3alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti1alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti2alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti3alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth1alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth2alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth3alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth1beta1 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth2beta1 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth3beta1 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth1beta2 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth2beta2 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth3beta2 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth1beta3 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth2beta3 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth3beta3 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth1gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth2gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth3gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth11gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth22gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth33gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth12gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth13gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth23gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm1gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm2gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm3gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti1gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti2gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti3gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth1gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth2gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth3gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth1gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth2gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth3gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth11gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth22gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth33gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth12gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth13gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth23gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm1gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm2gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm3gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti1gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti2gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti3gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth1gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth2gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth3gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth1gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth2gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth3gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth11gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth22gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth33gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth12gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth13gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth23gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm1gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm2gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm3gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti1gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti2gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti3gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth1gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth2gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth3gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth1gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth2gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth3gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth11gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth22gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth33gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth12gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth13gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth23gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm1gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm2gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm3gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti1gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti2gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti3gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth1gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth2gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth3gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth1gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth2gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth3gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth11gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth22gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth33gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth12gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth13gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth23gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm1gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm2gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm3gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti1gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti2gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti3gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth1gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth2gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth3gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth1gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth2gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth3gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth11gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth22gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth33gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth12gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth13gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth23gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm1gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm2gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm3gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti1gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti2gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti3gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth1gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth2gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth3gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth1phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth2phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth3phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth11phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth22phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth33phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth12phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth13phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth23phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm1phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm2phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm3phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti1phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti2phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti3phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth1phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth2phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDdissipationNth3phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm1trK CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm2trK CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthSymm3trK CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti1trK CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti2trK CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDupwindNthAnti3trK CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth1Xt1 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth2Xt1 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth3Xt1 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth1Xt2 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth2Xt2 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth3Xt2 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth1Xt3 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth2Xt3 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC PDstandardNth3Xt3 CCTK_ATTRIBUTE_UNUSED;\n \n switch (fdOrder)\n {\n case 2:\n {\n PDupwindNthSymm1A = PDupwindNthSymmfdOrder21(&A[index]);\n PDupwindNthSymm2A = PDupwindNthSymmfdOrder22(&A[index]);\n PDupwindNthSymm3A = PDupwindNthSymmfdOrder23(&A[index]);\n PDupwindNthAnti1A = PDupwindNthAntifdOrder21(&A[index]);\n PDupwindNthAnti2A = PDupwindNthAntifdOrder22(&A[index]);\n PDupwindNthAnti3A = PDupwindNthAntifdOrder23(&A[index]);\n PDdissipationNth1A = PDdissipationNthfdOrder21(&A[index]);\n PDdissipationNth2A = PDdissipationNthfdOrder22(&A[index]);\n PDdissipationNth3A = PDdissipationNthfdOrder23(&A[index]);\n PDstandardNth1alpha = PDstandardNthfdOrder21(&alpha[index]);\n PDstandardNth2alpha = PDstandardNthfdOrder22(&alpha[index]);\n PDstandardNth3alpha = PDstandardNthfdOrder23(&alpha[index]);\n PDstandardNth11alpha = PDstandardNthfdOrder211(&alpha[index]);\n PDstandardNth22alpha = PDstandardNthfdOrder222(&alpha[index]);\n PDstandardNth33alpha = PDstandardNthfdOrder233(&alpha[index]);\n PDstandardNth12alpha = PDstandardNthfdOrder212(&alpha[index]);\n PDstandardNth13alpha = PDstandardNthfdOrder213(&alpha[index]);\n PDstandardNth23alpha = PDstandardNthfdOrder223(&alpha[index]);\n PDupwindNthSymm1alpha = PDupwindNthSymmfdOrder21(&alpha[index]);\n PDupwindNthSymm2alpha = PDupwindNthSymmfdOrder22(&alpha[index]);\n PDupwindNthSymm3alpha = PDupwindNthSymmfdOrder23(&alpha[index]);\n PDupwindNthAnti1alpha = PDupwindNthAntifdOrder21(&alpha[index]);\n PDupwindNthAnti2alpha = PDupwindNthAntifdOrder22(&alpha[index]);\n PDupwindNthAnti3alpha = PDupwindNthAntifdOrder23(&alpha[index]);\n PDdissipationNth1alpha = PDdissipationNthfdOrder21(&alpha[index]);\n PDdissipationNth2alpha = PDdissipationNthfdOrder22(&alpha[index]);\n PDdissipationNth3alpha = PDdissipationNthfdOrder23(&alpha[index]);\n PDstandardNth1beta1 = PDstandardNthfdOrder21(&beta1[index]);\n PDstandardNth2beta1 = PDstandardNthfdOrder22(&beta1[index]);\n PDstandardNth3beta1 = PDstandardNthfdOrder23(&beta1[index]);\n PDstandardNth1beta2 = PDstandardNthfdOrder21(&beta2[index]);\n PDstandardNth2beta2 = PDstandardNthfdOrder22(&beta2[index]);\n PDstandardNth3beta2 = PDstandardNthfdOrder23(&beta2[index]);\n PDstandardNth1beta3 = PDstandardNthfdOrder21(&beta3[index]);\n PDstandardNth2beta3 = PDstandardNthfdOrder22(&beta3[index]);\n PDstandardNth3beta3 = PDstandardNthfdOrder23(&beta3[index]);\n PDstandardNth1gt11 = PDstandardNthfdOrder21(>11[index]);\n PDstandardNth2gt11 = PDstandardNthfdOrder22(>11[index]);\n PDstandardNth3gt11 = PDstandardNthfdOrder23(>11[index]);\n PDstandardNth11gt11 = PDstandardNthfdOrder211(>11[index]);\n PDstandardNth22gt11 = PDstandardNthfdOrder222(>11[index]);\n PDstandardNth33gt11 = PDstandardNthfdOrder233(>11[index]);\n PDstandardNth12gt11 = PDstandardNthfdOrder212(>11[index]);\n PDstandardNth13gt11 = PDstandardNthfdOrder213(>11[index]);\n PDstandardNth23gt11 = PDstandardNthfdOrder223(>11[index]);\n PDupwindNthSymm1gt11 = PDupwindNthSymmfdOrder21(>11[index]);\n PDupwindNthSymm2gt11 = PDupwindNthSymmfdOrder22(>11[index]);\n PDupwindNthSymm3gt11 = PDupwindNthSymmfdOrder23(>11[index]);\n PDupwindNthAnti1gt11 = PDupwindNthAntifdOrder21(>11[index]);\n PDupwindNthAnti2gt11 = PDupwindNthAntifdOrder22(>11[index]);\n PDupwindNthAnti3gt11 = PDupwindNthAntifdOrder23(>11[index]);\n PDdissipationNth1gt11 = PDdissipationNthfdOrder21(>11[index]);\n PDdissipationNth2gt11 = PDdissipationNthfdOrder22(>11[index]);\n PDdissipationNth3gt11 = PDdissipationNthfdOrder23(>11[index]);\n PDstandardNth1gt12 = PDstandardNthfdOrder21(>12[index]);\n PDstandardNth2gt12 = PDstandardNthfdOrder22(>12[index]);\n PDstandardNth3gt12 = PDstandardNthfdOrder23(>12[index]);\n PDstandardNth11gt12 = PDstandardNthfdOrder211(>12[index]);\n PDstandardNth22gt12 = PDstandardNthfdOrder222(>12[index]);\n PDstandardNth33gt12 = PDstandardNthfdOrder233(>12[index]);\n PDstandardNth12gt12 = PDstandardNthfdOrder212(>12[index]);\n PDstandardNth13gt12 = PDstandardNthfdOrder213(>12[index]);\n PDstandardNth23gt12 = PDstandardNthfdOrder223(>12[index]);\n PDupwindNthSymm1gt12 = PDupwindNthSymmfdOrder21(>12[index]);\n PDupwindNthSymm2gt12 = PDupwindNthSymmfdOrder22(>12[index]);\n PDupwindNthSymm3gt12 = PDupwindNthSymmfdOrder23(>12[index]);\n PDupwindNthAnti1gt12 = PDupwindNthAntifdOrder21(>12[index]);\n PDupwindNthAnti2gt12 = PDupwindNthAntifdOrder22(>12[index]);\n PDupwindNthAnti3gt12 = PDupwindNthAntifdOrder23(>12[index]);\n PDdissipationNth1gt12 = PDdissipationNthfdOrder21(>12[index]);\n PDdissipationNth2gt12 = PDdissipationNthfdOrder22(>12[index]);\n PDdissipationNth3gt12 = PDdissipationNthfdOrder23(>12[index]);\n PDstandardNth1gt13 = PDstandardNthfdOrder21(>13[index]);\n PDstandardNth2gt13 = PDstandardNthfdOrder22(>13[index]);\n PDstandardNth3gt13 = PDstandardNthfdOrder23(>13[index]);\n PDstandardNth11gt13 = PDstandardNthfdOrder211(>13[index]);\n PDstandardNth22gt13 = PDstandardNthfdOrder222(>13[index]);\n PDstandardNth33gt13 = PDstandardNthfdOrder233(>13[index]);\n PDstandardNth12gt13 = PDstandardNthfdOrder212(>13[index]);\n PDstandardNth13gt13 = PDstandardNthfdOrder213(>13[index]);\n PDstandardNth23gt13 = PDstandardNthfdOrder223(>13[index]);\n PDupwindNthSymm1gt13 = PDupwindNthSymmfdOrder21(>13[index]);\n PDupwindNthSymm2gt13 = PDupwindNthSymmfdOrder22(>13[index]);\n PDupwindNthSymm3gt13 = PDupwindNthSymmfdOrder23(>13[index]);\n PDupwindNthAnti1gt13 = PDupwindNthAntifdOrder21(>13[index]);\n PDupwindNthAnti2gt13 = PDupwindNthAntifdOrder22(>13[index]);\n PDupwindNthAnti3gt13 = PDupwindNthAntifdOrder23(>13[index]);\n PDdissipationNth1gt13 = PDdissipationNthfdOrder21(>13[index]);\n PDdissipationNth2gt13 = PDdissipationNthfdOrder22(>13[index]);\n PDdissipationNth3gt13 = PDdissipationNthfdOrder23(>13[index]);\n PDstandardNth1gt22 = PDstandardNthfdOrder21(>22[index]);\n PDstandardNth2gt22 = PDstandardNthfdOrder22(>22[index]);\n PDstandardNth3gt22 = PDstandardNthfdOrder23(>22[index]);\n PDstandardNth11gt22 = PDstandardNthfdOrder211(>22[index]);\n PDstandardNth22gt22 = PDstandardNthfdOrder222(>22[index]);\n PDstandardNth33gt22 = PDstandardNthfdOrder233(>22[index]);\n PDstandardNth12gt22 = PDstandardNthfdOrder212(>22[index]);\n PDstandardNth13gt22 = PDstandardNthfdOrder213(>22[index]);\n PDstandardNth23gt22 = PDstandardNthfdOrder223(>22[index]);\n PDupwindNthSymm1gt22 = PDupwindNthSymmfdOrder21(>22[index]);\n PDupwindNthSymm2gt22 = PDupwindNthSymmfdOrder22(>22[index]);\n PDupwindNthSymm3gt22 = PDupwindNthSymmfdOrder23(>22[index]);\n PDupwindNthAnti1gt22 = PDupwindNthAntifdOrder21(>22[index]);\n PDupwindNthAnti2gt22 = PDupwindNthAntifdOrder22(>22[index]);\n PDupwindNthAnti3gt22 = PDupwindNthAntifdOrder23(>22[index]);\n PDdissipationNth1gt22 = PDdissipationNthfdOrder21(>22[index]);\n PDdissipationNth2gt22 = PDdissipationNthfdOrder22(>22[index]);\n PDdissipationNth3gt22 = PDdissipationNthfdOrder23(>22[index]);\n PDstandardNth1gt23 = PDstandardNthfdOrder21(>23[index]);\n PDstandardNth2gt23 = PDstandardNthfdOrder22(>23[index]);\n PDstandardNth3gt23 = PDstandardNthfdOrder23(>23[index]);\n PDstandardNth11gt23 = PDstandardNthfdOrder211(>23[index]);\n PDstandardNth22gt23 = PDstandardNthfdOrder222(>23[index]);\n PDstandardNth33gt23 = PDstandardNthfdOrder233(>23[index]);\n PDstandardNth12gt23 = PDstandardNthfdOrder212(>23[index]);\n PDstandardNth13gt23 = PDstandardNthfdOrder213(>23[index]);\n PDstandardNth23gt23 = PDstandardNthfdOrder223(>23[index]);\n PDupwindNthSymm1gt23 = PDupwindNthSymmfdOrder21(>23[index]);\n PDupwindNthSymm2gt23 = PDupwindNthSymmfdOrder22(>23[index]);\n PDupwindNthSymm3gt23 = PDupwindNthSymmfdOrder23(>23[index]);\n PDupwindNthAnti1gt23 = PDupwindNthAntifdOrder21(>23[index]);\n PDupwindNthAnti2gt23 = PDupwindNthAntifdOrder22(>23[index]);\n PDupwindNthAnti3gt23 = PDupwindNthAntifdOrder23(>23[index]);\n PDdissipationNth1gt23 = PDdissipationNthfdOrder21(>23[index]);\n PDdissipationNth2gt23 = PDdissipationNthfdOrder22(>23[index]);\n PDdissipationNth3gt23 = PDdissipationNthfdOrder23(>23[index]);\n PDstandardNth1gt33 = PDstandardNthfdOrder21(>33[index]);\n PDstandardNth2gt33 = PDstandardNthfdOrder22(>33[index]);\n PDstandardNth3gt33 = PDstandardNthfdOrder23(>33[index]);\n PDstandardNth11gt33 = PDstandardNthfdOrder211(>33[index]);\n PDstandardNth22gt33 = PDstandardNthfdOrder222(>33[index]);\n PDstandardNth33gt33 = PDstandardNthfdOrder233(>33[index]);\n PDstandardNth12gt33 = PDstandardNthfdOrder212(>33[index]);\n PDstandardNth13gt33 = PDstandardNthfdOrder213(>33[index]);\n PDstandardNth23gt33 = PDstandardNthfdOrder223(>33[index]);\n PDupwindNthSymm1gt33 = PDupwindNthSymmfdOrder21(>33[index]);\n PDupwindNthSymm2gt33 = PDupwindNthSymmfdOrder22(>33[index]);\n PDupwindNthSymm3gt33 = PDupwindNthSymmfdOrder23(>33[index]);\n PDupwindNthAnti1gt33 = PDupwindNthAntifdOrder21(>33[index]);\n PDupwindNthAnti2gt33 = PDupwindNthAntifdOrder22(>33[index]);\n PDupwindNthAnti3gt33 = PDupwindNthAntifdOrder23(>33[index]);\n PDdissipationNth1gt33 = PDdissipationNthfdOrder21(>33[index]);\n PDdissipationNth2gt33 = PDdissipationNthfdOrder22(>33[index]);\n PDdissipationNth3gt33 = PDdissipationNthfdOrder23(>33[index]);\n PDstandardNth1phi = PDstandardNthfdOrder21(&phi[index]);\n PDstandardNth2phi = PDstandardNthfdOrder22(&phi[index]);\n PDstandardNth3phi = PDstandardNthfdOrder23(&phi[index]);\n PDstandardNth11phi = PDstandardNthfdOrder211(&phi[index]);\n PDstandardNth22phi = PDstandardNthfdOrder222(&phi[index]);\n PDstandardNth33phi = PDstandardNthfdOrder233(&phi[index]);\n PDstandardNth12phi = PDstandardNthfdOrder212(&phi[index]);\n PDstandardNth13phi = PDstandardNthfdOrder213(&phi[index]);\n PDstandardNth23phi = PDstandardNthfdOrder223(&phi[index]);\n PDupwindNthSymm1phi = PDupwindNthSymmfdOrder21(&phi[index]);\n PDupwindNthSymm2phi = PDupwindNthSymmfdOrder22(&phi[index]);\n PDupwindNthSymm3phi = PDupwindNthSymmfdOrder23(&phi[index]);\n PDupwindNthAnti1phi = PDupwindNthAntifdOrder21(&phi[index]);\n PDupwindNthAnti2phi = PDupwindNthAntifdOrder22(&phi[index]);\n PDupwindNthAnti3phi = PDupwindNthAntifdOrder23(&phi[index]);\n PDdissipationNth1phi = PDdissipationNthfdOrder21(&phi[index]);\n PDdissipationNth2phi = PDdissipationNthfdOrder22(&phi[index]);\n PDdissipationNth3phi = PDdissipationNthfdOrder23(&phi[index]);\n PDupwindNthSymm1trK = PDupwindNthSymmfdOrder21(&trK[index]);\n PDupwindNthSymm2trK = PDupwindNthSymmfdOrder22(&trK[index]);\n PDupwindNthSymm3trK = PDupwindNthSymmfdOrder23(&trK[index]);\n PDupwindNthAnti1trK = PDupwindNthAntifdOrder21(&trK[index]);\n PDupwindNthAnti2trK = PDupwindNthAntifdOrder22(&trK[index]);\n PDupwindNthAnti3trK = PDupwindNthAntifdOrder23(&trK[index]);\n PDstandardNth1Xt1 = PDstandardNthfdOrder21(&Xt1[index]);\n PDstandardNth2Xt1 = PDstandardNthfdOrder22(&Xt1[index]);\n PDstandardNth3Xt1 = PDstandardNthfdOrder23(&Xt1[index]);\n PDstandardNth1Xt2 = PDstandardNthfdOrder21(&Xt2[index]);\n PDstandardNth2Xt2 = PDstandardNthfdOrder22(&Xt2[index]);\n PDstandardNth3Xt2 = PDstandardNthfdOrder23(&Xt2[index]);\n PDstandardNth1Xt3 = PDstandardNthfdOrder21(&Xt3[index]);\n PDstandardNth2Xt3 = PDstandardNthfdOrder22(&Xt3[index]);\n PDstandardNth3Xt3 = PDstandardNthfdOrder23(&Xt3[index]);\n break;\n }\n \n case 4:\n {\n PDupwindNthSymm1A = PDupwindNthSymmfdOrder41(&A[index]);\n PDupwindNthSymm2A = PDupwindNthSymmfdOrder42(&A[index]);\n PDupwindNthSymm3A = PDupwindNthSymmfdOrder43(&A[index]);\n PDupwindNthAnti1A = PDupwindNthAntifdOrder41(&A[index]);\n PDupwindNthAnti2A = PDupwindNthAntifdOrder42(&A[index]);\n PDupwindNthAnti3A = PDupwindNthAntifdOrder43(&A[index]);\n PDdissipationNth1A = PDdissipationNthfdOrder41(&A[index]);\n PDdissipationNth2A = PDdissipationNthfdOrder42(&A[index]);\n PDdissipationNth3A = PDdissipationNthfdOrder43(&A[index]);\n PDstandardNth1alpha = PDstandardNthfdOrder41(&alpha[index]);\n PDstandardNth2alpha = PDstandardNthfdOrder42(&alpha[index]);\n PDstandardNth3alpha = PDstandardNthfdOrder43(&alpha[index]);\n PDstandardNth11alpha = PDstandardNthfdOrder411(&alpha[index]);\n PDstandardNth22alpha = PDstandardNthfdOrder422(&alpha[index]);\n PDstandardNth33alpha = PDstandardNthfdOrder433(&alpha[index]);\n PDstandardNth12alpha = PDstandardNthfdOrder412(&alpha[index]);\n PDstandardNth13alpha = PDstandardNthfdOrder413(&alpha[index]);\n PDstandardNth23alpha = PDstandardNthfdOrder423(&alpha[index]);\n PDupwindNthSymm1alpha = PDupwindNthSymmfdOrder41(&alpha[index]);\n PDupwindNthSymm2alpha = PDupwindNthSymmfdOrder42(&alpha[index]);\n PDupwindNthSymm3alpha = PDupwindNthSymmfdOrder43(&alpha[index]);\n PDupwindNthAnti1alpha = PDupwindNthAntifdOrder41(&alpha[index]);\n PDupwindNthAnti2alpha = PDupwindNthAntifdOrder42(&alpha[index]);\n PDupwindNthAnti3alpha = PDupwindNthAntifdOrder43(&alpha[index]);\n PDdissipationNth1alpha = PDdissipationNthfdOrder41(&alpha[index]);\n PDdissipationNth2alpha = PDdissipationNthfdOrder42(&alpha[index]);\n PDdissipationNth3alpha = PDdissipationNthfdOrder43(&alpha[index]);\n PDstandardNth1beta1 = PDstandardNthfdOrder41(&beta1[index]);\n PDstandardNth2beta1 = PDstandardNthfdOrder42(&beta1[index]);\n PDstandardNth3beta1 = PDstandardNthfdOrder43(&beta1[index]);\n PDstandardNth1beta2 = PDstandardNthfdOrder41(&beta2[index]);\n PDstandardNth2beta2 = PDstandardNthfdOrder42(&beta2[index]);\n PDstandardNth3beta2 = PDstandardNthfdOrder43(&beta2[index]);\n PDstandardNth1beta3 = PDstandardNthfdOrder41(&beta3[index]);\n PDstandardNth2beta3 = PDstandardNthfdOrder42(&beta3[index]);\n PDstandardNth3beta3 = PDstandardNthfdOrder43(&beta3[index]);\n PDstandardNth1gt11 = PDstandardNthfdOrder41(>11[index]);\n PDstandardNth2gt11 = PDstandardNthfdOrder42(>11[index]);\n PDstandardNth3gt11 = PDstandardNthfdOrder43(>11[index]);\n PDstandardNth11gt11 = PDstandardNthfdOrder411(>11[index]);\n PDstandardNth22gt11 = PDstandardNthfdOrder422(>11[index]);\n PDstandardNth33gt11 = PDstandardNthfdOrder433(>11[index]);\n PDstandardNth12gt11 = PDstandardNthfdOrder412(>11[index]);\n PDstandardNth13gt11 = PDstandardNthfdOrder413(>11[index]);\n PDstandardNth23gt11 = PDstandardNthfdOrder423(>11[index]);\n PDupwindNthSymm1gt11 = PDupwindNthSymmfdOrder41(>11[index]);\n PDupwindNthSymm2gt11 = PDupwindNthSymmfdOrder42(>11[index]);\n PDupwindNthSymm3gt11 = PDupwindNthSymmfdOrder43(>11[index]);\n PDupwindNthAnti1gt11 = PDupwindNthAntifdOrder41(>11[index]);\n PDupwindNthAnti2gt11 = PDupwindNthAntifdOrder42(>11[index]);\n PDupwindNthAnti3gt11 = PDupwindNthAntifdOrder43(>11[index]);\n PDdissipationNth1gt11 = PDdissipationNthfdOrder41(>11[index]);\n PDdissipationNth2gt11 = PDdissipationNthfdOrder42(>11[index]);\n PDdissipationNth3gt11 = PDdissipationNthfdOrder43(>11[index]);\n PDstandardNth1gt12 = PDstandardNthfdOrder41(>12[index]);\n PDstandardNth2gt12 = PDstandardNthfdOrder42(>12[index]);\n PDstandardNth3gt12 = PDstandardNthfdOrder43(>12[index]);\n PDstandardNth11gt12 = PDstandardNthfdOrder411(>12[index]);\n PDstandardNth22gt12 = PDstandardNthfdOrder422(>12[index]);\n PDstandardNth33gt12 = PDstandardNthfdOrder433(>12[index]);\n PDstandardNth12gt12 = PDstandardNthfdOrder412(>12[index]);\n PDstandardNth13gt12 = PDstandardNthfdOrder413(>12[index]);\n PDstandardNth23gt12 = PDstandardNthfdOrder423(>12[index]);\n PDupwindNthSymm1gt12 = PDupwindNthSymmfdOrder41(>12[index]);\n PDupwindNthSymm2gt12 = PDupwindNthSymmfdOrder42(>12[index]);\n PDupwindNthSymm3gt12 = PDupwindNthSymmfdOrder43(>12[index]);\n PDupwindNthAnti1gt12 = PDupwindNthAntifdOrder41(>12[index]);\n PDupwindNthAnti2gt12 = PDupwindNthAntifdOrder42(>12[index]);\n PDupwindNthAnti3gt12 = PDupwindNthAntifdOrder43(>12[index]);\n PDdissipationNth1gt12 = PDdissipationNthfdOrder41(>12[index]);\n PDdissipationNth2gt12 = PDdissipationNthfdOrder42(>12[index]);\n PDdissipationNth3gt12 = PDdissipationNthfdOrder43(>12[index]);\n PDstandardNth1gt13 = PDstandardNthfdOrder41(>13[index]);\n PDstandardNth2gt13 = PDstandardNthfdOrder42(>13[index]);\n PDstandardNth3gt13 = PDstandardNthfdOrder43(>13[index]);\n PDstandardNth11gt13 = PDstandardNthfdOrder411(>13[index]);\n PDstandardNth22gt13 = PDstandardNthfdOrder422(>13[index]);\n PDstandardNth33gt13 = PDstandardNthfdOrder433(>13[index]);\n PDstandardNth12gt13 = PDstandardNthfdOrder412(>13[index]);\n PDstandardNth13gt13 = PDstandardNthfdOrder413(>13[index]);\n PDstandardNth23gt13 = PDstandardNthfdOrder423(>13[index]);\n PDupwindNthSymm1gt13 = PDupwindNthSymmfdOrder41(>13[index]);\n PDupwindNthSymm2gt13 = PDupwindNthSymmfdOrder42(>13[index]);\n PDupwindNthSymm3gt13 = PDupwindNthSymmfdOrder43(>13[index]);\n PDupwindNthAnti1gt13 = PDupwindNthAntifdOrder41(>13[index]);\n PDupwindNthAnti2gt13 = PDupwindNthAntifdOrder42(>13[index]);\n PDupwindNthAnti3gt13 = PDupwindNthAntifdOrder43(>13[index]);\n PDdissipationNth1gt13 = PDdissipationNthfdOrder41(>13[index]);\n PDdissipationNth2gt13 = PDdissipationNthfdOrder42(>13[index]);\n PDdissipationNth3gt13 = PDdissipationNthfdOrder43(>13[index]);\n PDstandardNth1gt22 = PDstandardNthfdOrder41(>22[index]);\n PDstandardNth2gt22 = PDstandardNthfdOrder42(>22[index]);\n PDstandardNth3gt22 = PDstandardNthfdOrder43(>22[index]);\n PDstandardNth11gt22 = PDstandardNthfdOrder411(>22[index]);\n PDstandardNth22gt22 = PDstandardNthfdOrder422(>22[index]);\n PDstandardNth33gt22 = PDstandardNthfdOrder433(>22[index]);\n PDstandardNth12gt22 = PDstandardNthfdOrder412(>22[index]);\n PDstandardNth13gt22 = PDstandardNthfdOrder413(>22[index]);\n PDstandardNth23gt22 = PDstandardNthfdOrder423(>22[index]);\n PDupwindNthSymm1gt22 = PDupwindNthSymmfdOrder41(>22[index]);\n PDupwindNthSymm2gt22 = PDupwindNthSymmfdOrder42(>22[index]);\n PDupwindNthSymm3gt22 = PDupwindNthSymmfdOrder43(>22[index]);\n PDupwindNthAnti1gt22 = PDupwindNthAntifdOrder41(>22[index]);\n PDupwindNthAnti2gt22 = PDupwindNthAntifdOrder42(>22[index]);\n PDupwindNthAnti3gt22 = PDupwindNthAntifdOrder43(>22[index]);\n PDdissipationNth1gt22 = PDdissipationNthfdOrder41(>22[index]);\n PDdissipationNth2gt22 = PDdissipationNthfdOrder42(>22[index]);\n PDdissipationNth3gt22 = PDdissipationNthfdOrder43(>22[index]);\n PDstandardNth1gt23 = PDstandardNthfdOrder41(>23[index]);\n PDstandardNth2gt23 = PDstandardNthfdOrder42(>23[index]);\n PDstandardNth3gt23 = PDstandardNthfdOrder43(>23[index]);\n PDstandardNth11gt23 = PDstandardNthfdOrder411(>23[index]);\n PDstandardNth22gt23 = PDstandardNthfdOrder422(>23[index]);\n PDstandardNth33gt23 = PDstandardNthfdOrder433(>23[index]);\n PDstandardNth12gt23 = PDstandardNthfdOrder412(>23[index]);\n PDstandardNth13gt23 = PDstandardNthfdOrder413(>23[index]);\n PDstandardNth23gt23 = PDstandardNthfdOrder423(>23[index]);\n PDupwindNthSymm1gt23 = PDupwindNthSymmfdOrder41(>23[index]);\n PDupwindNthSymm2gt23 = PDupwindNthSymmfdOrder42(>23[index]);\n PDupwindNthSymm3gt23 = PDupwindNthSymmfdOrder43(>23[index]);\n PDupwindNthAnti1gt23 = PDupwindNthAntifdOrder41(>23[index]);\n PDupwindNthAnti2gt23 = PDupwindNthAntifdOrder42(>23[index]);\n PDupwindNthAnti3gt23 = PDupwindNthAntifdOrder43(>23[index]);\n PDdissipationNth1gt23 = PDdissipationNthfdOrder41(>23[index]);\n PDdissipationNth2gt23 = PDdissipationNthfdOrder42(>23[index]);\n PDdissipationNth3gt23 = PDdissipationNthfdOrder43(>23[index]);\n PDstandardNth1gt33 = PDstandardNthfdOrder41(>33[index]);\n PDstandardNth2gt33 = PDstandardNthfdOrder42(>33[index]);\n PDstandardNth3gt33 = PDstandardNthfdOrder43(>33[index]);\n PDstandardNth11gt33 = PDstandardNthfdOrder411(>33[index]);\n PDstandardNth22gt33 = PDstandardNthfdOrder422(>33[index]);\n PDstandardNth33gt33 = PDstandardNthfdOrder433(>33[index]);\n PDstandardNth12gt33 = PDstandardNthfdOrder412(>33[index]);\n PDstandardNth13gt33 = PDstandardNthfdOrder413(>33[index]);\n PDstandardNth23gt33 = PDstandardNthfdOrder423(>33[index]);\n PDupwindNthSymm1gt33 = PDupwindNthSymmfdOrder41(>33[index]);\n PDupwindNthSymm2gt33 = PDupwindNthSymmfdOrder42(>33[index]);\n PDupwindNthSymm3gt33 = PDupwindNthSymmfdOrder43(>33[index]);\n PDupwindNthAnti1gt33 = PDupwindNthAntifdOrder41(>33[index]);\n PDupwindNthAnti2gt33 = PDupwindNthAntifdOrder42(>33[index]);\n PDupwindNthAnti3gt33 = PDupwindNthAntifdOrder43(>33[index]);\n PDdissipationNth1gt33 = PDdissipationNthfdOrder41(>33[index]);\n PDdissipationNth2gt33 = PDdissipationNthfdOrder42(>33[index]);\n PDdissipationNth3gt33 = PDdissipationNthfdOrder43(>33[index]);\n PDstandardNth1phi = PDstandardNthfdOrder41(&phi[index]);\n PDstandardNth2phi = PDstandardNthfdOrder42(&phi[index]);\n PDstandardNth3phi = PDstandardNthfdOrder43(&phi[index]);\n PDstandardNth11phi = PDstandardNthfdOrder411(&phi[index]);\n PDstandardNth22phi = PDstandardNthfdOrder422(&phi[index]);\n PDstandardNth33phi = PDstandardNthfdOrder433(&phi[index]);\n PDstandardNth12phi = PDstandardNthfdOrder412(&phi[index]);\n PDstandardNth13phi = PDstandardNthfdOrder413(&phi[index]);\n PDstandardNth23phi = PDstandardNthfdOrder423(&phi[index]);\n PDupwindNthSymm1phi = PDupwindNthSymmfdOrder41(&phi[index]);\n PDupwindNthSymm2phi = PDupwindNthSymmfdOrder42(&phi[index]);\n PDupwindNthSymm3phi = PDupwindNthSymmfdOrder43(&phi[index]);\n PDupwindNthAnti1phi = PDupwindNthAntifdOrder41(&phi[index]);\n PDupwindNthAnti2phi = PDupwindNthAntifdOrder42(&phi[index]);\n PDupwindNthAnti3phi = PDupwindNthAntifdOrder43(&phi[index]);\n PDdissipationNth1phi = PDdissipationNthfdOrder41(&phi[index]);\n PDdissipationNth2phi = PDdissipationNthfdOrder42(&phi[index]);\n PDdissipationNth3phi = PDdissipationNthfdOrder43(&phi[index]);\n PDupwindNthSymm1trK = PDupwindNthSymmfdOrder41(&trK[index]);\n PDupwindNthSymm2trK = PDupwindNthSymmfdOrder42(&trK[index]);\n PDupwindNthSymm3trK = PDupwindNthSymmfdOrder43(&trK[index]);\n PDupwindNthAnti1trK = PDupwindNthAntifdOrder41(&trK[index]);\n PDupwindNthAnti2trK = PDupwindNthAntifdOrder42(&trK[index]);\n PDupwindNthAnti3trK = PDupwindNthAntifdOrder43(&trK[index]);\n PDstandardNth1Xt1 = PDstandardNthfdOrder41(&Xt1[index]);\n PDstandardNth2Xt1 = PDstandardNthfdOrder42(&Xt1[index]);\n PDstandardNth3Xt1 = PDstandardNthfdOrder43(&Xt1[index]);\n PDstandardNth1Xt2 = PDstandardNthfdOrder41(&Xt2[index]);\n PDstandardNth2Xt2 = PDstandardNthfdOrder42(&Xt2[index]);\n PDstandardNth3Xt2 = PDstandardNthfdOrder43(&Xt2[index]);\n PDstandardNth1Xt3 = PDstandardNthfdOrder41(&Xt3[index]);\n PDstandardNth2Xt3 = PDstandardNthfdOrder42(&Xt3[index]);\n PDstandardNth3Xt3 = PDstandardNthfdOrder43(&Xt3[index]);\n break;\n }\n \n case 6:\n {\n PDupwindNthSymm1A = PDupwindNthSymmfdOrder61(&A[index]);\n PDupwindNthSymm2A = PDupwindNthSymmfdOrder62(&A[index]);\n PDupwindNthSymm3A = PDupwindNthSymmfdOrder63(&A[index]);\n PDupwindNthAnti1A = PDupwindNthAntifdOrder61(&A[index]);\n PDupwindNthAnti2A = PDupwindNthAntifdOrder62(&A[index]);\n PDupwindNthAnti3A = PDupwindNthAntifdOrder63(&A[index]);\n PDdissipationNth1A = PDdissipationNthfdOrder61(&A[index]);\n PDdissipationNth2A = PDdissipationNthfdOrder62(&A[index]);\n PDdissipationNth3A = PDdissipationNthfdOrder63(&A[index]);\n PDstandardNth1alpha = PDstandardNthfdOrder61(&alpha[index]);\n PDstandardNth2alpha = PDstandardNthfdOrder62(&alpha[index]);\n PDstandardNth3alpha = PDstandardNthfdOrder63(&alpha[index]);\n PDstandardNth11alpha = PDstandardNthfdOrder611(&alpha[index]);\n PDstandardNth22alpha = PDstandardNthfdOrder622(&alpha[index]);\n PDstandardNth33alpha = PDstandardNthfdOrder633(&alpha[index]);\n PDstandardNth12alpha = PDstandardNthfdOrder612(&alpha[index]);\n PDstandardNth13alpha = PDstandardNthfdOrder613(&alpha[index]);\n PDstandardNth23alpha = PDstandardNthfdOrder623(&alpha[index]);\n PDupwindNthSymm1alpha = PDupwindNthSymmfdOrder61(&alpha[index]);\n PDupwindNthSymm2alpha = PDupwindNthSymmfdOrder62(&alpha[index]);\n PDupwindNthSymm3alpha = PDupwindNthSymmfdOrder63(&alpha[index]);\n PDupwindNthAnti1alpha = PDupwindNthAntifdOrder61(&alpha[index]);\n PDupwindNthAnti2alpha = PDupwindNthAntifdOrder62(&alpha[index]);\n PDupwindNthAnti3alpha = PDupwindNthAntifdOrder63(&alpha[index]);\n PDdissipationNth1alpha = PDdissipationNthfdOrder61(&alpha[index]);\n PDdissipationNth2alpha = PDdissipationNthfdOrder62(&alpha[index]);\n PDdissipationNth3alpha = PDdissipationNthfdOrder63(&alpha[index]);\n PDstandardNth1beta1 = PDstandardNthfdOrder61(&beta1[index]);\n PDstandardNth2beta1 = PDstandardNthfdOrder62(&beta1[index]);\n PDstandardNth3beta1 = PDstandardNthfdOrder63(&beta1[index]);\n PDstandardNth1beta2 = PDstandardNthfdOrder61(&beta2[index]);\n PDstandardNth2beta2 = PDstandardNthfdOrder62(&beta2[index]);\n PDstandardNth3beta2 = PDstandardNthfdOrder63(&beta2[index]);\n PDstandardNth1beta3 = PDstandardNthfdOrder61(&beta3[index]);\n PDstandardNth2beta3 = PDstandardNthfdOrder62(&beta3[index]);\n PDstandardNth3beta3 = PDstandardNthfdOrder63(&beta3[index]);\n PDstandardNth1gt11 = PDstandardNthfdOrder61(>11[index]);\n PDstandardNth2gt11 = PDstandardNthfdOrder62(>11[index]);\n PDstandardNth3gt11 = PDstandardNthfdOrder63(>11[index]);\n PDstandardNth11gt11 = PDstandardNthfdOrder611(>11[index]);\n PDstandardNth22gt11 = PDstandardNthfdOrder622(>11[index]);\n PDstandardNth33gt11 = PDstandardNthfdOrder633(>11[index]);\n PDstandardNth12gt11 = PDstandardNthfdOrder612(>11[index]);\n PDstandardNth13gt11 = PDstandardNthfdOrder613(>11[index]);\n PDstandardNth23gt11 = PDstandardNthfdOrder623(>11[index]);\n PDupwindNthSymm1gt11 = PDupwindNthSymmfdOrder61(>11[index]);\n PDupwindNthSymm2gt11 = PDupwindNthSymmfdOrder62(>11[index]);\n PDupwindNthSymm3gt11 = PDupwindNthSymmfdOrder63(>11[index]);\n PDupwindNthAnti1gt11 = PDupwindNthAntifdOrder61(>11[index]);\n PDupwindNthAnti2gt11 = PDupwindNthAntifdOrder62(>11[index]);\n PDupwindNthAnti3gt11 = PDupwindNthAntifdOrder63(>11[index]);\n PDdissipationNth1gt11 = PDdissipationNthfdOrder61(>11[index]);\n PDdissipationNth2gt11 = PDdissipationNthfdOrder62(>11[index]);\n PDdissipationNth3gt11 = PDdissipationNthfdOrder63(>11[index]);\n PDstandardNth1gt12 = PDstandardNthfdOrder61(>12[index]);\n PDstandardNth2gt12 = PDstandardNthfdOrder62(>12[index]);\n PDstandardNth3gt12 = PDstandardNthfdOrder63(>12[index]);\n PDstandardNth11gt12 = PDstandardNthfdOrder611(>12[index]);\n PDstandardNth22gt12 = PDstandardNthfdOrder622(>12[index]);\n PDstandardNth33gt12 = PDstandardNthfdOrder633(>12[index]);\n PDstandardNth12gt12 = PDstandardNthfdOrder612(>12[index]);\n PDstandardNth13gt12 = PDstandardNthfdOrder613(>12[index]);\n PDstandardNth23gt12 = PDstandardNthfdOrder623(>12[index]);\n PDupwindNthSymm1gt12 = PDupwindNthSymmfdOrder61(>12[index]);\n PDupwindNthSymm2gt12 = PDupwindNthSymmfdOrder62(>12[index]);\n PDupwindNthSymm3gt12 = PDupwindNthSymmfdOrder63(>12[index]);\n PDupwindNthAnti1gt12 = PDupwindNthAntifdOrder61(>12[index]);\n PDupwindNthAnti2gt12 = PDupwindNthAntifdOrder62(>12[index]);\n PDupwindNthAnti3gt12 = PDupwindNthAntifdOrder63(>12[index]);\n PDdissipationNth1gt12 = PDdissipationNthfdOrder61(>12[index]);\n PDdissipationNth2gt12 = PDdissipationNthfdOrder62(>12[index]);\n PDdissipationNth3gt12 = PDdissipationNthfdOrder63(>12[index]);\n PDstandardNth1gt13 = PDstandardNthfdOrder61(>13[index]);\n PDstandardNth2gt13 = PDstandardNthfdOrder62(>13[index]);\n PDstandardNth3gt13 = PDstandardNthfdOrder63(>13[index]);\n PDstandardNth11gt13 = PDstandardNthfdOrder611(>13[index]);\n PDstandardNth22gt13 = PDstandardNthfdOrder622(>13[index]);\n PDstandardNth33gt13 = PDstandardNthfdOrder633(>13[index]);\n PDstandardNth12gt13 = PDstandardNthfdOrder612(>13[index]);\n PDstandardNth13gt13 = PDstandardNthfdOrder613(>13[index]);\n PDstandardNth23gt13 = PDstandardNthfdOrder623(>13[index]);\n PDupwindNthSymm1gt13 = PDupwindNthSymmfdOrder61(>13[index]);\n PDupwindNthSymm2gt13 = PDupwindNthSymmfdOrder62(>13[index]);\n PDupwindNthSymm3gt13 = PDupwindNthSymmfdOrder63(>13[index]);\n PDupwindNthAnti1gt13 = PDupwindNthAntifdOrder61(>13[index]);\n PDupwindNthAnti2gt13 = PDupwindNthAntifdOrder62(>13[index]);\n PDupwindNthAnti3gt13 = PDupwindNthAntifdOrder63(>13[index]);\n PDdissipationNth1gt13 = PDdissipationNthfdOrder61(>13[index]);\n PDdissipationNth2gt13 = PDdissipationNthfdOrder62(>13[index]);\n PDdissipationNth3gt13 = PDdissipationNthfdOrder63(>13[index]);\n PDstandardNth1gt22 = PDstandardNthfdOrder61(>22[index]);\n PDstandardNth2gt22 = PDstandardNthfdOrder62(>22[index]);\n PDstandardNth3gt22 = PDstandardNthfdOrder63(>22[index]);\n PDstandardNth11gt22 = PDstandardNthfdOrder611(>22[index]);\n PDstandardNth22gt22 = PDstandardNthfdOrder622(>22[index]);\n PDstandardNth33gt22 = PDstandardNthfdOrder633(>22[index]);\n PDstandardNth12gt22 = PDstandardNthfdOrder612(>22[index]);\n PDstandardNth13gt22 = PDstandardNthfdOrder613(>22[index]);\n PDstandardNth23gt22 = PDstandardNthfdOrder623(>22[index]);\n PDupwindNthSymm1gt22 = PDupwindNthSymmfdOrder61(>22[index]);\n PDupwindNthSymm2gt22 = PDupwindNthSymmfdOrder62(>22[index]);\n PDupwindNthSymm3gt22 = PDupwindNthSymmfdOrder63(>22[index]);\n PDupwindNthAnti1gt22 = PDupwindNthAntifdOrder61(>22[index]);\n PDupwindNthAnti2gt22 = PDupwindNthAntifdOrder62(>22[index]);\n PDupwindNthAnti3gt22 = PDupwindNthAntifdOrder63(>22[index]);\n PDdissipationNth1gt22 = PDdissipationNthfdOrder61(>22[index]);\n PDdissipationNth2gt22 = PDdissipationNthfdOrder62(>22[index]);\n PDdissipationNth3gt22 = PDdissipationNthfdOrder63(>22[index]);\n PDstandardNth1gt23 = PDstandardNthfdOrder61(>23[index]);\n PDstandardNth2gt23 = PDstandardNthfdOrder62(>23[index]);\n PDstandardNth3gt23 = PDstandardNthfdOrder63(>23[index]);\n PDstandardNth11gt23 = PDstandardNthfdOrder611(>23[index]);\n PDstandardNth22gt23 = PDstandardNthfdOrder622(>23[index]);\n PDstandardNth33gt23 = PDstandardNthfdOrder633(>23[index]);\n PDstandardNth12gt23 = PDstandardNthfdOrder612(>23[index]);\n PDstandardNth13gt23 = PDstandardNthfdOrder613(>23[index]);\n PDstandardNth23gt23 = PDstandardNthfdOrder623(>23[index]);\n PDupwindNthSymm1gt23 = PDupwindNthSymmfdOrder61(>23[index]);\n PDupwindNthSymm2gt23 = PDupwindNthSymmfdOrder62(>23[index]);\n PDupwindNthSymm3gt23 = PDupwindNthSymmfdOrder63(>23[index]);\n PDupwindNthAnti1gt23 = PDupwindNthAntifdOrder61(>23[index]);\n PDupwindNthAnti2gt23 = PDupwindNthAntifdOrder62(>23[index]);\n PDupwindNthAnti3gt23 = PDupwindNthAntifdOrder63(>23[index]);\n PDdissipationNth1gt23 = PDdissipationNthfdOrder61(>23[index]);\n PDdissipationNth2gt23 = PDdissipationNthfdOrder62(>23[index]);\n PDdissipationNth3gt23 = PDdissipationNthfdOrder63(>23[index]);\n PDstandardNth1gt33 = PDstandardNthfdOrder61(>33[index]);\n PDstandardNth2gt33 = PDstandardNthfdOrder62(>33[index]);\n PDstandardNth3gt33 = PDstandardNthfdOrder63(>33[index]);\n PDstandardNth11gt33 = PDstandardNthfdOrder611(>33[index]);\n PDstandardNth22gt33 = PDstandardNthfdOrder622(>33[index]);\n PDstandardNth33gt33 = PDstandardNthfdOrder633(>33[index]);\n PDstandardNth12gt33 = PDstandardNthfdOrder612(>33[index]);\n PDstandardNth13gt33 = PDstandardNthfdOrder613(>33[index]);\n PDstandardNth23gt33 = PDstandardNthfdOrder623(>33[index]);\n PDupwindNthSymm1gt33 = PDupwindNthSymmfdOrder61(>33[index]);\n PDupwindNthSymm2gt33 = PDupwindNthSymmfdOrder62(>33[index]);\n PDupwindNthSymm3gt33 = PDupwindNthSymmfdOrder63(>33[index]);\n PDupwindNthAnti1gt33 = PDupwindNthAntifdOrder61(>33[index]);\n PDupwindNthAnti2gt33 = PDupwindNthAntifdOrder62(>33[index]);\n PDupwindNthAnti3gt33 = PDupwindNthAntifdOrder63(>33[index]);\n PDdissipationNth1gt33 = PDdissipationNthfdOrder61(>33[index]);\n PDdissipationNth2gt33 = PDdissipationNthfdOrder62(>33[index]);\n PDdissipationNth3gt33 = PDdissipationNthfdOrder63(>33[index]);\n PDstandardNth1phi = PDstandardNthfdOrder61(&phi[index]);\n PDstandardNth2phi = PDstandardNthfdOrder62(&phi[index]);\n PDstandardNth3phi = PDstandardNthfdOrder63(&phi[index]);\n PDstandardNth11phi = PDstandardNthfdOrder611(&phi[index]);\n PDstandardNth22phi = PDstandardNthfdOrder622(&phi[index]);\n PDstandardNth33phi = PDstandardNthfdOrder633(&phi[index]);\n PDstandardNth12phi = PDstandardNthfdOrder612(&phi[index]);\n PDstandardNth13phi = PDstandardNthfdOrder613(&phi[index]);\n PDstandardNth23phi = PDstandardNthfdOrder623(&phi[index]);\n PDupwindNthSymm1phi = PDupwindNthSymmfdOrder61(&phi[index]);\n PDupwindNthSymm2phi = PDupwindNthSymmfdOrder62(&phi[index]);\n PDupwindNthSymm3phi = PDupwindNthSymmfdOrder63(&phi[index]);\n PDupwindNthAnti1phi = PDupwindNthAntifdOrder61(&phi[index]);\n PDupwindNthAnti2phi = PDupwindNthAntifdOrder62(&phi[index]);\n PDupwindNthAnti3phi = PDupwindNthAntifdOrder63(&phi[index]);\n PDdissipationNth1phi = PDdissipationNthfdOrder61(&phi[index]);\n PDdissipationNth2phi = PDdissipationNthfdOrder62(&phi[index]);\n PDdissipationNth3phi = PDdissipationNthfdOrder63(&phi[index]);\n PDupwindNthSymm1trK = PDupwindNthSymmfdOrder61(&trK[index]);\n PDupwindNthSymm2trK = PDupwindNthSymmfdOrder62(&trK[index]);\n PDupwindNthSymm3trK = PDupwindNthSymmfdOrder63(&trK[index]);\n PDupwindNthAnti1trK = PDupwindNthAntifdOrder61(&trK[index]);\n PDupwindNthAnti2trK = PDupwindNthAntifdOrder62(&trK[index]);\n PDupwindNthAnti3trK = PDupwindNthAntifdOrder63(&trK[index]);\n PDstandardNth1Xt1 = PDstandardNthfdOrder61(&Xt1[index]);\n PDstandardNth2Xt1 = PDstandardNthfdOrder62(&Xt1[index]);\n PDstandardNth3Xt1 = PDstandardNthfdOrder63(&Xt1[index]);\n PDstandardNth1Xt2 = PDstandardNthfdOrder61(&Xt2[index]);\n PDstandardNth2Xt2 = PDstandardNthfdOrder62(&Xt2[index]);\n PDstandardNth3Xt2 = PDstandardNthfdOrder63(&Xt2[index]);\n PDstandardNth1Xt3 = PDstandardNthfdOrder61(&Xt3[index]);\n PDstandardNth2Xt3 = PDstandardNthfdOrder62(&Xt3[index]);\n PDstandardNth3Xt3 = PDstandardNthfdOrder63(&Xt3[index]);\n break;\n }\n \n case 8:\n {\n PDupwindNthSymm1A = PDupwindNthSymmfdOrder81(&A[index]);\n PDupwindNthSymm2A = PDupwindNthSymmfdOrder82(&A[index]);\n PDupwindNthSymm3A = PDupwindNthSymmfdOrder83(&A[index]);\n PDupwindNthAnti1A = PDupwindNthAntifdOrder81(&A[index]);\n PDupwindNthAnti2A = PDupwindNthAntifdOrder82(&A[index]);\n PDupwindNthAnti3A = PDupwindNthAntifdOrder83(&A[index]);\n PDdissipationNth1A = PDdissipationNthfdOrder81(&A[index]);\n PDdissipationNth2A = PDdissipationNthfdOrder82(&A[index]);\n PDdissipationNth3A = PDdissipationNthfdOrder83(&A[index]);\n PDstandardNth1alpha = PDstandardNthfdOrder81(&alpha[index]);\n PDstandardNth2alpha = PDstandardNthfdOrder82(&alpha[index]);\n PDstandardNth3alpha = PDstandardNthfdOrder83(&alpha[index]);\n PDstandardNth11alpha = PDstandardNthfdOrder811(&alpha[index]);\n PDstandardNth22alpha = PDstandardNthfdOrder822(&alpha[index]);\n PDstandardNth33alpha = PDstandardNthfdOrder833(&alpha[index]);\n PDstandardNth12alpha = PDstandardNthfdOrder812(&alpha[index]);\n PDstandardNth13alpha = PDstandardNthfdOrder813(&alpha[index]);\n PDstandardNth23alpha = PDstandardNthfdOrder823(&alpha[index]);\n PDupwindNthSymm1alpha = PDupwindNthSymmfdOrder81(&alpha[index]);\n PDupwindNthSymm2alpha = PDupwindNthSymmfdOrder82(&alpha[index]);\n PDupwindNthSymm3alpha = PDupwindNthSymmfdOrder83(&alpha[index]);\n PDupwindNthAnti1alpha = PDupwindNthAntifdOrder81(&alpha[index]);\n PDupwindNthAnti2alpha = PDupwindNthAntifdOrder82(&alpha[index]);\n PDupwindNthAnti3alpha = PDupwindNthAntifdOrder83(&alpha[index]);\n PDdissipationNth1alpha = PDdissipationNthfdOrder81(&alpha[index]);\n PDdissipationNth2alpha = PDdissipationNthfdOrder82(&alpha[index]);\n PDdissipationNth3alpha = PDdissipationNthfdOrder83(&alpha[index]);\n PDstandardNth1beta1 = PDstandardNthfdOrder81(&beta1[index]);\n PDstandardNth2beta1 = PDstandardNthfdOrder82(&beta1[index]);\n PDstandardNth3beta1 = PDstandardNthfdOrder83(&beta1[index]);\n PDstandardNth1beta2 = PDstandardNthfdOrder81(&beta2[index]);\n PDstandardNth2beta2 = PDstandardNthfdOrder82(&beta2[index]);\n PDstandardNth3beta2 = PDstandardNthfdOrder83(&beta2[index]);\n PDstandardNth1beta3 = PDstandardNthfdOrder81(&beta3[index]);\n PDstandardNth2beta3 = PDstandardNthfdOrder82(&beta3[index]);\n PDstandardNth3beta3 = PDstandardNthfdOrder83(&beta3[index]);\n PDstandardNth1gt11 = PDstandardNthfdOrder81(>11[index]);\n PDstandardNth2gt11 = PDstandardNthfdOrder82(>11[index]);\n PDstandardNth3gt11 = PDstandardNthfdOrder83(>11[index]);\n PDstandardNth11gt11 = PDstandardNthfdOrder811(>11[index]);\n PDstandardNth22gt11 = PDstandardNthfdOrder822(>11[index]);\n PDstandardNth33gt11 = PDstandardNthfdOrder833(>11[index]);\n PDstandardNth12gt11 = PDstandardNthfdOrder812(>11[index]);\n PDstandardNth13gt11 = PDstandardNthfdOrder813(>11[index]);\n PDstandardNth23gt11 = PDstandardNthfdOrder823(>11[index]);\n PDupwindNthSymm1gt11 = PDupwindNthSymmfdOrder81(>11[index]);\n PDupwindNthSymm2gt11 = PDupwindNthSymmfdOrder82(>11[index]);\n PDupwindNthSymm3gt11 = PDupwindNthSymmfdOrder83(>11[index]);\n PDupwindNthAnti1gt11 = PDupwindNthAntifdOrder81(>11[index]);\n PDupwindNthAnti2gt11 = PDupwindNthAntifdOrder82(>11[index]);\n PDupwindNthAnti3gt11 = PDupwindNthAntifdOrder83(>11[index]);\n PDdissipationNth1gt11 = PDdissipationNthfdOrder81(>11[index]);\n PDdissipationNth2gt11 = PDdissipationNthfdOrder82(>11[index]);\n PDdissipationNth3gt11 = PDdissipationNthfdOrder83(>11[index]);\n PDstandardNth1gt12 = PDstandardNthfdOrder81(>12[index]);\n PDstandardNth2gt12 = PDstandardNthfdOrder82(>12[index]);\n PDstandardNth3gt12 = PDstandardNthfdOrder83(>12[index]);\n PDstandardNth11gt12 = PDstandardNthfdOrder811(>12[index]);\n PDstandardNth22gt12 = PDstandardNthfdOrder822(>12[index]);\n PDstandardNth33gt12 = PDstandardNthfdOrder833(>12[index]);\n PDstandardNth12gt12 = PDstandardNthfdOrder812(>12[index]);\n PDstandardNth13gt12 = PDstandardNthfdOrder813(>12[index]);\n PDstandardNth23gt12 = PDstandardNthfdOrder823(>12[index]);\n PDupwindNthSymm1gt12 = PDupwindNthSymmfdOrder81(>12[index]);\n PDupwindNthSymm2gt12 = PDupwindNthSymmfdOrder82(>12[index]);\n PDupwindNthSymm3gt12 = PDupwindNthSymmfdOrder83(>12[index]);\n PDupwindNthAnti1gt12 = PDupwindNthAntifdOrder81(>12[index]);\n PDupwindNthAnti2gt12 = PDupwindNthAntifdOrder82(>12[index]);\n PDupwindNthAnti3gt12 = PDupwindNthAntifdOrder83(>12[index]);\n PDdissipationNth1gt12 = PDdissipationNthfdOrder81(>12[index]);\n PDdissipationNth2gt12 = PDdissipationNthfdOrder82(>12[index]);\n PDdissipationNth3gt12 = PDdissipationNthfdOrder83(>12[index]);\n PDstandardNth1gt13 = PDstandardNthfdOrder81(>13[index]);\n PDstandardNth2gt13 = PDstandardNthfdOrder82(>13[index]);\n PDstandardNth3gt13 = PDstandardNthfdOrder83(>13[index]);\n PDstandardNth11gt13 = PDstandardNthfdOrder811(>13[index]);\n PDstandardNth22gt13 = PDstandardNthfdOrder822(>13[index]);\n PDstandardNth33gt13 = PDstandardNthfdOrder833(>13[index]);\n PDstandardNth12gt13 = PDstandardNthfdOrder812(>13[index]);\n PDstandardNth13gt13 = PDstandardNthfdOrder813(>13[index]);\n PDstandardNth23gt13 = PDstandardNthfdOrder823(>13[index]);\n PDupwindNthSymm1gt13 = PDupwindNthSymmfdOrder81(>13[index]);\n PDupwindNthSymm2gt13 = PDupwindNthSymmfdOrder82(>13[index]);\n PDupwindNthSymm3gt13 = PDupwindNthSymmfdOrder83(>13[index]);\n PDupwindNthAnti1gt13 = PDupwindNthAntifdOrder81(>13[index]);\n PDupwindNthAnti2gt13 = PDupwindNthAntifdOrder82(>13[index]);\n PDupwindNthAnti3gt13 = PDupwindNthAntifdOrder83(>13[index]);\n PDdissipationNth1gt13 = PDdissipationNthfdOrder81(>13[index]);\n PDdissipationNth2gt13 = PDdissipationNthfdOrder82(>13[index]);\n PDdissipationNth3gt13 = PDdissipationNthfdOrder83(>13[index]);\n PDstandardNth1gt22 = PDstandardNthfdOrder81(>22[index]);\n PDstandardNth2gt22 = PDstandardNthfdOrder82(>22[index]);\n PDstandardNth3gt22 = PDstandardNthfdOrder83(>22[index]);\n PDstandardNth11gt22 = PDstandardNthfdOrder811(>22[index]);\n PDstandardNth22gt22 = PDstandardNthfdOrder822(>22[index]);\n PDstandardNth33gt22 = PDstandardNthfdOrder833(>22[index]);\n PDstandardNth12gt22 = PDstandardNthfdOrder812(>22[index]);\n PDstandardNth13gt22 = PDstandardNthfdOrder813(>22[index]);\n PDstandardNth23gt22 = PDstandardNthfdOrder823(>22[index]);\n PDupwindNthSymm1gt22 = PDupwindNthSymmfdOrder81(>22[index]);\n PDupwindNthSymm2gt22 = PDupwindNthSymmfdOrder82(>22[index]);\n PDupwindNthSymm3gt22 = PDupwindNthSymmfdOrder83(>22[index]);\n PDupwindNthAnti1gt22 = PDupwindNthAntifdOrder81(>22[index]);\n PDupwindNthAnti2gt22 = PDupwindNthAntifdOrder82(>22[index]);\n PDupwindNthAnti3gt22 = PDupwindNthAntifdOrder83(>22[index]);\n PDdissipationNth1gt22 = PDdissipationNthfdOrder81(>22[index]);\n PDdissipationNth2gt22 = PDdissipationNthfdOrder82(>22[index]);\n PDdissipationNth3gt22 = PDdissipationNthfdOrder83(>22[index]);\n PDstandardNth1gt23 = PDstandardNthfdOrder81(>23[index]);\n PDstandardNth2gt23 = PDstandardNthfdOrder82(>23[index]);\n PDstandardNth3gt23 = PDstandardNthfdOrder83(>23[index]);\n PDstandardNth11gt23 = PDstandardNthfdOrder811(>23[index]);\n PDstandardNth22gt23 = PDstandardNthfdOrder822(>23[index]);\n PDstandardNth33gt23 = PDstandardNthfdOrder833(>23[index]);\n PDstandardNth12gt23 = PDstandardNthfdOrder812(>23[index]);\n PDstandardNth13gt23 = PDstandardNthfdOrder813(>23[index]);\n PDstandardNth23gt23 = PDstandardNthfdOrder823(>23[index]);\n PDupwindNthSymm1gt23 = PDupwindNthSymmfdOrder81(>23[index]);\n PDupwindNthSymm2gt23 = PDupwindNthSymmfdOrder82(>23[index]);\n PDupwindNthSymm3gt23 = PDupwindNthSymmfdOrder83(>23[index]);\n PDupwindNthAnti1gt23 = PDupwindNthAntifdOrder81(>23[index]);\n PDupwindNthAnti2gt23 = PDupwindNthAntifdOrder82(>23[index]);\n PDupwindNthAnti3gt23 = PDupwindNthAntifdOrder83(>23[index]);\n PDdissipationNth1gt23 = PDdissipationNthfdOrder81(>23[index]);\n PDdissipationNth2gt23 = PDdissipationNthfdOrder82(>23[index]);\n PDdissipationNth3gt23 = PDdissipationNthfdOrder83(>23[index]);\n PDstandardNth1gt33 = PDstandardNthfdOrder81(>33[index]);\n PDstandardNth2gt33 = PDstandardNthfdOrder82(>33[index]);\n PDstandardNth3gt33 = PDstandardNthfdOrder83(>33[index]);\n PDstandardNth11gt33 = PDstandardNthfdOrder811(>33[index]);\n PDstandardNth22gt33 = PDstandardNthfdOrder822(>33[index]);\n PDstandardNth33gt33 = PDstandardNthfdOrder833(>33[index]);\n PDstandardNth12gt33 = PDstandardNthfdOrder812(>33[index]);\n PDstandardNth13gt33 = PDstandardNthfdOrder813(>33[index]);\n PDstandardNth23gt33 = PDstandardNthfdOrder823(>33[index]);\n PDupwindNthSymm1gt33 = PDupwindNthSymmfdOrder81(>33[index]);\n PDupwindNthSymm2gt33 = PDupwindNthSymmfdOrder82(>33[index]);\n PDupwindNthSymm3gt33 = PDupwindNthSymmfdOrder83(>33[index]);\n PDupwindNthAnti1gt33 = PDupwindNthAntifdOrder81(>33[index]);\n PDupwindNthAnti2gt33 = PDupwindNthAntifdOrder82(>33[index]);\n PDupwindNthAnti3gt33 = PDupwindNthAntifdOrder83(>33[index]);\n PDdissipationNth1gt33 = PDdissipationNthfdOrder81(>33[index]);\n PDdissipationNth2gt33 = PDdissipationNthfdOrder82(>33[index]);\n PDdissipationNth3gt33 = PDdissipationNthfdOrder83(>33[index]);\n PDstandardNth1phi = PDstandardNthfdOrder81(&phi[index]);\n PDstandardNth2phi = PDstandardNthfdOrder82(&phi[index]);\n PDstandardNth3phi = PDstandardNthfdOrder83(&phi[index]);\n PDstandardNth11phi = PDstandardNthfdOrder811(&phi[index]);\n PDstandardNth22phi = PDstandardNthfdOrder822(&phi[index]);\n PDstandardNth33phi = PDstandardNthfdOrder833(&phi[index]);\n PDstandardNth12phi = PDstandardNthfdOrder812(&phi[index]);\n PDstandardNth13phi = PDstandardNthfdOrder813(&phi[index]);\n PDstandardNth23phi = PDstandardNthfdOrder823(&phi[index]);\n PDupwindNthSymm1phi = PDupwindNthSymmfdOrder81(&phi[index]);\n PDupwindNthSymm2phi = PDupwindNthSymmfdOrder82(&phi[index]);\n PDupwindNthSymm3phi = PDupwindNthSymmfdOrder83(&phi[index]);\n PDupwindNthAnti1phi = PDupwindNthAntifdOrder81(&phi[index]);\n PDupwindNthAnti2phi = PDupwindNthAntifdOrder82(&phi[index]);\n PDupwindNthAnti3phi = PDupwindNthAntifdOrder83(&phi[index]);\n PDdissipationNth1phi = PDdissipationNthfdOrder81(&phi[index]);\n PDdissipationNth2phi = PDdissipationNthfdOrder82(&phi[index]);\n PDdissipationNth3phi = PDdissipationNthfdOrder83(&phi[index]);\n PDupwindNthSymm1trK = PDupwindNthSymmfdOrder81(&trK[index]);\n PDupwindNthSymm2trK = PDupwindNthSymmfdOrder82(&trK[index]);\n PDupwindNthSymm3trK = PDupwindNthSymmfdOrder83(&trK[index]);\n PDupwindNthAnti1trK = PDupwindNthAntifdOrder81(&trK[index]);\n PDupwindNthAnti2trK = PDupwindNthAntifdOrder82(&trK[index]);\n PDupwindNthAnti3trK = PDupwindNthAntifdOrder83(&trK[index]);\n PDstandardNth1Xt1 = PDstandardNthfdOrder81(&Xt1[index]);\n PDstandardNth2Xt1 = PDstandardNthfdOrder82(&Xt1[index]);\n PDstandardNth3Xt1 = PDstandardNthfdOrder83(&Xt1[index]);\n PDstandardNth1Xt2 = PDstandardNthfdOrder81(&Xt2[index]);\n PDstandardNth2Xt2 = PDstandardNthfdOrder82(&Xt2[index]);\n PDstandardNth3Xt2 = PDstandardNthfdOrder83(&Xt2[index]);\n PDstandardNth1Xt3 = PDstandardNthfdOrder81(&Xt3[index]);\n PDstandardNth2Xt3 = PDstandardNthfdOrder82(&Xt3[index]);\n PDstandardNth3Xt3 = PDstandardNthfdOrder83(&Xt3[index]);\n break;\n }\n default:\n CCTK_BUILTIN_UNREACHABLE();\n }\n /* Calculate temporaries and grid functions */\n CCTK_REAL_VEC JacPDdissipationNth1A CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth1alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth1gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth1gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth1gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth1gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth1gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth1gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth1phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth2A CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth2alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth2gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth2gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth2gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth2gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth2gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth2gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth2phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth3A CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth3alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth3gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth3gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth3gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth3gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth3gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth3gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDdissipationNth3phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth11alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth11gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth11gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth11gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth11gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth11gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth11gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth11phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth12alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth12gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth12gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth12gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth12gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth12gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth12gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth12phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth13alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth13gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth13gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth13gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth13gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth13gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth13gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth13phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth1alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth1beta1 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth1beta2 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth1beta3 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth1gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth1gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth1gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth1gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth1gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth1gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth1phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth1Xt1 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth1Xt2 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth1Xt3 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth21alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth21gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth21gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth21gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth21gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth21gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth21gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth21phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth22alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth22gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth22gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth22gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth22gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth22gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth22gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth22phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth23alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth23gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth23gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth23gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth23gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth23gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth23gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth23phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth2alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth2beta1 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth2beta2 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth2beta3 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth2gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth2gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth2gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth2gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth2gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth2gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth2phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth2Xt1 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth2Xt2 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth2Xt3 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth31alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth31gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth31gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth31gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth31gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth31gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth31gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth31phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth32alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth32gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth32gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth32gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth32gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth32gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth32gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth32phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth33alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth33gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth33gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth33gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth33gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth33gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth33gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth33phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth3alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth3beta1 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth3beta2 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth3beta3 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth3gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth3gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth3gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth3gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth3gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth3gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth3phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth3Xt1 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth3Xt2 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDstandardNth3Xt3 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti1A CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti1alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti1gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti1gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti1gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti1gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti1gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti1gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti1phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti1trK CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti2A CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti2alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti2gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti2gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti2gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti2gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti2gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti2gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti2phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti2trK CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti3A CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti3alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti3gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti3gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti3gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti3gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti3gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti3gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti3phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthAnti3trK CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm1A CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm1alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm1gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm1gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm1gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm1gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm1gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm1gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm1phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm1trK CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm2A CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm2alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm2gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm2gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm2gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm2gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm2gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm2gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm2phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm2trK CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm3A CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm3alpha CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm3gt11 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm3gt12 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm3gt13 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm3gt22 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm3gt23 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm3gt33 CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm3phi CCTK_ATTRIBUTE_UNUSED;\n CCTK_REAL_VEC JacPDupwindNthSymm3trK CCTK_ATTRIBUTE_UNUSED;\n \n if (usejacobian)\n {\n JacPDstandardNth1alpha = \n kmadd(J11L,PDstandardNth1alpha,kmadd(J21L,PDstandardNth2alpha,kmul(J31L,PDstandardNth3alpha)));\n \n JacPDstandardNth1beta1 = \n kmadd(J11L,PDstandardNth1beta1,kmadd(J21L,PDstandardNth2beta1,kmul(J31L,PDstandardNth3beta1)));\n \n JacPDstandardNth1beta2 = \n kmadd(J11L,PDstandardNth1beta2,kmadd(J21L,PDstandardNth2beta2,kmul(J31L,PDstandardNth3beta2)));\n \n JacPDstandardNth1beta3 = \n kmadd(J11L,PDstandardNth1beta3,kmadd(J21L,PDstandardNth2beta3,kmul(J31L,PDstandardNth3beta3)));\n \n JacPDstandardNth1gt11 = \n kmadd(J11L,PDstandardNth1gt11,kmadd(J21L,PDstandardNth2gt11,kmul(J31L,PDstandardNth3gt11)));\n \n JacPDstandardNth1gt12 = \n kmadd(J11L,PDstandardNth1gt12,kmadd(J21L,PDstandardNth2gt12,kmul(J31L,PDstandardNth3gt12)));\n \n JacPDstandardNth1gt13 = \n kmadd(J11L,PDstandardNth1gt13,kmadd(J21L,PDstandardNth2gt13,kmul(J31L,PDstandardNth3gt13)));\n \n JacPDstandardNth1gt22 = \n kmadd(J11L,PDstandardNth1gt22,kmadd(J21L,PDstandardNth2gt22,kmul(J31L,PDstandardNth3gt22)));\n \n JacPDstandardNth1gt23 = \n kmadd(J11L,PDstandardNth1gt23,kmadd(J21L,PDstandardNth2gt23,kmul(J31L,PDstandardNth3gt23)));\n \n JacPDstandardNth1gt33 = \n kmadd(J11L,PDstandardNth1gt33,kmadd(J21L,PDstandardNth2gt33,kmul(J31L,PDstandardNth3gt33)));\n \n JacPDstandardNth1phi = \n kmadd(J11L,PDstandardNth1phi,kmadd(J21L,PDstandardNth2phi,kmul(J31L,PDstandardNth3phi)));\n \n JacPDstandardNth1Xt1 = \n kmadd(J11L,PDstandardNth1Xt1,kmadd(J21L,PDstandardNth2Xt1,kmul(J31L,PDstandardNth3Xt1)));\n \n JacPDstandardNth1Xt2 = \n kmadd(J11L,PDstandardNth1Xt2,kmadd(J21L,PDstandardNth2Xt2,kmul(J31L,PDstandardNth3Xt2)));\n \n JacPDstandardNth1Xt3 = \n kmadd(J11L,PDstandardNth1Xt3,kmadd(J21L,PDstandardNth2Xt3,kmul(J31L,PDstandardNth3Xt3)));\n \n JacPDstandardNth2alpha = \n kmadd(J12L,PDstandardNth1alpha,kmadd(J22L,PDstandardNth2alpha,kmul(J32L,PDstandardNth3alpha)));\n \n JacPDstandardNth2beta1 = \n kmadd(J12L,PDstandardNth1beta1,kmadd(J22L,PDstandardNth2beta1,kmul(J32L,PDstandardNth3beta1)));\n \n JacPDstandardNth2beta2 = \n kmadd(J12L,PDstandardNth1beta2,kmadd(J22L,PDstandardNth2beta2,kmul(J32L,PDstandardNth3beta2)));\n \n JacPDstandardNth2beta3 = \n kmadd(J12L,PDstandardNth1beta3,kmadd(J22L,PDstandardNth2beta3,kmul(J32L,PDstandardNth3beta3)));\n \n JacPDstandardNth2gt11 = \n kmadd(J12L,PDstandardNth1gt11,kmadd(J22L,PDstandardNth2gt11,kmul(J32L,PDstandardNth3gt11)));\n \n JacPDstandardNth2gt12 = \n kmadd(J12L,PDstandardNth1gt12,kmadd(J22L,PDstandardNth2gt12,kmul(J32L,PDstandardNth3gt12)));\n \n JacPDstandardNth2gt13 = \n kmadd(J12L,PDstandardNth1gt13,kmadd(J22L,PDstandardNth2gt13,kmul(J32L,PDstandardNth3gt13)));\n \n JacPDstandardNth2gt22 = \n kmadd(J12L,PDstandardNth1gt22,kmadd(J22L,PDstandardNth2gt22,kmul(J32L,PDstandardNth3gt22)));\n \n JacPDstandardNth2gt23 = \n kmadd(J12L,PDstandardNth1gt23,kmadd(J22L,PDstandardNth2gt23,kmul(J32L,PDstandardNth3gt23)));\n \n JacPDstandardNth2gt33 = \n kmadd(J12L,PDstandardNth1gt33,kmadd(J22L,PDstandardNth2gt33,kmul(J32L,PDstandardNth3gt33)));\n \n JacPDstandardNth2phi = \n kmadd(J12L,PDstandardNth1phi,kmadd(J22L,PDstandardNth2phi,kmul(J32L,PDstandardNth3phi)));\n \n JacPDstandardNth2Xt1 = \n kmadd(J12L,PDstandardNth1Xt1,kmadd(J22L,PDstandardNth2Xt1,kmul(J32L,PDstandardNth3Xt1)));\n \n JacPDstandardNth2Xt2 = \n kmadd(J12L,PDstandardNth1Xt2,kmadd(J22L,PDstandardNth2Xt2,kmul(J32L,PDstandardNth3Xt2)));\n \n JacPDstandardNth2Xt3 = \n kmadd(J12L,PDstandardNth1Xt3,kmadd(J22L,PDstandardNth2Xt3,kmul(J32L,PDstandardNth3Xt3)));\n \n JacPDstandardNth3alpha = \n kmadd(J13L,PDstandardNth1alpha,kmadd(J23L,PDstandardNth2alpha,kmul(J33L,PDstandardNth3alpha)));\n \n JacPDstandardNth3beta1 = \n kmadd(J13L,PDstandardNth1beta1,kmadd(J23L,PDstandardNth2beta1,kmul(J33L,PDstandardNth3beta1)));\n \n JacPDstandardNth3beta2 = \n kmadd(J13L,PDstandardNth1beta2,kmadd(J23L,PDstandardNth2beta2,kmul(J33L,PDstandardNth3beta2)));\n \n JacPDstandardNth3beta3 = \n kmadd(J13L,PDstandardNth1beta3,kmadd(J23L,PDstandardNth2beta3,kmul(J33L,PDstandardNth3beta3)));\n \n JacPDstandardNth3gt11 = \n kmadd(J13L,PDstandardNth1gt11,kmadd(J23L,PDstandardNth2gt11,kmul(J33L,PDstandardNth3gt11)));\n \n JacPDstandardNth3gt12 = \n kmadd(J13L,PDstandardNth1gt12,kmadd(J23L,PDstandardNth2gt12,kmul(J33L,PDstandardNth3gt12)));\n \n JacPDstandardNth3gt13 = \n kmadd(J13L,PDstandardNth1gt13,kmadd(J23L,PDstandardNth2gt13,kmul(J33L,PDstandardNth3gt13)));\n \n JacPDstandardNth3gt22 = \n kmadd(J13L,PDstandardNth1gt22,kmadd(J23L,PDstandardNth2gt22,kmul(J33L,PDstandardNth3gt22)));\n \n JacPDstandardNth3gt23 = \n kmadd(J13L,PDstandardNth1gt23,kmadd(J23L,PDstandardNth2gt23,kmul(J33L,PDstandardNth3gt23)));\n \n JacPDstandardNth3gt33 = \n kmadd(J13L,PDstandardNth1gt33,kmadd(J23L,PDstandardNth2gt33,kmul(J33L,PDstandardNth3gt33)));\n \n JacPDstandardNth3phi = \n kmadd(J13L,PDstandardNth1phi,kmadd(J23L,PDstandardNth2phi,kmul(J33L,PDstandardNth3phi)));\n \n JacPDstandardNth3Xt1 = \n kmadd(J13L,PDstandardNth1Xt1,kmadd(J23L,PDstandardNth2Xt1,kmul(J33L,PDstandardNth3Xt1)));\n \n JacPDstandardNth3Xt2 = \n kmadd(J13L,PDstandardNth1Xt2,kmadd(J23L,PDstandardNth2Xt2,kmul(J33L,PDstandardNth3Xt2)));\n \n JacPDstandardNth3Xt3 = \n kmadd(J13L,PDstandardNth1Xt3,kmadd(J23L,PDstandardNth2Xt3,kmul(J33L,PDstandardNth3Xt3)));\n \n JacPDstandardNth11alpha = \n kmadd(dJ111L,PDstandardNth1alpha,kmadd(ToReal(2),kmadd(J11L,kmadd(J21L,PDstandardNth12alpha,kmul(J31L,PDstandardNth13alpha)),kmul(J21L,kmul(J31L,PDstandardNth23alpha))),kmadd(dJ211L,PDstandardNth2alpha,kmadd(dJ311L,PDstandardNth3alpha,kmadd(PDstandardNth11alpha,kmul(J11L,J11L),kmadd(PDstandardNth22alpha,kmul(J21L,J21L),kmul(PDstandardNth33alpha,kmul(J31L,J31L))))))));\n \n JacPDstandardNth11gt11 = \n kmadd(dJ111L,PDstandardNth1gt11,kmadd(ToReal(2),kmadd(J11L,kmadd(J21L,PDstandardNth12gt11,kmul(J31L,PDstandardNth13gt11)),kmul(J21L,kmul(J31L,PDstandardNth23gt11))),kmadd(dJ211L,PDstandardNth2gt11,kmadd(dJ311L,PDstandardNth3gt11,kmadd(PDstandardNth11gt11,kmul(J11L,J11L),kmadd(PDstandardNth22gt11,kmul(J21L,J21L),kmul(PDstandardNth33gt11,kmul(J31L,J31L))))))));\n \n JacPDstandardNth11gt12 = \n kmadd(dJ111L,PDstandardNth1gt12,kmadd(ToReal(2),kmadd(J11L,kmadd(J21L,PDstandardNth12gt12,kmul(J31L,PDstandardNth13gt12)),kmul(J21L,kmul(J31L,PDstandardNth23gt12))),kmadd(dJ211L,PDstandardNth2gt12,kmadd(dJ311L,PDstandardNth3gt12,kmadd(PDstandardNth11gt12,kmul(J11L,J11L),kmadd(PDstandardNth22gt12,kmul(J21L,J21L),kmul(PDstandardNth33gt12,kmul(J31L,J31L))))))));\n \n JacPDstandardNth11gt13 = \n kmadd(dJ111L,PDstandardNth1gt13,kmadd(ToReal(2),kmadd(J11L,kmadd(J21L,PDstandardNth12gt13,kmul(J31L,PDstandardNth13gt13)),kmul(J21L,kmul(J31L,PDstandardNth23gt13))),kmadd(dJ211L,PDstandardNth2gt13,kmadd(dJ311L,PDstandardNth3gt13,kmadd(PDstandardNth11gt13,kmul(J11L,J11L),kmadd(PDstandardNth22gt13,kmul(J21L,J21L),kmul(PDstandardNth33gt13,kmul(J31L,J31L))))))));\n \n JacPDstandardNth11gt22 = \n kmadd(dJ111L,PDstandardNth1gt22,kmadd(ToReal(2),kmadd(J11L,kmadd(J21L,PDstandardNth12gt22,kmul(J31L,PDstandardNth13gt22)),kmul(J21L,kmul(J31L,PDstandardNth23gt22))),kmadd(dJ211L,PDstandardNth2gt22,kmadd(dJ311L,PDstandardNth3gt22,kmadd(PDstandardNth11gt22,kmul(J11L,J11L),kmadd(PDstandardNth22gt22,kmul(J21L,J21L),kmul(PDstandardNth33gt22,kmul(J31L,J31L))))))));\n \n JacPDstandardNth11gt23 = \n kmadd(dJ111L,PDstandardNth1gt23,kmadd(ToReal(2),kmadd(J11L,kmadd(J21L,PDstandardNth12gt23,kmul(J31L,PDstandardNth13gt23)),kmul(J21L,kmul(J31L,PDstandardNth23gt23))),kmadd(dJ211L,PDstandardNth2gt23,kmadd(dJ311L,PDstandardNth3gt23,kmadd(PDstandardNth11gt23,kmul(J11L,J11L),kmadd(PDstandardNth22gt23,kmul(J21L,J21L),kmul(PDstandardNth33gt23,kmul(J31L,J31L))))))));\n \n JacPDstandardNth11gt33 = \n kmadd(dJ111L,PDstandardNth1gt33,kmadd(ToReal(2),kmadd(J11L,kmadd(J21L,PDstandardNth12gt33,kmul(J31L,PDstandardNth13gt33)),kmul(J21L,kmul(J31L,PDstandardNth23gt33))),kmadd(dJ211L,PDstandardNth2gt33,kmadd(dJ311L,PDstandardNth3gt33,kmadd(PDstandardNth11gt33,kmul(J11L,J11L),kmadd(PDstandardNth22gt33,kmul(J21L,J21L),kmul(PDstandardNth33gt33,kmul(J31L,J31L))))))));\n \n JacPDstandardNth11phi = \n kmadd(dJ111L,PDstandardNth1phi,kmadd(ToReal(2),kmadd(J11L,kmadd(J21L,PDstandardNth12phi,kmul(J31L,PDstandardNth13phi)),kmul(J21L,kmul(J31L,PDstandardNth23phi))),kmadd(dJ211L,PDstandardNth2phi,kmadd(dJ311L,PDstandardNth3phi,kmadd(PDstandardNth11phi,kmul(J11L,J11L),kmadd(PDstandardNth22phi,kmul(J21L,J21L),kmul(PDstandardNth33phi,kmul(J31L,J31L))))))));\n \n JacPDstandardNth22alpha = \n kmadd(dJ122L,PDstandardNth1alpha,kmadd(ToReal(2),kmadd(J12L,kmadd(J22L,PDstandardNth12alpha,kmul(J32L,PDstandardNth13alpha)),kmul(J22L,kmul(J32L,PDstandardNth23alpha))),kmadd(dJ222L,PDstandardNth2alpha,kmadd(dJ322L,PDstandardNth3alpha,kmadd(PDstandardNth11alpha,kmul(J12L,J12L),kmadd(PDstandardNth22alpha,kmul(J22L,J22L),kmul(PDstandardNth33alpha,kmul(J32L,J32L))))))));\n \n JacPDstandardNth22gt11 = \n kmadd(dJ122L,PDstandardNth1gt11,kmadd(ToReal(2),kmadd(J12L,kmadd(J22L,PDstandardNth12gt11,kmul(J32L,PDstandardNth13gt11)),kmul(J22L,kmul(J32L,PDstandardNth23gt11))),kmadd(dJ222L,PDstandardNth2gt11,kmadd(dJ322L,PDstandardNth3gt11,kmadd(PDstandardNth11gt11,kmul(J12L,J12L),kmadd(PDstandardNth22gt11,kmul(J22L,J22L),kmul(PDstandardNth33gt11,kmul(J32L,J32L))))))));\n \n JacPDstandardNth22gt12 = \n kmadd(dJ122L,PDstandardNth1gt12,kmadd(ToReal(2),kmadd(J12L,kmadd(J22L,PDstandardNth12gt12,kmul(J32L,PDstandardNth13gt12)),kmul(J22L,kmul(J32L,PDstandardNth23gt12))),kmadd(dJ222L,PDstandardNth2gt12,kmadd(dJ322L,PDstandardNth3gt12,kmadd(PDstandardNth11gt12,kmul(J12L,J12L),kmadd(PDstandardNth22gt12,kmul(J22L,J22L),kmul(PDstandardNth33gt12,kmul(J32L,J32L))))))));\n \n JacPDstandardNth22gt13 = \n kmadd(dJ122L,PDstandardNth1gt13,kmadd(ToReal(2),kmadd(J12L,kmadd(J22L,PDstandardNth12gt13,kmul(J32L,PDstandardNth13gt13)),kmul(J22L,kmul(J32L,PDstandardNth23gt13))),kmadd(dJ222L,PDstandardNth2gt13,kmadd(dJ322L,PDstandardNth3gt13,kmadd(PDstandardNth11gt13,kmul(J12L,J12L),kmadd(PDstandardNth22gt13,kmul(J22L,J22L),kmul(PDstandardNth33gt13,kmul(J32L,J32L))))))));\n \n JacPDstandardNth22gt22 = \n kmadd(dJ122L,PDstandardNth1gt22,kmadd(ToReal(2),kmadd(J12L,kmadd(J22L,PDstandardNth12gt22,kmul(J32L,PDstandardNth13gt22)),kmul(J22L,kmul(J32L,PDstandardNth23gt22))),kmadd(dJ222L,PDstandardNth2gt22,kmadd(dJ322L,PDstandardNth3gt22,kmadd(PDstandardNth11gt22,kmul(J12L,J12L),kmadd(PDstandardNth22gt22,kmul(J22L,J22L),kmul(PDstandardNth33gt22,kmul(J32L,J32L))))))));\n \n JacPDstandardNth22gt23 = \n kmadd(dJ122L,PDstandardNth1gt23,kmadd(ToReal(2),kmadd(J12L,kmadd(J22L,PDstandardNth12gt23,kmul(J32L,PDstandardNth13gt23)),kmul(J22L,kmul(J32L,PDstandardNth23gt23))),kmadd(dJ222L,PDstandardNth2gt23,kmadd(dJ322L,PDstandardNth3gt23,kmadd(PDstandardNth11gt23,kmul(J12L,J12L),kmadd(PDstandardNth22gt23,kmul(J22L,J22L),kmul(PDstandardNth33gt23,kmul(J32L,J32L))))))));\n \n JacPDstandardNth22gt33 = \n kmadd(dJ122L,PDstandardNth1gt33,kmadd(ToReal(2),kmadd(J12L,kmadd(J22L,PDstandardNth12gt33,kmul(J32L,PDstandardNth13gt33)),kmul(J22L,kmul(J32L,PDstandardNth23gt33))),kmadd(dJ222L,PDstandardNth2gt33,kmadd(dJ322L,PDstandardNth3gt33,kmadd(PDstandardNth11gt33,kmul(J12L,J12L),kmadd(PDstandardNth22gt33,kmul(J22L,J22L),kmul(PDstandardNth33gt33,kmul(J32L,J32L))))))));\n \n JacPDstandardNth22phi = \n kmadd(dJ122L,PDstandardNth1phi,kmadd(ToReal(2),kmadd(J12L,kmadd(J22L,PDstandardNth12phi,kmul(J32L,PDstandardNth13phi)),kmul(J22L,kmul(J32L,PDstandardNth23phi))),kmadd(dJ222L,PDstandardNth2phi,kmadd(dJ322L,PDstandardNth3phi,kmadd(PDstandardNth11phi,kmul(J12L,J12L),kmadd(PDstandardNth22phi,kmul(J22L,J22L),kmul(PDstandardNth33phi,kmul(J32L,J32L))))))));\n \n JacPDstandardNth33alpha = \n kmadd(dJ133L,PDstandardNth1alpha,kmadd(ToReal(2),kmadd(J13L,kmadd(J23L,PDstandardNth12alpha,kmul(J33L,PDstandardNth13alpha)),kmul(J23L,kmul(J33L,PDstandardNth23alpha))),kmadd(dJ233L,PDstandardNth2alpha,kmadd(dJ333L,PDstandardNth3alpha,kmadd(PDstandardNth11alpha,kmul(J13L,J13L),kmadd(PDstandardNth22alpha,kmul(J23L,J23L),kmul(PDstandardNth33alpha,kmul(J33L,J33L))))))));\n \n JacPDstandardNth33gt11 = \n kmadd(dJ133L,PDstandardNth1gt11,kmadd(ToReal(2),kmadd(J13L,kmadd(J23L,PDstandardNth12gt11,kmul(J33L,PDstandardNth13gt11)),kmul(J23L,kmul(J33L,PDstandardNth23gt11))),kmadd(dJ233L,PDstandardNth2gt11,kmadd(dJ333L,PDstandardNth3gt11,kmadd(PDstandardNth11gt11,kmul(J13L,J13L),kmadd(PDstandardNth22gt11,kmul(J23L,J23L),kmul(PDstandardNth33gt11,kmul(J33L,J33L))))))));\n \n JacPDstandardNth33gt12 = \n kmadd(dJ133L,PDstandardNth1gt12,kmadd(ToReal(2),kmadd(J13L,kmadd(J23L,PDstandardNth12gt12,kmul(J33L,PDstandardNth13gt12)),kmul(J23L,kmul(J33L,PDstandardNth23gt12))),kmadd(dJ233L,PDstandardNth2gt12,kmadd(dJ333L,PDstandardNth3gt12,kmadd(PDstandardNth11gt12,kmul(J13L,J13L),kmadd(PDstandardNth22gt12,kmul(J23L,J23L),kmul(PDstandardNth33gt12,kmul(J33L,J33L))))))));\n \n JacPDstandardNth33gt13 = \n kmadd(dJ133L,PDstandardNth1gt13,kmadd(ToReal(2),kmadd(J13L,kmadd(J23L,PDstandardNth12gt13,kmul(J33L,PDstandardNth13gt13)),kmul(J23L,kmul(J33L,PDstandardNth23gt13))),kmadd(dJ233L,PDstandardNth2gt13,kmadd(dJ333L,PDstandardNth3gt13,kmadd(PDstandardNth11gt13,kmul(J13L,J13L),kmadd(PDstandardNth22gt13,kmul(J23L,J23L),kmul(PDstandardNth33gt13,kmul(J33L,J33L))))))));\n \n JacPDstandardNth33gt22 = \n kmadd(dJ133L,PDstandardNth1gt22,kmadd(ToReal(2),kmadd(J13L,kmadd(J23L,PDstandardNth12gt22,kmul(J33L,PDstandardNth13gt22)),kmul(J23L,kmul(J33L,PDstandardNth23gt22))),kmadd(dJ233L,PDstandardNth2gt22,kmadd(dJ333L,PDstandardNth3gt22,kmadd(PDstandardNth11gt22,kmul(J13L,J13L),kmadd(PDstandardNth22gt22,kmul(J23L,J23L),kmul(PDstandardNth33gt22,kmul(J33L,J33L))))))));\n \n JacPDstandardNth33gt23 = \n kmadd(dJ133L,PDstandardNth1gt23,kmadd(ToReal(2),kmadd(J13L,kmadd(J23L,PDstandardNth12gt23,kmul(J33L,PDstandardNth13gt23)),kmul(J23L,kmul(J33L,PDstandardNth23gt23))),kmadd(dJ233L,PDstandardNth2gt23,kmadd(dJ333L,PDstandardNth3gt23,kmadd(PDstandardNth11gt23,kmul(J13L,J13L),kmadd(PDstandardNth22gt23,kmul(J23L,J23L),kmul(PDstandardNth33gt23,kmul(J33L,J33L))))))));\n \n JacPDstandardNth33gt33 = \n kmadd(dJ133L,PDstandardNth1gt33,kmadd(ToReal(2),kmadd(J13L,kmadd(J23L,PDstandardNth12gt33,kmul(J33L,PDstandardNth13gt33)),kmul(J23L,kmul(J33L,PDstandardNth23gt33))),kmadd(dJ233L,PDstandardNth2gt33,kmadd(dJ333L,PDstandardNth3gt33,kmadd(PDstandardNth11gt33,kmul(J13L,J13L),kmadd(PDstandardNth22gt33,kmul(J23L,J23L),kmul(PDstandardNth33gt33,kmul(J33L,J33L))))))));\n \n JacPDstandardNth33phi = \n kmadd(dJ133L,PDstandardNth1phi,kmadd(ToReal(2),kmadd(J13L,kmadd(J23L,PDstandardNth12phi,kmul(J33L,PDstandardNth13phi)),kmul(J23L,kmul(J33L,PDstandardNth23phi))),kmadd(dJ233L,PDstandardNth2phi,kmadd(dJ333L,PDstandardNth3phi,kmadd(PDstandardNth11phi,kmul(J13L,J13L),kmadd(PDstandardNth22phi,kmul(J23L,J23L),kmul(PDstandardNth33phi,kmul(J33L,J33L))))))));\n \n JacPDstandardNth12alpha = \n kmadd(J12L,kmadd(J11L,PDstandardNth11alpha,kmadd(J21L,PDstandardNth12alpha,kmul(J31L,PDstandardNth13alpha))),kmadd(J11L,kmadd(J22L,PDstandardNth12alpha,kmul(J32L,PDstandardNth13alpha)),kmadd(dJ112L,PDstandardNth1alpha,kmadd(J22L,kmadd(J21L,PDstandardNth22alpha,kmul(J31L,PDstandardNth23alpha)),kmadd(dJ212L,PDstandardNth2alpha,kmadd(J32L,kmadd(J21L,PDstandardNth23alpha,kmul(J31L,PDstandardNth33alpha)),kmul(dJ312L,PDstandardNth3alpha)))))));\n \n JacPDstandardNth12gt11 = \n kmadd(J12L,kmadd(J11L,PDstandardNth11gt11,kmadd(J21L,PDstandardNth12gt11,kmul(J31L,PDstandardNth13gt11))),kmadd(J11L,kmadd(J22L,PDstandardNth12gt11,kmul(J32L,PDstandardNth13gt11)),kmadd(dJ112L,PDstandardNth1gt11,kmadd(J22L,kmadd(J21L,PDstandardNth22gt11,kmul(J31L,PDstandardNth23gt11)),kmadd(dJ212L,PDstandardNth2gt11,kmadd(J32L,kmadd(J21L,PDstandardNth23gt11,kmul(J31L,PDstandardNth33gt11)),kmul(dJ312L,PDstandardNth3gt11)))))));\n \n JacPDstandardNth12gt12 = \n kmadd(J12L,kmadd(J11L,PDstandardNth11gt12,kmadd(J21L,PDstandardNth12gt12,kmul(J31L,PDstandardNth13gt12))),kmadd(J11L,kmadd(J22L,PDstandardNth12gt12,kmul(J32L,PDstandardNth13gt12)),kmadd(dJ112L,PDstandardNth1gt12,kmadd(J22L,kmadd(J21L,PDstandardNth22gt12,kmul(J31L,PDstandardNth23gt12)),kmadd(dJ212L,PDstandardNth2gt12,kmadd(J32L,kmadd(J21L,PDstandardNth23gt12,kmul(J31L,PDstandardNth33gt12)),kmul(dJ312L,PDstandardNth3gt12)))))));\n \n JacPDstandardNth12gt13 = \n kmadd(J12L,kmadd(J11L,PDstandardNth11gt13,kmadd(J21L,PDstandardNth12gt13,kmul(J31L,PDstandardNth13gt13))),kmadd(J11L,kmadd(J22L,PDstandardNth12gt13,kmul(J32L,PDstandardNth13gt13)),kmadd(dJ112L,PDstandardNth1gt13,kmadd(J22L,kmadd(J21L,PDstandardNth22gt13,kmul(J31L,PDstandardNth23gt13)),kmadd(dJ212L,PDstandardNth2gt13,kmadd(J32L,kmadd(J21L,PDstandardNth23gt13,kmul(J31L,PDstandardNth33gt13)),kmul(dJ312L,PDstandardNth3gt13)))))));\n \n JacPDstandardNth12gt22 = \n kmadd(J12L,kmadd(J11L,PDstandardNth11gt22,kmadd(J21L,PDstandardNth12gt22,kmul(J31L,PDstandardNth13gt22))),kmadd(J11L,kmadd(J22L,PDstandardNth12gt22,kmul(J32L,PDstandardNth13gt22)),kmadd(dJ112L,PDstandardNth1gt22,kmadd(J22L,kmadd(J21L,PDstandardNth22gt22,kmul(J31L,PDstandardNth23gt22)),kmadd(dJ212L,PDstandardNth2gt22,kmadd(J32L,kmadd(J21L,PDstandardNth23gt22,kmul(J31L,PDstandardNth33gt22)),kmul(dJ312L,PDstandardNth3gt22)))))));\n \n JacPDstandardNth12gt23 = \n kmadd(J12L,kmadd(J11L,PDstandardNth11gt23,kmadd(J21L,PDstandardNth12gt23,kmul(J31L,PDstandardNth13gt23))),kmadd(J11L,kmadd(J22L,PDstandardNth12gt23,kmul(J32L,PDstandardNth13gt23)),kmadd(dJ112L,PDstandardNth1gt23,kmadd(J22L,kmadd(J21L,PDstandardNth22gt23,kmul(J31L,PDstandardNth23gt23)),kmadd(dJ212L,PDstandardNth2gt23,kmadd(J32L,kmadd(J21L,PDstandardNth23gt23,kmul(J31L,PDstandardNth33gt23)),kmul(dJ312L,PDstandardNth3gt23)))))));\n \n JacPDstandardNth12gt33 = \n kmadd(J12L,kmadd(J11L,PDstandardNth11gt33,kmadd(J21L,PDstandardNth12gt33,kmul(J31L,PDstandardNth13gt33))),kmadd(J11L,kmadd(J22L,PDstandardNth12gt33,kmul(J32L,PDstandardNth13gt33)),kmadd(dJ112L,PDstandardNth1gt33,kmadd(J22L,kmadd(J21L,PDstandardNth22gt33,kmul(J31L,PDstandardNth23gt33)),kmadd(dJ212L,PDstandardNth2gt33,kmadd(J32L,kmadd(J21L,PDstandardNth23gt33,kmul(J31L,PDstandardNth33gt33)),kmul(dJ312L,PDstandardNth3gt33)))))));\n \n JacPDstandardNth12phi = \n kmadd(J12L,kmadd(J11L,PDstandardNth11phi,kmadd(J21L,PDstandardNth12phi,kmul(J31L,PDstandardNth13phi))),kmadd(J11L,kmadd(J22L,PDstandardNth12phi,kmul(J32L,PDstandardNth13phi)),kmadd(dJ112L,PDstandardNth1phi,kmadd(J22L,kmadd(J21L,PDstandardNth22phi,kmul(J31L,PDstandardNth23phi)),kmadd(dJ212L,PDstandardNth2phi,kmadd(J32L,kmadd(J21L,PDstandardNth23phi,kmul(J31L,PDstandardNth33phi)),kmul(dJ312L,PDstandardNth3phi)))))));\n \n JacPDstandardNth13alpha = \n kmadd(J13L,kmadd(J11L,PDstandardNth11alpha,kmadd(J21L,PDstandardNth12alpha,kmul(J31L,PDstandardNth13alpha))),kmadd(J11L,kmadd(J23L,PDstandardNth12alpha,kmul(J33L,PDstandardNth13alpha)),kmadd(dJ113L,PDstandardNth1alpha,kmadd(J23L,kmadd(J21L,PDstandardNth22alpha,kmul(J31L,PDstandardNth23alpha)),kmadd(dJ213L,PDstandardNth2alpha,kmadd(J33L,kmadd(J21L,PDstandardNth23alpha,kmul(J31L,PDstandardNth33alpha)),kmul(dJ313L,PDstandardNth3alpha)))))));\n \n JacPDstandardNth13gt11 = \n kmadd(J13L,kmadd(J11L,PDstandardNth11gt11,kmadd(J21L,PDstandardNth12gt11,kmul(J31L,PDstandardNth13gt11))),kmadd(J11L,kmadd(J23L,PDstandardNth12gt11,kmul(J33L,PDstandardNth13gt11)),kmadd(dJ113L,PDstandardNth1gt11,kmadd(J23L,kmadd(J21L,PDstandardNth22gt11,kmul(J31L,PDstandardNth23gt11)),kmadd(dJ213L,PDstandardNth2gt11,kmadd(J33L,kmadd(J21L,PDstandardNth23gt11,kmul(J31L,PDstandardNth33gt11)),kmul(dJ313L,PDstandardNth3gt11)))))));\n \n JacPDstandardNth13gt12 = \n kmadd(J13L,kmadd(J11L,PDstandardNth11gt12,kmadd(J21L,PDstandardNth12gt12,kmul(J31L,PDstandardNth13gt12))),kmadd(J11L,kmadd(J23L,PDstandardNth12gt12,kmul(J33L,PDstandardNth13gt12)),kmadd(dJ113L,PDstandardNth1gt12,kmadd(J23L,kmadd(J21L,PDstandardNth22gt12,kmul(J31L,PDstandardNth23gt12)),kmadd(dJ213L,PDstandardNth2gt12,kmadd(J33L,kmadd(J21L,PDstandardNth23gt12,kmul(J31L,PDstandardNth33gt12)),kmul(dJ313L,PDstandardNth3gt12)))))));\n \n JacPDstandardNth13gt13 = \n kmadd(J13L,kmadd(J11L,PDstandardNth11gt13,kmadd(J21L,PDstandardNth12gt13,kmul(J31L,PDstandardNth13gt13))),kmadd(J11L,kmadd(J23L,PDstandardNth12gt13,kmul(J33L,PDstandardNth13gt13)),kmadd(dJ113L,PDstandardNth1gt13,kmadd(J23L,kmadd(J21L,PDstandardNth22gt13,kmul(J31L,PDstandardNth23gt13)),kmadd(dJ213L,PDstandardNth2gt13,kmadd(J33L,kmadd(J21L,PDstandardNth23gt13,kmul(J31L,PDstandardNth33gt13)),kmul(dJ313L,PDstandardNth3gt13)))))));\n \n JacPDstandardNth13gt22 = \n kmadd(J13L,kmadd(J11L,PDstandardNth11gt22,kmadd(J21L,PDstandardNth12gt22,kmul(J31L,PDstandardNth13gt22))),kmadd(J11L,kmadd(J23L,PDstandardNth12gt22,kmul(J33L,PDstandardNth13gt22)),kmadd(dJ113L,PDstandardNth1gt22,kmadd(J23L,kmadd(J21L,PDstandardNth22gt22,kmul(J31L,PDstandardNth23gt22)),kmadd(dJ213L,PDstandardNth2gt22,kmadd(J33L,kmadd(J21L,PDstandardNth23gt22,kmul(J31L,PDstandardNth33gt22)),kmul(dJ313L,PDstandardNth3gt22)))))));\n \n JacPDstandardNth13gt23 = \n kmadd(J13L,kmadd(J11L,PDstandardNth11gt23,kmadd(J21L,PDstandardNth12gt23,kmul(J31L,PDstandardNth13gt23))),kmadd(J11L,kmadd(J23L,PDstandardNth12gt23,kmul(J33L,PDstandardNth13gt23)),kmadd(dJ113L,PDstandardNth1gt23,kmadd(J23L,kmadd(J21L,PDstandardNth22gt23,kmul(J31L,PDstandardNth23gt23)),kmadd(dJ213L,PDstandardNth2gt23,kmadd(J33L,kmadd(J21L,PDstandardNth23gt23,kmul(J31L,PDstandardNth33gt23)),kmul(dJ313L,PDstandardNth3gt23)))))));\n \n JacPDstandardNth13gt33 = \n kmadd(J13L,kmadd(J11L,PDstandardNth11gt33,kmadd(J21L,PDstandardNth12gt33,kmul(J31L,PDstandardNth13gt33))),kmadd(J11L,kmadd(J23L,PDstandardNth12gt33,kmul(J33L,PDstandardNth13gt33)),kmadd(dJ113L,PDstandardNth1gt33,kmadd(J23L,kmadd(J21L,PDstandardNth22gt33,kmul(J31L,PDstandardNth23gt33)),kmadd(dJ213L,PDstandardNth2gt33,kmadd(J33L,kmadd(J21L,PDstandardNth23gt33,kmul(J31L,PDstandardNth33gt33)),kmul(dJ313L,PDstandardNth3gt33)))))));\n \n JacPDstandardNth13phi = \n kmadd(J13L,kmadd(J11L,PDstandardNth11phi,kmadd(J21L,PDstandardNth12phi,kmul(J31L,PDstandardNth13phi))),kmadd(J11L,kmadd(J23L,PDstandardNth12phi,kmul(J33L,PDstandardNth13phi)),kmadd(dJ113L,PDstandardNth1phi,kmadd(J23L,kmadd(J21L,PDstandardNth22phi,kmul(J31L,PDstandardNth23phi)),kmadd(dJ213L,PDstandardNth2phi,kmadd(J33L,kmadd(J21L,PDstandardNth23phi,kmul(J31L,PDstandardNth33phi)),kmul(dJ313L,PDstandardNth3phi)))))));\n \n JacPDstandardNth21alpha = \n kmadd(J12L,kmadd(J11L,PDstandardNth11alpha,kmadd(J21L,PDstandardNth12alpha,kmul(J31L,PDstandardNth13alpha))),kmadd(J11L,kmadd(J22L,PDstandardNth12alpha,kmul(J32L,PDstandardNth13alpha)),kmadd(dJ112L,PDstandardNth1alpha,kmadd(J22L,kmadd(J21L,PDstandardNth22alpha,kmul(J31L,PDstandardNth23alpha)),kmadd(dJ212L,PDstandardNth2alpha,kmadd(J32L,kmadd(J21L,PDstandardNth23alpha,kmul(J31L,PDstandardNth33alpha)),kmul(dJ312L,PDstandardNth3alpha)))))));\n \n JacPDstandardNth21gt11 = \n kmadd(J12L,kmadd(J11L,PDstandardNth11gt11,kmadd(J21L,PDstandardNth12gt11,kmul(J31L,PDstandardNth13gt11))),kmadd(J11L,kmadd(J22L,PDstandardNth12gt11,kmul(J32L,PDstandardNth13gt11)),kmadd(dJ112L,PDstandardNth1gt11,kmadd(J22L,kmadd(J21L,PDstandardNth22gt11,kmul(J31L,PDstandardNth23gt11)),kmadd(dJ212L,PDstandardNth2gt11,kmadd(J32L,kmadd(J21L,PDstandardNth23gt11,kmul(J31L,PDstandardNth33gt11)),kmul(dJ312L,PDstandardNth3gt11)))))));\n \n JacPDstandardNth21gt12 = \n kmadd(J12L,kmadd(J11L,PDstandardNth11gt12,kmadd(J21L,PDstandardNth12gt12,kmul(J31L,PDstandardNth13gt12))),kmadd(J11L,kmadd(J22L,PDstandardNth12gt12,kmul(J32L,PDstandardNth13gt12)),kmadd(dJ112L,PDstandardNth1gt12,kmadd(J22L,kmadd(J21L,PDstandardNth22gt12,kmul(J31L,PDstandardNth23gt12)),kmadd(dJ212L,PDstandardNth2gt12,kmadd(J32L,kmadd(J21L,PDstandardNth23gt12,kmul(J31L,PDstandardNth33gt12)),kmul(dJ312L,PDstandardNth3gt12)))))));\n \n JacPDstandardNth21gt13 = \n kmadd(J12L,kmadd(J11L,PDstandardNth11gt13,kmadd(J21L,PDstandardNth12gt13,kmul(J31L,PDstandardNth13gt13))),kmadd(J11L,kmadd(J22L,PDstandardNth12gt13,kmul(J32L,PDstandardNth13gt13)),kmadd(dJ112L,PDstandardNth1gt13,kmadd(J22L,kmadd(J21L,PDstandardNth22gt13,kmul(J31L,PDstandardNth23gt13)),kmadd(dJ212L,PDstandardNth2gt13,kmadd(J32L,kmadd(J21L,PDstandardNth23gt13,kmul(J31L,PDstandardNth33gt13)),kmul(dJ312L,PDstandardNth3gt13)))))));\n \n JacPDstandardNth21gt22 = \n kmadd(J12L,kmadd(J11L,PDstandardNth11gt22,kmadd(J21L,PDstandardNth12gt22,kmul(J31L,PDstandardNth13gt22))),kmadd(J11L,kmadd(J22L,PDstandardNth12gt22,kmul(J32L,PDstandardNth13gt22)),kmadd(dJ112L,PDstandardNth1gt22,kmadd(J22L,kmadd(J21L,PDstandardNth22gt22,kmul(J31L,PDstandardNth23gt22)),kmadd(dJ212L,PDstandardNth2gt22,kmadd(J32L,kmadd(J21L,PDstandardNth23gt22,kmul(J31L,PDstandardNth33gt22)),kmul(dJ312L,PDstandardNth3gt22)))))));\n \n JacPDstandardNth21gt23 = \n kmadd(J12L,kmadd(J11L,PDstandardNth11gt23,kmadd(J21L,PDstandardNth12gt23,kmul(J31L,PDstandardNth13gt23))),kmadd(J11L,kmadd(J22L,PDstandardNth12gt23,kmul(J32L,PDstandardNth13gt23)),kmadd(dJ112L,PDstandardNth1gt23,kmadd(J22L,kmadd(J21L,PDstandardNth22gt23,kmul(J31L,PDstandardNth23gt23)),kmadd(dJ212L,PDstandardNth2gt23,kmadd(J32L,kmadd(J21L,PDstandardNth23gt23,kmul(J31L,PDstandardNth33gt23)),kmul(dJ312L,PDstandardNth3gt23)))))));\n \n JacPDstandardNth21gt33 = \n kmadd(J12L,kmadd(J11L,PDstandardNth11gt33,kmadd(J21L,PDstandardNth12gt33,kmul(J31L,PDstandardNth13gt33))),kmadd(J11L,kmadd(J22L,PDstandardNth12gt33,kmul(J32L,PDstandardNth13gt33)),kmadd(dJ112L,PDstandardNth1gt33,kmadd(J22L,kmadd(J21L,PDstandardNth22gt33,kmul(J31L,PDstandardNth23gt33)),kmadd(dJ212L,PDstandardNth2gt33,kmadd(J32L,kmadd(J21L,PDstandardNth23gt33,kmul(J31L,PDstandardNth33gt33)),kmul(dJ312L,PDstandardNth3gt33)))))));\n \n JacPDstandardNth21phi = \n kmadd(J12L,kmadd(J11L,PDstandardNth11phi,kmadd(J21L,PDstandardNth12phi,kmul(J31L,PDstandardNth13phi))),kmadd(J11L,kmadd(J22L,PDstandardNth12phi,kmul(J32L,PDstandardNth13phi)),kmadd(dJ112L,PDstandardNth1phi,kmadd(J22L,kmadd(J21L,PDstandardNth22phi,kmul(J31L,PDstandardNth23phi)),kmadd(dJ212L,PDstandardNth2phi,kmadd(J32L,kmadd(J21L,PDstandardNth23phi,kmul(J31L,PDstandardNth33phi)),kmul(dJ312L,PDstandardNth3phi)))))));\n \n JacPDstandardNth23alpha = \n kmadd(J13L,kmadd(J12L,PDstandardNth11alpha,kmadd(J22L,PDstandardNth12alpha,kmul(J32L,PDstandardNth13alpha))),kmadd(J12L,kmadd(J23L,PDstandardNth12alpha,kmul(J33L,PDstandardNth13alpha)),kmadd(dJ123L,PDstandardNth1alpha,kmadd(J23L,kmadd(J22L,PDstandardNth22alpha,kmul(J32L,PDstandardNth23alpha)),kmadd(dJ223L,PDstandardNth2alpha,kmadd(J33L,kmadd(J22L,PDstandardNth23alpha,kmul(J32L,PDstandardNth33alpha)),kmul(dJ323L,PDstandardNth3alpha)))))));\n \n JacPDstandardNth23gt11 = \n kmadd(J13L,kmadd(J12L,PDstandardNth11gt11,kmadd(J22L,PDstandardNth12gt11,kmul(J32L,PDstandardNth13gt11))),kmadd(J12L,kmadd(J23L,PDstandardNth12gt11,kmul(J33L,PDstandardNth13gt11)),kmadd(dJ123L,PDstandardNth1gt11,kmadd(J23L,kmadd(J22L,PDstandardNth22gt11,kmul(J32L,PDstandardNth23gt11)),kmadd(dJ223L,PDstandardNth2gt11,kmadd(J33L,kmadd(J22L,PDstandardNth23gt11,kmul(J32L,PDstandardNth33gt11)),kmul(dJ323L,PDstandardNth3gt11)))))));\n \n JacPDstandardNth23gt12 = \n kmadd(J13L,kmadd(J12L,PDstandardNth11gt12,kmadd(J22L,PDstandardNth12gt12,kmul(J32L,PDstandardNth13gt12))),kmadd(J12L,kmadd(J23L,PDstandardNth12gt12,kmul(J33L,PDstandardNth13gt12)),kmadd(dJ123L,PDstandardNth1gt12,kmadd(J23L,kmadd(J22L,PDstandardNth22gt12,kmul(J32L,PDstandardNth23gt12)),kmadd(dJ223L,PDstandardNth2gt12,kmadd(J33L,kmadd(J22L,PDstandardNth23gt12,kmul(J32L,PDstandardNth33gt12)),kmul(dJ323L,PDstandardNth3gt12)))))));\n \n JacPDstandardNth23gt13 = \n kmadd(J13L,kmadd(J12L,PDstandardNth11gt13,kmadd(J22L,PDstandardNth12gt13,kmul(J32L,PDstandardNth13gt13))),kmadd(J12L,kmadd(J23L,PDstandardNth12gt13,kmul(J33L,PDstandardNth13gt13)),kmadd(dJ123L,PDstandardNth1gt13,kmadd(J23L,kmadd(J22L,PDstandardNth22gt13,kmul(J32L,PDstandardNth23gt13)),kmadd(dJ223L,PDstandardNth2gt13,kmadd(J33L,kmadd(J22L,PDstandardNth23gt13,kmul(J32L,PDstandardNth33gt13)),kmul(dJ323L,PDstandardNth3gt13)))))));\n \n JacPDstandardNth23gt22 = \n kmadd(J13L,kmadd(J12L,PDstandardNth11gt22,kmadd(J22L,PDstandardNth12gt22,kmul(J32L,PDstandardNth13gt22))),kmadd(J12L,kmadd(J23L,PDstandardNth12gt22,kmul(J33L,PDstandardNth13gt22)),kmadd(dJ123L,PDstandardNth1gt22,kmadd(J23L,kmadd(J22L,PDstandardNth22gt22,kmul(J32L,PDstandardNth23gt22)),kmadd(dJ223L,PDstandardNth2gt22,kmadd(J33L,kmadd(J22L,PDstandardNth23gt22,kmul(J32L,PDstandardNth33gt22)),kmul(dJ323L,PDstandardNth3gt22)))))));\n \n JacPDstandardNth23gt23 = \n kmadd(J13L,kmadd(J12L,PDstandardNth11gt23,kmadd(J22L,PDstandardNth12gt23,kmul(J32L,PDstandardNth13gt23))),kmadd(J12L,kmadd(J23L,PDstandardNth12gt23,kmul(J33L,PDstandardNth13gt23)),kmadd(dJ123L,PDstandardNth1gt23,kmadd(J23L,kmadd(J22L,PDstandardNth22gt23,kmul(J32L,PDstandardNth23gt23)),kmadd(dJ223L,PDstandardNth2gt23,kmadd(J33L,kmadd(J22L,PDstandardNth23gt23,kmul(J32L,PDstandardNth33gt23)),kmul(dJ323L,PDstandardNth3gt23)))))));\n \n JacPDstandardNth23gt33 = \n kmadd(J13L,kmadd(J12L,PDstandardNth11gt33,kmadd(J22L,PDstandardNth12gt33,kmul(J32L,PDstandardNth13gt33))),kmadd(J12L,kmadd(J23L,PDstandardNth12gt33,kmul(J33L,PDstandardNth13gt33)),kmadd(dJ123L,PDstandardNth1gt33,kmadd(J23L,kmadd(J22L,PDstandardNth22gt33,kmul(J32L,PDstandardNth23gt33)),kmadd(dJ223L,PDstandardNth2gt33,kmadd(J33L,kmadd(J22L,PDstandardNth23gt33,kmul(J32L,PDstandardNth33gt33)),kmul(dJ323L,PDstandardNth3gt33)))))));\n \n JacPDstandardNth23phi = \n kmadd(J13L,kmadd(J12L,PDstandardNth11phi,kmadd(J22L,PDstandardNth12phi,kmul(J32L,PDstandardNth13phi))),kmadd(J12L,kmadd(J23L,PDstandardNth12phi,kmul(J33L,PDstandardNth13phi)),kmadd(dJ123L,PDstandardNth1phi,kmadd(J23L,kmadd(J22L,PDstandardNth22phi,kmul(J32L,PDstandardNth23phi)),kmadd(dJ223L,PDstandardNth2phi,kmadd(J33L,kmadd(J22L,PDstandardNth23phi,kmul(J32L,PDstandardNth33phi)),kmul(dJ323L,PDstandardNth3phi)))))));\n \n JacPDstandardNth31alpha = \n kmadd(J13L,kmadd(J11L,PDstandardNth11alpha,kmadd(J21L,PDstandardNth12alpha,kmul(J31L,PDstandardNth13alpha))),kmadd(J11L,kmadd(J23L,PDstandardNth12alpha,kmul(J33L,PDstandardNth13alpha)),kmadd(dJ113L,PDstandardNth1alpha,kmadd(J23L,kmadd(J21L,PDstandardNth22alpha,kmul(J31L,PDstandardNth23alpha)),kmadd(dJ213L,PDstandardNth2alpha,kmadd(J33L,kmadd(J21L,PDstandardNth23alpha,kmul(J31L,PDstandardNth33alpha)),kmul(dJ313L,PDstandardNth3alpha)))))));\n \n JacPDstandardNth31gt11 = \n kmadd(J13L,kmadd(J11L,PDstandardNth11gt11,kmadd(J21L,PDstandardNth12gt11,kmul(J31L,PDstandardNth13gt11))),kmadd(J11L,kmadd(J23L,PDstandardNth12gt11,kmul(J33L,PDstandardNth13gt11)),kmadd(dJ113L,PDstandardNth1gt11,kmadd(J23L,kmadd(J21L,PDstandardNth22gt11,kmul(J31L,PDstandardNth23gt11)),kmadd(dJ213L,PDstandardNth2gt11,kmadd(J33L,kmadd(J21L,PDstandardNth23gt11,kmul(J31L,PDstandardNth33gt11)),kmul(dJ313L,PDstandardNth3gt11)))))));\n \n JacPDstandardNth31gt12 = \n kmadd(J13L,kmadd(J11L,PDstandardNth11gt12,kmadd(J21L,PDstandardNth12gt12,kmul(J31L,PDstandardNth13gt12))),kmadd(J11L,kmadd(J23L,PDstandardNth12gt12,kmul(J33L,PDstandardNth13gt12)),kmadd(dJ113L,PDstandardNth1gt12,kmadd(J23L,kmadd(J21L,PDstandardNth22gt12,kmul(J31L,PDstandardNth23gt12)),kmadd(dJ213L,PDstandardNth2gt12,kmadd(J33L,kmadd(J21L,PDstandardNth23gt12,kmul(J31L,PDstandardNth33gt12)),kmul(dJ313L,PDstandardNth3gt12)))))));\n \n JacPDstandardNth31gt13 = \n kmadd(J13L,kmadd(J11L,PDstandardNth11gt13,kmadd(J21L,PDstandardNth12gt13,kmul(J31L,PDstandardNth13gt13))),kmadd(J11L,kmadd(J23L,PDstandardNth12gt13,kmul(J33L,PDstandardNth13gt13)),kmadd(dJ113L,PDstandardNth1gt13,kmadd(J23L,kmadd(J21L,PDstandardNth22gt13,kmul(J31L,PDstandardNth23gt13)),kmadd(dJ213L,PDstandardNth2gt13,kmadd(J33L,kmadd(J21L,PDstandardNth23gt13,kmul(J31L,PDstandardNth33gt13)),kmul(dJ313L,PDstandardNth3gt13)))))));\n \n JacPDstandardNth31gt22 = \n kmadd(J13L,kmadd(J11L,PDstandardNth11gt22,kmadd(J21L,PDstandardNth12gt22,kmul(J31L,PDstandardNth13gt22))),kmadd(J11L,kmadd(J23L,PDstandardNth12gt22,kmul(J33L,PDstandardNth13gt22)),kmadd(dJ113L,PDstandardNth1gt22,kmadd(J23L,kmadd(J21L,PDstandardNth22gt22,kmul(J31L,PDstandardNth23gt22)),kmadd(dJ213L,PDstandardNth2gt22,kmadd(J33L,kmadd(J21L,PDstandardNth23gt22,kmul(J31L,PDstandardNth33gt22)),kmul(dJ313L,PDstandardNth3gt22)))))));\n \n JacPDstandardNth31gt23 = \n kmadd(J13L,kmadd(J11L,PDstandardNth11gt23,kmadd(J21L,PDstandardNth12gt23,kmul(J31L,PDstandardNth13gt23))),kmadd(J11L,kmadd(J23L,PDstandardNth12gt23,kmul(J33L,PDstandardNth13gt23)),kmadd(dJ113L,PDstandardNth1gt23,kmadd(J23L,kmadd(J21L,PDstandardNth22gt23,kmul(J31L,PDstandardNth23gt23)),kmadd(dJ213L,PDstandardNth2gt23,kmadd(J33L,kmadd(J21L,PDstandardNth23gt23,kmul(J31L,PDstandardNth33gt23)),kmul(dJ313L,PDstandardNth3gt23)))))));\n \n JacPDstandardNth31gt33 = \n kmadd(J13L,kmadd(J11L,PDstandardNth11gt33,kmadd(J21L,PDstandardNth12gt33,kmul(J31L,PDstandardNth13gt33))),kmadd(J11L,kmadd(J23L,PDstandardNth12gt33,kmul(J33L,PDstandardNth13gt33)),kmadd(dJ113L,PDstandardNth1gt33,kmadd(J23L,kmadd(J21L,PDstandardNth22gt33,kmul(J31L,PDstandardNth23gt33)),kmadd(dJ213L,PDstandardNth2gt33,kmadd(J33L,kmadd(J21L,PDstandardNth23gt33,kmul(J31L,PDstandardNth33gt33)),kmul(dJ313L,PDstandardNth3gt33)))))));\n \n JacPDstandardNth31phi = \n kmadd(J13L,kmadd(J11L,PDstandardNth11phi,kmadd(J21L,PDstandardNth12phi,kmul(J31L,PDstandardNth13phi))),kmadd(J11L,kmadd(J23L,PDstandardNth12phi,kmul(J33L,PDstandardNth13phi)),kmadd(dJ113L,PDstandardNth1phi,kmadd(J23L,kmadd(J21L,PDstandardNth22phi,kmul(J31L,PDstandardNth23phi)),kmadd(dJ213L,PDstandardNth2phi,kmadd(J33L,kmadd(J21L,PDstandardNth23phi,kmul(J31L,PDstandardNth33phi)),kmul(dJ313L,PDstandardNth3phi)))))));\n \n JacPDstandardNth32alpha = \n kmadd(J13L,kmadd(J12L,PDstandardNth11alpha,kmadd(J22L,PDstandardNth12alpha,kmul(J32L,PDstandardNth13alpha))),kmadd(J12L,kmadd(J23L,PDstandardNth12alpha,kmul(J33L,PDstandardNth13alpha)),kmadd(dJ123L,PDstandardNth1alpha,kmadd(J23L,kmadd(J22L,PDstandardNth22alpha,kmul(J32L,PDstandardNth23alpha)),kmadd(dJ223L,PDstandardNth2alpha,kmadd(J33L,kmadd(J22L,PDstandardNth23alpha,kmul(J32L,PDstandardNth33alpha)),kmul(dJ323L,PDstandardNth3alpha)))))));\n \n JacPDstandardNth32gt11 = \n kmadd(J13L,kmadd(J12L,PDstandardNth11gt11,kmadd(J22L,PDstandardNth12gt11,kmul(J32L,PDstandardNth13gt11))),kmadd(J12L,kmadd(J23L,PDstandardNth12gt11,kmul(J33L,PDstandardNth13gt11)),kmadd(dJ123L,PDstandardNth1gt11,kmadd(J23L,kmadd(J22L,PDstandardNth22gt11,kmul(J32L,PDstandardNth23gt11)),kmadd(dJ223L,PDstandardNth2gt11,kmadd(J33L,kmadd(J22L,PDstandardNth23gt11,kmul(J32L,PDstandardNth33gt11)),kmul(dJ323L,PDstandardNth3gt11)))))));\n \n JacPDstandardNth32gt12 = \n kmadd(J13L,kmadd(J12L,PDstandardNth11gt12,kmadd(J22L,PDstandardNth12gt12,kmul(J32L,PDstandardNth13gt12))),kmadd(J12L,kmadd(J23L,PDstandardNth12gt12,kmul(J33L,PDstandardNth13gt12)),kmadd(dJ123L,PDstandardNth1gt12,kmadd(J23L,kmadd(J22L,PDstandardNth22gt12,kmul(J32L,PDstandardNth23gt12)),kmadd(dJ223L,PDstandardNth2gt12,kmadd(J33L,kmadd(J22L,PDstandardNth23gt12,kmul(J32L,PDstandardNth33gt12)),kmul(dJ323L,PDstandardNth3gt12)))))));\n \n JacPDstandardNth32gt13 = \n kmadd(J13L,kmadd(J12L,PDstandardNth11gt13,kmadd(J22L,PDstandardNth12gt13,kmul(J32L,PDstandardNth13gt13))),kmadd(J12L,kmadd(J23L,PDstandardNth12gt13,kmul(J33L,PDstandardNth13gt13)),kmadd(dJ123L,PDstandardNth1gt13,kmadd(J23L,kmadd(J22L,PDstandardNth22gt13,kmul(J32L,PDstandardNth23gt13)),kmadd(dJ223L,PDstandardNth2gt13,kmadd(J33L,kmadd(J22L,PDstandardNth23gt13,kmul(J32L,PDstandardNth33gt13)),kmul(dJ323L,PDstandardNth3gt13)))))));\n \n JacPDstandardNth32gt22 = \n kmadd(J13L,kmadd(J12L,PDstandardNth11gt22,kmadd(J22L,PDstandardNth12gt22,kmul(J32L,PDstandardNth13gt22))),kmadd(J12L,kmadd(J23L,PDstandardNth12gt22,kmul(J33L,PDstandardNth13gt22)),kmadd(dJ123L,PDstandardNth1gt22,kmadd(J23L,kmadd(J22L,PDstandardNth22gt22,kmul(J32L,PDstandardNth23gt22)),kmadd(dJ223L,PDstandardNth2gt22,kmadd(J33L,kmadd(J22L,PDstandardNth23gt22,kmul(J32L,PDstandardNth33gt22)),kmul(dJ323L,PDstandardNth3gt22)))))));\n \n JacPDstandardNth32gt23 = \n kmadd(J13L,kmadd(J12L,PDstandardNth11gt23,kmadd(J22L,PDstandardNth12gt23,kmul(J32L,PDstandardNth13gt23))),kmadd(J12L,kmadd(J23L,PDstandardNth12gt23,kmul(J33L,PDstandardNth13gt23)),kmadd(dJ123L,PDstandardNth1gt23,kmadd(J23L,kmadd(J22L,PDstandardNth22gt23,kmul(J32L,PDstandardNth23gt23)),kmadd(dJ223L,PDstandardNth2gt23,kmadd(J33L,kmadd(J22L,PDstandardNth23gt23,kmul(J32L,PDstandardNth33gt23)),kmul(dJ323L,PDstandardNth3gt23)))))));\n \n JacPDstandardNth32gt33 = \n kmadd(J13L,kmadd(J12L,PDstandardNth11gt33,kmadd(J22L,PDstandardNth12gt33,kmul(J32L,PDstandardNth13gt33))),kmadd(J12L,kmadd(J23L,PDstandardNth12gt33,kmul(J33L,PDstandardNth13gt33)),kmadd(dJ123L,PDstandardNth1gt33,kmadd(J23L,kmadd(J22L,PDstandardNth22gt33,kmul(J32L,PDstandardNth23gt33)),kmadd(dJ223L,PDstandardNth2gt33,kmadd(J33L,kmadd(J22L,PDstandardNth23gt33,kmul(J32L,PDstandardNth33gt33)),kmul(dJ323L,PDstandardNth3gt33)))))));\n \n JacPDstandardNth32phi = \n kmadd(J13L,kmadd(J12L,PDstandardNth11phi,kmadd(J22L,PDstandardNth12phi,kmul(J32L,PDstandardNth13phi))),kmadd(J12L,kmadd(J23L,PDstandardNth12phi,kmul(J33L,PDstandardNth13phi)),kmadd(dJ123L,PDstandardNth1phi,kmadd(J23L,kmadd(J22L,PDstandardNth22phi,kmul(J32L,PDstandardNth23phi)),kmadd(dJ223L,PDstandardNth2phi,kmadd(J33L,kmadd(J22L,PDstandardNth23phi,kmul(J32L,PDstandardNth33phi)),kmul(dJ323L,PDstandardNth3phi)))))));\n \n JacPDupwindNthSymm1A = \n kmadd(J11L,PDupwindNthSymm1A,kmadd(J21L,PDupwindNthSymm2A,kmul(J31L,PDupwindNthSymm3A)));\n \n JacPDupwindNthSymm1alpha = \n kmadd(J11L,PDupwindNthSymm1alpha,kmadd(J21L,PDupwindNthSymm2alpha,kmul(J31L,PDupwindNthSymm3alpha)));\n \n JacPDupwindNthSymm1gt11 = \n kmadd(J11L,PDupwindNthSymm1gt11,kmadd(J21L,PDupwindNthSymm2gt11,kmul(J31L,PDupwindNthSymm3gt11)));\n \n JacPDupwindNthSymm1gt12 = \n kmadd(J11L,PDupwindNthSymm1gt12,kmadd(J21L,PDupwindNthSymm2gt12,kmul(J31L,PDupwindNthSymm3gt12)));\n \n JacPDupwindNthSymm1gt13 = \n kmadd(J11L,PDupwindNthSymm1gt13,kmadd(J21L,PDupwindNthSymm2gt13,kmul(J31L,PDupwindNthSymm3gt13)));\n \n JacPDupwindNthSymm1gt22 = \n kmadd(J11L,PDupwindNthSymm1gt22,kmadd(J21L,PDupwindNthSymm2gt22,kmul(J31L,PDupwindNthSymm3gt22)));\n \n JacPDupwindNthSymm1gt23 = \n kmadd(J11L,PDupwindNthSymm1gt23,kmadd(J21L,PDupwindNthSymm2gt23,kmul(J31L,PDupwindNthSymm3gt23)));\n \n JacPDupwindNthSymm1gt33 = \n kmadd(J11L,PDupwindNthSymm1gt33,kmadd(J21L,PDupwindNthSymm2gt33,kmul(J31L,PDupwindNthSymm3gt33)));\n \n JacPDupwindNthSymm1phi = \n kmadd(J11L,PDupwindNthSymm1phi,kmadd(J21L,PDupwindNthSymm2phi,kmul(J31L,PDupwindNthSymm3phi)));\n \n JacPDupwindNthSymm1trK = \n kmadd(J11L,PDupwindNthSymm1trK,kmadd(J21L,PDupwindNthSymm2trK,kmul(J31L,PDupwindNthSymm3trK)));\n \n JacPDupwindNthSymm2A = \n kmadd(J12L,PDupwindNthSymm1A,kmadd(J22L,PDupwindNthSymm2A,kmul(J32L,PDupwindNthSymm3A)));\n \n JacPDupwindNthSymm2alpha = \n kmadd(J12L,PDupwindNthSymm1alpha,kmadd(J22L,PDupwindNthSymm2alpha,kmul(J32L,PDupwindNthSymm3alpha)));\n \n JacPDupwindNthSymm2gt11 = \n kmadd(J12L,PDupwindNthSymm1gt11,kmadd(J22L,PDupwindNthSymm2gt11,kmul(J32L,PDupwindNthSymm3gt11)));\n \n JacPDupwindNthSymm2gt12 = \n kmadd(J12L,PDupwindNthSymm1gt12,kmadd(J22L,PDupwindNthSymm2gt12,kmul(J32L,PDupwindNthSymm3gt12)));\n \n JacPDupwindNthSymm2gt13 = \n kmadd(J12L,PDupwindNthSymm1gt13,kmadd(J22L,PDupwindNthSymm2gt13,kmul(J32L,PDupwindNthSymm3gt13)));\n \n JacPDupwindNthSymm2gt22 = \n kmadd(J12L,PDupwindNthSymm1gt22,kmadd(J22L,PDupwindNthSymm2gt22,kmul(J32L,PDupwindNthSymm3gt22)));\n \n JacPDupwindNthSymm2gt23 = \n kmadd(J12L,PDupwindNthSymm1gt23,kmadd(J22L,PDupwindNthSymm2gt23,kmul(J32L,PDupwindNthSymm3gt23)));\n \n JacPDupwindNthSymm2gt33 = \n kmadd(J12L,PDupwindNthSymm1gt33,kmadd(J22L,PDupwindNthSymm2gt33,kmul(J32L,PDupwindNthSymm3gt33)));\n \n JacPDupwindNthSymm2phi = \n kmadd(J12L,PDupwindNthSymm1phi,kmadd(J22L,PDupwindNthSymm2phi,kmul(J32L,PDupwindNthSymm3phi)));\n \n JacPDupwindNthSymm2trK = \n kmadd(J12L,PDupwindNthSymm1trK,kmadd(J22L,PDupwindNthSymm2trK,kmul(J32L,PDupwindNthSymm3trK)));\n \n JacPDupwindNthSymm3A = \n kmadd(J13L,PDupwindNthSymm1A,kmadd(J23L,PDupwindNthSymm2A,kmul(J33L,PDupwindNthSymm3A)));\n \n JacPDupwindNthSymm3alpha = \n kmadd(J13L,PDupwindNthSymm1alpha,kmadd(J23L,PDupwindNthSymm2alpha,kmul(J33L,PDupwindNthSymm3alpha)));\n \n JacPDupwindNthSymm3gt11 = \n kmadd(J13L,PDupwindNthSymm1gt11,kmadd(J23L,PDupwindNthSymm2gt11,kmul(J33L,PDupwindNthSymm3gt11)));\n \n JacPDupwindNthSymm3gt12 = \n kmadd(J13L,PDupwindNthSymm1gt12,kmadd(J23L,PDupwindNthSymm2gt12,kmul(J33L,PDupwindNthSymm3gt12)));\n \n JacPDupwindNthSymm3gt13 = \n kmadd(J13L,PDupwindNthSymm1gt13,kmadd(J23L,PDupwindNthSymm2gt13,kmul(J33L,PDupwindNthSymm3gt13)));\n \n JacPDupwindNthSymm3gt22 = \n kmadd(J13L,PDupwindNthSymm1gt22,kmadd(J23L,PDupwindNthSymm2gt22,kmul(J33L,PDupwindNthSymm3gt22)));\n \n JacPDupwindNthSymm3gt23 = \n kmadd(J13L,PDupwindNthSymm1gt23,kmadd(J23L,PDupwindNthSymm2gt23,kmul(J33L,PDupwindNthSymm3gt23)));\n \n JacPDupwindNthSymm3gt33 = \n kmadd(J13L,PDupwindNthSymm1gt33,kmadd(J23L,PDupwindNthSymm2gt33,kmul(J33L,PDupwindNthSymm3gt33)));\n \n JacPDupwindNthSymm3phi = \n kmadd(J13L,PDupwindNthSymm1phi,kmadd(J23L,PDupwindNthSymm2phi,kmul(J33L,PDupwindNthSymm3phi)));\n \n JacPDupwindNthSymm3trK = \n kmadd(J13L,PDupwindNthSymm1trK,kmadd(J23L,PDupwindNthSymm2trK,kmul(J33L,PDupwindNthSymm3trK)));\n \n JacPDupwindNthAnti1A = \n kmadd(J11L,PDupwindNthAnti1A,kmadd(J21L,PDupwindNthAnti2A,kmul(J31L,PDupwindNthAnti3A)));\n \n JacPDupwindNthAnti1alpha = \n kmadd(J11L,PDupwindNthAnti1alpha,kmadd(J21L,PDupwindNthAnti2alpha,kmul(J31L,PDupwindNthAnti3alpha)));\n \n JacPDupwindNthAnti1gt11 = \n kmadd(J11L,PDupwindNthAnti1gt11,kmadd(J21L,PDupwindNthAnti2gt11,kmul(J31L,PDupwindNthAnti3gt11)));\n \n JacPDupwindNthAnti1gt12 = \n kmadd(J11L,PDupwindNthAnti1gt12,kmadd(J21L,PDupwindNthAnti2gt12,kmul(J31L,PDupwindNthAnti3gt12)));\n \n JacPDupwindNthAnti1gt13 = \n kmadd(J11L,PDupwindNthAnti1gt13,kmadd(J21L,PDupwindNthAnti2gt13,kmul(J31L,PDupwindNthAnti3gt13)));\n \n JacPDupwindNthAnti1gt22 = \n kmadd(J11L,PDupwindNthAnti1gt22,kmadd(J21L,PDupwindNthAnti2gt22,kmul(J31L,PDupwindNthAnti3gt22)));\n \n JacPDupwindNthAnti1gt23 = \n kmadd(J11L,PDupwindNthAnti1gt23,kmadd(J21L,PDupwindNthAnti2gt23,kmul(J31L,PDupwindNthAnti3gt23)));\n \n JacPDupwindNthAnti1gt33 = \n kmadd(J11L,PDupwindNthAnti1gt33,kmadd(J21L,PDupwindNthAnti2gt33,kmul(J31L,PDupwindNthAnti3gt33)));\n \n JacPDupwindNthAnti1phi = \n kmadd(J11L,PDupwindNthAnti1phi,kmadd(J21L,PDupwindNthAnti2phi,kmul(J31L,PDupwindNthAnti3phi)));\n \n JacPDupwindNthAnti1trK = \n kmadd(J11L,PDupwindNthAnti1trK,kmadd(J21L,PDupwindNthAnti2trK,kmul(J31L,PDupwindNthAnti3trK)));\n \n JacPDupwindNthAnti2A = \n kmadd(J12L,PDupwindNthAnti1A,kmadd(J22L,PDupwindNthAnti2A,kmul(J32L,PDupwindNthAnti3A)));\n \n JacPDupwindNthAnti2alpha = \n kmadd(J12L,PDupwindNthAnti1alpha,kmadd(J22L,PDupwindNthAnti2alpha,kmul(J32L,PDupwindNthAnti3alpha)));\n \n JacPDupwindNthAnti2gt11 = \n kmadd(J12L,PDupwindNthAnti1gt11,kmadd(J22L,PDupwindNthAnti2gt11,kmul(J32L,PDupwindNthAnti3gt11)));\n \n JacPDupwindNthAnti2gt12 = \n kmadd(J12L,PDupwindNthAnti1gt12,kmadd(J22L,PDupwindNthAnti2gt12,kmul(J32L,PDupwindNthAnti3gt12)));\n \n JacPDupwindNthAnti2gt13 = \n kmadd(J12L,PDupwindNthAnti1gt13,kmadd(J22L,PDupwindNthAnti2gt13,kmul(J32L,PDupwindNthAnti3gt13)));\n \n JacPDupwindNthAnti2gt22 = \n kmadd(J12L,PDupwindNthAnti1gt22,kmadd(J22L,PDupwindNthAnti2gt22,kmul(J32L,PDupwindNthAnti3gt22)));\n \n JacPDupwindNthAnti2gt23 = \n kmadd(J12L,PDupwindNthAnti1gt23,kmadd(J22L,PDupwindNthAnti2gt23,kmul(J32L,PDupwindNthAnti3gt23)));\n \n JacPDupwindNthAnti2gt33 = \n kmadd(J12L,PDupwindNthAnti1gt33,kmadd(J22L,PDupwindNthAnti2gt33,kmul(J32L,PDupwindNthAnti3gt33)));\n \n JacPDupwindNthAnti2phi = \n kmadd(J12L,PDupwindNthAnti1phi,kmadd(J22L,PDupwindNthAnti2phi,kmul(J32L,PDupwindNthAnti3phi)));\n \n JacPDupwindNthAnti2trK = \n kmadd(J12L,PDupwindNthAnti1trK,kmadd(J22L,PDupwindNthAnti2trK,kmul(J32L,PDupwindNthAnti3trK)));\n \n JacPDupwindNthAnti3A = \n kmadd(J13L,PDupwindNthAnti1A,kmadd(J23L,PDupwindNthAnti2A,kmul(J33L,PDupwindNthAnti3A)));\n \n JacPDupwindNthAnti3alpha = \n kmadd(J13L,PDupwindNthAnti1alpha,kmadd(J23L,PDupwindNthAnti2alpha,kmul(J33L,PDupwindNthAnti3alpha)));\n \n JacPDupwindNthAnti3gt11 = \n kmadd(J13L,PDupwindNthAnti1gt11,kmadd(J23L,PDupwindNthAnti2gt11,kmul(J33L,PDupwindNthAnti3gt11)));\n \n JacPDupwindNthAnti3gt12 = \n kmadd(J13L,PDupwindNthAnti1gt12,kmadd(J23L,PDupwindNthAnti2gt12,kmul(J33L,PDupwindNthAnti3gt12)));\n \n JacPDupwindNthAnti3gt13 = \n kmadd(J13L,PDupwindNthAnti1gt13,kmadd(J23L,PDupwindNthAnti2gt13,kmul(J33L,PDupwindNthAnti3gt13)));\n \n JacPDupwindNthAnti3gt22 = \n kmadd(J13L,PDupwindNthAnti1gt22,kmadd(J23L,PDupwindNthAnti2gt22,kmul(J33L,PDupwindNthAnti3gt22)));\n \n JacPDupwindNthAnti3gt23 = \n kmadd(J13L,PDupwindNthAnti1gt23,kmadd(J23L,PDupwindNthAnti2gt23,kmul(J33L,PDupwindNthAnti3gt23)));\n \n JacPDupwindNthAnti3gt33 = \n kmadd(J13L,PDupwindNthAnti1gt33,kmadd(J23L,PDupwindNthAnti2gt33,kmul(J33L,PDupwindNthAnti3gt33)));\n \n JacPDupwindNthAnti3phi = \n kmadd(J13L,PDupwindNthAnti1phi,kmadd(J23L,PDupwindNthAnti2phi,kmul(J33L,PDupwindNthAnti3phi)));\n \n JacPDupwindNthAnti3trK = \n kmadd(J13L,PDupwindNthAnti1trK,kmadd(J23L,PDupwindNthAnti2trK,kmul(J33L,PDupwindNthAnti3trK)));\n \n JacPDdissipationNth1A = \n kmadd(J11L,PDdissipationNth1A,kmadd(J21L,PDdissipationNth2A,kmul(J31L,PDdissipationNth3A)));\n \n JacPDdissipationNth1alpha = \n kmadd(J11L,PDdissipationNth1alpha,kmadd(J21L,PDdissipationNth2alpha,kmul(J31L,PDdissipationNth3alpha)));\n \n JacPDdissipationNth1gt11 = \n kmadd(J11L,PDdissipationNth1gt11,kmadd(J21L,PDdissipationNth2gt11,kmul(J31L,PDdissipationNth3gt11)));\n \n JacPDdissipationNth1gt12 = \n kmadd(J11L,PDdissipationNth1gt12,kmadd(J21L,PDdissipationNth2gt12,kmul(J31L,PDdissipationNth3gt12)));\n \n JacPDdissipationNth1gt13 = \n kmadd(J11L,PDdissipationNth1gt13,kmadd(J21L,PDdissipationNth2gt13,kmul(J31L,PDdissipationNth3gt13)));\n \n JacPDdissipationNth1gt22 = \n kmadd(J11L,PDdissipationNth1gt22,kmadd(J21L,PDdissipationNth2gt22,kmul(J31L,PDdissipationNth3gt22)));\n \n JacPDdissipationNth1gt23 = \n kmadd(J11L,PDdissipationNth1gt23,kmadd(J21L,PDdissipationNth2gt23,kmul(J31L,PDdissipationNth3gt23)));\n \n JacPDdissipationNth1gt33 = \n kmadd(J11L,PDdissipationNth1gt33,kmadd(J21L,PDdissipationNth2gt33,kmul(J31L,PDdissipationNth3gt33)));\n \n JacPDdissipationNth1phi = \n kmadd(J11L,PDdissipationNth1phi,kmadd(J21L,PDdissipationNth2phi,kmul(J31L,PDdissipationNth3phi)));\n \n JacPDdissipationNth2A = \n kmadd(J12L,PDdissipationNth1A,kmadd(J22L,PDdissipationNth2A,kmul(J32L,PDdissipationNth3A)));\n \n JacPDdissipationNth2alpha = \n kmadd(J12L,PDdissipationNth1alpha,kmadd(J22L,PDdissipationNth2alpha,kmul(J32L,PDdissipationNth3alpha)));\n \n JacPDdissipationNth2gt11 = \n kmadd(J12L,PDdissipationNth1gt11,kmadd(J22L,PDdissipationNth2gt11,kmul(J32L,PDdissipationNth3gt11)));\n \n JacPDdissipationNth2gt12 = \n kmadd(J12L,PDdissipationNth1gt12,kmadd(J22L,PDdissipationNth2gt12,kmul(J32L,PDdissipationNth3gt12)));\n \n JacPDdissipationNth2gt13 = \n kmadd(J12L,PDdissipationNth1gt13,kmadd(J22L,PDdissipationNth2gt13,kmul(J32L,PDdissipationNth3gt13)));\n \n JacPDdissipationNth2gt22 = \n kmadd(J12L,PDdissipationNth1gt22,kmadd(J22L,PDdissipationNth2gt22,kmul(J32L,PDdissipationNth3gt22)));\n \n JacPDdissipationNth2gt23 = \n kmadd(J12L,PDdissipationNth1gt23,kmadd(J22L,PDdissipationNth2gt23,kmul(J32L,PDdissipationNth3gt23)));\n \n JacPDdissipationNth2gt33 = \n kmadd(J12L,PDdissipationNth1gt33,kmadd(J22L,PDdissipationNth2gt33,kmul(J32L,PDdissipationNth3gt33)));\n \n JacPDdissipationNth2phi = \n kmadd(J12L,PDdissipationNth1phi,kmadd(J22L,PDdissipationNth2phi,kmul(J32L,PDdissipationNth3phi)));\n \n JacPDdissipationNth3A = \n kmadd(J13L,PDdissipationNth1A,kmadd(J23L,PDdissipationNth2A,kmul(J33L,PDdissipationNth3A)));\n \n JacPDdissipationNth3alpha = \n kmadd(J13L,PDdissipationNth1alpha,kmadd(J23L,PDdissipationNth2alpha,kmul(J33L,PDdissipationNth3alpha)));\n \n JacPDdissipationNth3gt11 = \n kmadd(J13L,PDdissipationNth1gt11,kmadd(J23L,PDdissipationNth2gt11,kmul(J33L,PDdissipationNth3gt11)));\n \n JacPDdissipationNth3gt12 = \n kmadd(J13L,PDdissipationNth1gt12,kmadd(J23L,PDdissipationNth2gt12,kmul(J33L,PDdissipationNth3gt12)));\n \n JacPDdissipationNth3gt13 = \n kmadd(J13L,PDdissipationNth1gt13,kmadd(J23L,PDdissipationNth2gt13,kmul(J33L,PDdissipationNth3gt13)));\n \n JacPDdissipationNth3gt22 = \n kmadd(J13L,PDdissipationNth1gt22,kmadd(J23L,PDdissipationNth2gt22,kmul(J33L,PDdissipationNth3gt22)));\n \n JacPDdissipationNth3gt23 = \n kmadd(J13L,PDdissipationNth1gt23,kmadd(J23L,PDdissipationNth2gt23,kmul(J33L,PDdissipationNth3gt23)));\n \n JacPDdissipationNth3gt33 = \n kmadd(J13L,PDdissipationNth1gt33,kmadd(J23L,PDdissipationNth2gt33,kmul(J33L,PDdissipationNth3gt33)));\n \n JacPDdissipationNth3phi = \n kmadd(J13L,PDdissipationNth1phi,kmadd(J23L,PDdissipationNth2phi,kmul(J33L,PDdissipationNth3phi)));\n }\n else\n {\n JacPDstandardNth1alpha = PDstandardNth1alpha;\n \n JacPDstandardNth1beta1 = PDstandardNth1beta1;\n \n JacPDstandardNth1beta2 = PDstandardNth1beta2;\n \n JacPDstandardNth1beta3 = PDstandardNth1beta3;\n \n JacPDstandardNth1gt11 = PDstandardNth1gt11;\n \n JacPDstandardNth1gt12 = PDstandardNth1gt12;\n \n JacPDstandardNth1gt13 = PDstandardNth1gt13;\n \n JacPDstandardNth1gt22 = PDstandardNth1gt22;\n \n JacPDstandardNth1gt23 = PDstandardNth1gt23;\n \n JacPDstandardNth1gt33 = PDstandardNth1gt33;\n \n JacPDstandardNth1phi = PDstandardNth1phi;\n \n JacPDstandardNth1Xt1 = PDstandardNth1Xt1;\n \n JacPDstandardNth1Xt2 = PDstandardNth1Xt2;\n \n JacPDstandardNth1Xt3 = PDstandardNth1Xt3;\n \n JacPDstandardNth2alpha = PDstandardNth2alpha;\n \n JacPDstandardNth2beta1 = PDstandardNth2beta1;\n \n JacPDstandardNth2beta2 = PDstandardNth2beta2;\n \n JacPDstandardNth2beta3 = PDstandardNth2beta3;\n \n JacPDstandardNth2gt11 = PDstandardNth2gt11;\n \n JacPDstandardNth2gt12 = PDstandardNth2gt12;\n \n JacPDstandardNth2gt13 = PDstandardNth2gt13;\n \n JacPDstandardNth2gt22 = PDstandardNth2gt22;\n \n JacPDstandardNth2gt23 = PDstandardNth2gt23;\n \n JacPDstandardNth2gt33 = PDstandardNth2gt33;\n \n JacPDstandardNth2phi = PDstandardNth2phi;\n \n JacPDstandardNth2Xt1 = PDstandardNth2Xt1;\n \n JacPDstandardNth2Xt2 = PDstandardNth2Xt2;\n \n JacPDstandardNth2Xt3 = PDstandardNth2Xt3;\n \n JacPDstandardNth3alpha = PDstandardNth3alpha;\n \n JacPDstandardNth3beta1 = PDstandardNth3beta1;\n \n JacPDstandardNth3beta2 = PDstandardNth3beta2;\n \n JacPDstandardNth3beta3 = PDstandardNth3beta3;\n \n JacPDstandardNth3gt11 = PDstandardNth3gt11;\n \n JacPDstandardNth3gt12 = PDstandardNth3gt12;\n \n JacPDstandardNth3gt13 = PDstandardNth3gt13;\n \n JacPDstandardNth3gt22 = PDstandardNth3gt22;\n \n JacPDstandardNth3gt23 = PDstandardNth3gt23;\n \n JacPDstandardNth3gt33 = PDstandardNth3gt33;\n \n JacPDstandardNth3phi = PDstandardNth3phi;\n \n JacPDstandardNth3Xt1 = PDstandardNth3Xt1;\n \n JacPDstandardNth3Xt2 = PDstandardNth3Xt2;\n \n JacPDstandardNth3Xt3 = PDstandardNth3Xt3;\n \n JacPDstandardNth11alpha = PDstandardNth11alpha;\n \n JacPDstandardNth11gt11 = PDstandardNth11gt11;\n \n JacPDstandardNth11gt12 = PDstandardNth11gt12;\n \n JacPDstandardNth11gt13 = PDstandardNth11gt13;\n \n JacPDstandardNth11gt22 = PDstandardNth11gt22;\n \n JacPDstandardNth11gt23 = PDstandardNth11gt23;\n \n JacPDstandardNth11gt33 = PDstandardNth11gt33;\n \n JacPDstandardNth11phi = PDstandardNth11phi;\n \n JacPDstandardNth22alpha = PDstandardNth22alpha;\n \n JacPDstandardNth22gt11 = PDstandardNth22gt11;\n \n JacPDstandardNth22gt12 = PDstandardNth22gt12;\n \n JacPDstandardNth22gt13 = PDstandardNth22gt13;\n \n JacPDstandardNth22gt22 = PDstandardNth22gt22;\n \n JacPDstandardNth22gt23 = PDstandardNth22gt23;\n \n JacPDstandardNth22gt33 = PDstandardNth22gt33;\n \n JacPDstandardNth22phi = PDstandardNth22phi;\n \n JacPDstandardNth33alpha = PDstandardNth33alpha;\n \n JacPDstandardNth33gt11 = PDstandardNth33gt11;\n \n JacPDstandardNth33gt12 = PDstandardNth33gt12;\n \n JacPDstandardNth33gt13 = PDstandardNth33gt13;\n \n JacPDstandardNth33gt22 = PDstandardNth33gt22;\n \n JacPDstandardNth33gt23 = PDstandardNth33gt23;\n \n JacPDstandardNth33gt33 = PDstandardNth33gt33;\n \n JacPDstandardNth33phi = PDstandardNth33phi;\n \n JacPDstandardNth12alpha = PDstandardNth12alpha;\n \n JacPDstandardNth12gt11 = PDstandardNth12gt11;\n \n JacPDstandardNth12gt12 = PDstandardNth12gt12;\n \n JacPDstandardNth12gt13 = PDstandardNth12gt13;\n \n JacPDstandardNth12gt22 = PDstandardNth12gt22;\n \n JacPDstandardNth12gt23 = PDstandardNth12gt23;\n \n JacPDstandardNth12gt33 = PDstandardNth12gt33;\n \n JacPDstandardNth12phi = PDstandardNth12phi;\n \n JacPDstandardNth13alpha = PDstandardNth13alpha;\n \n JacPDstandardNth13gt11 = PDstandardNth13gt11;\n \n JacPDstandardNth13gt12 = PDstandardNth13gt12;\n \n JacPDstandardNth13gt13 = PDstandardNth13gt13;\n \n JacPDstandardNth13gt22 = PDstandardNth13gt22;\n \n JacPDstandardNth13gt23 = PDstandardNth13gt23;\n \n JacPDstandardNth13gt33 = PDstandardNth13gt33;\n \n JacPDstandardNth13phi = PDstandardNth13phi;\n \n JacPDstandardNth21alpha = PDstandardNth12alpha;\n \n JacPDstandardNth21gt11 = PDstandardNth12gt11;\n \n JacPDstandardNth21gt12 = PDstandardNth12gt12;\n \n JacPDstandardNth21gt13 = PDstandardNth12gt13;\n \n JacPDstandardNth21gt22 = PDstandardNth12gt22;\n \n JacPDstandardNth21gt23 = PDstandardNth12gt23;\n \n JacPDstandardNth21gt33 = PDstandardNth12gt33;\n \n JacPDstandardNth21phi = PDstandardNth12phi;\n \n JacPDstandardNth23alpha = PDstandardNth23alpha;\n \n JacPDstandardNth23gt11 = PDstandardNth23gt11;\n \n JacPDstandardNth23gt12 = PDstandardNth23gt12;\n \n JacPDstandardNth23gt13 = PDstandardNth23gt13;\n \n JacPDstandardNth23gt22 = PDstandardNth23gt22;\n \n JacPDstandardNth23gt23 = PDstandardNth23gt23;\n \n JacPDstandardNth23gt33 = PDstandardNth23gt33;\n \n JacPDstandardNth23phi = PDstandardNth23phi;\n \n JacPDstandardNth31alpha = PDstandardNth13alpha;\n \n JacPDstandardNth31gt11 = PDstandardNth13gt11;\n \n JacPDstandardNth31gt12 = PDstandardNth13gt12;\n \n JacPDstandardNth31gt13 = PDstandardNth13gt13;\n \n JacPDstandardNth31gt22 = PDstandardNth13gt22;\n \n JacPDstandardNth31gt23 = PDstandardNth13gt23;\n \n JacPDstandardNth31gt33 = PDstandardNth13gt33;\n \n JacPDstandardNth31phi = PDstandardNth13phi;\n \n JacPDstandardNth32alpha = PDstandardNth23alpha;\n \n JacPDstandardNth32gt11 = PDstandardNth23gt11;\n \n JacPDstandardNth32gt12 = PDstandardNth23gt12;\n \n JacPDstandardNth32gt13 = PDstandardNth23gt13;\n \n JacPDstandardNth32gt22 = PDstandardNth23gt22;\n \n JacPDstandardNth32gt23 = PDstandardNth23gt23;\n \n JacPDstandardNth32gt33 = PDstandardNth23gt33;\n \n JacPDstandardNth32phi = PDstandardNth23phi;\n \n JacPDupwindNthSymm1A = PDupwindNthSymm1A;\n \n JacPDupwindNthSymm1alpha = PDupwindNthSymm1alpha;\n \n JacPDupwindNthSymm1gt11 = PDupwindNthSymm1gt11;\n \n JacPDupwindNthSymm1gt12 = PDupwindNthSymm1gt12;\n \n JacPDupwindNthSymm1gt13 = PDupwindNthSymm1gt13;\n \n JacPDupwindNthSymm1gt22 = PDupwindNthSymm1gt22;\n \n JacPDupwindNthSymm1gt23 = PDupwindNthSymm1gt23;\n \n JacPDupwindNthSymm1gt33 = PDupwindNthSymm1gt33;\n \n JacPDupwindNthSymm1phi = PDupwindNthSymm1phi;\n \n JacPDupwindNthSymm1trK = PDupwindNthSymm1trK;\n \n JacPDupwindNthSymm2A = PDupwindNthSymm2A;\n \n JacPDupwindNthSymm2alpha = PDupwindNthSymm2alpha;\n \n JacPDupwindNthSymm2gt11 = PDupwindNthSymm2gt11;\n \n JacPDupwindNthSymm2gt12 = PDupwindNthSymm2gt12;\n \n JacPDupwindNthSymm2gt13 = PDupwindNthSymm2gt13;\n \n JacPDupwindNthSymm2gt22 = PDupwindNthSymm2gt22;\n \n JacPDupwindNthSymm2gt23 = PDupwindNthSymm2gt23;\n \n JacPDupwindNthSymm2gt33 = PDupwindNthSymm2gt33;\n \n JacPDupwindNthSymm2phi = PDupwindNthSymm2phi;\n \n JacPDupwindNthSymm2trK = PDupwindNthSymm2trK;\n \n JacPDupwindNthSymm3A = PDupwindNthSymm3A;\n \n JacPDupwindNthSymm3alpha = PDupwindNthSymm3alpha;\n \n JacPDupwindNthSymm3gt11 = PDupwindNthSymm3gt11;\n \n JacPDupwindNthSymm3gt12 = PDupwindNthSymm3gt12;\n \n JacPDupwindNthSymm3gt13 = PDupwindNthSymm3gt13;\n \n JacPDupwindNthSymm3gt22 = PDupwindNthSymm3gt22;\n \n JacPDupwindNthSymm3gt23 = PDupwindNthSymm3gt23;\n \n JacPDupwindNthSymm3gt33 = PDupwindNthSymm3gt33;\n \n JacPDupwindNthSymm3phi = PDupwindNthSymm3phi;\n \n JacPDupwindNthSymm3trK = PDupwindNthSymm3trK;\n \n JacPDupwindNthAnti1A = PDupwindNthAnti1A;\n \n JacPDupwindNthAnti1alpha = PDupwindNthAnti1alpha;\n \n JacPDupwindNthAnti1gt11 = PDupwindNthAnti1gt11;\n \n JacPDupwindNthAnti1gt12 = PDupwindNthAnti1gt12;\n \n JacPDupwindNthAnti1gt13 = PDupwindNthAnti1gt13;\n \n JacPDupwindNthAnti1gt22 = PDupwindNthAnti1gt22;\n \n JacPDupwindNthAnti1gt23 = PDupwindNthAnti1gt23;\n \n JacPDupwindNthAnti1gt33 = PDupwindNthAnti1gt33;\n \n JacPDupwindNthAnti1phi = PDupwindNthAnti1phi;\n \n JacPDupwindNthAnti1trK = PDupwindNthAnti1trK;\n \n JacPDupwindNthAnti2A = PDupwindNthAnti2A;\n \n JacPDupwindNthAnti2alpha = PDupwindNthAnti2alpha;\n \n JacPDupwindNthAnti2gt11 = PDupwindNthAnti2gt11;\n \n JacPDupwindNthAnti2gt12 = PDupwindNthAnti2gt12;\n \n JacPDupwindNthAnti2gt13 = PDupwindNthAnti2gt13;\n \n JacPDupwindNthAnti2gt22 = PDupwindNthAnti2gt22;\n \n JacPDupwindNthAnti2gt23 = PDupwindNthAnti2gt23;\n \n JacPDupwindNthAnti2gt33 = PDupwindNthAnti2gt33;\n \n JacPDupwindNthAnti2phi = PDupwindNthAnti2phi;\n \n JacPDupwindNthAnti2trK = PDupwindNthAnti2trK;\n \n JacPDupwindNthAnti3A = PDupwindNthAnti3A;\n \n JacPDupwindNthAnti3alpha = PDupwindNthAnti3alpha;\n \n JacPDupwindNthAnti3gt11 = PDupwindNthAnti3gt11;\n \n JacPDupwindNthAnti3gt12 = PDupwindNthAnti3gt12;\n \n JacPDupwindNthAnti3gt13 = PDupwindNthAnti3gt13;\n \n JacPDupwindNthAnti3gt22 = PDupwindNthAnti3gt22;\n \n JacPDupwindNthAnti3gt23 = PDupwindNthAnti3gt23;\n \n JacPDupwindNthAnti3gt33 = PDupwindNthAnti3gt33;\n \n JacPDupwindNthAnti3phi = PDupwindNthAnti3phi;\n \n JacPDupwindNthAnti3trK = PDupwindNthAnti3trK;\n \n JacPDdissipationNth1A = PDdissipationNth1A;\n \n JacPDdissipationNth1alpha = PDdissipationNth1alpha;\n \n JacPDdissipationNth1gt11 = PDdissipationNth1gt11;\n \n JacPDdissipationNth1gt12 = PDdissipationNth1gt12;\n \n JacPDdissipationNth1gt13 = PDdissipationNth1gt13;\n \n JacPDdissipationNth1gt22 = PDdissipationNth1gt22;\n \n JacPDdissipationNth1gt23 = PDdissipationNth1gt23;\n \n JacPDdissipationNth1gt33 = PDdissipationNth1gt33;\n \n JacPDdissipationNth1phi = PDdissipationNth1phi;\n \n JacPDdissipationNth2A = PDdissipationNth2A;\n \n JacPDdissipationNth2alpha = PDdissipationNth2alpha;\n \n JacPDdissipationNth2gt11 = PDdissipationNth2gt11;\n \n JacPDdissipationNth2gt12 = PDdissipationNth2gt12;\n \n JacPDdissipationNth2gt13 = PDdissipationNth2gt13;\n \n JacPDdissipationNth2gt22 = PDdissipationNth2gt22;\n \n JacPDdissipationNth2gt23 = PDdissipationNth2gt23;\n \n JacPDdissipationNth2gt33 = PDdissipationNth2gt33;\n \n JacPDdissipationNth2phi = PDdissipationNth2phi;\n \n JacPDdissipationNth3A = PDdissipationNth3A;\n \n JacPDdissipationNth3alpha = PDdissipationNth3alpha;\n \n JacPDdissipationNth3gt11 = PDdissipationNth3gt11;\n \n JacPDdissipationNth3gt12 = PDdissipationNth3gt12;\n \n JacPDdissipationNth3gt13 = PDdissipationNth3gt13;\n \n JacPDdissipationNth3gt22 = PDdissipationNth3gt22;\n \n JacPDdissipationNth3gt23 = PDdissipationNth3gt23;\n \n JacPDdissipationNth3gt33 = PDdissipationNth3gt33;\n \n JacPDdissipationNth3phi = PDdissipationNth3phi;\n }\n \n CCTK_REAL_VEC epsdiss1 CCTK_ATTRIBUTE_UNUSED = ToReal(epsDiss);\n \n CCTK_REAL_VEC epsdiss2 CCTK_ATTRIBUTE_UNUSED = ToReal(epsDiss);\n \n CCTK_REAL_VEC epsdiss3 CCTK_ATTRIBUTE_UNUSED = ToReal(epsDiss);\n \n CCTK_REAL_VEC detgt CCTK_ATTRIBUTE_UNUSED = ToReal(1);\n \n CCTK_REAL_VEC gtu11 CCTK_ATTRIBUTE_UNUSED = \n kdiv(kmsub(gt22L,gt33L,kmul(gt23L,gt23L)),detgt);\n \n CCTK_REAL_VEC gtu12 CCTK_ATTRIBUTE_UNUSED = \n kdiv(kmsub(gt13L,gt23L,kmul(gt12L,gt33L)),detgt);\n \n CCTK_REAL_VEC gtu13 CCTK_ATTRIBUTE_UNUSED = \n kdiv(kmsub(gt12L,gt23L,kmul(gt13L,gt22L)),detgt);\n \n CCTK_REAL_VEC gtu22 CCTK_ATTRIBUTE_UNUSED = \n kdiv(kmsub(gt11L,gt33L,kmul(gt13L,gt13L)),detgt);\n \n CCTK_REAL_VEC gtu23 CCTK_ATTRIBUTE_UNUSED = \n kdiv(kmsub(gt12L,gt13L,kmul(gt11L,gt23L)),detgt);\n \n CCTK_REAL_VEC gtu33 CCTK_ATTRIBUTE_UNUSED = \n kdiv(kmsub(gt11L,gt22L,kmul(gt12L,gt12L)),detgt);\n \n CCTK_REAL_VEC Gtl111 CCTK_ATTRIBUTE_UNUSED = \n kmul(JacPDstandardNth1gt11,ToReal(0.5));\n \n CCTK_REAL_VEC Gtl112 CCTK_ATTRIBUTE_UNUSED = \n kmul(JacPDstandardNth2gt11,ToReal(0.5));\n \n CCTK_REAL_VEC Gtl113 CCTK_ATTRIBUTE_UNUSED = \n kmul(JacPDstandardNth3gt11,ToReal(0.5));\n \n CCTK_REAL_VEC Gtl122 CCTK_ATTRIBUTE_UNUSED = \n kmadd(ToReal(-0.5),JacPDstandardNth1gt22,JacPDstandardNth2gt12);\n \n CCTK_REAL_VEC Gtl123 CCTK_ATTRIBUTE_UNUSED = \n kmul(ksub(kadd(JacPDstandardNth2gt13,JacPDstandardNth3gt12),JacPDstandardNth1gt23),ToReal(0.5));\n \n CCTK_REAL_VEC Gtl133 CCTK_ATTRIBUTE_UNUSED = \n kmadd(ToReal(-0.5),JacPDstandardNth1gt33,JacPDstandardNth3gt13);\n \n CCTK_REAL_VEC Gtl211 CCTK_ATTRIBUTE_UNUSED = \n kmadd(ToReal(-0.5),JacPDstandardNth2gt11,JacPDstandardNth1gt12);\n \n CCTK_REAL_VEC Gtl212 CCTK_ATTRIBUTE_UNUSED = \n kmul(JacPDstandardNth1gt22,ToReal(0.5));\n \n CCTK_REAL_VEC Gtl213 CCTK_ATTRIBUTE_UNUSED = \n kmul(kadd(JacPDstandardNth1gt23,ksub(JacPDstandardNth3gt12,JacPDstandardNth2gt13)),ToReal(0.5));\n \n CCTK_REAL_VEC Gtl222 CCTK_ATTRIBUTE_UNUSED = \n kmul(JacPDstandardNth2gt22,ToReal(0.5));\n \n CCTK_REAL_VEC Gtl223 CCTK_ATTRIBUTE_UNUSED = \n kmul(JacPDstandardNth3gt22,ToReal(0.5));\n \n CCTK_REAL_VEC Gtl233 CCTK_ATTRIBUTE_UNUSED = \n kmadd(ToReal(-0.5),JacPDstandardNth2gt33,JacPDstandardNth3gt23);\n \n CCTK_REAL_VEC Gtl311 CCTK_ATTRIBUTE_UNUSED = \n kmadd(ToReal(-0.5),JacPDstandardNth3gt11,JacPDstandardNth1gt13);\n \n CCTK_REAL_VEC Gtl312 CCTK_ATTRIBUTE_UNUSED = \n kmul(kadd(JacPDstandardNth1gt23,ksub(JacPDstandardNth2gt13,JacPDstandardNth3gt12)),ToReal(0.5));\n \n CCTK_REAL_VEC Gtl313 CCTK_ATTRIBUTE_UNUSED = \n kmul(JacPDstandardNth1gt33,ToReal(0.5));\n \n CCTK_REAL_VEC Gtl322 CCTK_ATTRIBUTE_UNUSED = \n kmadd(ToReal(-0.5),JacPDstandardNth3gt22,JacPDstandardNth2gt23);\n \n CCTK_REAL_VEC Gtl323 CCTK_ATTRIBUTE_UNUSED = \n kmul(JacPDstandardNth2gt33,ToReal(0.5));\n \n CCTK_REAL_VEC Gtl333 CCTK_ATTRIBUTE_UNUSED = \n kmul(JacPDstandardNth3gt33,ToReal(0.5));\n \n CCTK_REAL_VEC Gtlu111 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl111,gtu11,kmadd(Gtl112,gtu12,kmul(Gtl113,gtu13)));\n \n CCTK_REAL_VEC Gtlu112 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl111,gtu12,kmadd(Gtl112,gtu22,kmul(Gtl113,gtu23)));\n \n CCTK_REAL_VEC Gtlu113 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl111,gtu13,kmadd(Gtl112,gtu23,kmul(Gtl113,gtu33)));\n \n CCTK_REAL_VEC Gtlu121 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl112,gtu11,kmadd(Gtl122,gtu12,kmul(Gtl123,gtu13)));\n \n CCTK_REAL_VEC Gtlu122 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl112,gtu12,kmadd(Gtl122,gtu22,kmul(Gtl123,gtu23)));\n \n CCTK_REAL_VEC Gtlu123 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl112,gtu13,kmadd(Gtl122,gtu23,kmul(Gtl123,gtu33)));\n \n CCTK_REAL_VEC Gtlu131 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl113,gtu11,kmadd(Gtl123,gtu12,kmul(Gtl133,gtu13)));\n \n CCTK_REAL_VEC Gtlu132 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl113,gtu12,kmadd(Gtl123,gtu22,kmul(Gtl133,gtu23)));\n \n CCTK_REAL_VEC Gtlu133 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl113,gtu13,kmadd(Gtl123,gtu23,kmul(Gtl133,gtu33)));\n \n CCTK_REAL_VEC Gtlu211 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl211,gtu11,kmadd(Gtl212,gtu12,kmul(Gtl213,gtu13)));\n \n CCTK_REAL_VEC Gtlu212 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl211,gtu12,kmadd(Gtl212,gtu22,kmul(Gtl213,gtu23)));\n \n CCTK_REAL_VEC Gtlu213 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl211,gtu13,kmadd(Gtl212,gtu23,kmul(Gtl213,gtu33)));\n \n CCTK_REAL_VEC Gtlu221 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl212,gtu11,kmadd(Gtl222,gtu12,kmul(Gtl223,gtu13)));\n \n CCTK_REAL_VEC Gtlu222 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl212,gtu12,kmadd(Gtl222,gtu22,kmul(Gtl223,gtu23)));\n \n CCTK_REAL_VEC Gtlu223 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl212,gtu13,kmadd(Gtl222,gtu23,kmul(Gtl223,gtu33)));\n \n CCTK_REAL_VEC Gtlu231 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl213,gtu11,kmadd(Gtl223,gtu12,kmul(Gtl233,gtu13)));\n \n CCTK_REAL_VEC Gtlu232 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl213,gtu12,kmadd(Gtl223,gtu22,kmul(Gtl233,gtu23)));\n \n CCTK_REAL_VEC Gtlu233 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl213,gtu13,kmadd(Gtl223,gtu23,kmul(Gtl233,gtu33)));\n \n CCTK_REAL_VEC Gtlu311 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl311,gtu11,kmadd(Gtl312,gtu12,kmul(Gtl313,gtu13)));\n \n CCTK_REAL_VEC Gtlu312 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl311,gtu12,kmadd(Gtl312,gtu22,kmul(Gtl313,gtu23)));\n \n CCTK_REAL_VEC Gtlu313 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl311,gtu13,kmadd(Gtl312,gtu23,kmul(Gtl313,gtu33)));\n \n CCTK_REAL_VEC Gtlu321 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl312,gtu11,kmadd(Gtl322,gtu12,kmul(Gtl323,gtu13)));\n \n CCTK_REAL_VEC Gtlu322 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl312,gtu12,kmadd(Gtl322,gtu22,kmul(Gtl323,gtu23)));\n \n CCTK_REAL_VEC Gtlu323 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl312,gtu13,kmadd(Gtl322,gtu23,kmul(Gtl323,gtu33)));\n \n CCTK_REAL_VEC Gtlu331 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl313,gtu11,kmadd(Gtl323,gtu12,kmul(Gtl333,gtu13)));\n \n CCTK_REAL_VEC Gtlu332 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl313,gtu12,kmadd(Gtl323,gtu22,kmul(Gtl333,gtu23)));\n \n CCTK_REAL_VEC Gtlu333 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl313,gtu13,kmadd(Gtl323,gtu23,kmul(Gtl333,gtu33)));\n \n CCTK_REAL_VEC Gt111 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl111,gtu11,kmadd(Gtl211,gtu12,kmul(Gtl311,gtu13)));\n \n CCTK_REAL_VEC Gt211 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl111,gtu12,kmadd(Gtl211,gtu22,kmul(Gtl311,gtu23)));\n \n CCTK_REAL_VEC Gt311 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl111,gtu13,kmadd(Gtl211,gtu23,kmul(Gtl311,gtu33)));\n \n CCTK_REAL_VEC Gt112 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl112,gtu11,kmadd(Gtl212,gtu12,kmul(Gtl312,gtu13)));\n \n CCTK_REAL_VEC Gt212 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl112,gtu12,kmadd(Gtl212,gtu22,kmul(Gtl312,gtu23)));\n \n CCTK_REAL_VEC Gt312 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl112,gtu13,kmadd(Gtl212,gtu23,kmul(Gtl312,gtu33)));\n \n CCTK_REAL_VEC Gt113 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl113,gtu11,kmadd(Gtl213,gtu12,kmul(Gtl313,gtu13)));\n \n CCTK_REAL_VEC Gt213 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl113,gtu12,kmadd(Gtl213,gtu22,kmul(Gtl313,gtu23)));\n \n CCTK_REAL_VEC Gt313 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl113,gtu13,kmadd(Gtl213,gtu23,kmul(Gtl313,gtu33)));\n \n CCTK_REAL_VEC Gt122 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl122,gtu11,kmadd(Gtl222,gtu12,kmul(Gtl322,gtu13)));\n \n CCTK_REAL_VEC Gt222 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl122,gtu12,kmadd(Gtl222,gtu22,kmul(Gtl322,gtu23)));\n \n CCTK_REAL_VEC Gt322 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl122,gtu13,kmadd(Gtl222,gtu23,kmul(Gtl322,gtu33)));\n \n CCTK_REAL_VEC Gt123 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl123,gtu11,kmadd(Gtl223,gtu12,kmul(Gtl323,gtu13)));\n \n CCTK_REAL_VEC Gt223 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl123,gtu12,kmadd(Gtl223,gtu22,kmul(Gtl323,gtu23)));\n \n CCTK_REAL_VEC Gt323 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl123,gtu13,kmadd(Gtl223,gtu23,kmul(Gtl323,gtu33)));\n \n CCTK_REAL_VEC Gt133 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl133,gtu11,kmadd(Gtl233,gtu12,kmul(Gtl333,gtu13)));\n \n CCTK_REAL_VEC Gt233 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl133,gtu12,kmadd(Gtl233,gtu22,kmul(Gtl333,gtu23)));\n \n CCTK_REAL_VEC Gt333 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gtl133,gtu13,kmadd(Gtl233,gtu23,kmul(Gtl333,gtu33)));\n \n CCTK_REAL_VEC em4phi CCTK_ATTRIBUTE_UNUSED = kmul(phiL,phiL);\n \n CCTK_REAL_VEC e4phi CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(1),em4phi);\n \n CCTK_REAL_VEC g11 CCTK_ATTRIBUTE_UNUSED = kmul(gt11L,e4phi);\n \n CCTK_REAL_VEC g12 CCTK_ATTRIBUTE_UNUSED = kmul(gt12L,e4phi);\n \n CCTK_REAL_VEC g13 CCTK_ATTRIBUTE_UNUSED = kmul(gt13L,e4phi);\n \n CCTK_REAL_VEC g22 CCTK_ATTRIBUTE_UNUSED = kmul(gt22L,e4phi);\n \n CCTK_REAL_VEC g23 CCTK_ATTRIBUTE_UNUSED = kmul(gt23L,e4phi);\n \n CCTK_REAL_VEC g33 CCTK_ATTRIBUTE_UNUSED = kmul(gt33L,e4phi);\n \n CCTK_REAL_VEC gu11 CCTK_ATTRIBUTE_UNUSED = kmul(em4phi,gtu11);\n \n CCTK_REAL_VEC gu12 CCTK_ATTRIBUTE_UNUSED = kmul(em4phi,gtu12);\n \n CCTK_REAL_VEC gu13 CCTK_ATTRIBUTE_UNUSED = kmul(em4phi,gtu13);\n \n CCTK_REAL_VEC gu22 CCTK_ATTRIBUTE_UNUSED = kmul(em4phi,gtu22);\n \n CCTK_REAL_VEC gu23 CCTK_ATTRIBUTE_UNUSED = kmul(em4phi,gtu23);\n \n CCTK_REAL_VEC gu33 CCTK_ATTRIBUTE_UNUSED = kmul(em4phi,gtu33);\n \n CCTK_REAL_VEC Xtn1 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gt111,gtu11,kmadd(Gt122,gtu22,kmadd(ToReal(2),kmadd(Gt112,gtu12,kmadd(Gt113,gtu13,kmul(Gt123,gtu23))),kmul(Gt133,gtu33))));\n \n CCTK_REAL_VEC Xtn2 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gt211,gtu11,kmadd(Gt222,gtu22,kmadd(ToReal(2),kmadd(Gt212,gtu12,kmadd(Gt213,gtu13,kmul(Gt223,gtu23))),kmul(Gt233,gtu33))));\n \n CCTK_REAL_VEC Xtn3 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gt311,gtu11,kmadd(Gt322,gtu22,kmadd(ToReal(2),kmadd(Gt312,gtu12,kmadd(Gt313,gtu13,kmul(Gt323,gtu23))),kmul(Gt333,gtu33))));\n \n CCTK_REAL_VEC Zl1 CCTK_ATTRIBUTE_UNUSED = \n kmul(kmadd(gt11L,Xt1L,kmadd(gt12L,Xt2L,kmsub(gt13L,Xt3L,kmadd(gtu11,JacPDstandardNth1gt11,kmadd(gtu12,kadd(JacPDstandardNth1gt12,JacPDstandardNth2gt11),kmadd(gtu22,JacPDstandardNth2gt12,kmadd(gtu13,kadd(JacPDstandardNth3gt11,JacPDstandardNth1gt13),kmadd(gtu23,kadd(JacPDstandardNth3gt12,JacPDstandardNth2gt13),kmul(gtu33,JacPDstandardNth3gt13))))))))),ToReal(0.5));\n \n CCTK_REAL_VEC Zl2 CCTK_ATTRIBUTE_UNUSED = \n kmul(kmadd(gt12L,Xt1L,kmadd(gt22L,Xt2L,kmsub(gt23L,Xt3L,kmadd(gtu11,JacPDstandardNth1gt12,kmadd(gtu12,kadd(JacPDstandardNth1gt22,JacPDstandardNth2gt12),kmadd(gtu22,JacPDstandardNth2gt22,kmadd(gtu13,kadd(JacPDstandardNth3gt12,JacPDstandardNth1gt23),kmadd(gtu23,kadd(JacPDstandardNth3gt22,JacPDstandardNth2gt23),kmul(gtu33,JacPDstandardNth3gt23))))))))),ToReal(0.5));\n \n CCTK_REAL_VEC Zl3 CCTK_ATTRIBUTE_UNUSED = \n kmul(kmadd(gt13L,Xt1L,kmadd(gt23L,Xt2L,kmsub(gt33L,Xt3L,kmadd(gtu11,JacPDstandardNth1gt13,kmadd(gtu12,kadd(JacPDstandardNth1gt23,JacPDstandardNth2gt13),kmadd(gtu22,JacPDstandardNth2gt23,kmadd(gtu13,kadd(JacPDstandardNth3gt13,JacPDstandardNth1gt33),kmadd(gtu23,kadd(JacPDstandardNth3gt23,JacPDstandardNth2gt33),kmul(gtu33,JacPDstandardNth3gt33))))))))),ToReal(0.5));\n \n CCTK_REAL_VEC Z1 CCTK_ATTRIBUTE_UNUSED = \n kmadd(gu11,Zl1,kmadd(gu12,Zl2,kmul(gu13,Zl3)));\n \n CCTK_REAL_VEC Z2 CCTK_ATTRIBUTE_UNUSED = \n kmadd(gu12,Zl1,kmadd(gu22,Zl2,kmul(gu23,Zl3)));\n \n CCTK_REAL_VEC Z3 CCTK_ATTRIBUTE_UNUSED = \n kmadd(gu13,Zl1,kmadd(gu23,Zl2,kmul(gu33,Zl3)));\n \n CCTK_REAL_VEC Rt11 CCTK_ATTRIBUTE_UNUSED = \n kmadd(ToReal(3),kmadd(Gt111,Gtlu111,kmadd(Gt112,Gtlu112,kmul(Gt113,Gtlu113))),kmadd(ToReal(2),kmadd(Gt211,Gtlu121,kmadd(Gt212,Gtlu122,kmadd(Gt213,Gtlu123,kmadd(Gt311,Gtlu131,kmadd(Gt312,Gtlu132,kmul(Gt313,Gtlu133)))))),kmadd(Gt211,Gtlu211,kmadd(Gt212,Gtlu212,kmadd(Gt213,Gtlu213,kmadd(Gt311,Gtlu311,kmadd(Gt312,Gtlu312,kmadd(Gt313,Gtlu313,kmadd(gt11L,JacPDstandardNth1Xt1,kmadd(gt12L,JacPDstandardNth1Xt2,kmadd(gt13L,JacPDstandardNth1Xt3,knmsub(ToReal(0.5),kmadd(gtu11,JacPDstandardNth11gt11,kmadd(gtu12,kadd(JacPDstandardNth12gt11,JacPDstandardNth21gt11),kmadd(gtu22,JacPDstandardNth22gt11,kmadd(gtu13,kadd(JacPDstandardNth13gt11,JacPDstandardNth31gt11),kmadd(gtu23,kadd(JacPDstandardNth23gt11,JacPDstandardNth32gt11),kmul(gtu33,JacPDstandardNth33gt11)))))),kmadd(Gtl111,Xtn1,kmadd(Gtl112,Xtn2,kmul(Gtl113,Xtn3)))))))))))))));\n \n CCTK_REAL_VEC Rt12 CCTK_ATTRIBUTE_UNUSED = \n kmul(kmadd(ToReal(4),kmadd(Gt211,Gtlu221,kmadd(Gt212,Gtlu222,kmul(Gt213,Gtlu223))),kmadd(ToReal(2),kmadd(Gt122,Gtlu112,kmadd(Gt123,Gtlu113,kmadd(Gt111,Gtlu121,kmadd(Gt212,Gtlu121,kmadd(Gt222,Gtlu122,kmadd(Gt113,Gtlu123,kmadd(Gt223,Gtlu123,kmadd(Gt312,Gtlu131,kmadd(Gt322,Gtlu132,kmadd(Gt323,Gtlu133,kmadd(Gt111,Gtlu211,kmadd(Gt112,kadd(Gtlu111,kadd(Gtlu122,Gtlu212)),kmadd(Gt113,Gtlu213,kmadd(Gt311,Gtlu231,kmadd(Gt312,Gtlu232,kmadd(Gt313,Gtlu233,kmadd(Gt311,Gtlu321,kmadd(Gt312,Gtlu322,kmul(Gt313,Gtlu323))))))))))))))))))),knmsub(gtu11,JacPDstandardNth11gt12,kmadd(gt12L,JacPDstandardNth1Xt1,kmadd(gt22L,JacPDstandardNth1Xt2,kmadd(gt23L,JacPDstandardNth1Xt3,knmsub(gtu12,kadd(JacPDstandardNth21gt12,JacPDstandardNth12gt12),knmsub(gtu22,JacPDstandardNth22gt12,kmadd(gt11L,JacPDstandardNth2Xt1,kmadd(gt12L,JacPDstandardNth2Xt2,kmadd(gt13L,JacPDstandardNth2Xt3,knmsub(gtu13,kadd(JacPDstandardNth31gt12,JacPDstandardNth13gt12),knmsub(gtu23,kadd(JacPDstandardNth32gt12,JacPDstandardNth23gt12),knmsub(gtu33,JacPDstandardNth33gt12,kmadd(Gtl112,Xtn1,kmadd(Gtl211,Xtn1,kmadd(Gtl122,Xtn2,kmadd(Gtl212,Xtn2,kmadd(Gtl123,Xtn3,kmul(Gtl213,Xtn3)))))))))))))))))))),ToReal(0.5));\n \n CCTK_REAL_VEC Rt13 CCTK_ATTRIBUTE_UNUSED = \n kmul(kmadd(ToReal(2),kmadd(Gt123,Gtlu112,kmadd(Gt133,Gtlu113,kmadd(Gt213,Gtlu121,kmadd(Gt223,Gtlu122,kmadd(Gt233,Gtlu123,kmadd(Gt111,Gtlu131,kmadd(Gt313,Gtlu131,kmadd(Gt112,Gtlu132,kmadd(Gt323,Gtlu132,kmadd(Gt333,Gtlu133,kmadd(Gt211,Gtlu231,kmadd(Gt212,Gtlu232,kmadd(Gt213,Gtlu233,kmadd(Gt111,Gtlu311,kmadd(Gt112,Gtlu312,kmadd(Gt113,kadd(Gtlu111,kadd(Gtlu133,Gtlu313)),kmadd(Gt211,Gtlu321,kmadd(Gt212,Gtlu322,kmul(Gt213,Gtlu323))))))))))))))))))),kmadd(ToReal(4),kmadd(Gt311,Gtlu331,kmadd(Gt312,Gtlu332,kmul(Gt313,Gtlu333))),knmsub(gtu11,JacPDstandardNth11gt13,kmadd(gt13L,JacPDstandardNth1Xt1,kmadd(gt23L,JacPDstandardNth1Xt2,kmadd(gt33L,JacPDstandardNth1Xt3,knmsub(gtu12,kadd(JacPDstandardNth21gt13,JacPDstandardNth12gt13),knmsub(gtu22,JacPDstandardNth22gt13,knmsub(gtu13,kadd(JacPDstandardNth31gt13,JacPDstandardNth13gt13),knmsub(gtu23,kadd(JacPDstandardNth32gt13,JacPDstandardNth23gt13),knmsub(gtu33,JacPDstandardNth33gt13,kmadd(gt11L,JacPDstandardNth3Xt1,kmadd(gt12L,JacPDstandardNth3Xt2,kmadd(gt13L,JacPDstandardNth3Xt3,kmadd(Gtl113,Xtn1,kmadd(Gtl311,Xtn1,kmadd(Gtl123,Xtn2,kmadd(Gtl312,Xtn2,kmadd(Gtl133,Xtn3,kmul(Gtl313,Xtn3)))))))))))))))))))),ToReal(0.5));\n \n CCTK_REAL_VEC Rt22 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gt112,kmadd(ToReal(2),Gtlu211,Gtlu121),kmadd(Gt122,kmadd(ToReal(2),Gtlu212,Gtlu122),kmadd(Gt123,kmadd(ToReal(2),Gtlu213,Gtlu123),kmadd(ToReal(3),kmadd(Gt212,Gtlu221,kmadd(Gt222,Gtlu222,kmul(Gt223,Gtlu223))),kmadd(ToReal(2),kmadd(Gt312,Gtlu231,kmadd(Gt322,Gtlu232,kmul(Gt323,Gtlu233))),kmadd(Gt312,Gtlu321,kmadd(Gt322,Gtlu322,kmadd(Gt323,Gtlu323,kmadd(gt12L,JacPDstandardNth2Xt1,kmadd(gt22L,JacPDstandardNth2Xt2,kmadd(gt23L,JacPDstandardNth2Xt3,knmsub(ToReal(0.5),kmadd(gtu11,JacPDstandardNth11gt22,kmadd(gtu12,kadd(JacPDstandardNth12gt22,JacPDstandardNth21gt22),kmadd(gtu22,JacPDstandardNth22gt22,kmadd(gtu13,kadd(JacPDstandardNth13gt22,JacPDstandardNth31gt22),kmadd(gtu23,kadd(JacPDstandardNth23gt22,JacPDstandardNth32gt22),kmul(gtu33,JacPDstandardNth33gt22)))))),kmadd(Gtl212,Xtn1,kmadd(Gtl222,Xtn2,kmul(Gtl223,Xtn3)))))))))))))));\n \n CCTK_REAL_VEC Rt23 CCTK_ATTRIBUTE_UNUSED = \n kmul(kmadd(ToReal(2),kmadd(Gt123,Gtlu133,kmadd(Gt113,Gtlu211,kmadd(Gt123,Gtlu212,kmadd(Gt133,Gtlu213,kmadd(Gt213,Gtlu221,kmadd(Gt223,Gtlu222,kmadd(Gt233,Gtlu223,kmadd(Gt212,Gtlu231,kmadd(Gt313,Gtlu231,kmadd(Gt222,Gtlu232,kmadd(Gt323,Gtlu232,kmadd(Gt223,Gtlu233,kmadd(Gt333,Gtlu233,kmadd(Gt112,kadd(Gtlu131,Gtlu311),kmadd(Gt122,kadd(Gtlu132,Gtlu312),kmadd(Gt123,Gtlu313,kmadd(Gt212,Gtlu321,kmadd(Gt222,Gtlu322,kmul(Gt223,Gtlu323))))))))))))))))))),kmadd(ToReal(4),kmadd(Gt312,Gtlu331,kmadd(Gt322,Gtlu332,kmul(Gt323,Gtlu333))),knmsub(gtu11,JacPDstandardNth11gt23,knmsub(gtu12,kadd(JacPDstandardNth21gt23,JacPDstandardNth12gt23),knmsub(gtu22,JacPDstandardNth22gt23,kmadd(gt13L,JacPDstandardNth2Xt1,kmadd(gt23L,JacPDstandardNth2Xt2,kmadd(gt33L,JacPDstandardNth2Xt3,knmsub(gtu13,kadd(JacPDstandardNth31gt23,JacPDstandardNth13gt23),knmsub(gtu23,kadd(JacPDstandardNth32gt23,JacPDstandardNth23gt23),knmsub(gtu33,JacPDstandardNth33gt23,kmadd(gt12L,JacPDstandardNth3Xt1,kmadd(gt22L,JacPDstandardNth3Xt2,kmadd(gt23L,JacPDstandardNth3Xt3,kmadd(Gtl213,Xtn1,kmadd(Gtl312,Xtn1,kmadd(Gtl223,Xtn2,kmadd(Gtl322,Xtn2,kmadd(Gtl233,Xtn3,kmul(Gtl323,Xtn3)))))))))))))))))))),ToReal(0.5));\n \n CCTK_REAL_VEC Rt33 CCTK_ATTRIBUTE_UNUSED = \n kmadd(Gt113,kmadd(ToReal(2),Gtlu311,Gtlu131),kmadd(Gt123,kmadd(ToReal(2),Gtlu312,Gtlu132),kmadd(Gt133,kmadd(ToReal(2),Gtlu313,Gtlu133),kmadd(Gt213,kmadd(ToReal(2),Gtlu321,Gtlu231),kmadd(Gt223,kmadd(ToReal(2),Gtlu322,Gtlu232),kmadd(Gt233,kmadd(ToReal(2),Gtlu323,Gtlu233),kmadd(ToReal(3),kmadd(Gt313,Gtlu331,kmadd(Gt323,Gtlu332,kmul(Gt333,Gtlu333))),knmsub(ToReal(0.5),kmadd(gtu11,JacPDstandardNth11gt33,kmadd(gtu12,kadd(JacPDstandardNth12gt33,JacPDstandardNth21gt33),kmadd(gtu22,JacPDstandardNth22gt33,kmadd(gtu13,kadd(JacPDstandardNth13gt33,JacPDstandardNth31gt33),kmadd(gtu23,kadd(JacPDstandardNth23gt33,JacPDstandardNth32gt33),kmul(gtu33,JacPDstandardNth33gt33)))))),kmadd(gt13L,JacPDstandardNth3Xt1,kmadd(gt23L,JacPDstandardNth3Xt2,kmadd(gt33L,JacPDstandardNth3Xt3,kmadd(Gtl313,Xtn1,kmadd(Gtl323,Xtn2,kmul(Gtl333,Xtn3))))))))))))));\n \n CCTK_REAL_VEC fac1 CCTK_ATTRIBUTE_UNUSED = kdiv(ToReal(-0.5),phiL);\n \n CCTK_REAL_VEC cdphi1 CCTK_ATTRIBUTE_UNUSED = \n kmul(fac1,JacPDstandardNth1phi);\n \n CCTK_REAL_VEC cdphi2 CCTK_ATTRIBUTE_UNUSED = \n kmul(fac1,JacPDstandardNth2phi);\n \n CCTK_REAL_VEC cdphi3 CCTK_ATTRIBUTE_UNUSED = \n kmul(fac1,JacPDstandardNth3phi);\n \n CCTK_REAL_VEC fac2 CCTK_ATTRIBUTE_UNUSED = \n kdiv(ToReal(0.5),kmul(phiL,phiL));\n \n CCTK_REAL_VEC cdphi211 CCTK_ATTRIBUTE_UNUSED = \n kmadd(fac1,ksub(JacPDstandardNth11phi,kmadd(Gt111,JacPDstandardNth1phi,kmadd(Gt311,JacPDstandardNth3phi,kmul(Gt211,JacPDstandardNth2phi)))),kmul(fac2,kmul(JacPDstandardNth1phi,JacPDstandardNth1phi)));\n \n CCTK_REAL_VEC cdphi212 CCTK_ATTRIBUTE_UNUSED = \n kmadd(fac2,kmul(JacPDstandardNth1phi,JacPDstandardNth2phi),kmul(fac1,ksub(JacPDstandardNth12phi,kmadd(Gt112,JacPDstandardNth1phi,kmadd(Gt312,JacPDstandardNth3phi,kmul(Gt212,JacPDstandardNth2phi))))));\n \n CCTK_REAL_VEC cdphi213 CCTK_ATTRIBUTE_UNUSED = \n kmadd(fac2,kmul(JacPDstandardNth1phi,JacPDstandardNth3phi),kmul(fac1,ksub(JacPDstandardNth13phi,kmadd(Gt113,JacPDstandardNth1phi,kmadd(Gt313,JacPDstandardNth3phi,kmul(Gt213,JacPDstandardNth2phi))))));\n \n CCTK_REAL_VEC cdphi221 CCTK_ATTRIBUTE_UNUSED = \n kmsub(fac2,kmul(JacPDstandardNth1phi,JacPDstandardNth2phi),kmul(fac1,kmadd(Gt112,JacPDstandardNth1phi,ksub(kmadd(Gt212,JacPDstandardNth2phi,kmul(Gt312,JacPDstandardNth3phi)),JacPDstandardNth21phi))));\n \n CCTK_REAL_VEC cdphi222 CCTK_ATTRIBUTE_UNUSED = \n kmsub(fac2,kmul(JacPDstandardNth2phi,JacPDstandardNth2phi),kmul(fac1,kmadd(Gt122,JacPDstandardNth1phi,ksub(kmadd(Gt222,JacPDstandardNth2phi,kmul(Gt322,JacPDstandardNth3phi)),JacPDstandardNth22phi))));\n \n CCTK_REAL_VEC cdphi223 CCTK_ATTRIBUTE_UNUSED = \n kmsub(fac2,kmul(JacPDstandardNth2phi,JacPDstandardNth3phi),kmul(fac1,kmadd(Gt123,JacPDstandardNth1phi,ksub(kmadd(Gt223,JacPDstandardNth2phi,kmul(Gt323,JacPDstandardNth3phi)),JacPDstandardNth23phi))));\n \n CCTK_REAL_VEC cdphi231 CCTK_ATTRIBUTE_UNUSED = \n kmsub(fac2,kmul(JacPDstandardNth1phi,JacPDstandardNth3phi),kmul(fac1,kmadd(Gt113,JacPDstandardNth1phi,kmadd(Gt213,JacPDstandardNth2phi,kmsub(Gt313,JacPDstandardNth3phi,JacPDstandardNth31phi)))));\n \n CCTK_REAL_VEC cdphi232 CCTK_ATTRIBUTE_UNUSED = \n kmsub(fac2,kmul(JacPDstandardNth2phi,JacPDstandardNth3phi),kmul(fac1,kmadd(Gt123,JacPDstandardNth1phi,kmadd(Gt223,JacPDstandardNth2phi,kmsub(Gt323,JacPDstandardNth3phi,JacPDstandardNth32phi)))));\n \n CCTK_REAL_VEC cdphi233 CCTK_ATTRIBUTE_UNUSED = \n kmsub(fac2,kmul(JacPDstandardNth3phi,JacPDstandardNth3phi),kmul(fac1,kmadd(Gt133,JacPDstandardNth1phi,kmadd(Gt233,JacPDstandardNth2phi,kmsub(Gt333,JacPDstandardNth3phi,JacPDstandardNth33phi)))));\n \n CCTK_REAL_VEC Rphi11 CCTK_ATTRIBUTE_UNUSED = \n kmadd(ToReal(-8),kmul(gt11L,kmul(cdphi1,kmadd(cdphi2,gtu12,kmul(cdphi3,gtu13)))),kmadd(kmadd(ToReal(-4),kmul(gt11L,gtu11),ToReal(4)),kmul(cdphi1,cdphi1),kmul(kmadd(gt11L,kmadd(cdphi211,gtu11,kmadd(kadd(cdphi212,cdphi221),gtu12,kmadd(kadd(cdphi213,cdphi231),gtu13,kmadd(kadd(cdphi223,kmadd(ToReal(4),kmul(cdphi2,cdphi3),cdphi232)),gtu23,kmadd(gtu22,kmadd(ToReal(2),kmul(cdphi2,cdphi2),cdphi222),kmul(gtu33,kmadd(ToReal(2),kmul(cdphi3,cdphi3),cdphi233))))))),cdphi211),ToReal(-2))));\n \n CCTK_REAL_VEC Rphi12 CCTK_ATTRIBUTE_UNUSED = \n kmadd(ToReal(4),kmul(cdphi1,cdphi2),kmadd(ToReal(-2),kmadd(gt12L,kmadd(cdphi211,gtu11,kmadd(kadd(cdphi212,cdphi221),gtu12,kmadd(kadd(cdphi213,cdphi231),gtu13,kmadd(cdphi222,gtu22,kmadd(kadd(cdphi223,cdphi232),gtu23,kmul(cdphi233,gtu33)))))),cdphi221),kmul(kmul(gt12L,kmadd(ToReal(2),kmadd(cdphi1,kmadd(cdphi2,gtu12,kmul(cdphi3,gtu13)),kmul(cdphi2,kmul(cdphi3,gtu23))),kmadd(gtu11,kmul(cdphi1,cdphi1),kmadd(gtu22,kmul(cdphi2,cdphi2),kmul(gtu33,kmul(cdphi3,cdphi3)))))),ToReal(-4))));\n \n CCTK_REAL_VEC Rphi13 CCTK_ATTRIBUTE_UNUSED = \n kmadd(ToReal(4),kmul(cdphi1,cdphi3),kmadd(ToReal(-2),kmadd(gt13L,kmadd(cdphi211,gtu11,kmadd(kadd(cdphi212,cdphi221),gtu12,kmadd(kadd(cdphi213,cdphi231),gtu13,kmadd(cdphi222,gtu22,kmadd(kadd(cdphi223,cdphi232),gtu23,kmul(cdphi233,gtu33)))))),cdphi231),kmul(kmul(gt13L,kmadd(ToReal(2),kmadd(cdphi1,kmadd(cdphi2,gtu12,kmul(cdphi3,gtu13)),kmul(cdphi2,kmul(cdphi3,gtu23))),kmadd(gtu11,kmul(cdphi1,cdphi1),kmadd(gtu22,kmul(cdphi2,cdphi2),kmul(gtu33,kmul(cdphi3,cdphi3)))))),ToReal(-4))));\n \n CCTK_REAL_VEC Rphi22 CCTK_ATTRIBUTE_UNUSED = \n kmadd(ToReal(-8),kmul(gt22L,kmul(cdphi2,kmadd(cdphi1,gtu12,kmul(cdphi3,gtu23)))),kmadd(kmadd(ToReal(-4),kmul(gt22L,gtu22),ToReal(4)),kmul(cdphi2,cdphi2),kmul(kmadd(gt22L,kmadd(kadd(cdphi212,cdphi221),gtu12,kmadd(kadd(cdphi213,kmadd(ToReal(4),kmul(cdphi1,cdphi3),cdphi231)),gtu13,kmadd(cdphi222,gtu22,kmadd(kadd(cdphi223,cdphi232),gtu23,kmadd(gtu11,kmadd(ToReal(2),kmul(cdphi1,cdphi1),cdphi211),kmul(gtu33,kmadd(ToReal(2),kmul(cdphi3,cdphi3),cdphi233))))))),cdphi222),ToReal(-2))));\n \n CCTK_REAL_VEC Rphi23 CCTK_ATTRIBUTE_UNUSED = \n kmadd(ToReal(4),kmul(cdphi2,cdphi3),kmadd(ToReal(-2),kmadd(gt23L,kmadd(cdphi211,gtu11,kmadd(kadd(cdphi212,cdphi221),gtu12,kmadd(kadd(cdphi213,cdphi231),gtu13,kmadd(cdphi222,gtu22,kmadd(kadd(cdphi223,cdphi232),gtu23,kmul(cdphi233,gtu33)))))),cdphi232),kmul(kmul(gt23L,kmadd(ToReal(2),kmadd(cdphi1,kmadd(cdphi2,gtu12,kmul(cdphi3,gtu13)),kmul(cdphi2,kmul(cdphi3,gtu23))),kmadd(gtu11,kmul(cdphi1,cdphi1),kmadd(gtu22,kmul(cdphi2,cdphi2),kmul(gtu33,kmul(cdphi3,cdphi3)))))),ToReal(-4))));\n \n CCTK_REAL_VEC Rphi33 CCTK_ATTRIBUTE_UNUSED = \n kmadd(ToReal(-2),kmadd(gt33L,kmadd(cdphi211,gtu11,kmadd(kadd(cdphi212,cdphi221),gtu12,kmadd(kadd(cdphi213,cdphi231),gtu13,kmadd(cdphi222,gtu22,kmadd(kadd(cdphi223,cdphi232),gtu23,kmul(cdphi233,gtu33)))))),cdphi233),kmadd(ToReal(4),kmul(cdphi3,cdphi3),kmul(kmul(gt33L,kmadd(ToReal(2),kmadd(cdphi1,kmadd(cdphi2,gtu12,kmul(cdphi3,gtu13)),kmul(cdphi2,kmul(cdphi3,gtu23))),kmadd(gtu11,kmul(cdphi1,cdphi1),kmadd(gtu22,kmul(cdphi2,cdphi2),kmul(gtu33,kmul(cdphi3,cdphi3)))))),ToReal(-4))));\n \n CCTK_REAL_VEC Atm11 CCTK_ATTRIBUTE_UNUSED = \n kmadd(At11L,gtu11,kmadd(At12L,gtu12,kmul(At13L,gtu13)));\n \n CCTK_REAL_VEC Atm21 CCTK_ATTRIBUTE_UNUSED = \n kmadd(At11L,gtu12,kmadd(At12L,gtu22,kmul(At13L,gtu23)));\n \n CCTK_REAL_VEC Atm31 CCTK_ATTRIBUTE_UNUSED = \n kmadd(At11L,gtu13,kmadd(At12L,gtu23,kmul(At13L,gtu33)));\n \n CCTK_REAL_VEC Atm12 CCTK_ATTRIBUTE_UNUSED = \n kmadd(At12L,gtu11,kmadd(At22L,gtu12,kmul(At23L,gtu13)));\n \n CCTK_REAL_VEC Atm22 CCTK_ATTRIBUTE_UNUSED = \n kmadd(At12L,gtu12,kmadd(At22L,gtu22,kmul(At23L,gtu23)));\n \n CCTK_REAL_VEC Atm32 CCTK_ATTRIBUTE_UNUSED = \n kmadd(At12L,gtu13,kmadd(At22L,gtu23,kmul(At23L,gtu33)));\n \n CCTK_REAL_VEC Atm13 CCTK_ATTRIBUTE_UNUSED = \n kmadd(At13L,gtu11,kmadd(At23L,gtu12,kmul(At33L,gtu13)));\n \n CCTK_REAL_VEC Atm23 CCTK_ATTRIBUTE_UNUSED = \n kmadd(At13L,gtu12,kmadd(At23L,gtu22,kmul(At33L,gtu23)));\n \n CCTK_REAL_VEC Atm33 CCTK_ATTRIBUTE_UNUSED = \n kmadd(At13L,gtu13,kmadd(At23L,gtu23,kmul(At33L,gtu33)));\n \n CCTK_REAL_VEC R11 CCTK_ATTRIBUTE_UNUSED = \n kadd(Rphi11,kadd(Rt11,kmadd(e4phi,kmadd(JacPDstandardNth1gt11,Z1,kmadd(JacPDstandardNth2gt11,Z2,kmul(JacPDstandardNth3gt11,Z3))),kdiv(kmadd(ToReal(-2),kmul(g11,kmadd(JacPDstandardNth2phi,Z2,kmul(JacPDstandardNth3phi,Z3))),kmul(JacPDstandardNth1phi,kmadd(ToReal(2),kmul(g11,Z1),kmul(kmadd(g12,Z2,kmul(g13,Z3)),ToReal(4))))),phiL))));\n \n CCTK_REAL_VEC R12 CCTK_ATTRIBUTE_UNUSED = \n kadd(Rphi12,kadd(Rt12,kmadd(e4phi,kmadd(JacPDstandardNth1gt12,Z1,kmadd(JacPDstandardNth2gt12,Z2,kmul(JacPDstandardNth3gt12,Z3))),kdiv(kmul(knmsub(g12,kmul(JacPDstandardNth3phi,Z3),kmadd(JacPDstandardNth2phi,kmadd(g11,Z1,kmul(g13,Z3)),kmul(JacPDstandardNth1phi,kmadd(g22,Z2,kmul(g23,Z3))))),ToReal(2)),phiL))));\n \n CCTK_REAL_VEC R13 CCTK_ATTRIBUTE_UNUSED = \n kadd(Rphi13,kadd(Rt13,kmadd(e4phi,kmadd(JacPDstandardNth1gt13,Z1,kmadd(JacPDstandardNth2gt13,Z2,kmul(JacPDstandardNth3gt13,Z3))),kdiv(kmul(kmadd(kmsub(g23,JacPDstandardNth1phi,kmul(g13,JacPDstandardNth2phi)),Z2,kmadd(JacPDstandardNth3phi,kmadd(g11,Z1,kmul(g12,Z2)),kmul(g33,kmul(JacPDstandardNth1phi,Z3)))),ToReal(2)),phiL))));\n \n CCTK_REAL_VEC R22 CCTK_ATTRIBUTE_UNUSED = \n kadd(Rphi22,kadd(Rt22,kmadd(e4phi,kmadd(JacPDstandardNth1gt22,Z1,kmadd(JacPDstandardNth2gt22,Z2,kmul(JacPDstandardNth3gt22,Z3))),kdiv(kmadd(ToReal(4),kmul(JacPDstandardNth2phi,kmadd(g12,Z1,kmul(g23,Z3))),kmul(kmul(g22,kmadd(JacPDstandardNth1phi,Z1,kmsub(JacPDstandardNth3phi,Z3,kmul(JacPDstandardNth2phi,Z2)))),ToReal(-2))),phiL))));\n \n CCTK_REAL_VEC R23 CCTK_ATTRIBUTE_UNUSED = \n kadd(Rphi23,kadd(Rt23,kmadd(e4phi,kmadd(JacPDstandardNth1gt23,Z1,kmadd(JacPDstandardNth2gt23,Z2,kmul(JacPDstandardNth3gt23,Z3))),kdiv(kmul(kmadd(knmsub(g23,JacPDstandardNth1phi,kmadd(g13,JacPDstandardNth2phi,kmul(g12,JacPDstandardNth3phi))),Z1,kmadd(g22,kmul(JacPDstandardNth3phi,Z2),kmul(g33,kmul(JacPDstandardNth2phi,Z3)))),ToReal(2)),phiL))));\n \n CCTK_REAL_VEC R33 CCTK_ATTRIBUTE_UNUSED = \n kadd(Rphi33,kadd(Rt33,kmadd(e4phi,kmadd(JacPDstandardNth1gt33,Z1,kmadd(JacPDstandardNth2gt33,Z2,kmul(JacPDstandardNth3gt33,Z3))),kdiv(kmadd(ToReal(4),kmul(JacPDstandardNth3phi,kmadd(g13,Z1,kmul(g23,Z2))),kmul(kmul(g33,kmadd(JacPDstandardNth1phi,Z1,kmsub(JacPDstandardNth2phi,Z2,kmul(JacPDstandardNth3phi,Z3)))),ToReal(-2))),phiL))));\n \n CCTK_REAL_VEC rho CCTK_ATTRIBUTE_UNUSED = \n kdiv(kadd(eTttL,kmadd(ToReal(-2),kmadd(beta2L,eTtyL,kmul(beta3L,eTtzL)),kmadd(ToReal(2),kmadd(beta1L,ksub(kmadd(beta2L,eTxyL,kmul(beta3L,eTxzL)),eTtxL),kmul(beta2L,kmul(beta3L,eTyzL))),kmadd(eTxxL,kmul(beta1L,beta1L),kmadd(eTyyL,kmul(beta2L,beta2L),kmul(eTzzL,kmul(beta3L,beta3L))))))),kmul(alphaL,alphaL));\n \n CCTK_REAL_VEC trS CCTK_ATTRIBUTE_UNUSED = \n kmadd(eTxxL,gu11,kmadd(eTyyL,gu22,kmadd(ToReal(2),kmadd(eTxyL,gu12,kmadd(eTxzL,gu13,kmul(eTyzL,gu23))),kmul(eTzzL,gu33))));\n \n CCTK_REAL_VEC phirhsL CCTK_ATTRIBUTE_UNUSED = \n kmadd(epsdiss1,JacPDdissipationNth1phi,kmadd(epsdiss2,JacPDdissipationNth2phi,kmadd(epsdiss3,JacPDdissipationNth3phi,kmadd(ToReal(-0.333333333333333333333333333333),kmul(phiL,knmsub(alphaL,trKL,kadd(JacPDstandardNth1beta1,kadd(JacPDstandardNth2beta2,JacPDstandardNth3beta3)))),kmadd(beta1L,JacPDupwindNthAnti1phi,kmadd(beta2L,JacPDupwindNthAnti2phi,kmadd(beta3L,JacPDupwindNthAnti3phi,kmadd(JacPDupwindNthSymm1phi,kfabs(beta1L),kmadd(JacPDupwindNthSymm2phi,kfabs(beta2L),kmul(JacPDupwindNthSymm3phi,kfabs(beta3L)))))))))));\n \n CCTK_REAL_VEC trAt CCTK_ATTRIBUTE_UNUSED = \n kadd(Atm11,kadd(Atm22,Atm33));\n \n CCTK_REAL_VEC gt11rhsL CCTK_ATTRIBUTE_UNUSED = \n kmadd(epsdiss1,JacPDdissipationNth1gt11,kmadd(epsdiss2,JacPDdissipationNth2gt11,kmadd(epsdiss3,JacPDdissipationNth3gt11,kmadd(ToReal(2),kmadd(gt11L,JacPDstandardNth1beta1,kmadd(gt12L,JacPDstandardNth1beta2,kmul(gt13L,JacPDstandardNth1beta3))),kmadd(ToReal(-0.666666666666666666666666666667),kmul(gt11L,kadd(JacPDstandardNth1beta1,kadd(JacPDstandardNth2beta2,JacPDstandardNth3beta3))),kmadd(beta1L,JacPDupwindNthAnti1gt11,kmadd(beta2L,JacPDupwindNthAnti2gt11,kmadd(beta3L,JacPDupwindNthAnti3gt11,kmadd(ToReal(-2),kmul(alphaL,kmadd(ToReal(-0.333333333333333333333333333333),kmul(gt11L,trAt),At11L)),kmadd(JacPDupwindNthSymm1gt11,kfabs(beta1L),kmadd(JacPDupwindNthSymm2gt11,kfabs(beta2L),kmul(JacPDupwindNthSymm3gt11,kfabs(beta3L)))))))))))));\n \n CCTK_REAL_VEC gt12rhsL CCTK_ATTRIBUTE_UNUSED = \n kmadd(epsdiss1,JacPDdissipationNth1gt12,kmadd(epsdiss2,JacPDdissipationNth2gt12,kmadd(epsdiss3,JacPDdissipationNth3gt12,kmadd(gt22L,JacPDstandardNth1beta2,kmadd(gt23L,JacPDstandardNth1beta3,kmadd(gt11L,JacPDstandardNth2beta1,kmadd(gt13L,JacPDstandardNth2beta3,kmadd(gt12L,kadd(JacPDstandardNth1beta1,kmadd(ToReal(-0.666666666666666666666666666667),kadd(JacPDstandardNth1beta1,kadd(JacPDstandardNth2beta2,JacPDstandardNth3beta3)),JacPDstandardNth2beta2)),kmadd(beta1L,JacPDupwindNthAnti1gt12,kmadd(beta2L,JacPDupwindNthAnti2gt12,kmadd(beta3L,JacPDupwindNthAnti3gt12,kmadd(ToReal(-2),kmul(alphaL,kmadd(ToReal(-0.333333333333333333333333333333),kmul(gt12L,trAt),At12L)),kmadd(JacPDupwindNthSymm1gt12,kfabs(beta1L),kmadd(JacPDupwindNthSymm2gt12,kfabs(beta2L),kmul(JacPDupwindNthSymm3gt12,kfabs(beta3L))))))))))))))));\n \n CCTK_REAL_VEC gt13rhsL CCTK_ATTRIBUTE_UNUSED = \n kmadd(epsdiss1,JacPDdissipationNth1gt13,kmadd(epsdiss2,JacPDdissipationNth2gt13,kmadd(epsdiss3,JacPDdissipationNth3gt13,kmadd(gt23L,JacPDstandardNth1beta2,kmadd(gt33L,JacPDstandardNth1beta3,kmadd(gt11L,JacPDstandardNth3beta1,kmadd(gt12L,JacPDstandardNth3beta2,kmadd(gt13L,kadd(JacPDstandardNth1beta1,kmadd(ToReal(-0.666666666666666666666666666667),kadd(JacPDstandardNth1beta1,kadd(JacPDstandardNth2beta2,JacPDstandardNth3beta3)),JacPDstandardNth3beta3)),kmadd(beta1L,JacPDupwindNthAnti1gt13,kmadd(beta2L,JacPDupwindNthAnti2gt13,kmadd(beta3L,JacPDupwindNthAnti3gt13,kmadd(ToReal(-2),kmul(alphaL,kmadd(ToReal(-0.333333333333333333333333333333),kmul(gt13L,trAt),At13L)),kmadd(JacPDupwindNthSymm1gt13,kfabs(beta1L),kmadd(JacPDupwindNthSymm2gt13,kfabs(beta2L),kmul(JacPDupwindNthSymm3gt13,kfabs(beta3L))))))))))))))));\n \n CCTK_REAL_VEC gt22rhsL CCTK_ATTRIBUTE_UNUSED = \n kmadd(epsdiss1,JacPDdissipationNth1gt22,kmadd(epsdiss2,JacPDdissipationNth2gt22,kmadd(epsdiss3,JacPDdissipationNth3gt22,kmadd(ToReal(2),kmadd(gt12L,JacPDstandardNth2beta1,kmadd(gt22L,JacPDstandardNth2beta2,kmul(gt23L,JacPDstandardNth2beta3))),kmadd(ToReal(-0.666666666666666666666666666667),kmul(gt22L,kadd(JacPDstandardNth1beta1,kadd(JacPDstandardNth2beta2,JacPDstandardNth3beta3))),kmadd(beta1L,JacPDupwindNthAnti1gt22,kmadd(beta2L,JacPDupwindNthAnti2gt22,kmadd(beta3L,JacPDupwindNthAnti3gt22,kmadd(ToReal(-2),kmul(alphaL,kmadd(ToReal(-0.333333333333333333333333333333),kmul(gt22L,trAt),At22L)),kmadd(JacPDupwindNthSymm1gt22,kfabs(beta1L),kmadd(JacPDupwindNthSymm2gt22,kfabs(beta2L),kmul(JacPDupwindNthSymm3gt22,kfabs(beta3L)))))))))))));\n \n CCTK_REAL_VEC gt23rhsL CCTK_ATTRIBUTE_UNUSED = \n kmadd(epsdiss1,JacPDdissipationNth1gt23,kmadd(epsdiss2,JacPDdissipationNth2gt23,kmadd(epsdiss3,JacPDdissipationNth3gt23,kmadd(gt13L,JacPDstandardNth2beta1,kmadd(gt33L,JacPDstandardNth2beta3,kmadd(gt12L,JacPDstandardNth3beta1,kmadd(gt22L,JacPDstandardNth3beta2,kmadd(gt23L,kadd(JacPDstandardNth2beta2,kmadd(ToReal(-0.666666666666666666666666666667),kadd(JacPDstandardNth1beta1,kadd(JacPDstandardNth2beta2,JacPDstandardNth3beta3)),JacPDstandardNth3beta3)),kmadd(beta1L,JacPDupwindNthAnti1gt23,kmadd(beta2L,JacPDupwindNthAnti2gt23,kmadd(beta3L,JacPDupwindNthAnti3gt23,kmadd(ToReal(-2),kmul(alphaL,kmadd(ToReal(-0.333333333333333333333333333333),kmul(gt23L,trAt),At23L)),kmadd(JacPDupwindNthSymm1gt23,kfabs(beta1L),kmadd(JacPDupwindNthSymm2gt23,kfabs(beta2L),kmul(JacPDupwindNthSymm3gt23,kfabs(beta3L))))))))))))))));\n \n CCTK_REAL_VEC gt33rhsL CCTK_ATTRIBUTE_UNUSED = \n kmadd(epsdiss1,JacPDdissipationNth1gt33,kmadd(epsdiss2,JacPDdissipationNth2gt33,kmadd(epsdiss3,JacPDdissipationNth3gt33,kmadd(ToReal(-0.666666666666666666666666666667),kmul(gt33L,kadd(JacPDstandardNth1beta1,kadd(JacPDstandardNth2beta2,JacPDstandardNth3beta3))),kmadd(ToReal(2),kmadd(gt13L,JacPDstandardNth3beta1,kmadd(gt23L,JacPDstandardNth3beta2,kmul(gt33L,JacPDstandardNth3beta3))),kmadd(beta1L,JacPDupwindNthAnti1gt33,kmadd(beta2L,JacPDupwindNthAnti2gt33,kmadd(beta3L,JacPDupwindNthAnti3gt33,kmadd(ToReal(-2),kmul(alphaL,kmadd(ToReal(-0.333333333333333333333333333333),kmul(gt33L,trAt),At33L)),kmadd(JacPDupwindNthSymm1gt33,kfabs(beta1L),kmadd(JacPDupwindNthSymm2gt33,kfabs(beta2L),kmul(JacPDupwindNthSymm3gt33,kfabs(beta3L)))))))))))));\n \n CCTK_REAL_VEC trR CCTK_ATTRIBUTE_UNUSED = \n kmadd(gu11,R11,kmadd(gu22,R22,kmadd(ToReal(2),kmadd(gu12,R12,kmadd(gu13,R13,kmul(gu23,R23))),kmul(gu33,R33))));\n \n CCTK_REAL_VEC dotTheta CCTK_ATTRIBUTE_UNUSED = \n knmsub(JacPDstandardNth1alpha,Z1,knmsub(JacPDstandardNth2alpha,Z2,kmsub(ToReal(-0.166666666666666666666666666667),kmul(alphaL,kmadd(ToReal(6),kmul(ThetaL,trKL),kmadd(ToReal(6),kmul(Atm12,Atm21),kmadd(ToReal(6),kmul(Atm13,Atm31),kmadd(ToReal(6),kmul(Atm23,Atm32),kmadd(ToReal(48),kmul(rho,ToReal(3.14159265358979323846264338328)),kmadd(ToReal(-3),trR,kmadd(ToReal(12),kmul(ThetaL,ToReal(dampk1)),kmadd(ToReal(6),kmul(kmul(ToReal(dampk2),ThetaL),ToReal(dampk1)),kmadd(ToReal(-2),kmul(trKL,trKL),kmadd(ToReal(3),kmul(Atm11,Atm11),kmadd(ToReal(3),kmul(Atm22,Atm22),kmul(kmul(Atm33,Atm33),ToReal(3)))))))))))))),kmul(JacPDstandardNth3alpha,Z3))));\n \n CCTK_REAL_VEC dottrK CCTK_ATTRIBUTE_UNUSED = \n knmsub(em4phi,kmadd(gtu11,kmadd(ToReal(2),kmul(cdphi1,JacPDstandardNth1alpha),JacPDstandardNth11alpha),kmadd(gtu12,kadd(JacPDstandardNth12alpha,kmadd(ToReal(2),kmul(cdphi2,JacPDstandardNth1alpha),kmadd(ToReal(2),kmul(cdphi1,JacPDstandardNth2alpha),JacPDstandardNth21alpha))),kmadd(gtu22,kmadd(ToReal(2),kmul(cdphi2,JacPDstandardNth2alpha),JacPDstandardNth22alpha),kmadd(gtu13,kadd(JacPDstandardNth13alpha,kmadd(ToReal(2),kmul(cdphi3,JacPDstandardNth1alpha),kmadd(ToReal(2),kmul(cdphi1,JacPDstandardNth3alpha),JacPDstandardNth31alpha))),kmadd(gtu23,kadd(JacPDstandardNth23alpha,kmadd(ToReal(2),kmul(cdphi3,JacPDstandardNth2alpha),kmadd(ToReal(2),kmul(cdphi2,JacPDstandardNth3alpha),JacPDstandardNth32alpha))),kmsub(gtu33,kmadd(ToReal(2),kmul(cdphi3,JacPDstandardNth3alpha),JacPDstandardNth33alpha),kmadd(JacPDstandardNth1alpha,Xtn1,kmadd(JacPDstandardNth3alpha,Xtn3,kmul(JacPDstandardNth2alpha,Xtn2))))))))),kmadd(ToReal(2),kadd(dotTheta,kmadd(JacPDstandardNth1alpha,Z1,kmadd(JacPDstandardNth2alpha,Z2,kmul(JacPDstandardNth3alpha,Z3)))),kmul(alphaL,kmadd(ToReal(2),kmadd(Atm12,Atm21,kmadd(Atm13,Atm31,kmul(Atm23,Atm32))),kmadd(ToReal(4),kmul(kadd(rho,trS),ToReal(3.14159265358979323846264338328)),knmsub(ToReal(dampk1),kmul(ThetaL,ToReal(-1 \n + \n dampk2)),kmadd(ToReal(0.333333333333333333333333333333),kmul(trKL,trKL),kmadd(Atm11,Atm11,kmadd(Atm22,Atm22,kmul(Atm33,Atm33))))))))));\n \n CCTK_REAL_VEC dotalpha CCTK_ATTRIBUTE_UNUSED = \n kneg(kmul(kmul(IfThen(evolveA != \n 0,AL,kmadd(ToReal(-2),ThetaL,kmadd(ToReal(alphaDriver),kadd(ToReal(-1),alphaL),trKL))),kpow(alphaL,harmonicN)),ToReal(harmonicF)));\n \n CCTK_REAL_VEC alpharhsL CCTK_ATTRIBUTE_UNUSED = \n kadd(dotalpha,kmadd(epsdiss1,JacPDdissipationNth1alpha,kmadd(epsdiss2,JacPDdissipationNth2alpha,kmadd(epsdiss3,JacPDdissipationNth3alpha,IfThen(advectLapse \n != \n 0,kmadd(beta1L,JacPDupwindNthAnti1alpha,kmadd(beta2L,JacPDupwindNthAnti2alpha,kmadd(beta3L,JacPDupwindNthAnti3alpha,kmadd(JacPDupwindNthSymm1alpha,kfabs(beta1L),kmadd(JacPDupwindNthSymm2alpha,kfabs(beta2L),kmul(JacPDupwindNthSymm3alpha,kfabs(beta3L))))))),ToReal(0))))));\n \n CCTK_REAL_VEC ArhsL CCTK_ATTRIBUTE_UNUSED = IfThen(evolveA != \n 0,kmadd(ToReal(-2),ThetarhsL,kadd(dottrK,kmadd(epsdiss1,JacPDdissipationNth1A,kmadd(epsdiss2,JacPDdissipationNth2A,kmadd(epsdiss3,JacPDdissipationNth3A,kadd(IfThen(fixAdvectionTerms \n == 0 && advectLapse != \n 0,kmadd(beta1L,JacPDupwindNthAnti1A,kmadd(beta2L,JacPDupwindNthAnti2A,kmadd(beta3L,JacPDupwindNthAnti3A,kmadd(JacPDupwindNthSymm1A,kfabs(beta1L),kmadd(JacPDupwindNthSymm2A,kfabs(beta2L),kmul(JacPDupwindNthSymm3A,kfabs(beta3L))))))),ToReal(0)),knmsub(ToReal(alphaDriver),kadd(AL,IfThen(fixAdvectionTerms \n != 0 && advectLapse != \n 0,kneg(kmul(kmul(kmadd(beta1L,JacPDupwindNthAnti1alpha,kmadd(beta2L,JacPDupwindNthAnti2alpha,kmadd(beta3L,JacPDupwindNthAnti3alpha,kmadd(JacPDupwindNthSymm1alpha,kfabs(beta1L),kmadd(JacPDupwindNthSymm2alpha,kfabs(beta2L),kmul(JacPDupwindNthSymm3alpha,kfabs(beta3L))))))),kpow(alphaL,-harmonicN)),ToReal(pow(harmonicF,-1)))),ToReal(0))),IfThen(fixAdvectionTerms \n != \n 0,kmadd(beta1L,JacPDupwindNthAnti1trK,kmadd(beta2L,JacPDupwindNthAnti2trK,kmadd(beta3L,JacPDupwindNthAnti3trK,kmadd(JacPDupwindNthSymm1trK,kfabs(beta1L),kmadd(JacPDupwindNthSymm2trK,kfabs(beta2L),kmul(JacPDupwindNthSymm3trK,kfabs(beta3L))))))),ToReal(0))))))))),ToReal(0));\n /* Copy local copies back to grid functions */\n vec_store_partial_prepare(i,vecimin,vecimax);\n vec_store_nta_partial(alpharhs[index],alpharhsL);\n vec_store_nta_partial(Arhs[index],ArhsL);\n vec_store_nta_partial(gt11rhs[index],gt11rhsL);\n vec_store_nta_partial(gt12rhs[index],gt12rhsL);\n vec_store_nta_partial(gt13rhs[index],gt13rhsL);\n vec_store_nta_partial(gt22rhs[index],gt22rhsL);\n vec_store_nta_partial(gt23rhs[index],gt23rhsL);\n vec_store_nta_partial(gt33rhs[index],gt33rhsL);\n vec_store_nta_partial(phirhs[index],phirhsL);\n }\n CCTK_ENDLOOP3STR(ML_CCZ4_EvolutionInteriorSplitBy1);\n}\nextern \"C\" void ML_CCZ4_EvolutionInteriorSplitBy1(CCTK_ARGUMENTS)\n{\n #ifdef DECLARE_CCTK_ARGUMENTS_ML_CCZ4_EvolutionInteriorSplitBy1\n DECLARE_CCTK_ARGUMENTS_CHECKED(ML_CCZ4_EvolutionInteriorSplitBy1);\n #else\n DECLARE_CCTK_ARGUMENTS;\n #endif\n DECLARE_CCTK_PARAMETERS;\n \n if (verbose > 1)\n {\n CCTK_VInfo(CCTK_THORNSTRING,\"Entering ML_CCZ4_EvolutionInteriorSplitBy1_Body\");\n }\n if (cctk_iteration % ML_CCZ4_EvolutionInteriorSplitBy1_calc_every != ML_CCZ4_EvolutionInteriorSplitBy1_calc_offset)\n {\n return;\n }\n \n const char* const groups[] = {\n \"ML_CCZ4::ML_curv\",\n \"ML_CCZ4::ML_dtlapse\",\n \"ML_CCZ4::ML_dtlapserhs\",\n \"ML_CCZ4::ML_Gamma\",\n \"ML_CCZ4::ML_lapse\",\n \"ML_CCZ4::ML_lapserhs\",\n \"ML_CCZ4::ML_log_confac\",\n \"ML_CCZ4::ML_log_confacrhs\",\n \"ML_CCZ4::ML_metric\",\n \"ML_CCZ4::ML_metricrhs\",\n \"ML_CCZ4::ML_shift\",\n \"ML_CCZ4::ML_Theta\",\n \"ML_CCZ4::ML_Thetarhs\",\n \"ML_CCZ4::ML_trace_curv\"};\n AssertGroupStorage(cctkGH, \"ML_CCZ4_EvolutionInteriorSplitBy1\", 14, groups);\n \n switch (fdOrder)\n {\n case 2:\n {\n EnsureStencilFits(cctkGH, \"ML_CCZ4_EvolutionInteriorSplitBy1\", 2, 2, 2);\n break;\n }\n \n case 4:\n {\n EnsureStencilFits(cctkGH, \"ML_CCZ4_EvolutionInteriorSplitBy1\", 3, 3, 3);\n break;\n }\n \n case 6:\n {\n EnsureStencilFits(cctkGH, \"ML_CCZ4_EvolutionInteriorSplitBy1\", 4, 4, 4);\n break;\n }\n \n case 8:\n {\n EnsureStencilFits(cctkGH, \"ML_CCZ4_EvolutionInteriorSplitBy1\", 5, 5, 5);\n break;\n }\n default:\n CCTK_BUILTIN_UNREACHABLE();\n }\n \n LoopOverInterior(cctkGH, ML_CCZ4_EvolutionInteriorSplitBy1_Body);\n if (verbose > 1)\n {\n CCTK_VInfo(CCTK_THORNSTRING,\"Leaving ML_CCZ4_EvolutionInteriorSplitBy1_Body\");\n }\n}\n\n} // namespace ML_CCZ4\n", diff --git a/McLachlan_ML_CCZ4_Helper.json b/McLachlan_ML_CCZ4_Helper.json index 4bbafe756c377b27ac040345383cffdee89d9f2d..dadf5ad3aa67cf7dad917ca36e808abcce67a0e4 100644 --- a/McLachlan_ML_CCZ4_Helper.json +++ b/McLachlan_ML_CCZ4_Helper.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/mclachlan.git", "configuration": "# ML_CCZ4_Helper\n\nREQUIRES THORNS: CartGrid3D CoordGauge\n", "interface": "# ML_CCZ4_Helper\n\nIMPLEMENTS: ML_CCZ4_Helper\n\nINHERITS: ADMBase CoordGauge ML_CCZ4\n\nUSES INCLUDE: Slicing.h\nUSES INCLUDE: Symmetry.h\n\n\n\nCCTK_INT FUNCTION MoLRegisterConstrainedGroup \\\n (CCTK_INT IN ConstrainedIndex)\nUSES FUNCTION MoLRegisterConstrainedGroup\n\nCCTK_INT FUNCTION \\\n Boundary_SelectGroupForBC \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN faces, \\\n CCTK_INT IN boundary_width, \\\n CCTK_INT IN table_handle, \\\n CCTK_STRING IN group_name, \\\n CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT FUNCTION \\\n ExtrapolateGammas \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_REAL ARRAY INOUT var)\nUSES FUNCTION ExtrapolateGammas\n\nCCTK_INT FUNCTION \\\n NewRad_Apply \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_REAL ARRAY IN var, \\\n CCTK_REAL ARRAY INOUT rhs, \\\n CCTK_REAL IN var0, \\\n CCTK_REAL IN v0, \\\n CCTK_INT IN radpower)\nUSES FUNCTION NewRad_Apply\n\nCCTK_INT FUNCTION Driver_RequireValidData\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT ARRAY IN variables,\n CCTK_INT ARRAY IN tls,\n CCTK_INT IN nvariables,\n CCTK_INT ARRAY IN where)\nUSES FUNCTION Driver_RequireValidData\n\nCCTK_INT FUNCTION Driver_NotifyDataModified\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT ARRAY IN variables,\n CCTK_INT ARRAY IN tls,\n CCTK_INT IN nvariables,\n CCTK_INT ARRAY IN where)\nUSES FUNCTION Driver_NotifyDataModified\n\nCCTK_INT FUNCTION\n Driver_SelectGroupForBC\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT IN faces,\n CCTK_INT IN width,\n CCTK_INT IN table_handle,\n CCTK_STRING IN group_name,\n CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectGroupForBC\n", - "params": "", + "param": "# ML_CCZ4_Helper\n\nSHARES: Boundary\n\nUSES CCTK_INT radpower\n\nSHARES: MethodofLines\n\nUSES CCTK_INT MoL_Num_Constrained_Vars\n\nSHARES: ADMBase\n\nUSES KEYWORD evolution_method\n\nSHARES: GenericFD\n\nUSES CCTK_INT boundary_width\n\nSHARES: ML_CCZ4\n\n# For backward compatibility\nUSES KEYWORD my_initial_data\nEXTENDS KEYWORD my_initial_boundary_condition\n{\n \"extrapolate-gammas\" :: \"extrapolate-gammas\"\n}\nEXTENDS KEYWORD my_rhs_boundary_condition\n{\n \"NewRad\" :: \"NewRad\"\n}\nUSES KEYWORD my_boundary_condition\nUSES KEYWORD apply_dissipation\nUSES CCTK_REAL shiftGammaCoeff\nUSES CCTK_REAL LapseACoeff\nUSES CCTK_REAL ShiftBCoeff\nUSES CCTK_REAL LapseAdvectionCoeff\nUSES CCTK_REAL ShiftAdvectionCoeff\nUSES CCTK_INT evolveB\n\nUSES CCTK_INT timelevels\nUSES CCTK_INT rhs_timelevels\nUSES CCTK_INT other_timelevels\n\nUSES CCTK_REAL harmonicF\nUSES CCTK_INT conformalMethod\n\nEXTENDS KEYWORD initial_boundary_condition\n{\n \"extrapolate-gammas\" :: \"extrapolate-gammas\"\n}\nEXTENDS KEYWORD rhs_boundary_condition\n{\n \"NewRad\" :: \"NewRad\"\n}\n\nPRIVATE:\n\nCCTK_INT ML_CCZ4_MaxNumConstrainedVars \"Number of constrained variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Constrained_Vars\n{\n 20:20 :: \"Number of constrained variables used by this thorn\"\n} 20\n", "schedule": "# ML_CCZ4_Helper\n\nif (CCTK_EQUALS(evolution_method, \"ML_CCZ4\")) {\n \n # ADMBase variables are pseudo-evolved:\n # They are set in MoL_PostStep, can be prolongated,\n # and need to be checkpointed\n # TODO: Use other_timelevels instead of timelevels.\n # TODO: Do not allocate these timelevels;\n # instead, require the user to do so in the parameter file.\n STORAGE: ADMBase::metric[timelevels]\n STORAGE: ADMBase::curv[timelevels]\n STORAGE: ADMBase::lapse[timelevels]\n STORAGE: ADMBase::shift[timelevels]\n STORAGE: ADMBase::dtlapse[timelevels]\n STORAGE: ADMBase::dtshift[timelevels]\n \n \n \n SCHEDULE ML_CCZ4_RegisterSlicing AT startup\n {\n LANG: C\n OPTIONS: meta\n } \"Register slicing\"\n \n SCHEDULE ML_CCZ4_SetGroupTags AT startup BEFORE Driver_Startup\n {\n LANG: C\n OPTIONS: meta\n } \"Set checkpointing and prolongation group tags\"\n \n SCHEDULE ML_CCZ4_ParamCompat AT wragh\n {\n LANG: C\n OPTIONS: meta\n } \"Handle parameter backward compatibility\"\n \n SCHEDULE ML_CCZ4_ParamCheck AT paramcheck\n {\n LANG: C\n OPTIONS: meta\n } \"Check parameters\"\n \n SCHEDULE ML_CCZ4_RegisterConstrained IN MoL_Register\n {\n LANG: C\n OPTIONS: meta\n } \"Register ADMBase variables as constrained\"\n \n \n \n SCHEDULE GROUP ML_CCZ4_EvolutionAnalysis AT analysis\n {\n # TODO: Correct list of group names\n TRIGGERS: ML_log_confacrhs\n TRIGGERS: ML_metricrhs\n TRIGGERS: ML_Gammarhs\n TRIGGERS: ML_trace_curvrhs\n TRIGGERS: ML_curvrhs\n # TRIGGERS: ML_Thetarhs\n TRIGGERS: ML_lapserhs\n TRIGGERS: ML_dtlapserhs\n TRIGGERS: ML_shiftrhs\n TRIGGERS: ML_dtshiftrhs\n } \"Calculate RHS at analysis\"\n \n # May override initial_boundary_condition for compatibility\n if (CCTK_EQUALS(initial_boundary_condition, \"extrapolate-gammas\") ||\n CCTK_EQUALS(my_initial_boundary_condition, \"extrapolate-gammas\"))\n {\n SCHEDULE ML_CCZ4_ExtrapolateGammas AT initial AFTER ML_CCZ4_InitialADMBase2Interior\n {\n LANG: C\n READS: ML_CCZ4::ML_Gamma(interior)\n WRITES: ML_CCZ4::ML_Gamma(boundary)\n # No need to sync here -- the evolution boundary condition will sync\n } \"Extrapolate Gammas and time derivatives of lapse and shift\"\n }\n \n # May override rhs_boundary_condition for compatibility\n if (CCTK_EQUALS(rhs_boundary_condition, \"NewRad\") ||\n CCTK_EQUALS(my_rhs_boundary_condition, \"NewRad\"))\n {\n SCHEDULE ML_CCZ4_NewRad IN MoL_CalcRHS AFTER ML_CCZ4_EvolutionInterior\n {\n LANG: C\n # No need to sync here -- the RHS variables are never synced\n READS: ML_CCZ4::ML_Gamma(interior)\n READS: ML_CCZ4::ML_curv(interior)\n READS: ML_CCZ4::ML_lapse(interior)\n READS: ML_CCZ4::ML_metric(interior)\n READS: ML_CCZ4::ML_shift(interior)\n READS: ML_CCZ4::phi(interior)\n READS: ML_CCZ4::trK(interior)\n WRITES: ML_CCZ4::ML_Gammarhs(boundary)\n WRITES: ML_CCZ4::ML_curvrhs(boundary)\n WRITES: ML_CCZ4::ML_lapserhs(boundary)\n WRITES: ML_CCZ4::ML_metricrhs(boundary)\n WRITES: ML_CCZ4::ML_shiftrhs(boundary)\n WRITES: ML_CCZ4::phirhs(boundary)\n WRITES: ML_CCZ4::trKrhs(boundary)\n } \"Apply NewRad boundary conditions to RHS\"\n \n SCHEDULE ML_CCZ4_NewRad IN ML_CCZ4_EvolutionAnalysis AFTER ML_CCZ4_EvolutionAnalysisInterior\n {\n LANG: C\n # No need to sync here -- the RHS variables are never synced\n READS: ML_CCZ4::ML_Gamma(interior)\n READS: ML_CCZ4::ML_curv(interior)\n READS: ML_CCZ4::ML_lapse(interior)\n READS: ML_CCZ4::ML_metric(interior)\n READS: ML_CCZ4::ML_shift(interior)\n READS: ML_CCZ4::phi(interior)\n READS: ML_CCZ4::trK(interior)\n WRITES: ML_CCZ4::ML_Gammarhs(boundary)\n WRITES: ML_CCZ4::ML_curvrhs(boundary)\n WRITES: ML_CCZ4::ML_lapserhs(boundary)\n WRITES: ML_CCZ4::ML_metricrhs(boundary)\n WRITES: ML_CCZ4::ML_shiftrhs(boundary)\n WRITES: ML_CCZ4::phirhs(boundary)\n WRITES: ML_CCZ4::trKrhs(boundary)\n } \"Apply NewRad boundary conditions to RHS\"\n }\n \n # TODO COMPATIBILITY:\n # Do not apply boundary conditions to Everywhere ADMBase variables\n SCHEDULE ML_CCZ4_ADMBase_SelectBCs IN MoL_PostStep AFTER ML_CCZ4_ADMBaseEverywhere AFTER ML_CCZ4_ADMBaseInterior AFTER ML_CCZ4_ADMBaseBoundaryScalar\n {\n LANG: C\n OPTIONS: level\n } \"Select boundary conditions for ADMBase variables\"\n \n SCHEDULE GROUP ApplyBCs AS ML_CCZ4_ADMBase_ApplyBCs IN MoL_PostStep AFTER ML_CCZ4_ADMBase_SelectBCs BEFORE ADMBase_SetADMVars\n {\n } \"Apply boundary conditions to ADMBase variables\"\n \n}\n", "src": { "ExtrapolateGammas.c": "#include \n#include \n\n#include \n\n#ifndef DECLARE_CCTK_ARGUMENTS_CHECKED\n#define DECLARE_CCTK_ARGUMENTS_CHECKED(func) DECLARE_CCTK_ARGUMENTS\n#endif\n\nstatic void extrap(const cGH *cctkGH, CCTK_REAL *var);\n\nvoid ML_CCZ4_ExtrapolateGammas(CCTK_ARGUMENTS) {\n DECLARE_CCTK_ARGUMENTS_CHECKED(ML_CCZ4_ExtrapolateGammas);\n\n extrap(cctkGH, Xt1);\n extrap(cctkGH, Xt2);\n extrap(cctkGH, Xt3);\n\n static bool have_A_index = false;\n static int A_index;\n if (!have_A_index) {\n A_index = CCTK_VarIndex(\"ML_CCZ4::A\");\n have_A_index = true;\n }\n if (A_index >= 0) {\n if(CCTK_IsFunctionAliased(\"Driver_RequireValidData\")) {\n CCTK_INT variables[1] = {A_index};\n CCTK_INT tls[1] = {0};\n CCTK_INT where[1] = {CCTK_VALID_INTERIOR};\n CCTK_INT ierr = Driver_RequireValidData(cctkGH, variables, tls, 1, where);\n assert(!ierr);\n }\n CCTK_REAL *A_ptr = CCTK_VarDataPtrI(cctkGH, 0, A_index);\n extrap(cctkGH, A_ptr);\n if(CCTK_IsFunctionAliased(\"Driver_NotifyDataModified\")) {\n CCTK_INT variables[1] = {A_index};\n CCTK_INT tls[1] = {0};\n CCTK_INT where[1] = {CCTK_VALID_BOUNDARY};\n CCTK_INT ierr = Driver_NotifyDataModified(cctkGH, variables, tls, 1,\n where);\n assert(!ierr);\n }\n }\n\n static bool have_B_index = false;\n static int B_index;\n if (!have_B_index) {\n B_index = CCTK_VarIndex(\"ML_CCZ4::B1\");\n have_B_index = true;\n }\n if (B_index >= 0) {\n if(CCTK_IsFunctionAliased(\"Driver_RequireValidData\")) {\n CCTK_INT variables[3] = {B_index, B_index + 1, B_index + 2};\n CCTK_INT tls[3] = {0, 0 ,0};\n CCTK_INT where[3] = {CCTK_VALID_INTERIOR, CCTK_VALID_INTERIOR,\n CCTK_VALID_INTERIOR};\n CCTK_INT ierr = Driver_RequireValidData(cctkGH, variables, tls, 3, where);\n assert(!ierr);\n }\n CCTK_REAL *B1_ptr = CCTK_VarDataPtrI(cctkGH, 0, B_index);\n CCTK_REAL *B2_ptr = CCTK_VarDataPtrI(cctkGH, 0, B_index + 1);\n CCTK_REAL *B3_ptr = CCTK_VarDataPtrI(cctkGH, 0, B_index + 2);\n extrap(cctkGH, B1_ptr);\n extrap(cctkGH, B2_ptr);\n extrap(cctkGH, B3_ptr);\n if(CCTK_IsFunctionAliased(\"Driver_NotifyDataModified\")) {\n CCTK_INT variables[3] = {B_index, B_index + 1, B_index + 2};\n CCTK_INT tls[3] = {0, 0 ,0};\n CCTK_INT where[3] = {CCTK_VALID_INTERIOR, CCTK_VALID_INTERIOR,\n CCTK_VALID_INTERIOR};\n CCTK_INT ierr = Driver_NotifyDataModified(cctkGH, variables, tls, 3,\n where);\n assert(!ierr);\n }\n }\n}\n\nstatic void extrap(const cGH *cctkGH, CCTK_REAL *var) {\n ExtrapolateGammas(cctkGH, var);\n}\n", diff --git a/McLachlan_ML_CCZ4_Test.json b/McLachlan_ML_CCZ4_Test.json index 735c2bba14d529e0fcfd42a068d3eeb71c7e012e..c67b77df01862788e472642df5872206e5ee7da6 100644 --- a/McLachlan_ML_CCZ4_Test.json +++ b/McLachlan_ML_CCZ4_Test.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/mclachlan.git", "configuration": "", "interface": "implements: ML_BSSN_Test\n", - "params": "", + "param": "", "schedule": "", "src": { "make.code.defn": "" diff --git a/McLachlan_ML_WaveToy.json b/McLachlan_ML_WaveToy.json index f22a5b0b5721feb03f0915bc08b4d509a1ae026a..17d16e0522e18afa53ee627a3786bc01c7f6d29c 100644 --- a/McLachlan_ML_WaveToy.json +++ b/McLachlan_ML_WaveToy.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/mclachlan.git", "configuration": "# File produced by Kranc\n\nREQUIRES GenericFD\nREQUIRES LoopControl\nREQUIRES Vectors\n", "interface": "# File produced by Kranc\n\nimplements: ML_WaveToy\n\ninherits: Boundary GenericFD Grid\n\n\n\nUSES INCLUDE: loopcontrol.h\nUSES INCLUDE: Symmetry.h\nUSES INCLUDE: vectors.h\nUSES INCLUDE: Boundary.h\n\nCCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex)\nUSES FUNCTION MoLRegisterEvolved\n\nSUBROUTINE Diff_coeff(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN dir, CCTK_INT IN nsize, CCTK_INT OUT ARRAY imin, CCTK_INT OUT ARRAY imax, CCTK_REAL OUT ARRAY q, CCTK_INT IN table_handle)\nUSES FUNCTION Diff_coeff\n\nCCTK_INT FUNCTION MultiPatch_GetMap(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n\nCCTK_INT FUNCTION MultiPatch_GetBbox(CCTK_POINTER_TO_CONST IN cctkGH, CCTK_INT IN size, CCTK_INT OUT ARRAY bbox)\nUSES FUNCTION MultiPatch_GetBbox\n\nCCTK_INT FUNCTION GetBoundarySpecification(CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION GetBoundarySpecification\n\nCCTK_INT FUNCTION MultiPatch_GetBoundarySpecification(CCTK_INT IN map, CCTK_INT IN size, CCTK_INT OUT ARRAY nboundaryzones, CCTK_INT OUT ARRAY is_internal, CCTK_INT OUT ARRAY is_staggered, CCTK_INT OUT ARRAY shiftout)\nUSES FUNCTION MultiPatch_GetBoundarySpecification\n\nCCTK_INT FUNCTION SymmetryTableHandleForGrid(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION SymmetryTableHandleForGrid\n\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT FUNCTION Driver_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectGroupForBC\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectVarForBC\n\nCCTK_INT FUNCTION Driver_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Driver_SelectVarForBC\n\npublic:\nCCTK_REAL WT_u type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n u\n} \"WT_u\"\n\npublic:\nCCTK_REAL WT_rho type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0'\n{\n rho\n} \"WT_rho\"\n\npublic:\nCCTK_REAL WT_eps type=GF timelevels=1 tags='tensortypealias=\"Scalar\" tensorweight=0 Prolongation=\"None\"'\n{\n eps\n} \"WT_eps\"\n\npublic:\nCCTK_REAL WT_rhorhs type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0 Prolongation=\"None\"'\n{\n rhorhs\n} \"WT_rhorhs\"\n\npublic:\nCCTK_REAL WT_urhs type=GF timelevels=4 tags='tensortypealias=\"Scalar\" tensorweight=0 Prolongation=\"None\"'\n{\n urhs\n} \"WT_urhs\"\n", - "params": "", + "param": "# File produced by Kranc\n\n\nshares: GenericFD\n\nUSES CCTK_INT assume_stress_energy_state\n\n\nshares: MethodOfLines\n\nUSES CCTK_INT MoL_Num_Evolved_Vars\nUSES CCTK_INT MoL_Num_ArrayEvolved_Vars\n\nrestricted:\nCCTK_INT verbose \"verbose\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT other_timelevels \"Number of active timelevels for non-evolved grid functions\" STEERABLE=RECOVER\n{\n 0:4 :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL amplitude \"Amplitude of initial Gaussian\"\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_REAL width \"Width of initial Gaussian\"\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT tile_size \"Loop tile size\"\n{\n *:* :: \"\"\n} -1\n\nprivate:\nCCTK_KEYWORD initial_data \"initial_data\"\n{\n \"Gaussian\" :: \"\"\n \"Standing\" :: \"\"\n} \"Gaussian\"\n\nrestricted:\nCCTK_INT ML_WaveToy_MaxNumEvolvedVars \"Number of evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Evolved_Vars STEERABLE=RECOVER\n{\n 2:2 :: \"Number of evolved variables used by this thorn\"\n} 2\n\nrestricted:\nCCTK_INT ML_WaveToy_MaxNumArrayEvolvedVars \"Number of Array evolved variables used by this thorn\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_ArrayEvolved_Vars STEERABLE=RECOVER\n{\n 0:0 :: \"Number of Array evolved variables used by this thorn\"\n} 0\n\nrestricted:\nCCTK_INT timelevels \"Number of active timelevels\" STEERABLE=RECOVER\n{\n 0:4 :: \"\"\n} 4\n\nrestricted:\nCCTK_INT rhs_timelevels \"Number of active RHS timelevels\" STEERABLE=RECOVER\n{\n 0:4 :: \"\"\n} 1\n\nrestricted:\nCCTK_INT WT_Gaussian_calc_every \"WT_Gaussian_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT WT_Standing_calc_every \"WT_Standing_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT WT_RHS_calc_every \"WT_RHS_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT WT_Dirichlet_calc_every \"WT_Dirichlet_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT WT_Energy_calc_every \"WT_Energy_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT WT_EnergyBoundary_calc_every \"WT_EnergyBoundary_calc_every\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 1\n\nrestricted:\nCCTK_INT WT_Gaussian_calc_offset \"WT_Gaussian_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT WT_Standing_calc_offset \"WT_Standing_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT WT_RHS_calc_offset \"WT_RHS_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT WT_Dirichlet_calc_offset \"WT_Dirichlet_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT WT_Energy_calc_offset \"WT_Energy_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nrestricted:\nCCTK_INT WT_EnergyBoundary_calc_offset \"WT_EnergyBoundary_calc_offset\" STEERABLE=ALWAYS\n{\n *:* :: \"\"\n} 0\n\nprivate:\nCCTK_KEYWORD u_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD rho_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"skip\"\n\nprivate:\nCCTK_KEYWORD WT_u_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_KEYWORD WT_rho_bound \"Boundary condition to implement\" STEERABLE=ALWAYS\n{\n \"flat\" :: \"Flat boundary condition\"\n \"none\" :: \"No boundary condition\"\n \"static\" :: \"Boundaries held fixed\"\n \"radiative\" :: \"Radiation boundary condition\"\n \"scalar\" :: \"Dirichlet boundary condition\"\n \"newrad\" :: \"Improved radiative boundary condition\"\n \"skip\" :: \"skip boundary condition code\"\n} \"none\"\n\nprivate:\nCCTK_REAL u_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL rho_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL WT_u_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL WT_rho_bound_speed \"characteristic speed at boundary\" STEERABLE=ALWAYS\n{\n 0:* :: \"outgoing characteristic speed > 0\"\n} 1.\n\nprivate:\nCCTK_REAL u_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL rho_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL WT_u_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL WT_rho_bound_limit \"limit value for r -> infinity\" STEERABLE=ALWAYS\n{\n *:* :: \"value of limit value is unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL u_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL rho_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL WT_u_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\nprivate:\nCCTK_REAL WT_rho_bound_scalar \"Dirichlet boundary value\" STEERABLE=ALWAYS\n{\n *:* :: \"unrestricted\"\n} 0.\n\n", "schedule": "# File produced by Kranc\n\nSTORAGE: WT_u[timelevels]\n\nSTORAGE: WT_rho[timelevels]\n\nSTORAGE: WT_eps[other_timelevels]\n\nSTORAGE: WT_rhorhs[rhs_timelevels]\n\nSTORAGE: WT_urhs[rhs_timelevels]\nschedule ML_WaveToy_Startup at STARTUP\n{\n LANG: C\n OPTIONS: meta\n} \"create banner\"\n\nschedule ML_WaveToy_RegisterSymmetries in SymmetryRegister\n{\n LANG: C\n OPTIONS: meta\n} \"register symmetries\"\n\nif (CCTK_EQUALS(initial_data, \"Gaussian\"))\n{\n schedule WT_Gaussian AT initial\n {\n LANG: C\n READS: grid::r(Everywhere)\n WRITES: ML_WaveToy::rho(Everywhere)\n WRITES: ML_WaveToy::u(Everywhere)\n } \"WT_Gaussian\"\n}\n\nif (CCTK_EQUALS(initial_data, \"Standing\"))\n{\n schedule WT_Standing AT initial\n {\n LANG: C\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: ML_WaveToy::rho(Everywhere)\n WRITES: ML_WaveToy::u(Everywhere)\n } \"WT_Standing\"\n}\n\nschedule WT_RHS IN MoL_CalcRHS\n{\n LANG: C\n READS: ML_WaveToy::rho(Everywhere)\n READS: ML_WaveToy::u(Everywhere)\n WRITES: ML_WaveToy::rhorhs(Interior)\n WRITES: ML_WaveToy::urhs(Interior)\n} \"WT_RHS\"\n\nschedule WT_Dirichlet IN MoL_CalcRHS\n{\n LANG: C\n WRITES: ML_WaveToy::rhorhs(Boundary)\n WRITES: ML_WaveToy::urhs(Boundary)\n} \"WT_Dirichlet\"\n\nschedule WT_Dirichlet AT analysis\n{\n LANG: C\n SYNC: WT_rhorhs\n SYNC: WT_urhs\n WRITES: ML_WaveToy::rhorhs(Boundary)\n WRITES: ML_WaveToy::urhs(Boundary)\n} \"WT_Dirichlet\"\n\nschedule WT_Energy AT analysis\n{\n LANG: C\n SYNC: WT_eps\n READS: ML_WaveToy::rho(Everywhere)\n READS: ML_WaveToy::u(Everywhere)\n WRITES: ML_WaveToy::eps(Interior)\n} \"WT_Energy\"\n\nschedule WT_EnergyBoundary AT analysis\n{\n LANG: C\n SYNC: WT_eps\n WRITES: ML_WaveToy::eps(Boundary)\n} \"WT_EnergyBoundary\"\n\nschedule ML_WaveToy_SelectBoundConds in MoL_PostStep\n{\n LANG: C\n OPTIONS: level\n SYNC: WT_u\n SYNC: WT_rho\n} \"select boundary conditions\"\n\nschedule ML_WaveToy_CheckBoundaries at BASEGRID\n{\n LANG: C\n OPTIONS: meta\n} \"check boundaries treatment\"\n\nschedule ML_WaveToy_RegisterVars in MoL_Register\n{\n LANG: C\n OPTIONS: meta\n} \"Register Variables for MoL\"\nschedule group ApplyBCs as ML_WaveToy_ApplyBCs in MoL_PostStep after ML_WaveToy_SelectBoundConds\n{\n} \"Apply boundary conditions controlled by thorn Boundary\"\n", "src": { "make.code.defn": "# File produced by Kranc\n\nSRCS = Boundaries.cc Kranc.cc RegisterMoL.cc RegisterSymmetries.cc Startup.cc WT_Dirichlet.cc WT_EnergyBoundary.cc WT_Energy.cc WT_Gaussian.cc WT_RHS.cc WT_Standing.cc \n", diff --git a/McLachlan_ML_WaveToy_Test.json b/McLachlan_ML_WaveToy_Test.json index 0e6e2c55c52c64096357d99f8e2e1d221a1dccab..2f71d60e60c070408c78491b5184918584681b6e 100644 --- a/McLachlan_ML_WaveToy_Test.json +++ b/McLachlan_ML_WaveToy_Test.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/mclachlan.git", "configuration": "", "interface": "IMPLEMENTS: ML_WaveToy_Test\n", - "params": "", + "param": "", "schedule": "", "src": { "make.code.defn": "" diff --git a/Numerical_AEILocalInterp.json b/Numerical_AEILocalInterp.json index f24e7f6a1484442c982288ebd3ab8b1d676dab34..b1df26af1e099bb811cd179f57706cf5624d4ca5 100644 --- a/Numerical_AEILocalInterp.json +++ b/Numerical_AEILocalInterp.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/cactuscode/numerical.git", "configuration": "", "interface": "# Interface definition for thorn AEILocalInterp\n# $Header$\n\nimplements: AEILocalInterp\ninherits:\n\n# this thorn doesn't define or use any Cactus grid variables or grid arrays\n", - "params": "", + "param": "# Parameter definitions for thorn AEILocalInterp\n# $Header$\n\n# all parameters are private to this thorn\nprivate:\n\n#\n# If this logging is done, each processor writes its log data to a file\n# named via\n#\tsnprintf(buffer, length,\n#\t\t \"AEILocalInterp.proc%d.log\"\n#\t\t CCTK_MyProc())\n# Note that these log files are typically quite large, and writing them\n# may significantly slow the simulation -- you should probably only use\n# this option for debugging purposes.\n#\nBoolean log_interp_coords\t\t\t\t\t\t\\\n \"should we log the grid min(delta)max and the interpolation\t\t\\\n coordinates for each call on the interpolator?\"\t\t\t\\\n\tSTEERABLE=ALWAYS\n{\n} false\n", "schedule": "# Schedule definitions for thorn AEILocalInterp\n# $Header$\n\nSchedule AEILocalInterp_U_Startup at STARTUP after Driver_Startup\n{\nLANG:C\n} \"register CCTK_InterpLocalUniform() interpolation operators\"\n", "src": { "interpolate.maple": "# interpolate.maple -- compute interpolation formulas/coefficients\n# $Header$\n\n#\n# <<>>\n# Lagrange_polynomial_interpolant - compute Lagrange polynomial interpolant\n# Hermite_polynomial_interpolant - compute Hermite polynomial interpolant\n# coeffs_as_lc_of_data - coefficients of ... (linear combination of data)\n#\n# print_coeffs__lc_of_data - print C code to compute coefficients\n# print_load_data - print C code to load input array chunk into struct data\n# print_store_coeffs - print C code to store struct coeffs \"somewhere\"\n# print_interp_cmpt__lc_of_data - print C code for computation of interpolant\n#\n# coeff_name - name of coefficient of data at a given [m] coordinate\n# data_var_name - name of variable storing data value at a given [m] coordinate\n#\n\n################################################################################\n\n#\n# ***** representation of numbers, data values, etc *****\n#\n# We use RATIONAL(p.0,q.0) to denote the rational number p/q.\n#\n# We use DATA(...) to represent the data values being interpolated at a\n# specified [m] coordinate, where the arguments are the [m] coordinates.\n#\n# We use COEFF(...) to represent the molecule coefficient at a specified\n# [m] coordinate, where the arguments are the [m] coordinates.\n#\n# For example, the usual 1-D centered 2nd order 1st derivative molecule\n# would be written\n#\tRATIONAL(-1.0,2.0)*DATA(-1) + RATIONA(1.0,2.0)*DATA(1)\n# and its coefficients as\n#\tCOEFF(-1) = RATIONAL(-1.0,2.0)\n#\tCOEFF(1) = RATIONAL(1.0,2.0)\n#\n\n################################################################################\n################################################################################\n################################################################################\n\n#\n# This function computes a Lagrange polynomial interpolant in any\n# number of dimensions.\n#\n# Arguments:\n# fn = The interpolation function. This should be a procedure in the\n# coordinates, having the coefficients as global variables. For\n# example,\n#\t proc(x,y) c00 + c10*x + c01*y end proc\n# coeff_list = A list of the interpolation coefficients (coefficients in\n#\t the interpolation function), for example [c00, c10, c01].\n# coord_list = A list of the coordinates (independent variables in the\n#\t interpolation function), for example [x,y].\n# posn_list = A list of positions (each a list of numeric values) where the\n#\t interpolant is to use data, for example hypercube([0,0], [1,1]).\n#\t Any positions may be used; if they're redundant (as in the\n#\t example) the least-squares interpolant is computed.\n#\n# Results:\n# This function returns the interpolating polynomial, in the form of\n# an algebraic expression in the coordinates and the data values.\n#\nLagrange_polynomial_interpolant :=\nproc(\n fn::procedure, coeff_list::list(name),\n coord_list::list(name), posn_list::list(list(numeric))\n )\nlocal posn, data_eqns, coeff_eqns;\n\n# coefficients of interpolating polynomial\ndata_eqns := { seq( fn(op(posn))='DATA'(op(posn)) , posn=posn_list ) };\ncoeff_eqns := linalg[leastsqrs](data_eqns, {op(coeff_list)});\nif (has(coeff_eqns, '_t'))\n then error \"interpolation coefficients aren't uniquely determined!\";\nend if;\n\n# interpolant as a polynomial in the coordinates\nreturn subs(coeff_eqns, eval(fn))(op(coord_list));\nend proc;\n\n################################################################################\n\n#\n# This function computes a Hermite polynomial interpolant in any\n# number of dimensions. This is a polynomial which\n# * has values which match the given data DATA() at a specified set of\n# points, and\n# * has derivatives which match the specified finite-difference derivatives\n# of the given data DATA() at a specified set of points\n#\n# For the derivative matching, we actually match all possible products\n# of 1st derivatives, i.e. in 2-D we match dx, dy, and dxy, in 3-D we\n# match dx, dy, dz, dxy, dxz, dyz, and dxyz, etc etc.\n#\n# Arguments:\n# fn = The interpolation function. This should be a procedure in the\n# coordinates, having the coefficients as global variables. For\n# example,\n#\t\tproc(x,y)\n#\t\t+ c03*y^3 + c13*x*y^3 + c23*x^2*y^3 + c33*x^3*y^3\n#\t\t+ c02*y^2 + c12*x*y^2 + c22*x^2*y^2 + c32*x^3*y^2\n#\t\t+ c01*y + c11*x*y + c21*x^2*y + c31*x^3*y\n#\t\t+ c00 + c10*x + c20*x^2 + c30*x^3\n#\t\tend proc;\n# coeff_set = A set of the interpolation coefficients (coefficients in\n#\t the interpolation function), for example\n#\t\t\t{\n#\t\t\tc03, c13, c23, c33,\n#\t\t\tc02, c12, c22, c32,\n#\t\t\tc01, c11, c21, c31,\n#\t\t\tc00, c10, c20, c30\n#\t\t\t}\n# coord_list = A list of the coordinates (independent variables in the\n#\t interpolation function), for example [x,y].\n# deriv_set = A set of equations of the form\n#\t\t{coords} = proc\n#\t giving the derivatives which are to be matched, and the\n#\t procedures to compute their finite-difference approximations.\n#\t Each procedure should take N_dims integer arguments specifying\n#\t an evaluation point, and return a suitable linear combination\n#\t of the DATA() for the derivative at that point. For example\n#\t\t\t{\n#\t\t\t {x} = proc(i::integer, j::integer)\n#\t\t\t\t - 1/2*DATA(i-1,j) + 1/2*DATA(i+1,j)\n#\t\t\t\t end proc\n#\t\t\t,\n#\t\t\t {y} = proc(i::integer, j::integer)\n#\t\t\t\t - 1/2*DATA(i,j-1) + 1/2*DATA(i,j+1)\n#\t\t\t\t end proc\n#\t\t\t,\n#\t\t\t {x,y} = proc(i::integer, j::integer)\n#\t\t\t\t - 1/4*DATA(i-1,j+1) + 1/4*DATA(i+1,j+1)\n#\t\t\t\t + 1/4*DATA(i-1,j-1) - 1/4*DATA(i+1,j-1)\n#\t\t\t\t end proc\n#\t\t\t}\n# fn_posn_set = A set of positions (each a list of numeric values)\n#\t\twhere the interpolant is to match the given data DATA(),\n#\t\tfor example\n#\t\t\t{[0,0], [0,1], [1,0], [1,1]}\n# deriv_posn_set = A list of positions (each a list of numeric values)\n#\t\t where the interpolant is to match the derivatives\n#\t\t specified by deriv_set , for example\n#\t\t\t{[0,0], [0,1], [1,0], [1,1]}\n#\n# Results:\n# This function returns the interpolating polynomial, in the form of\n# an algebraic expression in the coordinates and the data values.\n#\nHermite_polynomial_interpolant :=\nproc(\n fn::procedure,\n coeff_set::set(name),\n coord_list::list(name),\n deriv_set::set(set(name) = procedure),\n fn_posn_set::set(list(numeric)),\n deriv_posn_set::set(list(numeric))\n )\nlocal fn_eqnset, deriv_eqnset, coeff_eqns, subs_eqnset;\n\n\n#\n# compute a set of equations\n#\t{fn(posn) = DATA(posn)}\n# giving the function values to be matched\n#\nfn_eqnset := map(\n\t\t # return equation that fn(posn) = DATA(posn)\n\t\t proc(posn::list(integer))\n\t\t fn(op(posn)) = 'DATA'(op(posn));\n\t\t end proc\n\t\t ,\n\t\t fn_posn_set\n\t\t);\n\n\n#\n# compute a set of equations\n#\t{ diff(fn,coords)(posn) = DERIV(coords)(posn) }\n# giving the derivative values to be matched, where DERIV(coords)\n# is a placeholder for the appropriate derivative\n#\nmap(\n # return set of equations for this particular derivative\n proc(deriv_coords::set(name))\n local deriv_fn;\n fn(op(coord_list));\n diff(%, op(deriv_coords));\n deriv_fn := unapply(%, op(coord_list));\n map(\n\t proc(posn::list(integer))\n\t deriv_fn(op(posn)) = 'DERIV'(op(deriv_coords))(op(posn));\n\t end proc\n\t ,\n\t deriv_posn_set\n\t );\n end proc\n ,\n map(lhs, deriv_set)\n );\nderiv_eqnset := `union`(op(%));\n\n\n#\n# solve overall set of equations for coefficients\n# in terms of DATA() and DERIV() values\n#\ncoeff_eqns := solve[linear](fn_eqnset union deriv_eqnset, coeff_set);\nif (indets(map(rhs,%)) <> {})\n then error \"no unique solution for coefficients -- %1 eqns for %2 coeffs\",\n\t nops(fn_eqnset union deriv_eqnset),\n\t nops(coeff_set);\nfi;\n\n\n#\n# compute a set of substitution equations\n#\t{'DERIV'(coords) = procedure}\n#\nsubs_eqnset := map(\n\t\t proc(eqn::set(name) = procedure)\n\t\t 'DERIV'(op(lhs(eqn))) = rhs(eqn);\n\t\t end proc\n\t\t ,\n\t\t deriv_set\n\t\t );\n\n\n#\n# compute the coefficients in terms of the DATA() values\n#\nsubs(subs_eqnset, coeff_eqns);\neval(%);\n\n#\n# compute the interpolant as a polynomial in the coordinates\n#\nsubs(%, fn(op(coord_list)));\nend proc;\n\n################################################################################\n\n#\n# This function takes as input an interpolating polynomial, expresses\n# it as a linear combination of the data values, and returns the coefficeints\n# of that form.\n# \n# Arguments:\n# interpolant = The interpolating polynomial (an algebraic expression\n#\t\tin the coordinates and the data values).\n# posn_list = The same list of data positions used in the interpolant.\n#\n# Results:\n# This function returns the coefficients, as a list of equations of the\n# form COEFF(...) = value , where each value is a polynomial in the\n# coordinates. The order of the list matches that of posn_list.\n#\ncoeffs_as_lc_of_data :=\nproc(\n interpolant::algebraic,\n posn_list::list(list(numeric))\n )\nlocal data_list, interpolant_as_lc_of_data;\n\n# interpolant as a linear combination of the data values\ndata_list := [ seq( 'DATA'(op(posn)) , posn=posn_list ) ];\ninterpolant_as_lc_of_data := collect(interpolant, data_list);\n\n# coefficients of the data values in the linear combination\nreturn map(\n\t proc(posn::list(numeric))\n\t coeff(interpolant_as_lc_of_data, DATA(op(posn)));\n\t 'COEFF'(op(posn)) = %;\n\t end proc\n\t ,\n\t posn_list\n\t );\nend proc;\n\n################################################################################\n################################################################################\n################################################################################\n\n#\n# This function prints C expressions for the coefficients of an\n# interpolating polynomial. (The polynomial is expressed as linear\n# combinations of the data values with coefficients which are\n# RATIONAL(p,q) calls.)\n#\n# Arguments:\n# coeff_list = A list of the coefficients, as returned from\n#\t coeffs_as_lc_of_data() .\n# coeff_name_prefix = A prefix string for the coefficient names.\n# temp_name_type = The C type to be used for Maple-introduced temporary\n#\t\t names, eg. \"double\".\n# file_name = The file name to write the coefficients to. This is\n#\t truncated before writing.\n#\nprint_coeffs__lc_of_data :=\nproc( coeff_list::list(specfunc(numeric,COEFF) = algebraic),\n coeff_name_prefix::string,\n temp_name_type::string,\n file_name::string )\nglobal `codegen/C/function/informed`;\nlocal coeff_list2, cmpt_list, temp_name_list;\n\n# convert LHS of each equation from a COEFF() call (eg COEFF(-1,+1))\n# to a Maple/C variable name (eg coeff_I_m1_p1)\ncoeff_list2 := map(\n\t\t proc(coeff_eqn::specfunc(numeric,COEFF) = algebraic)\n\t\t local posn;\n\t\t posn := [op(lhs(coeff_eqn))];\n\t\t coeff_name(posn,coeff_name_prefix);\n\t\t convert(%, name);\t# codegen[C] wants LHS\n\t\t\t\t\t# to be an actual Maple *name*\n\t\t % = fix_rationals(rhs(coeff_eqn));\n\t\t end proc\n\t\t ,\n\t\t coeff_list\n\t\t );\n\n#\n# generate the C code\n#\n\n# tell codegen[C] not to warn about unknown RATIONAL() and DATA() \"fn calls\"\n# via undocumented :( global table\n`codegen/C/function/informed`['RATIONAL'] := true;\n`codegen/C/function/informed`['DATA'] := true;\n\nftruncate(file_name);\n\n# optimized computation sequence for all the coefficients\n# (may use local variables t0,t1,t2,...)\ncmpt_list := [codegen[optimize](coeff_list2, tryhard)];\n\n# list of the t0,t1,t2,... local variables\ntemp_name_list := nonmatching_names(map(lhs,cmpt_list), coeff_name_prefix);\n\n# declare the t0,t1,t2,... local variables (if there are any)\nif (nops(temp_name_list) > 0)\n then print_name_list_dcl(%, temp_name_type, file_name);\nfi;\n\n# now print the optimized computation sequence\ncodegen[C](cmpt_list, filename=file_name);\n\nfclose(file_name);\n\nNULL;\nend proc;\n\n################################################################################\n\n#\n# This function prints a sequence of C expression to assign the data-value\n# variables, eg\n#\tdata->data_m1_p1 = DATA(-1,1);\n#\n# Arguments:\n# posn_list = The same list of positions as was used to compute the\n#\t interpolating polynomial.\n# data_var_name_prefix = A prefix string for the data variable names.\n# file_name = The file name to write the coefficients to. This is\n#\t truncated before writing.\n#\nprint_load_data :=\nproc(\n posn_list::list(list(numeric)),\n data_var_name_prefix::string,\n file_name::string\n )\n\nftruncate(file_name);\nmap(\n proc(posn::list(numeric))\n fprintf(file_name,\n\t \"%s = %a;\\n\",\n\t data_var_name(posn,data_var_name_prefix),\n\t DATA(op(posn)));\n end proc\n ,\n posn_list\n );\nfclose(file_name);\n\nNULL;\nend proc;\n\n################################################################################\n\n#\n# This function prints a sequence of C expression to store the interpolation\n# coefficients in COEFF(...) expressions, eg\n#\tCOEFF(1,-1) = factor * coeffs->coeff_p1_m1;\n#\n# Arguments:\n# posn_list = The list of positions in the molecule.\n# coeff_name_prefix = A prefix string for the coefficient names,\n#\t\t eg \"factor * coeffs->coeff_\"\n# file_name = The file name to write the coefficients to. This is\n#\t truncated before writing.\n#\nprint_store_coeffs :=\nproc(\n posn_list::list(list(numeric)),\n coeff_name_prefix::string,\n file_name::string\n )\n\nftruncate(file_name);\nmap(\n proc(posn::list(numeric))\n fprintf(file_name,\n\t \"%a = %s;\\n\",\n\t 'COEFF'(op(posn)),\n\t coeff_name(posn,coeff_name_prefix));\n end proc\n ,\n posn_list\n );\nfclose(file_name);\n\nNULL;\nend proc;\n\n################################################################################\n\n#\n# This function prints a C expression to evaluate a molecule, i.e.\n# to compute the molecule as a linear combination of the data values.\n#\n# Arguments:\n# posn_list = The list of positions in the molecule.\n# coeff_name_prefix = A prefix string for the coefficient names.\n# data_var_name_prefix = A prefix string for the data variable names.\n# file_name = The file name to write the coefficients to. This is\n#\t truncated before writing.\n#\nprint_evaluate_molecule :=\nproc(\n posn_list::list(list(numeric)),\n coeff_name_prefix::string,\n data_var_name_prefix::string,\n file_name::string\n )\n\nftruncate(file_name);\n\n# list of \"coeff*data_var\" terms\nmap(\n proc(posn::list(numeric))\n sprintf(\"%s*%s\",\n\t coeff_name(posn,coeff_name_prefix),\n\t data_var_name(posn,data_var_name_prefix));\n end proc\n ,\n posn_list\n );\n\nListTools[Join](%, \"\\n + \");\ncat(op(%));\nfprintf(file_name, \" %s;\\n\", %);\n\nfclose(file_name);\n\nNULL;\nend proc;\n\n################################################################################\n################################################################################\n################################################################################\n\n#\n# This function computes the name of the coefficient of the data at a\n# given [m] position, i.e. it encapsulates our naming convention for this.\n#\n# Arguments:\n# posn = (in) The [m] coordinates.\n# name_prefix = A prefix string for the coefficient name.\n#\n# Results:\n# The function returns the coefficient, as a Maple string.\n#\ncoeff_name :=\nproc(posn::list(numeric), name_prefix::string)\ncat(name_prefix, sprint_numeric_list(posn));\nend proc;\n\n################################################################################\n\n#\n# This function computes the name of the variable in which the C code\n# will store the input data at a given [m] position, i.e. it encapsulates\n# our naming convention for this.\n#\n# Arguments:\n# posn = (in) The [m] coordinates.\n# name_prefix = A prefix string for the variable name.\n#\n# Results:\n# The function returns the variable name, as a Maple string.\n#\ndata_var_name :=\nproc(posn::list(numeric), name_prefix::string)\ncat(name_prefix, sprint_numeric_list(posn));\nend proc;\n", diff --git a/PITTNullCode_NullConstr.json b/PITTNullCode_NullConstr.json index a508a6e6509c4d50a9046cb54b6a55a2d984b939..bc4430f95a3667e19b9c532abf97658351ddeb24 100644 --- a/PITTNullCode_NullConstr.json +++ b/PITTNullCode_NullConstr.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/pittnullcode.git", "configuration": "\n\nREQUIRES THORNS: Fortran NullInterp NullGrid NullEvolve\n", "interface": "# Interface definition for thorn NullConstr\n# $Header$\n\nimplements: NullConstr\ninherits: NullGrid NullVars NullInterp\n\nCCTK_INT FUNCTION\t\t\t\t\t\t\t\\\n GZPatchSystem_patch_number_from_global_XYZ\t\t\t\t\\\n\t\t(CCTK_INT IN psn,\t\t\t\t\t\\\n\t\t CCTK_REAL IN x,\t\t\t\t\t\\\n\t\t CCTK_REAL IN y,\t\t\t\t\t\\\n\t\t CCTK_REAL IN z)\nUSES FUNCTION GZPatchSystem_patch_number_from_global_XYZ\n\nvoid function GZPatchSystem_sync_groups\t\t\t\t\t\\\n\t(CCTK_POINTER IN GH,\t\t\t\t\t\t\\\n\t CCTK_INT IN N_groups_to_sync,\t\t\t\t\t\\\n\t CCTK_POINTER_TO_CONST ARRAY IN group_names, \t\t\t\\\n\t CCTK_INT IN psn,\t\t\t\t\t\t\\\n\t CCTK_INT IN min_jwr, CCTK_INT IN max_jwr)\nUSES FUNCTION GZPatchSystem_sync_groups\n\n#private:\npublic:\n\nCCTK_REAL Null_R00[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\\\n tags='tensortypealias=\"Scalar\"'\n\nCCTK_REAL Null_R01[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\\\n tags='tensortypealias=\"Scalar\"'\n\nCCTK_COMPLEX Null_R0A[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\\\n tags='tensortypealias=\"Scalar\"'\n\nCCTK_REAL Null_R0A_split[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\\\n tags='tensortypealias=\"Scalar\"'\n{\nNull_R0A_r, Null_R0A_i\n} \"Real and Imaginary part of Null_R0A\"\n\nCCTK_COMPLEX Null_AuxConstr[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\\\n tags='tensortypealias=\"Scalar\"'\n{\n Null_AuxConstr_nucn, \\\n Null_AuxConstr_cbcn, \\\n Null_AuxConstr_ckcn\n} \"Constraints associated with the auxiliary variables\"\n\nCCTK_REAL Null_R00_south[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\\\n tags='tensortypealias=\"Scalar\"'\n\nCCTK_REAL Null_R01_south[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\\\n tags='tensortypealias=\"Scalar\"'\n\nCCTK_COMPLEX Null_R0A_south[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\\\n tags='tensortypealias=\"Scalar\"'\n\nCCTK_COMPLEX Null_AuxConstr_south[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\\\n tags='tensortypealias=\"Scalar\"'\n{\n Null_AuxConstr_nucs, \\\n Null_AuxConstr_cbcs, \\\n Null_AuxConstr_ckcs\n} \"Constraints associated with the auxiliary variables (south)\"\n", - "params": "", + "param": "# Parameter definitions for thorn NullConstr\n# $Header$\n\nshares: NullEvolve\n\nuses BOOLEAN first_order_scheme\n\nshares: NullGrid\n\nuses int N_ang_pts_inside_eq\nuses int N_ang_ev_outside_eq\nuses int N_ang_stencil_size\nuses int N_ang_ghost_pts\nuses int N_radial_pts\n\nrestricted:\n\nBOOLEAN calculate_constraints \"Shall the constraints be calculated?\"\n{\n} \"yes\"\n\n\nprivate:\n", "schedule": "# Schedule definitions for thorn NullConstr\n# $Header$\n\n\nif (calculate_constraints)\n{\n\n # stereographic mode\n\n schedule NullConstr_Driver at analysis \n {\n LANG: Fortran\n TRIGGER: Null_R00, Null_R01, Null_R0A, Null_R00_south, Null_R01_south, Null_R0A_south, Null_R0A_split \n STORAGE: Null_R00, Null_R01, Null_R0A, Null_R00_south, Null_R01_south, Null_R0A_south, Null_R0A_split \n SYNC: Null_R00, Null_R01, Null_R0A, Null_R00_south, Null_R01_south, Null_R0A_south, Null_R0A_split \n } \"calculate constraint components R00, R01, R0A\"\n\n if (first_order_scheme) {\n schedule NullConstr_AuxConstr at analysis \n {\n LANG: Fortran\n TRIGGER: Null_AuxConstr, Null_AuxConstr_south\n STORAGE: Null_AuxConstr, Null_AuxConstr_south\n SYNC: Null_AuxConstr, Null_AuxConstr_south\n } \"calculate constraints associated with auxiliary variables\"\n }\n\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn NullConstr\n# $Header$\n\n# Source files in this directory\nSRCS = NullConstr_AuxConstr.F90 NullConstr_Driver.F90 NullConstr_R00.F90 NullConstr_R01.F90 \\\n\tNullConstr_R0A.F90 NullConstr_Util.F90\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/PITTNullCode_NullDecomp.json b/PITTNullCode_NullDecomp.json index e0554759b07c68f09ec5e7344af6b8eeab1fd27d..04db1388d635cfe194aafb43516e420b0f9539fe 100644 --- a/PITTNullCode_NullDecomp.json +++ b/PITTNullCode_NullDecomp.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/pittnullcode.git", "configuration": "", "interface": "# Interface definition for thorn NullDecomp\n# $Header$\n\nimplements: NullDecomp\ninherits: NullGrid\n\nprivate:\n\nCCTK_REAL kern[2] TYPE=ARRAY TIMELEVELS=1 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \"kernel of the integral\"\n\nCCTK_REAL area TYPE=ARRAY TIMELEVELS=1 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \"integral algorithms internal variable\"\n", - "params": "", + "param": "# Parameter definitions for thorn NullDecomp\n# $Header$\n\nshares: NullGrid\n\nuses int N_ang_pts_inside_eq\nuses int N_ang_ev_outside_eq\nuses int N_ang_stencil_size\nuses int N_ang_ghost_pts\n\nshares: IO\nuses CCTK_STRING out_dir\n\nrestricted:\n\nCCTK_INT l_max \"Decompose into spherical harmonics \\ell = spin up to \\ell = l_max\" STEERABLE=ALWAYS\n{\n 2: :: \"2 or greater \"\n} 9\n\nprivate:\n\n# the rsYlm's are spin-weight s functions that have real potentials\n# they are linear combinations of the sYlm and sYl-m\nBOOLEAN use_rsYlm \"use the rsYlm's rather than the standard sYlm's\"\n{\n} \"no\"\n\nBOOLEAN store_ylms \"should the Ylm's be stored rather than recomputed each time?\"\n{\n} \"yes\"\n", "schedule": "# Schedule definitions for thorn NullDecomp\n# $Header$\n\nstorage: kern, area\n\nschedule NullDecomp_Startup at BASEGRID AFTER NullGrid_Setup\n{\n LANGUAGE: Fortran\n OPTIONS: global\n} \"Initialization\"\n", "src": { "make.code.deps": "# Main make.code.deps file for thorn NullDecomp\n# $Header$\n\nNullDecomp_SpinDecomp.F90.o:\\\n\tNullDecomp_sYlm.F90.o\\\n\tNullDecomp_Vars.F90.o\n\nStartup.F90.o: NullDecomp_SpinDecomp.F90.o\\\n\tNullDecomp_Vars.F90.o\n\n#\n", diff --git a/PITTNullCode_NullEvolve.json b/PITTNullCode_NullEvolve.json index e4668ba40184b8a595a92cc760556da900d788f2..efd3dc5148e60bb9ab05612424595a79ed259a3e 100644 --- a/PITTNullCode_NullEvolve.json +++ b/PITTNullCode_NullEvolve.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/pittnullcode.git", "configuration": "\n\nREQUIRES THORNS: NullGrid NullInterp Fortran NullDecomp\n", "interface": "# Interface definition for thorn NullEvolve\n# $Header$\n\nimplements: NullEvolve\ninherits: NullInterp NullGrid NullVars Time \nfriend: NullSHRExtract\n\nCCTK_INT FUNCTION IO_TruncateOutputFiles \\\n (CCTK_POINTER_TO_CONST IN GH)\n\nUSES FUNCTION IO_TruncateOutputFiles\n\ncctk_complex distmp[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n distmp_F, distmp_d2F, distmp_d4F\n} \"temporaries used for dissipation\"\n\ncctk_real dissip_mask Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \"dissipation mask\"\n\ncctk_complex diagtmp[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \"temporaries used for diagnostics\"\n\nCCTK_INT aux_mask TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n auxiliary_maskn, auxiliary_masks\n} \"auxiliary evolution masks\"\n\nCCTK_INT eth4_mask TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n eth4_maskn, eth4_masks\n} \"dissipation masks, to protect the startup from taking eth4\"\n\nCCTK_COMPLEX Jrad TYPE=ARRAY dim=1 size=NullGrid::N_radial_pts DISTRIB=CONSTANT\n{\n jcn_rad, jcs_rad\n}\n\nCCTK_COMPLEX dxJrad TYPE=ARRAY dim=1 size=NullGrid::N_radial_pts DISTRIB=CONSTANT\n{\n dxjcn_rad, dxjcs_rad\n}\n", - "params": "", + "param": "# Parameter definitions for thorn NullEvolve\n# $Header$\n\nshares: Time\nuses KEYWORD timestep_method \n\nshares: NullInterp\nuses BOOLEAN poison_test\n\nshares: NullGrid\nuses real null_rwt \nuses real null_xin \nuses int N_ang_pts_inside_eq\nuses int N_ang_ev_outside_eq\nuses int N_ang_stencil_size\nuses int N_ang_ghost_pts\nuses int N_radial_pts\n\nshares: cactus\nuses cctk_int cctk_itlast\nuses cctk_real cctk_initial_time\n\nrestricted:\n\nBOOLEAN first_order_scheme \"Should the first order (angular) scheme be used?\"\n{\n} \"yes\"\n\nKEYWORD boundary_data \"Choose boundary data type\"\n{\n \"whitehole\"\t::\"White hole boundary data\"\n \"flat\"\t::\"flat boundary data\"\n \"randomJ\" \t::\"random number boundary data\"\n} \"flat\"\n\nKEYWORD initial_J_data \"What kind of initial data for J shall we pick?\"\n{\n \"vanishing_J\"\t\t:: \"vanishing J\"\n \"vanishing_J_scri\"\t:: \"vanishing J at scri\"\n \"rotating_pulse\"\t:: \"rotating pulse\"\n \"compact_J\"\t\t:: \"compact suport J\"\n \"smooth_J\" \t :: \"smoothly vanishing J\"\n \"extracted_J\"\t\t:: \"J as given by extraction\"\n \"polynomial_J\"\t:: \"J as third power polynomial to vanish J_xx at scri\"\n \"fitted_linearized_J\" :: \"linearized fitted J based on some previous run\"\n} \"vanishing_J_scri\"\n\nprivate:\n# Obsolete dissipation\n#BOOLEAN first_order_dissip \"Should the first order agnular variables be dissipated?\"\n#{\n#} \"no\"\n\nkeyword dissip_mask_type \"type of dissipation mask\"\n{\n \"one\"\t\t\t\t\t:: \"set dissipation mask to 'one' everywhere\"\n \"zero at eq, one at pole\"\t\t:: \"set 2B=1-(p^2+q^2)+|1-(p^2+q^2)|\"\n \"zero at rD0, one at pole\"\t\t:: \"set 2B=rD0-(p^2+q^2)+|rD0-(p^2+q^2)|\"\n \"zero at rD0, one at eq\"\t\t:: \"set 2B=min(1, (rD0-(p^2+q^2)+|rD0-(p^2+q^2)|) / (rD0-1) )\"\n \"zero at rD0, one at rD1\"\t\t:: \"set 2B=min(1, (rD0-(p^2+q^2)+|rD0-(p^2+q^2)|) / (rD0-rD1) )\"\n} \"one\"\n\ncctk_real N_dissip_zero_outside_eq \"determines dissipation radius rD0 = 1 + dd*N_dissip_zero_outside_eq\"\n{\n 0:*\t:: \"non-negative\"\n} 1\n\ncctk_real N_dissip_one_outside_eq \"determines dissipation radius rD1 = 1 + dd*N_dissip_one_outside_eq\"\n{\n *:*\t:: \"any value\"\n} 0\n\ncctk_real dissip_J \"dissipation factor for the J equation (time-integration)\"\n{\n 0.0:* :: \"positive\"\n} 0.0\n\ncctk_real dissip_Jx \"dissipation factor for the J equation (radial marching)\"\n{\n 0.0:* :: \"positive\"\n} 0.0\n\ncctk_real dissip_Q \"dissipation factor for the Q equation (the auxiliary of U)\"\n{\n 0.0:* :: \"positive\"\n} 0.0\n\ncctk_real dissip_W \"dissipation factor for the W equation\"\n{\n 0.0:* :: \"positive\"\n} 0.0\n\ncctk_real null_dissip \"dissipation factor for the radial evolution stencil\"\n{\n 0.0:1.0 :: \"postive less than 1\"\n} 0.05\n\ncctk_real ID_AMP \"Amplitude of compact J pulse\"\n{\n 0.:*:: \"An y positive number\"\n}.00001\n\ncctk_int ID_POWER \"related to order of polynomial in compact J pulse\"\n{\n 3:6:: \"best to choose between 3 and 6\"\n} 3\n\ncctk_int ID_l \"l mode\"\n{\n 2:* :: \"2 or larger\"\n} 2\n\ncctk_int ID_m \"m mode\"\n{\n -100:100:: \"-l to l\"\n} 0\n\ncctk_real xmin \"left boundary of CS pulse\"\n{\n .5:1:: \"choose .5 < xmin < xmax < 1 \"\n} .56\n\n\ncctk_real xmax \"right boundary of CS pulse\"\n{\n .5:1:: \"choose .5 < xmin < xmax < 1 \"\n} .8\n\ncctk_real qsmin \"inner q bdry of CS pulse\"\n{\n *:* :: \"be reasonable though\"\n} -1.0\n\ncctk_real qsmax \"outer q bdry of CS pulse\"\n{\n *:* :: \"be reasonable though\"\n} 1.0\n\ncctk_real psmin \"inner p bdry of CS pulse\"\n{\n *:* :: \"be reasonable though\"\n} -1.0\n\ncctk_real psmax \"outer p bdry of CS pulse\"\n{\n *:* :: \"be reasonable though\"\n} 1.0\n\ncctk_real wrot \"frequency of CS pule\"\n{\n *:* :: \"be reasonable though\"\n} 7.5\n\n\n\ncctk_real Jcoeff_r0r \"real part of constant for fitted linearized J initial data\"\n{\n *:* :: \"any value obtained from Nigel's fitting script\"\n} 0\n\ncctk_real Jcoeff_r0i \"imag part of constant for fitted linearized J initial data\"\n{\n *:* :: \"any value obtained from Nigel's fitting script\"\n} 0\n\ncctk_real Jcoeff_r1r \"real part of constant for fitted linearized J initial data\"\n{\n *:* :: \"any value obtained from Nigel's fitting script\"\n} 0\n\ncctk_real Jcoeff_r1i \"imag part of constant for fitted linearized J initial data\"\n{\n *:* :: \"any value obtained from Nigel's fitting script\"\n} 0\n\ncctk_real Jcoeff_r3r \"real part of constant for fitted linearized J initial data\"\n{\n *:* :: \"any value obtained from Nigel's fitting script\"\n} 0\n\ncctk_real Jcoeff_r3i \"imag part of constant for fitted linearized J initial data\"\n{\n *:* :: \"any value obtained from Nigel's fitting script\"\n} 0\n\ncctk_real Jcoeff_r0 \"real part of constant for fitted linearized J initial data\"\n{\n *:* :: \"any value obtained from Nigel's fitting script\"\n} 0\n\ncctk_real Jcoeff_r1 \"imag part of constant for fitted linearized J initial data\"\n{\n *:* :: \"any value obtained from Nigel's fitting script\"\n} 0\n\ncctk_real Jcoeff_r3 \"real part of constant for fitted linearized J initial data\"\n{\n *:* :: \"any value obtained from Nigel's fitting script\"\n} 0\n\n\n\n\ncctk_int dissip_fudge \"do we want to fudge around the inner boundary\"\n{\n 0:1 :: \"0 no fudging, 1 fudging\"\n} 0\n\ncctk_real dissip_fudge_maxx \"where in x to stop fudging\"\n{\n .5:.56 :: \" \"\n} .53\n\nBOOLEAN use_rsYlm \"do we use real spherical harmonics for compact pulse initial data\"\n{\n}\"yes\"\n\n####################################################################################\n## DEBUGGING\n####################################################################################\n\nrestricted:\n\nCCTK_REAL Diagnostics_Coord_x \"the coordinate x at which diagnostics are to be measured\" STEERABLE=ALWAYS\n{\n 0:1 :: \"will test only for x >= NullGrid::null_xin.\"\n} 0.0 \n\nBOOLEAN DEBUG_skip_evolution \"Should the evolution be turned off?\" \n{\n}\"no\"\n\nBOOLEAN DEBUG_skip_J_update \"Should the update of J be turned off?\" \n{\n}\"no\"\n\nBOOLEAN DEBUG_skip_NU_update \"Should the update of NU be turned off?\" \n{\n}\"no\"\n\nBOOLEAN DEBUG_skip_CK_update \"Should the update of CK be turned off?\" \n{\n}\"no\"\n\nBOOLEAN DEBUG_skip_B_update \"Should the update of B be turned off?\" \n{\n}\"no\"\n\nBOOLEAN DEBUG_skip_CB_update \"Should the update of CB be turned off?\" \n{\n}\"no\"\n\nBOOLEAN DEBUG_skip_Q_update \"Should the update of Q be turned off?\" \n{\n}\"no\"\n\nBOOLEAN DEBUG_skip_U_update \"Should the update of U be turned off?\" \n{\n}\"no\"\n\nBOOLEAN DEBUG_skip_W_update \"Should the update of W be turned off?\" \n{\n}\"no\"\n\nBOOLEAN debug_verbose \"should debugging messages be printed?\"\n{\n} \"no\"\n\nBOOLEAN old_J_xderiv \"should we compute the x derivative of J with the old values?\"\n{\n} \"no\"\n", "schedule": "# Schedule definitions for thorn NullEvolve\n# $Header$\n\nstorage: NullVars::realcharfuncs[2]\nstorage: NullVars::cmplxcharfuncs_basic[2] \nstorage: NullVars::null_mask\nstorage: NullGrid::EG_mask NullGrid::EQ_mask NullGrid::EV_mask \n#storage: NullSHRExtract::x_wt\nstorage: eth4_mask, dissip_mask\nstorage: diagtmp, aux_mask\nstorage: Jrad, dxJrad\n\nif (first_order_scheme) {\n storage: NullVars::cmplxcharfuncs_aux[2] \n}\n\n# this thorn defines the following global groups:\n#\n# NullEvol_Initial at INITIAL\n# NullEvol_Boundary at CCTK_EVOL\n#\n# the routine NullEvol_Step comes after NullEvol_Boundary\n# \n\n# declaration of initialization group\n\nschedule group NullEvol_Initial at PostInitial \\\n after HARMIDATA_INIT_TO_ADM \\\n after HARMIDATA_PINIT_TO_ADM \\\n after MoL_FillAllLevels \\\n after ADM_BSSN_Init\n{\n OPTIONS: global\n} \"Null Init Data\"\n\nif (DEBUG_skip_evolution==0) {\n\nschedule NullEvol_InitializeArrays at initial before NullEvol_Initial\n{\n LANG: Fortran\n} \"Initialize all arrays to large values\"\n\nschedule NullEvol_ResetTop at CCTK_EVOL before NullEvol_Boundary\n{\n LANG: Fortran\n OPTIONS: global\n} \"reset top values\"\n\n}\n\nschedule group NullEvol_Boundary at CCTK_EVOL \\\n after HARMEVOL_TO_ADM \\\n after MoL_Evolution \n# after SphericalHarmonicReconRead \n{\n OPTIONS: global\n} \"Boundary data\"\n\n\nif (DEBUG_skip_evolution==0) {\nschedule NullEvol_Step at CCTK_EVOL after NullEvol_Boundary\n{\n LANG: Fortran\n OPTIONS: global\n STORAGE: distmp\n} \"Evolution\"\n}\n\n\n# definition of initialization group\n# Initial data (J on the 1st hypersurface)\nschedule NullEvol_InitialData in NullEvol_Initial after NullEvol_BoundaryInit\n{\n LANG: Fortran\n OPTIONS: global\n} \"Give J on the initial null hypersurface\"\n\n# Initial boundary data:\nschedule group NullEvol_BoundaryInit in NullEvol_Initial \\\n before NullEvol_InitialData before NullEvol_InitialSlice\n{\n} \"Boundary data for the Characteristic data\"\n\nif (DEBUG_skip_evolution==0) {\n# Hypersurface equations on initial slice (i.e., \\beta, U, W, etc.) here is the problem\nschedule NullEvol_InitialSlice in NullEvol_Initial after NullEvol_BoundaryInit after NullEvol_InitialData\n{\n LANG: Fortran\n OPTIONS: global\n} \"Construct null metric on the initial null hypersurface\"\n}\n\nif(Diagnostics_Coord_x>=null_xin) {\n schedule NullEvol_Diag in NullEvol_Initial after NullEvol_InitialSlice\n {\n LANG: Fortran\n OPTIONS: global\n STORAGE: diagtmp\n } \"diagnostics of the characteristic code\"\n schedule NullEvol_Diag at CCTK_EVOL after NullEvol_Step\n {\n LANG: Fortran\n OPTIONS: global\n STORAGE: diagtmp\n } \"diagnostics of the characteristic code\"\n}\n\n# INITIALIZATION, SAME AS BOUNDARY ROUTINES:\n# Flat:\nif (CCTK_EQUALS(boundary_data,\"flat\")) {\n schedule NullEvol_Bdry_flat in NullEvol_BoundaryInit\n {\n LANG: Fortran\n OPTIONS: global\n } \"Give flat boundary conditions for the null metric\"\n} \n\n# White hole horizon:\n\nif (CCTK_EQUALS(boundary_data,\"whitehole\")) {\n schedule NullEvol_Bdry_whitehole in NullEvol_BoundaryInit\n {\n LANG: Fortran\n OPTIONS: global\n } \"Give white hole boundary conditions for the null metric\"\n} \n\nif (CCTK_EQUALS(boundary_data,\"randomJ\")) {\n schedule NullEvol_Bdry_randomJ in NullEvol_BoundaryInit\n {\n LANG: Fortran\n OPTIONS: global\n } \"Give random J boundary conditions for the null metric\"\n} \n\n# SPECIFIC BOUNDARY ROUTINES:\n\n# Flat:\n\nif (CCTK_EQUALS(boundary_data,\"flat\")) {\n schedule NullEvol_Bdry_flat in NullEvol_Boundary\n {\n LANG: Fortran\n OPTIONS: global\n } \"Give flat boundary conditions for the null metric\"\n} \n\n# White hole horizon:\n\nif (CCTK_EQUALS(boundary_data,\"whitehole\")) {\n schedule NullEvol_Bdry_whitehole in NullEvol_Boundary\n {\n LANG: Fortran\n OPTIONS: global\n } \"Give white hole boundary conditions for the null metric\"\n} \n\nif (CCTK_EQUALS(boundary_data,\"randomJ\")) {\n schedule NullEvol_Bdry_randomJ in NullEvol_Boundary\n {\n LANG: Fortran\n OPTIONS: global\n } \"Give random J boundary conditions for the null metric\"\n} \n", "src": { "make.code.defn": "# Main make.code.defn file for thorn NullEvolve\n# $Header$\n \n# Source files in this directory\nSRCS = NullEvol_Bdry.F90 NullEvol_cfl_test.F90 NullEvol_Evol.F90 \\\n NullEvol_hyper_beta.F90 NullEvol_hyper_u.F90 NullEvol_hyper_q.F90 NullEvol_hyper_w.F90 \\\n NullEvol_InitialData.F90 NullEvol_TimeStep.F90 NullEvol_Mask.F90 NullEvol_DissipMask.F90 \\\n NullEvol_Pulse.F90 NullEvol_Step.F90 NullEvol_sYlm.F90 NullEvol_InitialSlice.F90 \\\n\tNullEvol_Diag.F90 NullEvol_DiagMod.F90\n\n# Subdirectories containing source files\nSUBDIRS =\n", diff --git a/PITTNullCode_NullExact.json b/PITTNullCode_NullExact.json index 1a0ddd5c5ec6f31dcb59193ef903492739c8235a..e320363b86857e3ac4a7eeef983e8a4936409654 100644 --- a/PITTNullCode_NullExact.json +++ b/PITTNullCode_NullExact.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/pittnullcode.git", "configuration": "\n\nREQUIRES THORNS: Fortran NullEvolve NullGrid NullInterp\n", "interface": "# Interface definition for thorn NullExact\n# $Header$\n\nimplements: NullExact\ninherits: NullVars NullGrid NullNews NullConstr NullInterp NullEvolve\nfriend: NullSHRExtract\n\nCCTK_INT FUNCTION MoLRegisterEvolvedGroup(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\n\nREQUIRES FUNCTION MoLRegisterEvolvedGroup\n\nprivate:\n\nCCTK_REAL realcharfuncs_e[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n wcn_e, bcn_e\n} \"Error in Evolved Real-valued Characteristic Fields\"\n\nCCTK_REAL realConstr_e[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n R01n_e, R01s_e\n} \"Error in constraints\"\n\n\nCCTK_REAL cmplxcharfuncs_basic_e_split[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n jcnr, jcni, jcnr_e, jcni_e\n} \"Error in Evolved complex-valued Characteristic Fields (basic set, real and imag part)\" \n\nCCTK_COMPLEX cmplxcharfuncs_basic_e_mask[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n Mjcn_e, Mucn_e, Meth2jcn_e\n} \"Error in Evolved complex-valued Characteristic Fields (basic set)\" \n\nCCTK_COMPLEX cmplxcharfuncs_basic_e[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n jcn_e, ucn_e, qcn_e, eth2jcn_e\n} \"Error in Evolved complex-valued Characteristic Fields (basic set)\" \n\nCCTK_COMPLEX cmplxcharfuncs_aux_e[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n nucn_e, cbcn_e, ckcn_e\n} \"Error in Evolved complex-valued Characteristic Fields (auxiliary set)\" \n\n\nCCTK_REAL realcharfuncs_e_south[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n wcs_e, bcs_e\n} \"Error in Evolved Real-valued Characteristic Fields (south)\"\n\nCCTK_COMPLEX cmplxcharfuncs_basic_e_south[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n jcs_e, ucs_e, qcs_e, eth2jcs_e\n} \"Error in Evolved complex-valued Characteristic Fields (basic set, south)\" \n\nCCTK_COMPLEX cmplxcharfuncs_aux_e_south[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n nucs_e, cbcs_e, ckcs_e\n} \"Error in Evolved complex-valued Characteristic Fields (auxiliary set, south)\" \n\ncctk_real NewsBr[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"Real part of Bondi News\"\ncctk_real NewsBi[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"Imaginary part of Bondi News\"\n\ncctk_real hmu[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \n{\n muh, EQmuh\n} \"real part of omega - 1\"\n\ncctk_complex hJ_l[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \n{\n Jh_l, EQJh_l\n} \"derivative of J, over x, evolved values\"\n\ncctk_real mu_err[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \n{\n mu_e, EGmu_e\n} \"error in real part of omega - 1\"\n\ncctk_complex J_l_err[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \n{\n aJ_l_e, EGaJ_l_e, nJ_l_e, EGnJ_l_e\n} \"error in J_l\"\n\ncctk_real Newsr_e[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"error in real part of News\"\n\ncctk_real Newsi_e[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"error in imaginary part of News\"\n\ncctk_real NewsBr_e[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"error in real part of Bondi News\"\ncctk_real NewsBi_e[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"error in imaginary part of Bondi News\"\n\ncctk_complex NewsB_e[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"error in Bondi News\"\n\ncctk_real Psi4r_e[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"error in real part of Psi4\"\n\ncctk_real Psi4i_e[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"error in imaginary part of Psi4\"\n\ncctk_complex Psi4_e[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"error in Psi4\"\n\ncctk_real uBondi_e[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"error in Bondi time associated with the Bondi News\"\n\n\n#Analytic Variables\ncctk_complex ana_J_l[2] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"analytic J_l\" \n\ncctk_complex num_J_l[2] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"derivative of J, over x, numeric values\" \n\ncctk_real ana_mu[2] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"analytic Omega\" \n\ncctk_complex ana_News[2] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"analytic complex-valued News (basic set)\" \n\ncctk_complex ana_Psi4[2] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"analytic complex-valued Psi4 (basic set)\" \n\ncctk_complex ana_J[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n ana_jcn, ana_jcs\n} \"Error in Evolved complex-valued Characteristic Fields J\" \n\ncctk_complex ana_U[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n ana_ucn, ana_ucs\n} \"Error in Evolved complex-valued Characteristic Fields U\" \n\ncctk_complex ana_Q[NullGrid::N_radial_pts] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n ana_qcn, ana_qcs\n} \"Error in Evolved complex-valued Characteristic Fields Q\" \n\n\n#MoL variables\ncctk_real dotNews_MoL[2] Type=ARRAY timelevels=2 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"real dotNews for MoL - this is the real part of Psi4\"\ncctk_real News_MoL[2] Type=ARRAY timelevels=2 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"real News for MoL - this is the real part of integral Psi4\"\ncctk_real errNews_MoL[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"difference between News from MoL integration of Psi4 and evolved News\"\n\n\n\nCCTK_COMPLEX Ylm_group[2] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n {\n Ylm_2,Ylm_1,Ylm_0\n } \"Ylm_s by patch\"\n\nCCTK_INT WTexact_mask TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n WTexact_maskn, WTexact_masks\n} \"Worldtube mask\"\n", - "params": "", + "param": "# Parameter definitions for thorn NullExact\n# $Header$\n\nshares: NullEvolve\n\nuses BOOLEAN first_order_scheme\n\nextends keyword boundary_data \"Choose boundary data type\"\n{\n \"exact\"\t:: \"boundary data provided by thorn NullExact\"\n}\n\nextends keyword initial_J_data \"Choose initial data for J\"\n{\n \"exact\"\t:: \"initial data provided by thorn NullExact\"\n}\n\nshares: NullGrid\nuses int N_ang_pts_inside_eq\nuses int N_ang_ev_outside_eq\nuses int N_ang_stencil_size\nuses int N_ang_ghost_pts\nuses int N_radial_pts\nuses real null_xin\n\nshares: NullNews\nuses boolean linearized_news\n\nshares: MethodOfLines\nuses cctk_int MoL_Num_ArrayEvolved_Vars\nuses cctk_int MoL_Max_Evolved_Array_Size\n\nrestricted:\n\ncctk_int NullExact_NumArrayEvolvedVars \"The maximum number of evolved grid arrays used by NullExact\" ACCUMULATOR-BASE=MethodOfLines::MoL_Num_ArrayEvolved_Vars\n{\n 2:2 :: \"Is is only the News\"\n} 2\n\ncctk_int NullExact_MaxEvolvedArraySize \"The maximum size of evolved grid arrays used by Null2DWave\" ACCUMULATOR-BASE=MethodOfLines::MoL_Max_Evolved_Array_Size\n{\n 1:* :: \"The size of the generator grid arrays\"\n} 1\n\nint l_in_Ylm \"l in Ylm\"\n{\n 0:*\t:: \"positive\"\n} 2\n\nint m_in_Ylm \"m in Ylm\"\n{\n *:*\t:: \"must be between -l and +l\"\n} 0\n\n\n\nprivate:\n\nint testbed_ID \"what testbed should we use?\"\n{\n 0\t:: \"minkowski, in the natural associated Bondi frame\"\n 1\t:: \"noise around minkoswski\"\n 2\t:: \"this is a linear l=2,3 testbed\"\n} 0\n\nreal amplitude \"testbed amplitude\"\n{\n *:*\t\t:: \"no restrictions\"\n} 0\n\nboolean verbose \"should this thorn be verbose?\"\n{\n} \"no\"\n\nreal omm \"frequency\"\n{\n *:*\t\t:: \"no restrictions\"\n} 0\n\nreal beta0r \"Real part of constant beta0 in linearized solution\"\n{\n *:*\t\t:: \"no restrictions\"\n} 0\n\nreal beta0i \"Imaginary part of constant beta0 in linearized solution\"\n{\n *:*\t\t:: \"no restrictions\"\n} 0\n\nreal Constant_C1r \"Real part of constant C1 in linearized solution\"\n{\n *:*\t\t:: \"no restrictions\"\n} 0\n\nreal Constant_C1i \"Imaginary part of constant C1 in linearized solution\"\n{\n *:*\t\t:: \"no restrictions\"\n} 0\n\nreal Constant_C2r \"Real part of constant C2 in linearized solution\"\n{\n *:*\t\t:: \"no restrictions\"\n} 0\n\nreal Constant_C2i \"Imaginary part of constant C2 in linearized solution\"\n{\n *:*\t\t:: \"no restrictions\"\n} 0\n\nkeyword error_mask_type \"type of mask for error in J\"\n{\n \"none\"\t\t:: \"no mask\"\n \"EG_mask\"\t\t:: \"mask all the active points\"\n \"EQ_mask\"\t\t:: \"mask only the equator points\"\n \"EV_mask\"\t\t:: \"mask only the evolution points\"\n \"guard_mask\"\t\t:: \"mask only the guard points\"\n} \"none\"\n\nboolean analytic_fields \"should the analytic values of the fields be computed?\"\n{\n} \"no\"\n\nreal A_r0 \"Constant part of Bondi Radius\"\n{\n -1:1\t\t:: \"amplitude of the perturbation\"\n} 0\n\nreal F_r0 \"Constant part of Bondi Radius\"\n{\n 0:*\t\t:: \"frequency of the perturbation\"\n} 1\n", "schedule": "# Schedule definitions for thorn NullExact\n# $Header$\n\nif (CCTK_EQUALS(boundary_data, \"exact\") && CCTK_EQUALS(initial_J_data, \"exact\"))\n{\n STORAGE: Ylm_group, WTexact_mask\n STORAGE: NullSHRExtract::x_wt[2], NullSHRExtract::WT_r0\n STORAGE: NullSHRExtract::j_wt[2], NullSHRExtract::beta_wt[2], NullSHRExtract::w_wt[2] \n STORAGE: NullSHRExtract::q_wt[2], NullSHRExtract::u_wt[2], NullSHRExtract::u_x_wt\n STORAGE: NullSHRExtract::j_l, NullSHRExtract::beta_l, NullSHRExtract::u_l, NullSHRExtract::w_l\n\n\n schedule NullExact_PreCalcYlm at cctk_initial before NullEvol_BoundaryInit before NullEvol_Initial\n {\n LANG: Fortran\n } \"precalculate spherical harmonics\"\n\n {\n\n schedule NullExact_Error_Cmplx at analysis \n {\n LANG: Fortran\n TRIGGER: cmplxcharfuncs_basic_e_split,cmplxcharfuncs_basic_e_mask\n STORAGE: cmplxcharfuncs_basic_e_split,cmplxcharfuncs_basic_e_mask\n TRIGGER: cmplxcharfuncs_basic_e\n STORAGE: cmplxcharfuncs_basic_e\n TRIGGER: cmplxcharfuncs_basic_e_south\n STORAGE: cmplxcharfuncs_basic_e_south\n } \"error in characteristic evolution variables\"\n\n }\n\n schedule NullExact_Error_NewsB at analysis \n {\n LANG: Fortran\n TRIGGER: NewsB_e, uBondi_e, NewsBi_e, NewsBr_e, NewsBr, NewsBi, Newsr_e, Newsi_e, Psi4r_e, Psi4i_e, Psi4_e, mu_err, hmu, J_l_err, hJ_l\n STORAGE: NewsB_e, uBondi_e, NewsBi_e, NewsBr_e, NewsBr, NewsBi, Newsr_e, Newsi_e, Psi4r_e, Psi4i_e, Psi4_e, mu_err, hmu, J_l_err, hJ_l\n } \"error in characteristic evolution variables\"\n\n {\n\n schedule NullExact_Error_Real at analysis \n {\n LANG: Fortran\n TRIGGER: realcharfuncs_e\n STORAGE: realcharfuncs_e\n TRIGGER: realcharfuncs_e_south\n STORAGE: realcharfuncs_e_south\n# OPTIONS: global\n } \"error in characteristic evolution variables\"\n\n }\n\n {\n\n schedule NullExact_Error_Constr at analysis after NullConstr_Driver\n {\n LANG: Fortran\n TRIGGER: realConstr_e\n STORAGE: realConstr_e\n# OPTIONS: global\n } \"error in constraints\"\n\n }\n\n {\n\n if (first_order_scheme) {\n schedule NullExact_Error_CmplxAux at analysis \n {\n LANG: Fortran\n TRIGGER: cmplxcharfuncs_aux_e\n STORAGE: cmplxcharfuncs_aux_e\n TRIGGER: cmplxcharfuncs_aux_e_south\n STORAGE: cmplxcharfuncs_aux_e_south\n# OPTIONS: global\n } \"error in characteristic evolution variables\"\n }\n\n }\n\n {\n\n if (analytic_fields) {\n schedule NullExact_AnaFields at analysis \n {\n LANG: Fortran\n TRIGGER: ana_News, ana_mu, ana_Psi4, ana_J, ana_Q, ana_U, ana_J_l, num_J_l \n STORAGE: ana_News, ana_mu, ana_Psi4, ana_J, ana_Q, ana_U, ana_J_l, num_J_l\n# OPTIONS: global\n } \"error in characteristic evolution variables\"\n }\n }\n\n}\n\n\nif (CCTK_EQUALS(boundary_data, \"exact\")) {\n\n schedule NullExact_Boundary in NullEvol_BoundaryInit\n {\n LANG: Fortran\n# OPTIONS: global\n } \"exact boundary data for the characteristic evolution variables\"\n\n schedule NullExact_BoundaryPast in NullEvol_BoundaryInit\n {\n LANG: Fortran\n# OPTIONS: global\n } \"exact boundary data for the characteristic evolution variables, past level\"\n\n schedule NullExact_Boundary in NullEvol_Boundary\n {\n LANG: Fortran\n# OPTIONS: global\n } \"exact boundary data for the characteristic evolution variables\"\n\n}\n\nif (CCTK_EQUALS(initial_J_data, \"exact\")) {\n schedule NullExact_Initial in NullEvol_Initial after NullEvol_InitialData before NullEvol_InitialSlice\n {\n LANG: Fortran\n# OPTIONS: global\n } \"exact initial data for J\"\n}\n\n######## initialization: MoL\n STORAGE: News_MoL[2] dotNews_MoL[2] errNews_MoL\n\n\n schedule NullExact_InitMoL in NullEvol_Initial after NullEvol_InitialSlice\n {\n LANG: Fortran\n OPTIONS: global\n } \"Initial Data\"\n\n schedule NullExact_MoLRegister in MoL_Register\n {\n LANG: C\n } \"Register variables for MoL\"\n\n\n######## MoL evolution\n\n schedule NullExact_dotNewsMoL in MoL_CalcRHS\n {\n LANG: Fortran\n SYNC: dotNews_MoL \n } \"calculate the integral of Psi4\"\n", "src": { "NullExact_AnaFields.F90": "! vim: syntax=fortran\n#include \"cctk.h\"\n#include \"cctk_Parameters.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Functions.h\"\n\n\nsubroutine NullExact_AnaFields(CCTK_ARGUMENTS)\n\n use cctk\n use NullExact_Analytic\n use NullGrid_Vars\n implicit none\n\n DECLARE_CCTK_ARGUMENTS\n DECLARE_CCTK_PARAMETERS\n DECLARE_CCTK_FUNCTIONS\n\n ! local variables, as needed:\n CCTK_INT :: k, patch_ID\n CCTK_REAL :: fct1, fct2\n CCTK_COMPLEX, dimension(lsh(1), lsh(2), 2) :: anaNews, anaPsi4, anaJ_l, numJ_l\n CCTK_COMPLEX, dimension(lsh(1), lsh(2), N_radial_pts) :: anajcn, anajcs, anaucn, anaucs, anadrucn, anadrucs\n CCTK_REAL, dimension(lsh(1), lsh(2), 2) :: anamu, anabcn, anabcs\n\n\n if (verbose.ne.0) call CCTK_INFO(\"analytic values for main complex evolution variables\")\n\n patch_ID = ip_n-1\n\n do k = 1, N_radial_pts\n\n\n call NullExact_Analytic_J_2D(patch_ID+1,null_lsh(1),null_lsh(2),stereo_q,stereo_p,null_xb(k),cctk_time,anajcn(:,:,k), Ylm_2)\n\n call NullExact_Analytic_J_2D(ip_s,null_lsh(1),null_lsh(2),stereo_q,stereo_p,null_xb(k),cctk_time,anajcs(:,:,k), Ylm_2)\n\n call NullExact_Analytic_U_2D(patch_ID+1,null_lsh(1),null_lsh(2),stereo_q,stereo_p,null_xbh(k),cctk_time,anaucn(:,:,k), Ylm_1)\n\n call NullExact_Analytic_U_2D(ip_s,null_lsh(1),null_lsh(2),stereo_q,stereo_p,null_xbh(k),cctk_time,anaucs(:,:,k), Ylm_1)\n\n call NullExact_Analytic_drU_2D(patch_ID+1,null_lsh(1),null_lsh(2),stereo_q,stereo_p,null_xb(k),cctk_time,anadrucn(:,:,k), Ylm_1)\n\n call NullExact_Analytic_drU_2D(ip_s,null_lsh(1),null_lsh(2),stereo_q,stereo_p,null_xb(k),cctk_time,anadrucs(:,:,k), Ylm_1)\n\n call NullExact_Analytic_beta_2D(patch_ID+1,null_lsh(1),null_lsh(2),stereo_q,stereo_p,null_xb(k),cctk_time,anabcn(:,:,k), Ylm_0)\n\n call NullExact_Analytic_beta_2D(ip_s,null_lsh(1),null_lsh(2),stereo_q,stereo_p,null_xb(k),cctk_time,anabcs(:,:,k), Ylm_0)\n\n ana_qcn(:,:,k) = EQ_mask*(rwt*null_xb(k)/(1-null_xb(k)))**2&\n *exp(-2.d0*anabcn(:,:,k))*anadrucn(:,:,k)\n ana_qcs(:,:,k) = EQ_mask*(rwt*null_xb(k)/(1-null_xb(k)))**2&\n *exp(-2.d0*anabcs(:,:,k))*anadrucs(:,:,k)\n\n ana_jcn(:,:,k) = EQ_mask * (anajcn(:,:,k))\n ana_jcs(:,:,k) = EQ_mask * (anajcs(:,:,k))\n\n ana_ucn(:,:,k) = EQ_mask * (anaucn(:,:,k))\n ana_ucs(:,:,k) = EQ_mask * (anaucs(:,:,k))\n\n end do\n\n call NullExact_Analytic_BondiNews_2D(patch_ID+1,null_lsh(1),null_lsh(2),stereo_q,stereo_p,null_xb(N_radial_pts),cctk_time,anaNews(:,:,patch_ID+1),anaPsi4(:,:,patch_ID+1), Ylm_2)\n call NullExact_Analytic_BondiNews_2D(ip_s,null_lsh(1),null_lsh(2),stereo_q,stereo_p,null_xb(N_radial_pts),cctk_time,anaNews(:,:,ip_s),anaPsi4(:,:,ip_s), Ylm_2)\n\n!compute analytic mu = omega -1, only for l=2, m=0 dynamic minkowsky\n fct1 = 1.D0/375000.D0 \n anamu(:,:,patch_ID+1) = dble(fct1*sin(cctk_time)*Ylm_0(:,:,patch_ID+1))\n anamu(:,:,ip_s) = dble(fct1*sin(cctk_time)*Ylm_0(:,:,ip_s))\n\n!compute analytic J_l, only for l=2, m=0 dynamic minkowsky\n fct2 = 3.D0*dsqrt(6.D0)/2000000.D0 \n anaJ_l(:,:,patch_ID+1) = fct2*Ylm_2(:,:,patch_ID+1)*cos(cctk_time) \n anaJ_l(:,:,ip_s) = fct2*Ylm_2(:,:,ip_s)*cos(cctk_time)\n\n!compute numeric J_l, by one sided approx, using analytic J \n numJ_l(:,:,patch_ID+1) = - 0.5d0 * ( 3.0d0 * anajcn(:,:,N_radial_pts) &\n- 4.0d0 * anajcn(:,:,N_radial_pts-1) + anajcn(:,:,N_radial_pts-2) ) / (null_dx) * rwt\n\n numJ_l(:,:,ip_s) = - 0.5d0 * ( 3.0d0 * anajcs(:,:,N_radial_pts) &\n- 4.0d0 * anajcs(:,:,N_radial_pts-1) + anajcs(:,:,N_radial_pts-2) ) / (null_dx ) * rwt\n\n\n do patch_ID = 1, 2\n\n ana_Psi4(:,:,patch_ID) = EQ_mask * (anaPsi4(:,:,patch_ID))\n ana_News(:,:,patch_ID) = EQ_mask * (anaNews(:,:,patch_ID))\n ana_mu(:,:,patch_ID) = EQ_mask * dble(anamu(:,:,patch_ID))\n ana_J_l(:,:,patch_ID) = EQ_mask * (anaJ_l(:,:,patch_ID)) \n num_J_l(:,:,patch_ID) = EQ_mask * (numJ_l(:,:,patch_ID)) \n\n\n end do \n\nend subroutine NullExact_AnaFields\n", diff --git a/PITTNullCode_NullGrid.json b/PITTNullCode_NullGrid.json index 9fa95c1f68fcf4d2666b578ca56e345c4d90b375..df2a9286b7d375a88965893b71b2ee44b4fba135 100644 --- a/PITTNullCode_NullGrid.json +++ b/PITTNullCode_NullGrid.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/pittnullcode.git", "configuration": "# configuration.ccl file for thorn NullGrid\n\nREQUIRES THORNS: Fortran\n\nPROVIDES NullGrid\n{\n LANG\n}\n", "interface": "# Interface definition for thorn NuulGrid\n# $Header$\n\nimplements: NullGrid\n\npublic:\n\n##################################################################\n# RADIAL GRID -- COMPACTIFIED OR NOT, STAGGERED OR NOT\n##################################################################\n\nCCTK_REAL RadCrd DIM=1 TYPE=ARRAY SIZE=N_radial_pts DISTRIB=constant\n{\n null_xb, null_xbh, null_rb, null_rbh\n} \"radial gridfunctions\"\n\n##################################################################\n# REAL CONSTANTS DESCRIBING THE GRID\n##################################################################\n\nCCTK_REAL NullSclr TYPE=SCALAR\n{\n null_dx, qsize\n} \"scalars\"\n\n##################################################################\n# INTEGER CONSTANTS DESCRIBING THE GRID\n##################################################################\n\nCCTK_INT NullGrParArrI DIM=1 TYPE=ARRAY SIZE=2 DISTRIB=constant\n{\n null_lsh, null_gsh, null_lbnd, null_ubnd\n} \"arrays to store parameters\"\n\n##################################################################\n# ANGULAR GRID-STEP\n##################################################################\n\nCCTK_REAL NullGrParArrR DIM=1 TYPE=ARRAY SIZE=2 DISTRIB=constant\n{\n null_delta\n} \"arrays to store parameters\"\n\n##################################################################\n# ANGULAR GRID\n##################################################################\n\nCCTK_real StCrd TYPE=array dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n stereo_q, stereo_p, stereo_pp\n} \"real coordinate arrays\"\n\nCCTK_complex StCmCrd TYPE=array dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n zeta\n} \"complex stereo coords\"\n\n##################################################################\n# GRID MARKING THE ACTIVE VS INACTIVE POINTS\n##################################################################\n\nCCTK_INT EG_mask TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"Evolution + Ghost points mask\"\n\n##################################################################\n# GRID MARKING THE EVOLUTION POINTS\n##################################################################\n\nCCTK_INT EV_mask TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"Evolution points mask\"\n\n##################################################################\n# GRID MARKING THE GUARD POINTS\n##################################################################\n\nCCTK_INT guard_mask TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"Guard points mask\"\n\n##################################################################\n# GRID MARKING THE POINTS INSIDE EQUATOR\n##################################################################\n\nCCTK_INT EQ_mask TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"Inside Equator points mask\"\n\n", - "params": "", + "param": "# Parameter definitions for thorn NullGrid\n# $Header$\n\nrestricted:\n\nCCTK_INT verbose \"Should this thorn be verbose or not\"\n{\n 0:1 :: \"0 or 1\"\n} 0\n\n####################################\n### RADIAL GRID\n####################################\n\nCCTK_REAL null_xin \"Innermost compactified radial point\"\n{\n0.0:*:: \"positive real number\"\n}0.5\n\nCCTK_REAL null_rwt \"Compactification Parameter\"\n{\n0.0:*:: \"positive real number\"\n}1.0\n\nCCTK_INT N_radial_pts \"radial gridsize\"\n{\n 4:*:: \"pos\"\n}21\n\n####################################\n### ANGULAR GRID\n####################################\n\nint N_ang_pts_inside_eq \"nr of points inside equator, spanning the diameter of the unit circle\"\n{\n 2:*\t:: \"larger than one\"\n} 41\n\nint N_ang_ev_outside_eq \"nr of points between the equator and the evolution radius\"\n{\n 1:*\t:: \"larger than one\"\n} 5\n\nint N_ang_stencil_size \"evolution stencil size\"\n{\n 0:*\t:: \"non-negative\"\n} 2\n\nint N_ang_ghost_pts \"inter-proccessor ghost-points\"\n{\n 0:*:: \"2 or larger -- must be large enough to accomodate both the interpolation and the evolution stencils\"\n} 2\n\n", "schedule": "# Schedule definitions for thorn NullGrid\n# $Header$\n\nstorage: RadCrd NullSclr StCrd StCmCrd NullGrParArrI NullGrParArrR\nstorage: EG_mask, guard_mask, EQ_mask, EV_mask\n\nschedule NullGrid_RegisterCoords at STARTUP\n{\n LANG: Fortran\n OPTIONS: global\n} \"Register stereo coordinates\"\n\nschedule NullGrid_Coord at BASEGRID\n{\n LANG: Fortran\n OPTIONS: global\n} \"setup stereo coords\"\n\nschedule NullGrid_RegisterRange at BASEGRID after NullGrid_Coord\n{\n LANG: C\n OPTIONS: global\n} \"Register stereo coordinate range\"\n\nschedule NullGrid_Setup at BASEGRID after NullGrid_RegisterRange\n{\n LANG: Fortran\n OPTIONS: global\n} \"setup variables\"\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn NullGrid\n# $Header$ \n\n# Source files in this directory\nSRCS =\tNullGrid_InitCoord.F90 NullGrid_Setup.F90 NullGrid_Vars.F90 \\\n\tNullGrid_RegisterRanges.c \n\n# Subdirectories containing source files\nSUBDIRS =\t\n", diff --git a/PITTNullCode_NullInterp.json b/PITTNullCode_NullInterp.json index 756e97194b0cf3d311ee9a69b88bf7d60b7ecee3..b9956dda85aec563d4462ab76bfdbf4bca51d195 100644 --- a/PITTNullCode_NullInterp.json +++ b/PITTNullCode_NullInterp.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/pittnullcode.git", "configuration": "# Configuration definition for thorn NullInterp \n# $Header$\n\nREQUIRES THORNS: NullGrid\nREQUIRES Fortran\nPROVIDES NullInterp\n{\n LANG\n}\n\n", "interface": "# Interface definition for thorn NullInterp\n# $Header$\n\nimplements: NullInterp\ninherits: NullGrid\n\n##################################################################\n# TEMPORARIES - NULLINTERP\n##################################################################\n\nprivate:\n\nCCTK_REAL tmp_mask TYPE=array dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n tmp_maskn, tmp_masks\n} \" temporary arrays -- for parallel work\"\n\n\npublic:\n\nCCTK_REAL evolution_radius TYPE=scalar \"radius of evolution domain\"\n\nCCTK_COMPLEX tmp_cgf TYPE=array dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n tmp_cgfn, tmp_cgfs\n} \" temporary arrays -- for parallel work\"\n\nCCTK_REAL tmp_rgf TYPE=array dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n tmp_rgfn, tmp_rgfs\n} \" temporary arrays -- for parallel work\"\n\nCCTK_COMPLEX tmp_cgf3 TYPE=array dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n tmp_cgfn1, tmp_cgfs1,\n tmp_cgfn2, tmp_cgfs2,\n tmp_cgfn3, tmp_cgfs3\n} \" temporary arrays -- for parallel work\"\n", - "params": "", + "param": "# Parameter definitions for thorn NullInterp\n# $Header$\n\nshares: NullGrid\n\nuses int N_ang_pts_inside_eq\nuses int N_ang_ev_outside_eq\nuses int N_ang_stencil_size\nuses int N_ang_ghost_pts\n\nprivate:\n\nkeyword interpolation_name \"What interpolator should be used for interpatch intrepolation?\"\n{\n \"Lagrange\"\t:: \"Use the Lagrange, or generalized polynomial interpolation\"\n \"Hermite\"\t:: \"Use the Hermite polynomial interpolation\"\n} \"Lagrange\"\n\nCCTK_INT interpolation_order \"Order for interpolation\" # STEERABLE = ALWAYS\n{\n 1:6\t:: \"Choose between first, second, third, and fourth-order\"\n} 3\n\nboolean use_edge_check \"Should we check for appropriate syncing of the edges?\"\n{\n} \"no\"\n\nrestricted:\n\nCCTK_INT deriv_accuracy \"Order of derivative operators\"\n{\n 2\t:: \"2nd order accurate derivatives\"\n 4\t:: \"4th order accurate derivatives\" \n} 2\n\nkeyword stereo_patch_type \"Type of stereo patches\"\n{\n \"square\"\t:: \"Use square-shape patches\"\n \"circle\"\t:: \"Use circle-shape patches\"\n} \"square\"\n\nBOOLEAN poison_test \"should invalid interpolation input points be poisoned?\"\n{\n} \"no\"\n\nprivate:\n\nBOOLEAN skip_interpolation \"should the interpolation be skipped?\"\n{\n} \"no\"\n\nBOOLEAN extended_guard_zone \"should the set of guard points be extended to contain all inactive points?\"\n{\n} \"no\"\n\nCCTK_REAL poison_value \"use this value to mark illegal interpolation input points\"\n{\n *:*\t:: \"any value, should be something like a NaN\"\n} 1.0e+10\n\nCCTK_REAL mask_testinterp_tolerance \"tolerance level when detecting interpolation values from illegal input points\"\n{\n *:*\t:: \"any value, should be something like eps\"\n} 1.0e-10\n", "schedule": "# Schedule definitions for thorn NullInterp\n# $Header$\n\nstorage: tmp_cgf tmp_rgf tmp_cgf3 tmp_mask\nstorage: nullgrid::EG_mask nullgrid::guard_mask\nstorage: nullgrid::EV_mask nullgrid::EQ_mask\nstorage: evolution_radius\n\n#storage: my2de my2dcc my2dcr\n\nSCHEDULE NullInterp_MaskInit at CCTK_INITIAL \n{\n LANG: Fortran\n STORAGE: tmp_mask\n SYNC: NullGrid::EG_mask\n# SYNC: NullGrid::EQ_mask\n# SYNC: NullGrid::EV_mask\n SYNC: NullGrid::guard_mask\n} \"Initialize the mask used in interpolation\"\n\nSCHEDULE NullInterp_TempInit at CCTK_INITIAL \n{\n LANG: Fortran\n# OPTIONS: global loop-local\n} \"Initialize the temporaries used in interpolation\"\n\nschedule NullInterp_ParamCheck at CCTK_PARAMCHECK\n{\n LANG: Fortran\n OPTIONS: meta\n} \"check parameters\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn NullInterp\n# $Header$ \n\n# Source files in this directory\nSRCS =\tNullInterp.F90 NullInterp_Deriv.F90 NullInterp_Eth.F90 \\\n\tNullInterp_Interp.F90 NullInterp_InterpUtil.F90 \\\n\tNullInterp_ParamCheck.F90 NullInterp_TempInit.F90 \\\n NullInterp_MaskInit.F90\n\n# Subdirectories containing source files\nSUBDIRS =\t\n", diff --git a/PITTNullCode_NullNews.json b/PITTNullCode_NullNews.json index 315f44f1cb35912c13dc4017ed77fef52310a5fe..1252fcff4a361697fc308953dfbed12c0adc0c52 100644 --- a/PITTNullCode_NullNews.json +++ b/PITTNullCode_NullNews.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/pittnullcode.git", "configuration": "# Configuration definition for thorn NullNews\n# $Header$\n\nREQUIRES MPI\n\nREQUIRES THORNS: NullInterp NullGrid NullDecomp\n", "interface": "# Interface definition for thorn NullNews\n# $Header$\n\nimplements: NullNews\ninherits: NullGrid NullVars NullInterp\n\nCCTK_INT FUNCTION IO_TruncateOutputFiles \\\n (CCTK_POINTER_TO_CONST IN GH)\n\nUSES FUNCTION IO_TruncateOutputFiles\n\npublic:\n# private:\n\ncctk_complex NewsB[2] Type=ARRAY timelevels=1 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"Bondi News\"\n\ncctk_complex News[2] Type=ARRAY timelevels=1 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"News\"\n\ncctk_complex Psi4[2] Type=ARRAY timelevels=1 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"Psi4\"\n\ncctk_complex NewsB_uBondi[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"Bondi News at constant Bondi time\"\n\ncctk_complex News_uBondi[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"News at constant Bondi time\"\n\ncctk_complex Psi4_uBondi[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"Psi4 at constant Bondi time\"\n\n\ncctk_complex linStrain[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"linearized strain h\"\n\ncctk_complex linStrain_uBondi[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"linearized strain h at constant Bondi time\"\n\n\n\ncctk_real uBondi[2] timelevels=1 Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"Bondi time\"\n\n\ncctk_complex NewsB_past[2*max_timelevels] Type=ARRAY timelevels=1 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"past levels of Bondi News\"\n\ncctk_complex News_past[2*max_timelevels] Type=ARRAY timelevels=1 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"past levels of News\"\n\ncctk_complex Psi4_past[2*max_timelevels] Type=ARRAY timelevels=1 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"past levels of Psi4\"\n\ncctk_real uBondi_past[2*max_timelevels] timelevels=1 Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"past levels of Bondi time\"\n\ncctk_complex linStrain_past[2*max_timelevels] Type=ARRAY timelevels=1 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"past levels of lin. strain\"\n\n\n\ncctk_real constant_uBondi TYPE=SCALAR \"constant Bondi-time to which we interpolate\"\n\ncctk_real time_of_news TYPE=SCALAR \"time of news\"\n\ncctk_real omega[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n omegao, omegan\n} \"real omega arrays\"\n\ncctk_complex JJ_l[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n Jo_l, Jn_l\n} \"complex news arrays\" \n\nprivate:\n\n\ncctk_real RNewsArrs[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n dMdOmega, P, betao, betan, Wn,\n redshiftB, uBondio, uBondin, deltao, deltan, circle\n} \"real news arrays\"\n\ncctk_complex CNewsArrs[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n nzeta, nzetabar, comegao, comegan,\n Jo, Jn, cBo, cBn,\n Qo, Qn, Uo, Un, Uyo, Uyn,\n zEvolo, zEvoln, zEvolh,\n sigmaJo,sigmaJn,sigmaKo,sigmaKn,sigmauo,sigmaun,sigmaro,sigmarn,\n sigmaruo,sigmarun,sigmauuo,sigmauun,\n Qo_l, Qn_l, Uo_l, Un_l, Uo_l_l, Un_l_l\n} \"complex news arrays\" \n\ncctk_int patch_index[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"counter\"\n\ncctk_complex CmplxGA TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n\n n_tmp1_cgfn, n_tmp1_cgfs,\n n_tmp2_cgfn, n_tmp2_cgfs,\n n_tmp3_cgfn, n_tmp3_cgfs\n} \"Complex temp Grid Arrays\"\n\ncctk_real ReGA TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n n_tmp1_rgfn, n_tmp1_rgfs,\n n_tmp2_rgfn, n_tmp2_rgfs\n} \"real temp Grid Arrays\"\n\ncctk_int StateS TYPE=SCALAR\n{\n starting\n} \"store state\" \n\nCCTK_COMPLEX YlmScri_group[2] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n YlmScri_2, YlmScri_1, YlmScri_0\n} \"Ylm at Scri by patch\"\n\n\n\n", - "params": "", + "param": "# Parameter definitions for thorn NullNews\n# $Header$\n\nshares: NullGrid\n\nuses int N_ang_pts_inside_eq\nuses int N_ang_ev_outside_eq\nuses int N_ang_stencil_size\nuses int N_ang_ghost_pts\nuses int N_radial_pts\n\nuses CCTK_REAL null_rwt \n\nshares: cactus\nuses cctk_int cctk_itlast\n\nrestricted:\n\nBOOLEAN linearized_news \"shall we calculate only the linearized news\"\n{\n} \"no\"\n\nprivate:\n\nBOOLEAN first_order_scheme \"should angular derviatives be reduced to first order?\" STEERABLE=ALWAYS\n{\n} \"yes\"\n\nBOOLEAN filter_scri_fields \"filter null code fields before constructing News\" STEERABLE=ALWAYS\n{\n} \"no\"\n\nBOOLEAN filter_omega \"filter omega and comega\" STEERABLE=ALWAYS\n{\n} \"no\"\n\nBOOLEAN filter_news \"filter news (prior to intorpolation)\" STEERABLE=ALWAYS\n{\n} \"no\"\n\nBOOLEAN write_spherical_harmonics \"Write the spherical harmonics of the News to a file?\"\n{\n} \"no\"\n\nCCTK_INT NewsSpinWeight \"What weight for the News when writing the spherical harmonics?\"\n{\n 0:2 :: \"Small range\"\n} 2 \n\nBOOLEAN DEBUG_skip_BondiNews \"should the bondi news algorithm be skipped?\"\n{\n} \"no\"\n\nBOOLEAN debug_output \"Decompose also J and omega at Scri for debugging purposes\" STEERABLE=ALWAYS\n{\n} \"no\"\n\nBOOLEAN interp_to_constant_uBondi \"Interpolate quantities at Scri to constant Bondi time\" STEERABLE=ALWAYS\n{ \n} no\n\nINT max_timelevels \"maximum past timelevels to use for interpolation to uBondi (depends on how drastic uBondi differs from a constant value accross the sphere)\"\n{\n 1:* :: \"anything >= 1\"\n} 5\n\nBOOLEAN use_linearized_omega \"This switch is useful when the code is operating in the linear regime\"\n{ \n} no\n\nCCTK_REAL eps_omega \"dissipation for omega\"\n{\n *:* :: \"\"\n} 0.0\n\nCCTK_INT news_interp_order \"Order for news interpolation\" # STEERABLE = ALWAYS\n{\n 1:6 :: \"Choose between first, second, third, and fourth-order\"\n} 3\n\nCCTK_INT Jl_deriv_order \"What order shall we use for the l derivative of J at scri?\"\n{\n 1:4 :: \"Choose between first, second, third and fourth\"\n} 2\n\nBOOLEAN mask_Psi4 \"should Psi4 be masked over used points?\"\n{\n} \"no\"\n\nBOOLEAN mask_NewsB \"should NewsB be masked over used points?\"\n{\n} \"no\"\n\nBOOLEAN Ylm_at_Scri \"This switch is introduced to check convergence for the spherical decomposition\"\n{\n} \"no\"\n\nint l_YlmScri \"l in Ylm at Scri\"\n{\n 0:* :: \"positive\"\n} 2\n\nint m_YlmScri \"m in Ylm at Scri\"\n{\n *:* :: \"must be between -l and +l\"\n} 0\n\nBOOLEAN compute_lin_strain \"Compute linearized strain?\"\n{\n} no\n\nBOOLEAN linearized_inertial_frame \"Interpolation to inertial angular coordinates is linearized\"\n{\n} no\n\n\n", "schedule": "# Schedule definitions for thorn NullEvolve\n# $Header$\nstorage: NullVars::realcharfuncs[2]\nstorage: NullVars::cmplxcharfuncs_basic[2]\nstorage: NullVars::cmplxcharfuncs_aux[2]\n#storage: NullVars::mask\nstorage: RNewsArrs CNewsArrs patch_index time_of_news omega JJ_l\nstorage: StateS\n#storage: DumpArr LimDump ReGA CmplxGA\n\nif (interp_to_constant_uBondi == 1)\n{\n storage: NewsB_uBondi News_uBondi Psi4_uBondi\n storage: constant_uBondi\n storage: uBondi_past News_past NewsB_past Psi4_past\n \n if (compute_lin_strain)\n {\n storage: linStrain_uBondi\n storage: linStrain_past\n }\n}\n\nstorage: uBondi[1] NewsB[1] News[1] Psi4[1]\n\nif (compute_lin_strain)\n{\n storage: linStrain[1]\n}\n\n\n\nschedule NullNews_Init at PostInitial after NullEvol_Initial\n{\n LANG: Fortran\n OPTIONS: global\n} \"Init News\"\n\n\nschedule NullNews_ScriVals at CCTK_EVOL after NullEvol_Step \n{\n LANG: Fortran\n OPTIONS: global\n} \"News get scrivals\"\n\nschedule NullNews_GetNews at EVOL after NullNews_ScriVals\n{\n LANG: Fortran\n OPTIONS: global\n storage: CmplxGA ReGA \n} \"News calc\"\n\n\nif (interp_to_constant_uBondi == 1)\n{\n schedule NullNews_InterpInit AT INITIAL\n {\n LANG: C\n OPTIONS: GLOBAL\n } \"Initialise past timelevels.\"\n\n schedule NullNews_InterpCycleTimelevels AT PRESTEP\n {\n LANG: C\n OPTIONS: GLOBAL\n } \"Cycle timelevels used for interpolating to constant uBondi\"\n\n schedule NullNews_Interp_to_constant_uBondi AT EVOL AFTER NullNews_GetNews\n {\n LANG: C\n OPTIONS: global\n } \"Interpolate News, NewsB, Psi4 to constant Bondi-time\"\n}\n\nif (write_spherical_harmonics)\n{\n\n schedule NullNews_WriteSphHarm AT ANALYSIS\n {\n LANG: Fortran\n OPTIONS: global\n } \"If requested, output spherical harmonics of the news\"\n\n}\n\nif (Ylm_at_Scri == 1)\n{\n STORAGE: YlmScri_group\n\n schedule NullNews_YlmScri at INITIAL after NullNews_Init # before??\n {\n LANG: Fortran\n } \"fill the waveform at Scri with spherical harmonics\"\n\n}\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn NullNews\n# $Header$ \n\n# Source files in this directory\nSRCS =\tNullNews_Bondi.F90 NullNews_GetNews.F90 NullNews_Init.F90 \\\n\tNullNews_Omega.F90 NullNews_ScriUtil.F90 NullNews_ScriVals.F90 NullNews_CalcPsi4.F90 NullNews_SphHarmDecomp.F90 \\\n\tNullNews_YlmScri.F90 NullNews_interp_to_constant_uBondi.cc\n\n# Subdirectories containing source files\nSUBDIRS =\t\n", diff --git a/PITTNullCode_NullPsiInt.json b/PITTNullCode_NullPsiInt.json index 2e2dae2eb732d7d3edaafc85b7072cff1321ea4b..fce5c5d0773aaa0b30ab8b521e555f5dab826036 100644 --- a/PITTNullCode_NullPsiInt.json +++ b/PITTNullCode_NullPsiInt.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/pittnullcode.git", "configuration": "\nREQUIRES THORNS: Fortran NullNews NullGrid \n", "interface": "# Interface definition for thorn NullPsiInt\n# $Header:$\n\nimplements: NullPsiInt\ninherits: NullVars NullGrid NullNews NullInterp NullEvolve\n\nCCTK_INT FUNCTION MoLRegisterEvolvedGroup(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\n\n\nREQUIRES FUNCTION MoLRegisterEvolvedGroup\n\npublic:\n\n# News and Psi4 masked \ncctk_complex NewsB_mask[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"News inside equator\"\n\ncctk_complex Psi4_mask[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"Psi4 inside equator\"\n\n#MoL variables\ncctk_complex NewsB_Psi[2] Type=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"integrated Psi\"\n\nprivate:\n\ncctk_real re_dotNewsB[2] Type=ARRAY timelevels=2 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"real dotNews for MoL - this is the real part of Psi4 (RHS)\"\n\ncctk_real im_dotNewsB[2] Type=ARRAY timelevels=2 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"imag dotNews for MoL - this is the imaginary part of Psi4 (RHS)\"\n\ncctk_real re_PsiInt[2] Type=ARRAY timelevels=2 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"real integrated Psi for MoL - this is the real part of NewsB_Psi (RHS)\"\n\ncctk_real im_PsiInt[2] Type=ARRAY timelevels=2 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"imag integrated Psi for MoL - this is the imaginary part of NewsB_Psi4 (RHS)\"\n", - "params": "", + "param": "# Parameter definitions for thorn NullPsiInt\n# $Header:$\n\nshares: NullGrid\n\nuses int N_ang_pts_inside_eq\nuses int N_ang_ev_outside_eq\nuses int N_ang_stencil_size\nuses int N_ang_ghost_pts\nuses int N_radial_pts\n\n\nshares: MethodOfLines\nuses cctk_int MoL_Num_ArrayEvolved_Vars\nuses cctk_int MoL_Max_Evolved_Array_Size\n\nrestricted:\n\ncctk_int NullPsiInt_NumArrayEvolvedVars \"The maximum number of evolved grid arrays used by NullPsiInt\" ACCUMULATOR-BASE=MethodOfLines::MoL_Num_ArrayEvolved_Vars\n{\n 4:4 :: \"Is is the real and imaginary part of the RHS (Psi) and the News obtained by integrating Psi\"\n} 4\n\ncctk_int NullPsiInt_MaxEvolvedArraySize \"The maximum size of evolved grid arrays used by NullPsiInt\" ACCUMULATOR-BASE=MethodOfLines::MoL_Max_Evolved_Array_Size\n{\n 1:* :: \"The size of the generator grid arrays\"\n} 1\n\n\nprivate:\n\nkeyword mask_type \"type of mask for error in J\"\n{\n \"none\"\t\t:: \"no mask\"\n \"EG_mask\"\t\t:: \"mask all the active points\"\n \"EV_mask\"\t\t:: \"mask only the evolution points\"\n \"EQ_mask\"\t\t:: \"mask only the equator points\"\n} \"none\"\n", "schedule": "# Schedule definitions for thorn NullPsiInt\n# $Header:$\n\n######## initialization: MoL\n STORAGE: NewsB_mask, Psi4_mask, NewsB_Psi, re_dotNewsB[2], im_dotNewsB[2], re_PsiInt[2], im_PsiInt[2]\n\n\n schedule NullPsiInt_InitMoL in NullEvol_Initial after NullEvol_InitialSlice\n {\n LANG: Fortran\n OPTIONS: global\n } \"Initial Data\"\n\n schedule NullPsiInt_MoLRegister in MoL_Register\n {\n LANG: C\n } \"Register variables for MoL\"\n\n\n######## evolution: Mol\n\n schedule NullPsiInt_dotNewsPsi in MoL_CalcRHS\n {\n LANG: Fortran\n SYNC: NewsB_Psi\n } \"calculate the integral of Psi4\"\n\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn NullPsiInt\n# $Header:$\n\n# Source files in this directory\nSRCS = NullPsiInt_dotNewsPsi.F90 NullPsiInt_MoLRegister.c \\\n\tNullPsiInt_InitMoL.F90 \n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/PITTNullCode_NullSHRExtract.json b/PITTNullCode_NullSHRExtract.json index 102426052730f0b0a2e585668a74da26dba518fe..894c156979f32d98834423e5ff7e66268525da21 100644 --- a/PITTNullCode_NullSHRExtract.json +++ b/PITTNullCode_NullSHRExtract.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/pittnullcode.git", "configuration": "# Configuration definition for thorn NullSHRExtract\n# $Header:$\n\nPROVIDES NullSHRExtraction\n{\n}\n\nREQUIRES THORNS: Fortran NullEvolve NullInterp NullGrid NullDecomp\n", "interface": "# Interface definition for thorn NullSHRExtract \n# $Header:$\n\nimplements: NullSHRExtract\ninherits: NullInterp, NullGrid, NullVars\n\nCCTK_INT \\\nFUNCTION GetCurrentExtractionCoefs(\\\n CCTK_INT IN l,\\\n CCTK_INT IN m,\\\n CCTK_REAL OUT ARRAY RC,\\\n CCTK_REAL OUT ARRAY IC,\\\n CCTK_REAL OUT ARRAY RCr,\\\n CCTK_REAL OUT ARRAY ICr,\\\n CCTK_REAL OUT ARRAY RCt,\\\n CCTK_REAL OUT ARRAY ICt )\n\nUSES FUNCTION GetCurrentExtractionCoefs\n\nCCTK_INT \\\nFUNCTION GetExtractionParameters(\\\n CCTK_INT OUT l_max,\\\n CCTK_REAL OUT r_inner,\\\n CCTK_REAL OUT r_outer)\n\nUSES FUNCTION GetExtractionParameters\n\nCCTK_INT FUNCTION IO_TruncateOutputFiles \\\n (CCTK_POINTER_TO_CONST IN GH)\n\nUSES FUNCTION IO_TruncateOutputFiles\n\nprivate:\n\nCCTK_REAL NYlm[(l_max+1)*(l_max+1)] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \n{\n reYN, imYN\n} \"Ylm in (p,q) coordinates -- north patch\"\n\nCCTK_REAL SYlm[(l_max+1)*(l_max+1)] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \n{\n reYS, imYS\n} \"Ylm in (p,q) coordinates -- south patch\"\n\nCCTK_REAL N1Ylm[(l_max+1)*(l_max+1)] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \n{\n re1YN, im1YN\n} \"1Ylm in (p,q) coordinates -- north patch\"\n\nCCTK_REAL S1Ylm[(l_max+1)*(l_max+1)] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \n{\n re1YS, im1YS\n} \"1Ylm in (p,q) coordinates -- south patch\"\n\nCCTK_REAL NTYlm[(l_max+1)*(l_max+1)] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \n{\n reTYN, imTYN\n} \"Ylm in (p,q) coordinates for Schw metric north patch\"\n\nCCTK_REAL STYlm[(l_max+1)*(l_max+1)] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \n{\n reTYS, imTYS\n} \"Ylm in (p,q) coordinates for Schw metric south patch\"\n\nCCTK_REAL NT1Ylm[(l_max+1)*(l_max+1)] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \n{\n re1TYN, im1TYN\n} \"1Ylm in (p,q) coordinates for Schw metric north patch\"\n\nCCTK_REAL ST1Ylm[(l_max+1)*(l_max+1)] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \n{\n re1TYS, im1TYS\n} \"1Ylm in (p,q) coordinates for Schw metric south patch\"\n\nCCTK_REAL TClm[(l_max+1)*(l_max+1)] TYPE=ARRAY dim=1 size=10 DISTRIB=CONSTANT \n{\n RTC, ITC\n} \"Expansion coefficients for the Schwarzchild metric\"\n\nCCTK_REAL TCrlm[(l_max+1)*(l_max+1)] TYPE=ARRAY dim=1 size=10 DISTRIB=CONSTANT \n{\n RTCr, ITCr\n} \"Radial derivatives of expansion coefficients for the Schwarzchild metric\"\n\nCCTK_REAL TCtlm[(l_max+1)*(l_max+1)] TYPE=ARRAY dim=1 size=10 DISTRIB=CONSTANT \n{\n RTCt, ITCt\n} \"Time derivatives of xpansion coefficients for the Schwarzchild metric\"\n\n# (0):gxx, (1):gxy, (2):gxz, (3):gyy, (4):gyz, (5):gzz,\n# (6):betax, (7):betay, (8):betaz, (9):alpha, \nCCTK_REAL Clm TYPE=ARRAY dim=1 size=10 DISTRIB=CONSTANT \n{\n RC, IC\n} \"Expansion coefficients for the metric\"\n\nCCTK_REAL drClm TYPE=ARRAY dim=1 size=10 DISTRIB=CONSTANT \n{\n RCr, ICr\n} \"Expansion coefficients for the radial derivative of the metric\"\n\nCCTK_REAL dtClm TYPE=ARRAY dim=1 size=10 DISTRIB=CONSTANT \n{\n RCt, ICt \n} \"Expansion coefficients for the time derivative of the metric\"\n\npublic:\n\n########### Cauchy Variables ###########\n\n# (1-2):gxx, (3-4):gxy, (5-6):gxz, (7-8):gyy, (9-10):gyz, (11-12): gzz\nCCTK_REAL SHRE_gij[12] TYPE = ARRAY timelevels=3 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"The spatial metric components on the extraction worldtube\"\n\n# (1-2):gxt, (3-4):gyt, (5-6):gzt, (7-8):gtt\nCCTK_REAL SHRE_git[8] TYPE = ARRAY timelevels=3 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"The mixt space-time metric components on the extraction worldtube\"\n\nCCTK_REAL SHRE_beta[6] TYPE = ARRAY timelevels=3 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"The shift beta\"\n\nCCTK_REAL SHRE_alpha[2] TYPE = ARRAY timelevels=3 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"The lapse alpha\"\n\nCCTK_REAL SHRE_dgij[12] TYPE = ARRAY timelevels=3 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \n{\n SHRE_drgij, SHRE_dqgij, SHRE_dpgij, SHRE_dtgij\n}\"Derivatives of the spatial metric components on the extraction worldtube\"\n\nCCTK_REAL SHRE_dgit[8] TYPE = ARRAY timelevels=3 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \n{\n SHRE_drgit, SHRE_dqgit, SHRE_dpgit, SHRE_dtgit\n}\"Derivatives of the mixt metric components on the extraction worldtube\"\n\nCCTK_REAL SHRE_dbeta[6] TYPE = ARRAY timelevels=3 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \n{\n SHRE_drbeta, SHRE_dqbeta, SHRE_dpbeta, SHRE_dtbeta\n}\"Derivatives of the shift beta\"\n\nCCTK_REAL SHRE_dalpha[2] TYPE = ARRAY timelevels=3 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \n{\n SHRE_dralpha, SHRE_dqalpha, SHRE_dpalpha, SHRE_dtalpha\n}\"Derivatives of the lapse alpha\"\n\nprivate:\n\n############ Affine Variables ###############\n\nCCTK_REAL WT_r1[2] TYPE = ARRAY timelevels=3 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"Lambda derivative of the radius\"\n\nCCTK_REAL WT_scalars[2] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n WT_detg, WT_temp, WT_sigma2, WT_elld\n}\"various scalars\"\n\nCCTK_REAL WT_3vectors[6] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{ \n WT_sigma_vect, WT_dr0_vect\n}\"various 3-vectors\"\n\nCCTK_REAL WT_4vectors[8] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n WT_dr1_vect, WT_ell_vect, WT_delld_vect, WT_na_vect, WT_sa_vect\n}\"various 4-vectors\"\n\nCCTK_REAL WT_d4vectors[24] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n WT_DSnorm_vect, WT_DNnorm_vect\n}\"3-deriv of various 4-vectors\"\n\nCCTK_REAL WT_dsigma_vect[12] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"derivative of sigma\"\n\nCCTK_REAL WT_g1_vect[20] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"lambda deriv. of covariant metric\"\n\nCCTK_REAL WT_gup_vect[20] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"contravariant metric\"\n\nCCTK_REAL WT_jac[32] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n WT_j0_vect, WT_j0inv_vect, WT_j1_vect\n}\"jacobian\"\n\nCCTK_REAL WT_dj0_vect[18] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"second angular deriv. of Cart. coord\"\n\nCCTK_REAL WT_affine_metric[20] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n WT_eta0_vect, WT_etaup0_vect, WT_eta1_vect, WT_etaup1_vect\n}\"affine metric and its derivative\"\n\nCCTK_REAL WT_deta0_vect[12] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n\"Angular derivatives of angular null metric components\"\n\nCCTK_COMPLEX WT_CmpxCoord TYPE = ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n qa_2, qa_3\n}\"The complex dyad\"\n\n\nprotected:\n\n########## Characteristic Variables ###########\n\n# Note that the two time-levels in x_wt and j_wt will not get used until the 2nd\n# time-step (i.e., the tim-level where the J evolution equation is first called).\n\nCCTK_REAL WT_r0[2] TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"Bondi radius of the world-tube\"\n\nCCTK_REAL x_wt[2] TYPE = ARRAY dim=2 TIMELEVELS=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"The worldline path\"\n\nCCTK_COMPLEX j_wt[2] TYPE = ARRAY dim=2 TIMELEVELS=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"The metric function J of the worldtube\"\n\nCCTK_COMPLEX j_l[2] TYPE = ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"Lambda derivative of the metric function J of the worldtube\"\n\nCCTK_REAL beta_wt[2] TYPE = ARRAY dim=2 TIMELEVELS=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"The expansion factor beta\"\n\nCCTK_REAL beta_l[2] TYPE = ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"Lambda derivative of the expansion factor beta\"\n\nCCTK_COMPLEX u_wt[2] TYPE = ARRAY dim=2 TIMELEVELS=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"The shift U\"\n\nCCTK_COMPLEX u_l[2] TYPE = ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"Lambda derivative of the shift U\"\n\nCCTK_COMPLEX u_x_wt[2] TYPE = ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"Radial derivative of the shift U\"\n\nCCTK_COMPLEX q_wt[2] TYPE = ARRAY dim=2 TIMELEVELS=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"The auxiliary variable of the U equation, Q\"\n\n\nCCTK_REAL w_wt[2] TYPE = ARRAY dim=2 TIMELEVELS=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"The mass aspect W\"\n\nCCTK_REAL w_l[2] TYPE = ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"Lambda derivative of the mass aspect W\"\n\n\n########### Errors for the Analytic Cauchy Variables on the Worldtube###########\n\n# (1-2):gxx, (3-4):gxy, (5-6):gxz, (7-8):gyy, (9-10):gyz, (11-12): gzz\nCCTK_REAL SHRE_gij_e[12] TYPE = ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"The spatial metric components on the extraction worldtube\"\n\n# (1-2):gxt, (3-4):gyt, (5-6):gzt, (7-8):gtt\nCCTK_REAL SHRE_git_e[8] TYPE = ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"The mixt space-time metric components on the extraction worldtube\"\n\nCCTK_REAL SHRE_beta_e[6] TYPE = ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"The shift beta\"\n\nCCTK_REAL SHRE_alpha_e[2] TYPE = ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \\\n \"The lapse alpha\"\n\nCCTK_REAL SHRE_dgij_e[12] TYPE = ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \n{\n SHRE_drgij_e, SHRE_dqgij_e, SHRE_dpgij_e, SHRE_dtgij_e\n}\"Derivatives of the spatial metric components on the extraction worldtube\"\n\nCCTK_REAL SHRE_dgit_e[8] TYPE = ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \n{\n SHRE_drgit_e, SHRE_dqgit_e, SHRE_dpgit_e, SHRE_dtgit_e\n}\"Derivatives of the mixt metric components on the extraction worldtube\"\n\nCCTK_REAL SHRE_dbeta_e[6] TYPE = ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \n{\n SHRE_drbeta_e, SHRE_dqbeta_e, SHRE_dpbeta_e, SHRE_dtbeta_e\n}\"Derivatives of the shift beta\"\n\nCCTK_REAL SHRE_dalpha_e[2] TYPE = ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts \n{\n SHRE_dralpha_e, SHRE_dqalpha_e, SHRE_dpalpha_e, SHRE_dtalpha_e\n}\"Derivatives of the lapse alpha\"\n", - "params": "", + "param": "# Parameter definitions for thorn NullSHRExtract\n# $Header:$\n\nshares: NullGrid\nuses int N_ang_pts_inside_eq\nuses int N_ang_ev_outside_eq\nuses int N_ang_stencil_size\nuses int N_ang_ghost_pts\nuses int N_radial_pts\nuses real null_rwt\nuses real null_xin\n\nshares: cactus\nuses cctk_int cctk_itlast\n\nshares: NullEvolve\nuses BOOLEAN first_order_scheme\n\nextends KEYWORD boundary_data\n{\n \"SHRE\" ::\"boundary data provided by spherical harmonics recomposition on the worldtube\"\n}\n\nrestricted:\n\nCCTK_REAL cr \"radius of the worltube\"\n{\n (0.0:*:: \"strictly positive real number\"\n}0.5\n\nCCTK_REAL mass \"mass parameter\"\n{\n (0.0:*:: \"strictly positive real number\"\n}0.1\n\nint l_max \"l_max in Ylm\"\n{\n 0:*\t:: \"positive\"\n} 2\n\nCCTK_REAL MinimumDistanceTo2Bp1 \"minimum distance from the extraction world-tube to the B+1 point\"\n{\n 0:* :: \"positive. Should be O(1)\"\n} 0.0\n\nprivate:\n\nboolean debug_switch_on \"Should the debug be turned on?\" \n{\n}\"no\"\n\nboolean ana_metric \"Should the Schwarzchild analytic metric be used?\" \n{\n}\"no\"\n\nkeyword WT_metric \"Metric on the Worldtube to be used\"\n{\n \"Full\"\t\t:: \"Full nonlinear metric extraction on the worldtube\"\n \"SchIEF\"\t:: \"Schwarzchild metric in IEF coordinates\"\n} \"Full\"\n\nkeyword SchIEF_time \"Should the analytic metric be static or sin(omega t)\"\n{\n \"static\"\t:: \"Static solution, no time dependence\"\n \"sine_t\"\t:: \"Sine dependence in time\"\n \"vibe_t\"\t:: \"A sine/cosine vibe in time on the x direction\"\n}\"static\"\n\nCCTK_REAL fcoef \"Coefficient of the time dependence for Schwazchild time metric\"\n{\n *:* :: \"anything\"\n}0.0\n\nCCTK_REAL Afact \"Factor in front of the sine time dependence for Schwazchild time metric\"\n{\n *:* :: \"anything\"\n}0.0\n\nCCTK_REAL elld_min_coef \"definition of elld_min = elld_min_coef * dt**elld_min_pow\"\n{\n 0:* :: \"larger than zero\"\n} 0.01\n\nCCTK_INT elld_min_pow \"definition of elld_min = elld_min_coef * dt**elld_min_pow\"\n{\n 0:* :: \"larger than zero\"\n} 2\n\nBOOLEAN halt_on_negative_elld \"Should the code quit if the denominator of the null vector changes sign?\"\n{\n} \"no\"\n\nCCTK_REAL rl_min_coef \"definition of rl_min = rl_min_coef * dt**rl_min_pow\"\n{\n 0:* :: \"larger than zero\"\n} 0.01\n\nCCTK_INT rl_min_pow \"definition of rl_min = rl_min_coef * dt**rl_min_pow\"\n{\n 0:* :: \"larger than zero\"\n} 2\n\nBOOLEAN halt_on_negative_rl \"Should the code quit if r_{lambda} goes negative?\"\n{\n} \"no\"\n\nBOOLEAN WT_spherical_harmonics \"Output the spherical harmonics of the Worldtube to a file?\" STEERABLE=ALWAYS\n{\n} \"no\"\n\nBOOLEAN WT_spherical_harmonics_on_nullgrid \"Output the spherical harmonics on the nullgrid just off the Worldtube to a file?\" STEERABLE=ALWAYS\n{\n} \"no\"\n\n\n\n\n", "schedule": "# Schedule definitions for thorn NullSHRExtract \n# $Header:$\n\nif (CCTK_EQUALS(boundary_data,\"SHRE\")) \n{\n STORAGE: SHRE_gij[3], SHRE_git[3] SHRE_beta[3], SHRE_alpha[3]\n STORAGE: SHRE_dgij[3], SHRE_dgit[3] SHRE_dbeta[3], SHRE_dalpha[3]\n STORAGE: WT_r0, WT_r1[3], WT_dj0_vect \n\n STORAGE: NullVars::realcharfuncs[2]\n STORAGE: NullVars::cmplxcharfuncs_basic[2]\n STORAGE: NullVars::null_mask\n\n if (first_order_scheme) {\n STORAGE: NullVars::cmplxcharfuncs_aux[2]\n }\n\n STORAGE: WT_CmpxCoord\n STORAGE: WT_scalars, WT_3vectors, WT_4vectors, WT_d4vectors\n STORAGE: WT_dsigma_vect, WT_g1_vect, WT_gup_vect\n STORAGE: WT_jac, WT_affine_metric, WT_deta0_vect\n STORAGE: x_wt[2], j_wt[2], j_l, beta_wt[2], beta_l\n STORAGE: q_wt[2], u_wt[2], u_l, u_x_wt, w_wt[2], w_l\n\n # Actual reconstruction scheduling depends on when \n # SphericalHarmonicReconRead is scheduled (see below)\n if (CCTK_EQUALS(WT_metric, \"Full\")) {\n schedule NullSHRE_FullMetricRecon IN MetricReconstruction \n {\n LANG: Fortran\n OPTIONS: global\n }\"Current extraction of Full Metric and its Derivatives on the Sphere\"\n } \n\n\n\n######## INITIALIZATION ###################\n\n STORAGE: NYlm, SYlm, N1Ylm, S1Ylm\n STORAGE: Clm, drClm, dtClm\n\n schedule NullSHRE_PreCalcNSYlm AT CCTK_INITIAL \\\n BEFORE NullEvol_BoundaryInit \\\n BEFORE NullEvol_Initial\n {\n LANG: Fortran\n } \"Precalculate spherical harmonics in (p,q) coordinates\"\n\n schedule NullSHRE_PreCalcNSYlm AT CCTK_POST_RECOVER_VARIABLES\n {\n LANG: Fortran\n } \"Precalculate spherical harmonics in (p,q) coordinates\"\n\n if (CCTK_EQUALS(WT_metric, \"SchIEF\")) {\n STORAGE: NTYlm, STYlm, NT1Ylm, ST1Ylm\n\n schedule NullSHRE_SchPreCalc AT CCTK_INITIAL \\\n AFTER NullSHRE_PreCalcNSYlm\n {\n LANG: Fortran\n OPTIONS: global\n }\"Computes the Schwarzchild Metric Spherical Harmonic Coefficients\"\n\n }\n\n schedule GROUP NullSHRExtractInitial in NullEvol_BoundaryInit\n {\n STORAGE: WT_CmpxCoord\n STORAGE: WT_scalars, WT_3vectors, WT_4vectors, WT_d4vectors\n STORAGE: WT_dsigma_vect, WT_g1_vect, WT_gup_vect\n STORAGE: WT_jac, WT_affine_metric, WT_deta0_vect\n STORAGE: x_wt[2], j_wt[2], j_l, beta_wt[2], beta_l\n STORAGE: u_wt[2], u_l, u_x_wt, w_wt[2], w_l, q_wt[2]\n }\"Group of the waveform extraction initialization\"\n\n if (CCTK_EQUALS(WT_metric, \"Full\")) {\n schedule GROUP SphericalHarmonicReconRead IN NullEvol_BoundaryInit \\\n BEFORE NullSHRExtractInitial\n {\n }\"Schedule group for reconstructing initial world-tube data\"\n } \n\n if (CCTK_EQUALS(WT_metric, \"SchIEF\")) {\n STORAGE: TClm, TCtlm, TCrlm\n\n schedule NullSHRE_SchReadClm IN NullSHRExtractInitial \\\n BEFORE NullSHRE_SchMetricRecon \\\n\t\t\t\t BEFORE NullSHRE_MetricReconPast \n {\n LANG: Fortran\n OPTIONS: global\n }\"Computes the Schwarzchild Spherical Harmonic Coefficients\"\n\n schedule NullSHRE_SchMetricRecon IN NullSHRExtractInitial \\\n AFTER NullSHRE_SchReadClm \\\n\t\t\t\t BEFORE NullSHRE_MetricReconPast \n {\n LANG: Fortran\n OPTIONS: global\n }\"Schwarzchild Metric and its Derivatives on the Sphere\"\n \n if (ana_metric) {\n schedule NullSHRE_AnaSchMetricRecon \\\n IN NullSHRExtractInitial \\\n AFTER NullSHRE_SchMetricRecon \\\n\t\t BEFORE NullSHRE_MetricReconPast \n {\n LANG: Fortran\n OPTIONS: global\n }\"Analytic Schwarzchild Metric and its Derivatives on the Sphere\"\n }\n \n }\n\n####### INITIAL WORLDTUBE DATA #######################\n\n schedule NullSHRE_MetricReconPast IN NullSHRExtractInitial \\\n BEFORE NullSHRE_Pointing_p_p \n {\n LANG: Fortran\n OPTIONS: global\n }\"Copy current metric to Past Levels\"\n\n schedule NullSHRE_Pointing_p_p IN NullSHRExtractInitial \\\n BEFORE NullSHRE_InitialWT_p_p \n {\n LANG: Fortran\n OPTIONS: global\n }\"Target P-P Level Variables for the pointers used in initialization\"\n\n schedule NullSHRE_InitialWT IN NullSHRExtractInitial \\\n AFTER NullSHRE_Pointing_p_p \\\n AS NullSHRE_InitialWT_p_p\n {\n LANG: Fortran \n OPTIONS: global\n }\"Extracted variables on the world tube for the p_p_Init level only up to rl\"\n \n schedule NullSHRE_Pointing_p IN NullSHRExtractInitial \\\n AFTER NullSHRE_InitialWT_p_p \\\n BEFORE NullSHRE_InitialWT_p\n {\n LANG: Fortran\n OPTIONS: global\n }\"Target P-Level Variables for the pointers used in initialization\"\n\n schedule NullSHRE_InitialWT IN NullSHRExtractInitial \\\n AFTER NullSHRE_Pointing_p \\\n AS NullSHRE_InitialWT_p\n {\n LANG: Fortran \n OPTIONS: global\n }\"Extracted variables on the world tube for the p-Init level only up to rl\"\n \n schedule NullSHRE_Pointing IN NullSHRExtractInitial \\\n AFTER NullSHRE_InitialWT_p \\\n BEFORE NullSHRE_InitialWT\n {\n LANG: Fortran\n OPTIONS: global\n }\"Gives the target Variables for the pointers used in initialization\"\n\n schedule NullSHRE_ExtractWT IN NullSHRExtractInitial \\\n AFTER NullSHRE_Pointing \n {\n LANG: Fortran \n OPTIONS: global\n }\"Computes the extracted variables on the world tube for the Initial level\"\n\n \n\n####### INITIALIZATION ENDS, EXTRACTION STARTS ##############\n\n schedule GROUP NullSHRExtract in NullEvol_Boundary\n {\n }\"Group of the waveform extraction current level\"\n\n if (CCTK_EQUALS(WT_metric, \"Full\")) {\n schedule GROUP SphericalHarmonicReconRead IN NullEvol_Boundary \\\n BEFORE NullSHRExtract\n {\n } \"Schedule group for reconstructing current world-tube data\"\n\n }\n\n if (CCTK_EQUALS(WT_metric, \"SchIEF\")) {\n\n schedule NullSHRE_SchReadClm IN NullSHRExtract \\\n BEFORE NullSHRE_SchMetricRecon \\\n BEFORE NullSHRE_Pointing \n {\n LANG: Fortran\n OPTIONS: global\n }\"Current Schwarzchild Spherical Harmonic Coefficients\"\n\n schedule NullSHRE_SchMetricRecon IN NullSHRExtract \\\n AFTER NullSHRE_SchReadClm \\\n BEFORE NullSHRE_Pointing \n {\n LANG: Fortran\n OPTIONS: global\n }\"Current Schwarzchild Metric and its Derivatives on the Sphere\"\n \n if (ana_metric) {\n schedule NullSHRE_AnaSchMetricRecon IN NullSHRExtract \\\n AFTER NullSHRE_SchMetricRecon \\\n BEFORE NullSHRE_Pointing \n {\n LANG: Fortran\n OPTIONS: global\n }\"Current Analytic Schwarzchild Metric and its Derivatives on the Sphere\"\n }\n \n }\n\n schedule NullSHRE_Pointing IN NullSHRExtract \\\n BEFORE NullSHRE_ExtractWT\n {\n LANG: Fortran\n OPTIONS: global\n }\"Gives the target variables for the pointers used in extraction\"\n\n schedule NullSHRE_ExtractWT IN NullSHRExtract \\\n AFTER NullSHRE_Pointing \n {\n LANG: Fortran \n OPTIONS: global\n }\"Computes the extracted variables on the world tube for the Current level\"\n\n########################error analysis\n\n# if (CCTK_EQUALS(WT_metric, \"SchIEF\")) {\n# schedule NullSHRE_NullSHRE_ErrorSch AT ANALYSIS\n# {\n# LANG: Fortran\n# TRIGGER: SHRE_gij_e, SHRE_git_e, SHRE_beta_e, SHRE_alpha_e\n# STORAGE: SHRE_gij_e, SHRE_git_e, SHRE_beta_e, SHRE_alpha_e\n# TRIGGER: SHRE_dgij_e, SHRE_dgit_e, SHRE_dbeta_e, SHRE_dalpha_e\n# STORAGE: SHRE_dgij_e, SHRE_dgit_e, SHRE_dbeta_e, SHRE_dalpha_e\n# } \"error analysis for the Schwarzchild Metric\"\n#\n#}\n\nif (WT_spherical_harmonics)\n{\n\n schedule NullSHRE_WTSphHarm AT ANALYSIS\n {\n LANG: Fortran\n OPTIONS: global\n } \"If requested, output spherical harmonics of the quantities computed on the Worldtube\"\n\n}\n\nif (WT_spherical_harmonics_on_nullgrid)\n{\n\n schedule wt_WriteSphHarmWT AT ANALYSIS\n {\n LANG: Fortran\n OPTIONS: global\n } \"If requested, output spherical harmonics of the quantities computed on the nullgrid just off the Worldtube\"\n\n}\n\n\n}\n", "src": { "NullSHRE_modAnaCoord.F90": "! vim: syntax=fortran\n#include \"cctk.h\"\n\nmodule NullSHRE_modAnaCoord\n\n use cctk\n implicit none\n\n contains\n\n subroutine wt_coord (nn1, nn2, qs, ps, pp, ip, cr, wt) ! eq. (17)\n\n use NullSHRE_modGFdef\n implicit none\n \n CCTK_INT, intent (in) :: nn1, nn2, ip\n CCTK_REAL, dimension (nn1, nn2), intent (in) :: qs, ps, pp\n CCTK_REAL, intent (in) :: cr\n type(gf2d), dimension (3), intent (inout) :: wt\n\n ! world-tube coordinates\n\n wt(1)%d = 2.d0 * cr * qs / pp\n wt(2)%d = (3 - 2 * ip) * 2.d0 * cr * ps / pp\n wt(3)%d = (3 - 2 * ip) * cr * (1.d0 - qs ** 2 - ps ** 2) / pp\n\n end subroutine wt_coord\n\n\n subroutine wt_sigma (nn1, nn2, qs, ps, pp, ip, cr, sigma) ! eq. (23)\n\n use NullSHRE_modGFdef\n implicit none\n\n CCTK_INT, intent (in) :: nn1, nn2, ip\n CCTK_REAL, dimension (nn1, nn2), intent (in) :: qs, ps, pp\n CCTK_REAL, intent (in) :: cr\n type(gf2d), dimension (3), intent (inout) :: sigma\n\n ! 1-form normal to the world-tube\n\n sigma(1)%d = 8 * cr ** 2 * qs / pp ** 3\n sigma(2)%d = (3 - 2 * ip) * 8 * cr ** 2 * ps / pp ** 3\n sigma(3)%d = (3 - 2 * ip) * 4 * cr ** 2 * (1 - qs ** 2 - ps ** 2) / pp ** 3\n\n end subroutine wt_sigma\n\n\n subroutine wt_dsigma (nn1, nn2, qs, ps, pp, ip, cr, dsigma)\n\n use NullSHRE_modGFdef\n implicit none\n\n CCTK_INT, intent (in) :: nn1, nn2, ip\n CCTK_REAL, dimension (nn1, nn2), intent (in) :: qs, ps, pp\n CCTK_REAL, intent (in) :: cr\n type(gf2d), dimension (3,2:3), intent (inout) :: dsigma\n\n ! angular derivatives of sigma\n\n dsigma(1,2)%d = - 8 * cr ** 2 * (- 1 + 5 * qs ** 2 - ps ** 2) /&\n & pp ** 4\n dsigma(1,3)%d = - 48 * cr ** 2 * qs * ps / pp ** 4\n dsigma(2,2)%d = 48 * ( - 3 + 2 * ip) * cr ** 2 * ps * qs / pp ** 4\n dsigma(2,3)%d = - 8 * ( - 3 + 2 * ip) * cr ** 2 * (1 + qs ** 2 -&\n & 5 * ps ** 2) / pp ** 4\n dsigma(3,2)%d = - 16 * ( - 3 + 2 * ip) * cr ** 2 * qs * ( - 2 +&\n & qs ** 2 + ps ** 2) / pp ** 4\n dsigma(3,3)%d = - 16 * ( - 3 + 2 * ip) * cr ** 2 * ps * ( - 2 +&\n & qs ** 2 + ps ** 2) / pp ** 4\n\n end subroutine wt_dsigma\n\n\n subroutine wt_j0 (nn1, nn2, qs, ps, pp, ip, cr, ell, j0) ! eq. (33)\n\n use NullSHRE_modGFdef\n implicit none\n\n CCTK_INT, intent (in) :: nn1, nn2, ip\n CCTK_REAL, dimension (nn1, nn2), intent (in) :: qs, ps, pp\n CCTK_REAL, intent (in) :: cr\n type(gf2d), dimension (4), intent (in) :: ell\n type(gf2d), dimension (4,4), intent (inout) :: j0\n\n CCTK_INT :: i\n\n ! lambda derivatives\n\n do i = 1, 4\n j0(i,1)%d = ell(i)%d\n end do\n\n ! angular derivatives\n\n j0(1,2)%d = - 2 * cr * (-1.d0 + qs ** 2 - ps ** 2) / pp ** 2\n j0(2,2)%d = - 4 * (3 - 2 * ip) * cr * qs * ps / pp ** 2\n j0(3,2)%d = - 4 * (3 - 2 * ip) * cr * qs / pp ** 2\n j0(4,2)%d = 0.d0\n\n j0(1,3)%d = - 4 * cr * qs * ps / pp ** 2\n j0(2,3)%d = 2 * (3 - 2 * ip) * cr * (1.d0 + qs ** 2 - ps ** 2) / pp ** 2\n j0(3,3)%d = - 4 * (3 - 2 * ip) * cr * ps / pp ** 2\n j0(4,3)%d = 0.d0\n\n ! time derivatives\n\n j0(1,4)%d = 0.d0\n j0(2,4)%d = 0.d0\n j0(3,4)%d = 0.d0\n j0(4,4)%d = 1.d0\n\n end subroutine wt_j0\n\n\n subroutine wt_dj0 (nn1, nn2, qs, ps, pp, ip, cr, dj0)\n\n use NullSHRE_modGFdef\n implicit none\n\n CCTK_INT, intent (in) :: nn1, nn2, ip\n CCTK_REAL, dimension (nn1, nn2), intent (in) :: qs, ps, pp\n CCTK_REAL, intent (in) :: cr\n type(gf2d), dimension (3,2:3,2:3), intent (inout) :: dj0\n\n ! angular derivatives of the o(1) jacobian\n\n dj0(1,2,2)%d = qs * ( - 3 + qs ** 2 - 3 * ps ** 2) * (4.d0 * cr) / pp ** 3\n dj0(1,2,3)%d = ps * ( - 1 + 3 * qs ** 2 - ps ** 2) * (4.d0 * cr) / pp ** 3\n dj0(1,3,3)%d = - qs * (1 + qs ** 2 - 3 * ps ** 2) * (4.d0 * cr) / pp ** 3\n\n dj0(2,2,2)%d = -( - 3 + 2 * ip) * ps * ( - 1 + 3 * qs ** 2 - ps ** 2) * (4.d0 * cr) / pp ** 3\n dj0(2,2,3)%d = ( - 3 + 2 * ip) * qs * (1 + qs ** 2 - 3 * ps ** 2) * (4.d0 * cr) / pp ** 3\n dj0(2,3,3)%d = ( - 3 + 2 * ip) * ps * (3 + 3 * qs ** 2 - ps ** 2) * (4.d0 * cr) / pp ** 3\n\n dj0(3,2,2)%d = - ( - 3 + 2 * ip) * ( - 1 + 3 * qs ** 2 - ps ** 2) * (4.d0 * cr) / pp ** 3\n dj0(3,2,3)%d = - 4 * ( - 3 + 2 * ip) * qs * ps * (4.d0 * cr) / pp ** 3\n dj0(3,3,3)%d = ( - 3 + 2 * ip) * (1 + qs ** 2 - 3 * ps ** 2) * (4.d0 * cr) / pp ** 3\n \n\n end subroutine wt_dj0\n\n subroutine wt_j0inv (nn1, nn2, qs, ps, pp, ip, cr, j0inv)\n\n use NullSHRE_modGFdef\n implicit none\n\n CCTK_INT, intent (in) :: nn1, nn2, ip\n CCTK_REAL, dimension (nn1, nn2), intent (in) :: qs, ps, pp\n CCTK_REAL, intent (in) :: cr\n type(gf2d), dimension (4,4), intent (inout) :: j0inv\n\n ! x,y,z derivatives of (r, q, p) coordinates\n\n j0inv(1,1)%d = 2*qs/pp\n j0inv(2,1)%d = -(-1+qs**2-ps**2)/cr/2\n j0inv(3,1)%d = -qs*ps/cr\n j0inv(4,1)%d = 0.d0\n \n j0inv(1,2)%d = 2*(3-2*ip)*ps/pp\n j0inv(2,2)%d = -ps*(3- 2*ip)*qs/cr\n j0inv(3,2)%d = (3 - 2*ip)/cr*(1+qs**2-ps**2)/2\n j0inv(4,2)%d = 0.d0\n\n j0inv(1,3)%d = -(3-2*ip)*(-1+qs**2+ps**2)/pp\n j0inv(2,3)%d = -(3-2*ip)*qs/cr\n j0inv(3,3)%d = -(3-2*ip)*ps/cr\n j0inv(4,3)%d = 0.d0\n\n ! time derivatives\n\n j0inv(1,4)%d = 0.d0\n j0inv(2,4)%d = 0.d0\n j0inv(3,4)%d = 0.d0\n j0inv(4,4)%d = 1.d0\n\n end subroutine wt_j0inv\n\n\nend module NullSHRE_modAnaCoord\n", diff --git a/PITTNullCode_NullVars.json b/PITTNullCode_NullVars.json index 425a6d0fd5686bf94ac53b9763dd4d85460d18b0..34d3047059f622138fab2c7b7ac384647ecc9e37 100644 --- a/PITTNullCode_NullVars.json +++ b/PITTNullCode_NullVars.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/pittnullcode.git", "configuration": "# configuration.ccl file for thorn NullGrid\n\nPROVIDES NullVars\n{\n LANG\n}\n", "interface": "# Interface definition for thorn NullVars\n# $Header$\n\nimplements: NullVars\n\n\npublic:\n\nCCTK_REAL realcharfuncs[NullGrid::N_radial_pts] TYPE=ARRAY TIMELEVELS=2 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n wcn, wcs,\n bcn, bcs\n} \"Evolved Real-valued Characteristic Fields\"\n\n\nCCTK_COMPLEX cmplxcharfuncs_basic[NullGrid::N_radial_pts] TYPE=ARRAY TIMELEVELS=2 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n jcn, jcs, dxjcn, dxjcs,\n eth2jcn, eth2jcs,\n ucn, ucs, qcn, qcs\n} \"Evolved complex-valued Characteristic Fields (basic set)\" \n\n\nCCTK_COMPLEX cmplxcharfuncs_aux[NullGrid::N_radial_pts] TYPE=ARRAY TIMELEVELS=2 dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n nucn, nucs,\n cbcn, cbcs,\n ckcn, ckcs\n} \"Evolved complex-valued Characteristic Fields (auxiliary set)\" \n\nCCTK_INT null_mask TYPE=ARRAY dim=2 size=\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)),\\\n(NullGrid::N_ang_pts_inside_eq+2*(NullGrid::N_ang_ev_outside_eq+NullGrid::N_ang_stencil_size)) \\\n GHOSTSIZE=NullGrid::N_ang_ghost_pts,NullGrid::N_ang_ghost_pts\n{\n boundary_maskn, boundary_masks,\n evolution_maskn, evolution_masks\n} \"boundary and evolution masks\"\n", - "params": "", + "param": "# Parameter definitions for thorn NullVars\n# $Header$\nshares: NullGrid\n \nuses int N_ang_pts_inside_eq\nuses int N_ang_ev_outside_eq\nuses int N_ang_stencil_size\nuses int N_ang_ghost_pts\nuses int N_radial_pts\n", "schedule": "# Schedule definitions for thorn NullVars\n# $Header$\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn NullVars\n# $Header$\n\n# Source files in this directory\nSRCS = \n\n# Subdirectories containing source files\nSUBDIRS = \n\n" diff --git a/PITTNullCode_SphericalHarmonicDecomp.json b/PITTNullCode_SphericalHarmonicDecomp.json index b0f9b56ccb84b23710fecfcda5ab5c17e481820b..eaa0fca41fb31793198ca2dc513b7b5365ecbcf0 100644 --- a/PITTNullCode_SphericalHarmonicDecomp.json +++ b/PITTNullCode_SphericalHarmonicDecomp.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/pittnullcode.git", "configuration": "# Configuration definitions for thorn SphericalHarmonicDecomp\n\nREQUIRES HDF5 GSL\n", "interface": "# Interface definition for thorn SphericalHarmonicDecomp\n# $Header:$\n\nimplements: SphericalHarmonicDecomp\ninherits:\n\nCCTK_INT FUNCTION sYlm_DecomposeField(\\\n CCTK_POINTER_TO_CONST IN cctkGH,\\\n CCTK_POINTER_TO_CONST IN name,\\\n CCTK_INT IN re_gindx,\\\n CCTK_INT IN im_gindx,\\\n CCTK_REAL IN radius,\\\n CCTK_INT IN spin)\n\nCCTK_INT FUNCTION sYlm_DecomposeField_3D(\\\n CCTK_POINTER_TO_CONST IN cctkGH,\\\n CCTK_POINTER_TO_CONST IN name,\\\n CCTK_INT IN re_gindx,\\\n CCTK_INT IN im_gindx,\\\n CCTK_INT IN spin)\n\n\nPROVIDES FUNCTION sYlm_DecomposeField WITH \\\n SphericalHarmonicDecomp_DecomposeField LANGUAGE C\n\n\nPROVIDES FUNCTION sYlm_DecomposeField_3D WITH \\\n SphericalHarmonicDecomp_3D_Decompose LANGUAGE C\n", - "params": "", + "param": "# Parameter definitions for thorn SphericalHarmonicDecomp\n# $Header:$\n\nSHARES: IO\n\nUSES CCTK_STRING out_dir AS io_out_dir\n\nPRIVATE:\n\nCCTK_STRING out_dir \"output directory\" STEERABLE=ALWAYS\n{\n \"^$\" :: \"Empty stting -> use IO::out_dir\"\n \".+\" :: \"directory name\"\n} \"\"\n\nCCTK_INT max_spin \"maximum absolute spin of fields\"\n{\n 0:* :: \"positive only\"\n} 2 \n\nCCTK_INT num_l_modes \"number of l modes ... not lmax\"\n{\n 1:* :: \"1 or larger\"\n} 7\n\n#CCTK_INT num_m_modes \"number of m modes ... = 2*mmax + 1\"\n#{\n# 1:*:2 :: \"must be odd and 1 or larger\"\n#} 15\n\nCCTK_INT num_n_modes \"number of n modes\"\n{\n 1:* :: \" 1 or larger\"\n} 15\n\nCCTK_INT num_mu_points \"number of points in mu direction\"\n{\n 1:* :: \"\"\n} 15\n\nCCTK_INT num_phi_points \"number of points in phi directions\"\n{\n 1:* :: \"\"\n} 31\n\nCCTK_INT num_x_points \"number of points in phi directions\"\n{\n 1:* :: \"\"\n} 31\n\nCCTK_REAL Rin \"inner radius for decomp\"\n{\n 0:* :: \"positive\"\n} 10.0\n\nCCTK_REAL Rout \"outer radius for decomp\"\n{\n (0:* :: \"positive > Rin\"\n} 100.0\n\n\n\nCCTK_REAL EM_Rin[100] \"inner radius for decomp\"\n{\n 0:* :: \"positive\"\n} 10.0\n\nCCTK_REAL EM_Rout[100] \"outer radius for decomp\"\n{\n (0:* :: \"positive > Rin\"\n} 100.0\n\nCCTK_INT num_radii \"number of radii\"\n{\n 1:99 :: \"\"\n}1\n\nCCTK_INT output_m_max \"don't dump m modes larger than this\"\n{\n 0:* :: \"positive or zero\"\n} 100\n\nCCTK_INT output_l_max \"don't dump l modes larger than this\"\n{\n 0:* :: \"positive, but if l_max < |s| then no output generated\"\n} 100\n\nBOOLEAN sync_file_each_time \"not yet activated\"\n{\n} \"yes\"\n\nBOOLEAN do_test \"to test or not to test\"\n{\n} \"no\"\n\nCCTK_INT extract_spacetime_metric_every \"\"\n{\n 0:* :: \"0 or positive. 0 means never\"\n} 0\n\nCCTK_KEYWORD action_on_hdf5_error \"What to do\" STEERABLE=ALWAYS\n{\n \"abort\" :: \"stop the run.\"\n \"alert\" :: \"only alert the user\"\n} \"alert\" \n", "schedule": "# Schedule definitions for thorn SphericalHarmonicDecomp\n# $Header:$\n\nif (do_test)\n{\n SCHEDULE SphericalHarmonicDecomp_Test AT CCTK_INITIAL\n {\n LANG: C\n OPTIONS: GLOBAL\n } \"test\"\n}\n\nif (extract_spacetime_metric_every)\n{\n SCHEDULE SphericalHarmonicDecomp_DumpMetric AT CCTK_POSTSTEP\n {\n LANG: C\n OPTIONS: GLOBAL\n } \"extract and decompose spacetime metric\"\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn SphericalHarmonicDecomp\n# $Header:$\n\n# Source files in this directory\nSRCS = alias.cc \\\n decomp.cc \\\n matrix.cc \\\n sYlm.cc \\\n Legendre.cc \\\n Chebyshev.cc \\\n h5read.cc \\\n ExtractMetric.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/PITTNullCode_SphericalHarmonicRecon.json b/PITTNullCode_SphericalHarmonicRecon.json index 9926ca4bc9acdcdda61048d8ef77c615a601a7ff..91eaa0196563106d1fd05760784c629255f02e69 100644 --- a/PITTNullCode_SphericalHarmonicRecon.json +++ b/PITTNullCode_SphericalHarmonicRecon.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/pittnullcode.git", "configuration": "REQUIRES HDF5 FFTW3 MPI\n", "interface": "# Interface definition for thorn SphericalHarmonicRecon\n# $Header:$\n\nimplements:SphericalHarmonicRecon\ninherits:\n\nCCTK_POINTER_TO_CONST \\\nFUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH)\n\nUSES FUNCTION GetMPICommWorld\n\nCCTK_INT \\\nFUNCTION GetCurrentExtractionCoefs(\\\n CCTK_INT IN l,\\\n CCTK_INT IN m,\\\n CCTK_REAL OUT ARRAY reC,\\\n CCTK_REAL OUT ARRAY imC,\\\n CCTK_REAL OUT ARRAY reCr,\\\n CCTK_REAL OUT ARRAY imCr,\\\n CCTK_REAL OUT ARRAY reCt,\\\n CCTK_REAL OUT ARRAY imCt )\n\nPROVIDES FUNCTION GetCurrentExtractionCoefs WITH \\\n SphericalHarmonicRecon_GetCurrentCoefs LANGUAGE C\n\nCCTK_INT \\\nFUNCTION GetExtractionParameters(\\\n CCTK_INT OUT lmax,\\\n CCTK_REAL OUT r_inner,\\\n CCTK_REAL OUT r_outer)\n\nPROVIDES FUNCTION GetExtractionParameters WITH \\\n SphericalHarmonicRecon_GetParameters LANGUAGE C\n", - "params": "", + "param": "# Parameter definitions for thorn SphericalHarmonicRecon\n# $Header:$\n\nprivate:\n\nCCTK_INT order \"order used in time interpolation / differentiation\"\n{\n 2 :: \"two or four\"\n 4 :: \"two or four\"\n} 4\n\nCCTK_REAL r_extract \"the radius of the worldtube\"\n{\n (0:* :: \"positive\"\n} 50.0 \n\nSTRING metric_data_filename \"filename for the cauchy metric data\"\n{\n \".*\"\t:: \"the Cauchy metric data\"\n} \"metric_Decomp.h5\"\n\nBOOLEAN time_derivative_in_file \"is the time derivative of the metric in the cauchy file\"\n{\n} \"no\"\n\n# the followign parameters shouls only be used if the\n# hdf5 was corrupted and extraction parameters\n# are not recoverable. Of course, we should actually\n# fix the extraction code so that this does not happen\nBOOLEAN override_extraction_parameters \"never set this\"\n{\n} no\n\nCCTK_INT override_spin \"spin: never set this\"\n{\n *:* :: \"anything, but you probably want 0\"\n} 0\n\nCCTK_INT override_nn \"number of Chabyshev coefficition: never use this\"\n{\n 1:* :: \"positive: must actualy match the extraction run\"\n} 1\n\nCCTK_INT override_na \"number of angular coefficition: never use this\"\n{\n 1:* :: \"positive: must actualy match the extraction run\"\n} 1\n\nCCTK_REAL override_Rin \"inner radius of extraction zone: ...\"\n{\n (0:* :: \"positive\"\n} 1\n\nCCTK_REAL override_Rout \"outer radius of extraction zone: ...\"\n{\n (0:* :: \"positive\"\n} 1\n", "schedule": "# Schedule definitions for thorn SphericalHarmonicRecon\n# $Header:$\n\n\n# You should schedule any routine that will use the metric\n# coefficients in GROUP MetricReconstruction. Any routine that\n# calls GetCurrentExtractionCoefs should be scheduled in this group\nSCHEDULE GROUP MetricReconstruction IN \\\n SphericalHarmonicReconRead \\\n AFTER SphericalHarmonicRecon_ReadData \\\n BEFORE SphericalHarmonicRecon_PostStep\n{\n} \"Group for use by external thorns to use the metric\"\n\n#SCHEDULE GROUP SphericalHarmonicReconRead AT CCTK_INITIAL\n#{\n#} \"Schedule group for reconstructing world-tube data\"\n#\n#SCHEDULE GROUP SphericalHarmonicReconRead AT CCTK_EVOL\n#{\n#} \"Schedule group for reconstructing world-tube data\"\n\nSCHEDULE SphericalHarmonicRecon_ReadData IN SphericalHarmonicReconRead\n{\n LANG: C\n} \"Read the world tube data and set the data flag to read\"\n\nSCHEDULE SphericalHarmonicRecon_PostStep \\\n IN SphericalHarmonicReconRead AFTER \\\n SphericalHarmonicRecon_ReadData\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"set data flag to unread\"\n\nSCHEDULE SphericalHarmonicRecon_Startup at CCTK_WRAGH\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"startup\"\n", "src": { "make.configuration.defn": "# make.configuration.defn file for thorn SphericalHarmonicRecon \n\n# Define this thorn's utilities\nALL_UTILS += ascii_output fftwfilter setmeta findlast printtime readmeta\n", diff --git a/PITTNullCode_SphericalHarmonicReconGen.json b/PITTNullCode_SphericalHarmonicReconGen.json index cc5bc83e9b623074b47e8dc8eea5edf8aacea7c4..935917d187ac8db70e33ab107f2132c8d601e8ad 100644 --- a/PITTNullCode_SphericalHarmonicReconGen.json +++ b/PITTNullCode_SphericalHarmonicReconGen.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/einsteintoolkit/pittnullcode.git", "configuration": "REQUIRES HDF5\n", "interface": "# Interface definition for thorn SphericalHarmonicReconGen\n# $Header:$\n\nimplements: SphericalHarmonicReconGen\ninherits:\n\n\nCCTK_POINTER_TO_CONST \\\nFUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH)\n\nUSES FUNCTION GetMPICommWorld\n\nCCTK_INT \\\nFUNCTION GetCurrentExtractionCoefs(\\\n CCTK_INT IN l,\\\n CCTK_INT IN m,\\\n CCTK_REAL OUT ARRAY reC,\\\n CCTK_REAL OUT ARRAY imC,\\\n CCTK_REAL OUT ARRAY reCr,\\\n CCTK_REAL OUT ARRAY imCr,\\\n CCTK_REAL OUT ARRAY reCt,\\\n CCTK_REAL OUT ARRAY imCt )\nPROVIDES FUNCTION GetCurrentExtractionCoefs WITH \\\n SphericalHarmonicReconGeneric_GetCurrentCoefs LANGUAGE C\n\n\nCCTK_INT \\\nFUNCTION GetExtractionParameters(\\\n CCTK_INT OUT lmax,\\\n CCTK_REAL OUT r_inner,\\\n CCTK_REAL OUT r_outer)\nPROVIDES FUNCTION GetExtractionParameters WITH \\\n SphericalHarmonicReconGeneric_GetParameters LANGUAGE C\n", - "params": "", + "param": "# Parameter definitions for thorn SphericalHarmonicRecon\n# $Header:$\n\nprivate:\n\nKEYWORD format \"Boundary data file format\" STEERABLE=RECOVER\n{\n ASCII :: \"standard ASCII format: lm-modes and spheres are stored in a 2d array (gnuplot style) for a given timestep\"\n DAT :: \"optimized ASCII format: all variables and lm-modes are stored in one row for a given timestep\"\n DAT-v2 :: \"optimized ASCII format: all variables and lm-modes are stored in one row for a given timestep. m-modes are in reverse order.\"\n SpEC-H5 :: \"SpEC-HDF5 format: Data is stored in HDF5 files grouped according to SpEC output.\"\n SpEC-H5-v2 :: \"SpEC-HDF5 format (v2): Data is stored in HDF5 files grouped according to new SpEC output.\"\n} \"ASCII\"\n\nBOOLEAN disable_auto_time_offset \"Should the automatically determined time-offset be diabled?\"\n{\n} no\n\nBOOLEAN adjust_timestep \"Should the time-step be adjusted? Ignored if time_interpolate==false.\"\n{\n} no\n\nCCTK_INT adjust_timestep__target_steps_per_time_level \\\n\"Target number of time-steps between two time-values in the datafile.\"\n{\n 1:* :: \"at least one\"\n} 1\n\nCCTK_REAL adjust_timestep__maximum_time_step \\\n\"Maximum allowed time-step.\"\n{\n (0:* :: \"larger than zero\"\n} 0.1\n\nCCTK_REAL adjust_timestep__rate_of_change \\\n\"Rate of change of the time-step.\"\n{\n (0:* :: \"The smaller the value the more gradual the change in cctk_delta_time.\"\n} 0.001\n\nCCTK_INT sphere_number \"the sphere number (if multiple spheres are present in one file) that corresponds to the worldtube radius NullSHRExtract::cr\"\n{\n 0:* :: \"positive\"\n} 0\n\n\nCCTK_INT lmaxInFile \"maximum l-mode contained in file (only needed for DAT format)\"\n{\n 0:* :: \"anything positive\"\n} 0\n\n\nBOOLEAN time_derivative_in_file \"is the time derivative of the metric in the cauchy file\"\n{\n} \"no\"\n\nCCTK_INT time_fd_order \"the order of accuracy of time derivative if not contained in file\"\n{\n 2 :: \"second-order\"\n 4 :: \"fourth-order\"\n} 4\n\n\nBOOLEAN time_interpolate \"Interpolate coefficients to different dt?\" STEERABLE=RECOVER\n{\n} no\n\n\nCCTK_REAL initial_time \"time from the worldtube data that we use as first characteristic timestep (this is a relative time, i.e. we always count the time from 0, independent of the actual initial time t_0 found in the file)\"\n{\n *:* :: \"anything\"\n} 0.0\n\nREAL initial_relaxation_time \"A time intervall for which we just use the initial set of metric data in order to relax the characteristic slice towards our initial data\"\n{\n 0:* :: \"A psoitive timescale\"\n} 0.0\n\n\nBOOLEAN verbose \"turn verbosity on/off\" STEERABLE=ALWAYS\n{\n} no\n\n\nINT cached_timesteps \"Number of timesteps that shall be read in advance and cached in memory for faster access.\" STEERABLE=RECOVER\n{\n 0:* :: \"anything positive\"\n} 0\n\n\nKEYWORD sYlm_convention \"convention of sYlm's used for decomposed input worldtube data.\"\n{\n Goldberg67 :: \"Convention used in the Goldberg 1967 paper.\"\n Condon-Shortley-Phase :: \"Definition that differs by a factor (-1)^m wrt to the Goldberg67 definition.\"\n} Goldberg67\n\n\nCCTK_REAL dt_tolerance \"A minimum tolerance for which timesteps are considered being identical\" STEERABLE=ALWAYS\n{\n 0:* :: \"Small and positive\"\n} 1e-9\n\nSTRING file \"The boundary data file. If this string is empty, we assume that the user provided files for each quantity individually (parameters below)\" STEERABLE=RECOVER\n{\n \"\"\t:: \"a valid filename\"\n} \"\"\n\nSTRING path \"the directory that contains the input files, leave blank if filenames contain directory paths already\" STEERABLE=RECOVER\n{\n \"\"\t:: \"a path name\"\n} \"\"\n\nSTRING file_lapse[3] \"filename for the lapse, its radial derivative, and its time derivative\" STEERABLE=RECOVER\n{\n \".*\"\t:: \"a filename\"\n} \"metric_Decomp.asc\"\n\nSTRING file_shiftx[3] \"filename for the x-component of shift, its radial derivative, and its time derivative\" STEERABLE=RECOVER\n{\n \".*\"\t:: \"a filename\"\n} \"metric_Decomp.asc\"\n\nSTRING file_shifty[3] \"filename for the y-component of shift, its radial derivative, and its time derivative\" STEERABLE=RECOVER\n{\n \".*\"\t:: \"a filename\"\n} \"metric_Decomp.asc\"\n\nSTRING file_shiftz[3] \"filename for the z-component of shift, its radial derivative, and its time derivative\" STEERABLE=RECOVER\n{\n \".*\"\t:: \"a filename\"\n} \"metric_Decomp.asc\"\n\nSTRING file_gxx[3] \"filename for the xx-component of the 3-metric, its radial derivative, and its time derivative\" STEERABLE=RECOVER\n{\n \".*\"\t:: \"a filename\"\n} \"metric_Decomp.asc\"\n\nSTRING file_gxy[3] \"filename for the xy-component of the 3-metric, its radial derivative, and its time derivative\" STEERABLE=RECOVER\n{\n \".*\"\t:: \"a filename\"\n} \"metric_Decomp.asc\"\n\nSTRING file_gxz[3] \"filename for the xz-component of the 3-metric, its radial derivative, and its time derivative\" STEERABLE=RECOVER\n{\n \".*\"\t:: \"a filename\"\n} \"metric_Decomp.asc\"\n\nSTRING file_gyy[3] \"filename for the yy-component of the 3-metric, its radial derivative, and its time derivative\" STEERABLE=RECOVER\n{\n \".*\"\t:: \"a filename\"\n} \"metric_Decomp.asc\"\n\nSTRING file_gyz[3] \"filename for the yz-component of the 3-metric, its radial derivative, and its time derivative\" STEERABLE=RECOVER\n{\n \".*\"\t:: \"a filename\"\n} \"metric_Decomp.asc\"\n\nSTRING file_gzz[3] \"filename for the zz-component of the 3-metric, its radial derivative, and its time derivative\" STEERABLE=RECOVER\n{\n \".*\"\t:: \"a filename\"\n} \"metric_Decomp.asc\"\n\n\nINT column_iteration \"the column of the iteration (counting from 1)\"\n{\n -1 :: \"-1 if not avalaible\"\n 1:* :: \"column number\"\n} -1\n\nINT column_time \"the column of the time (counting from 1)\"\n{\n -1 :: \"-1 if not avalaible\"\n 1:* :: \"column number\"\n} 1\n\nINT column_radius \"the column of the radius (counting from 1)\"\n{\n -1 :: \"-1 if not avalaible\"\n 1:* :: \"column number\"\n} -1\n\nINT column_lmax \"the column of number of l-modes (counting from 1)\"\n{\n -1 :: \"-1 if not avalaible\"\n 1:* :: \"column number\"\n} -1\n\nINT column_n_variables \"the column of number of variables (counting from 1)\"\n{\n -1 :: \"-1 if not avalaible\"\n 1:* :: \"column number\"\n} -1\n\nINT column_data \"the column where the data begins (only needed for DAT format)\"\n{\n 2:* :: \"anything greater than 2\"\n} 3\n\nINT column_lapse[3] \"ASCII-format: the column of the lapse, its radial derivative, and its time derivative (always counting from 1), \\\n DAT-format: the variable number counting from 0 (if multiple variables are in one file)\"\n{\n 0:* :: \"column number\"\n} 3\n\nINT column_shiftx[3] \"ASCII-format: the column of the lapse, its radial derivative, and its time derivative (always counting from 1), \\\n DAT-format: the variable number counting from 0 (if multiple variables are in one file)\"\n{\n 0:* :: \"column number or variable number\"\n} 5\n\nINT column_shifty[3] \"ASCII-format: the column of the lapse, its radial derivative, and its time derivative (always counting from 1), \\\n DAT-format: the variable number counting from 0 (if multiple variables are in one file)\"\n{\n 0:* :: \"column number or variable number\"\n} 7\n\nINT column_shiftz[3] \"ASCII-format: the column of the lapse, its radial derivative, and its time derivative (always counting from 1), \\\n DAT-format: the variable number counting from 0 (if multiple variables are in one file)\"\n{\n 0:* :: \"column number or variable number\"\n} 9\n\nINT column_gxx[3] \"ASCII-format: the column of the xx-component of the 3-metric, its radial derivative, and its time derivative (always counting from 1), \\\n DAT-format: the variable number counting from 0 (if multiple variables are in one file)\"\n{\n 0:* :: \"column number or variable number\"\n} 11\n\nINT column_gxy[3] \"ASCII-format: the column of the xy-component of the 3-metric, its radial derivative, and its time derivative (always counting from 1), \\\n DAT-format: the variable number counting from 0 (if multiple variables are in one file)\"\n{\n 0:* :: \"column number or variable number\"\n} 13\n\nINT column_gxz[3] \"ASCII-format: the column of the xz-component of the 3-metric, its radial derivative, and its time derivative (always counting from 1), \\\n DAT-format: the variable number counting from 0 (if multiple variables are in one file)\"\n{\n 0:* :: \"column number or variable number\"\n} 15\n\nINT column_gyy[3] \"ASCII-format: the column of the yy-component of the 3-metric, its radial derivative, and its time derivative (always counting from 1), \\\n DAT-format: the variable number counting from 0 (if multiple variables are in one file)\"\n{ \n 0:* :: \"column number or variable number\"\n} 17\n\nINT column_gyz[3] \"ASCII-format: the column of the yz-component of the 3-metric, its radial derivative, and its time derivative (always counting from 1), \\\n DAT-format: the variable number counting from 0 (if multiple variables are in one file)\"\n{\n 0:* :: \"column number or variable number\"\n} 19\n\nINT column_gzz[3] \"ASCII-format: the column of the zz-component of the 3-metric, its radial derivative, and its time derivative (always counting from 1), \\\n DAT-format: the variable number counting from 0 (if multiple variables are in one file)\"\n{\n 0:* :: \"column number or variable number\"\n} 21\n\n\n\n\nSHARES: NullSHRExtract\nUSES REAL cr\nUSES INT l_max\n\n\n\n", "schedule": "# Schedule definitions for thorn SphericalHarmonicRecon\n# $Header:$\n\n\n# You should schedule any routine that will use the metric\n# coefficients in GROUP MetricReconstruction. Any routine that\n# calls GetCurrentExtractionCoefs should be scheduled in this group\nSCHEDULE GROUP MetricReconstruction IN \\\n SphericalHarmonicReconRead \\\n AFTER SphericalHarmonicReconGeneric_ReadData \\\n BEFORE SphericalHarmonicReconGeneric_PostStep\n{\n} \"Group for use by external thorns to use the metric\"\n\n\nif(adjust_timestep) {\n SCHEDULE SphericalHarmonicReconGeneric_SetTimeStep at CCTK_EVOL \\\n after NullEvol_Step after NullNews_ScriVals\n {\n LANG: C\n OPTIONS: global\n } \"Set the time-step\"\n}\nSCHEDULE SphericalHarmonicReconGeneric_ReadData IN SphericalHarmonicReconRead\n{\n LANG: C\n} \"Read the world tube data and set the data flag to read\"\n\nSCHEDULE SphericalHarmonicReconGeneric_PostStep \\\n IN SphericalHarmonicReconRead AFTER \\\n SphericalHarmonicReconGeneric_ReadData\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"set data flag to unread\"\n\nSCHEDULE SphericalHarmonicReconGeneric_Startup at CCTK_INITIAL\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"startup\"\n\nSCHEDULE SphericalHarmonicReconGeneric_Startup at CCTK_POST_RECOVER_VARIABLES\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"startup after recovery\"\n\n\n\nSCHEDULE SphericalHarmonicReconGeneric_Shutdown at CCTK_TERMINATE\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Shut down\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn SphericalHarmonicReconASCII\n# $Header:$\n\n# Source files in this directory\nSRCS = get.cc read.cc startup.cc sph_database.cc vars.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n\n#CXXFLAGS += -Wall\n", diff --git a/Proca_NPScalars_Proca.json b/Proca_NPScalars_Proca.json index bf707f048b507814d727820830d92070850a8168..e7d2498aa04ccd961350e8baf485fff5576c7345 100644 --- a/Proca_NPScalars_Proca.json +++ b/Proca_NPScalars_Proca.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/canuda/Proca.git", "configuration": "", "interface": "# Interface definition for thorn NPScalars_Proca\n\nimplements: NPScalars_Proca\n\ninherits: ADMBase ProcaBase\n\n## From thorn cactusbase/Boundary:\nCCTK_INT FUNCTION \\\n Boundary_SelectGroupForBC \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, \\\n CCTK_INT IN boundary_width, \\\n CCTK_INT IN table_handle, \\\n CCTK_STRING IN group_name, \\\n CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectGroupForBC\n\nprivate:\n\nCCTK_REAL NPPsiR_group type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0 tensorparity=1'\n{\n psi4re psi0re\n}\n\nCCTK_REAL NPPsiI_group type=GF timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0 tensorparity=-1'\n{\n psi4im psi0im\n}\n\n\n# setting the tensor type to ManualCartesian since these guys behave strangely\n# under reflections\n\nCCTK_REAL NPPhi0R_group type=GF timelevels=3 tags='tensortypealias=\"ManualCartesian\" cartesianreflectionparities=\"++-\" tensorweight=0'\n{\n phi0re\n}\n\nCCTK_REAL NPPhi0I_group type=GF timelevels=3 tags='tensortypealias=\"ManualCartesian\" cartesianreflectionparities=\"--+\" tensorweight=0'\n{\n phi0im\n}\n\nCCTK_REAL NPPhi1R_group type=GF timelevels=3 tags='tensortypealias=\"ManualCartesian\" cartesianreflectionparities=\"+++\" tensorweight=0'\n{\n phi1re\n}\n\nCCTK_REAL NPPhi1I_group type=GF timelevels=3 tags='tensortypealias=\"ManualCartesian\" cartesianreflectionparities=\"---\" tensorweight=0'\n{\n phi1im\n}\n\nCCTK_REAL NPPhi2R_group type=GF timelevels=3 tags='tensortypealias=\"ManualCartesian\" cartesianreflectionparities=\"++-\" tensorweight=0'\n{\n phi2re\n}\n\nCCTK_REAL NPPhi2I_group type=GF timelevels=3 tags='tensortypealias=\"ManualCartesian\" cartesianreflectionparities=\"--+\" tensorweight=0'\n{\n phi2im\n}\n", - "params": "", + "param": "# Parameter definitions for thorn NPScalars_Proca\n\nshares: ProcaBase\nUSES CCTK_REAL mu\n\nprivate:\n\nCCTK_INT NP_order \"Second or fourth order accuracy?\" STEERABLE=recover\n{\n 2 :: \"Second order\"\n 4 :: \"Fourth order\"\n 6 :: \"Sixth order\"\n} 4\n\nBOOLEAN calc_psi \"calculate Psi0 and Psi4?\" STEERABLE=recover\n{\n} \"yes\"\n\nBOOLEAN calc_phi \"calculate Phi0, Phi1 and Phi2?\" STEERABLE=recover\n{\n} \"yes\"\n", "schedule": "# Schedule definitions for thorn NPScalars_Proca\n\nif (calc_psi)\n{\n STORAGE: NPPsiR_group[3]\n STORAGE: NPPsiI_group[3]\n}\n\nif (calc_phi)\n{\n STORAGE: NPPhi0R_group[3]\n STORAGE: NPPhi0I_group[3]\n STORAGE: NPPhi1R_group[3]\n STORAGE: NPPhi1I_group[3]\n STORAGE: NPPhi2R_group[3]\n STORAGE: NPPhi2I_group[3]\n}\n\n#=============================================================================\n# Set symmetries for NPScalars grid functions\n#=============================================================================\nschedule NPProca_symmetries AT BASEGRID\n{\n LANG: Fortran\n OPTIONS: Meta\n} \"Set symmetries for grid functions\"\n\n\n#=============================================================================\n# Calculate NPScalars grid functions\n#=============================================================================\n\nschedule GROUP CalcNPProcaScalars AT POSTINITIAL\n{\n} \"Calculate NPScalars\"\n\nschedule GROUP CalcNPProcaScalars AT ANALYSIS\n{\n} \"Calculate NPScalars\"\n\n\n## Calculate all scalars as grid functions\nschedule NPProca_calcPsiGF IN CalcNPProcaScalars\n{\n LANG: Fortran\n OPTIONS: Local\n} \"calculate grid functions\"\n\n\nschedule GROUP CalcNPProcaScalars_BC IN CalcNPProcaScalars AFTER NPProca_calcPsiGF\n{\n} \"Boundary conditions\"\n\nschedule GROUP CalcNPProcaScalars_BC AT PostRegridInitial AFTER MoL_PostStep\n{\n} \"Boundary conditions\"\n\nschedule GROUP CalcNPProcaScalars_BC AT PostRegrid AFTER MoL_PostStep\n{\n} \"Boundary conditions\"\n\nschedule GROUP CalcNPProcaScalars_BC AT PostRestrictInitial AFTER MoL_PostStep\n{\n} \"Boundary conditions\"\n\nschedule GROUP CalcNPProcaScalars_BC AT PostRestrict AFTER MoL_PostStep\n{\n} \"Boundary conditions\"\n\n\n## Call symmetry boundary conditions\nschedule NPProca_Boundaries IN CalcNPProcaScalars_BC\n{\n LANG: Fortran\n OPTIONS: level\n SYNC: NPPsiR_group\n SYNC: NPPsiI_group\n SYNC: NPPhi0R_group\n SYNC: NPPhi0I_group\n SYNC: NPPhi1R_group\n SYNC: NPPhi1I_group\n SYNC: NPPhi2R_group\n SYNC: NPPhi2I_group\n} \"Symmetry boundary conditions\"\n\nschedule GROUP ApplyBCs AS ApplyBCs_NPProca IN CalcNPProcaScalars_BC AFTER NPProca_Boundaries\n{\n} \"Apply boundary conditions\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn NPScalars_Proca\n\n# Source files in this directory\nSRCS = Basegrid.F90 \\\n NP_boundaries.F90 \\\n NP_calc_psi_gfs.F90\n\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/Proca_ProcaBase.json b/Proca_ProcaBase.json index d3deea8573fb39f1d7937ed5c21583020ea1b204..ff53fafc25c72579a0b5454a703f437d68acf514 100644 --- a/Proca_ProcaBase.json +++ b/Proca_ProcaBase.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/canuda/Proca.git", "configuration": "", "interface": "# Interface definition for thorn ProcaBase\n\nimplements: ProcaBase\n\n# These are the variables used in the paper https://arxiv.org/abs/1505.00797.\n#\n# Ei is E^i, and E_i is defined in equation (2.9) from the paper above.\n# Ai is A_i, where A_i is curly X_i defined in equation (2.8)\n# Aphi is curly X_phi, defined in equation (2.8)\n# Zeta is the hyperbolic damping variable defined in equation (2.16)\n\npublic:\n\nCCTK_REAL Ei type=gf timelevels=3 tags='tensortypealias=\"U\" tensorweight=0'\n{\n Ex Ey Ez\n} \"E^i\"\n\n# should change this time levels =1 because Bi is not evolved\nCCTK_REAL Bi type=gf timelevels=3 tags='tensortypealias=\"U\" tensorweight=0'\n{\n Bx By Bz\n} \"B^i\"\n\nCCTK_REAL Ai type=gf timelevels=3 tags='tensortypealias=\"D\" tensorweight=0'\n{\n Ax Ay Az\n} \"A_i\"\n\nCCTK_REAL Aphi type=gf timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0' \"Aphi = -n^mu A_mu\"\n\nCCTK_REAL Zeta type=gf timelevels=3 tags='tensortypealias=\"Scalar\" tensorweight=0' \"hyperbolic damping variable\"\n", - "params": "", + "param": "\nshares: IO\nUSES KEYWORD recover\n\n\nrestricted:\n\nKEYWORD evolution_method \"Proca variables evolution method\"\n{\n \"none\" :: \"Proca variables are not evolved\"\n} \"none\"\n\nKEYWORD initial_Proca \"initial data for Proca field\"\n{\n \"none\" :: \"Proca variables are not initialized\"\n} \"none\"\n\n\nCCTK_REAL mu \"mass of the vector field\"\n{\n 0:* :: \"any non-negative number\"\n} 0\n\nCCTK_INT n_Zeta \"n power of outgoing boundary r^n fall off rate for Zeta\"\n{\n 0:4 :: \"??\"\n} 3\n\nCCTK_INT n_Aphi \"n power of outgoing boundary r^n fall off rate for Aphi\"\n{\n 0:4 :: \"i guess 3\"\n} 3\n\nCCTK_INT n_E[3] \"n power of outgoing boundary r^n fall off rate for E^i\"\n{\n 0:4 :: \"2, i guess\"\n} 2\n\n\nCCTK_INT n_B[3] \"n power of outgoing boundary r^n fall off rate for B^i\"\n{\n 0:4 :: \"2, i guess\"\n} 2\n\nCCTK_INT n_A[3] \"n power of outgoing boundary r^n fall off rate for A_i\"\n{\n 0:4 :: \"i guess 2...\"\n} 2\n\nCCTK_REAL Aphi0 \"asymptotic value for Aphi\"\n{\n *:* :: \"\"\n} 0\n\nCCTK_REAL E0[3] \"asymptotic value for E^i\"\n{\n *:* :: \"\"\n} 0\n\n\nCCTK_REAL B0[3] \"asymptotic value for B^i\"\n{\n *:* :: \"\"\n} 0\n\nCCTK_REAL A0[3] \"asymptotic value for A_i\"\n{\n *:* :: \"\"\n} 0\n", "schedule": "# Schedule definitions\n\nSTORAGE: Bi[3] Ei[3] Ai[3] Aphi[3] Zeta[3]\n\nschedule proca_symmetries at BASEGRID\n{\n LANG: Fortran\n OPTIONS: Global\n} \"Register symmetries of the grid functions\"\n\n", "src": { "make.code.defn": "\n# Source files in this directory\nSRCS = Proca_Symmetries.F90\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/Proca_ProcaEvolve.json b/Proca_ProcaEvolve.json index e1754efe698572b587c16caf9b23ed279a619bc0..7108c7533c37059754d468373ce610a4f72789ef 100644 --- a/Proca_ProcaEvolve.json +++ b/Proca_ProcaEvolve.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/canuda/Proca.git", "configuration": "", "interface": "# Interface definition for thorn ProcaEvolve\n\nimplements: ProcaEvolve\ninherits: ADMBase Tmunubase ProcaBase Boundary\n\n\nCCTK_INT FUNCTION \\\n Boundary_SelectVarForBC \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, \\\n CCTK_INT IN boundary_width, \\\n CCTK_INT IN table_handle, \\\n CCTK_STRING IN var_name, \\\n CCTK_STRING IN bc_name)\nREQUIRES FUNCTION Boundary_SelectVarForBC\n\nCCTK_INT FUNCTION \\\n Boundary_SelectGroupForBC \\\n (CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, \\\n CCTK_INT IN boundary_width, \\\n CCTK_INT IN table_handle, \\\n CCTK_STRING IN group_name, \\\n CCTK_STRING IN bc_name)\nREQUIRES FUNCTION Boundary_SelectGroupForBC\n\nCCTK_INT FUNCTION \\\n NewRad_Apply \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_REAL ARRAY IN var, \\\n CCTK_REAL ARRAY INOUT rhs, \\\n CCTK_REAL IN var0, \\\n CCTK_REAL IN v0, \\\n CCTK_INT IN radpower)\nREQUIRES FUNCTION NewRad_Apply\n\n####################################################\n### Functions provided by MoL for registration ###\n####################################################\n\nCCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\nCCTK_INT FUNCTION MoLRegisterEvolvedGroup(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\nCCTK_INT FUNCTION MoLRegisterSaveAndRestoreGroup(CCTK_INT IN SandRIndex)\nCCTK_INT FUNCTION MoLRegisterConstrainedGroup(CCTK_INT IN ConstrainedIndex)\n\nUSES FUNCTION MoLRegisterEvolved\nUSES FUNCTION MoLRegisterEvolvedGroup\nUSES FUNCTION MoLRegisterSaveAndRestoreGroup\nUSES FUNCTION MoLRegisterConstrainedGroup\n\npublic:\n\n\n# Right-hand sides\n#------------------\nCCTK_REAL rhs_Ei type=gf tags='tensortypealias=\"U\" tensorweight=0 prolongation=\"none\" Checkpoint=\"no\"'\n{\n rhs_Ex rhs_Ey rhs_Ez\n} \"right hand sides for E^i evolution equations\"\n\nCCTK_REAL rhs_Ai type=gf tags='tensortypealias=\"D\" tensorweight=0 prolongation=\"none\" Checkpoint=\"no\"'\n{\n rhs_Ax rhs_Ay rhs_Az\n} \"right hand sides for A_i evolution equations\"\n\nCCTK_REAL rhs_Aphi type=gf tags='tensortypealias=\"Scalar\" tensorweight=0 prolongation=\"none\" Checkpoint=\"no\"' \"right hand sides for Aphi evolution equation\"\n\nCCTK_REAL rhs_Zeta type=gf tags='tensortypealias=\"Scalar\" tensorweight=0 prolongation=\"none\" Checkpoint=\"no\"' \"right hand sides for Zeta evolution equation\"\n\n# BSSN-like variables\n#---------------------\nCCTK_REAL hmetric type=gf tags='tensortypealias=\"DD_sym\" tensorweight=-0.66666666666666666667 prolongation=\"none\" Checkpoint=\"no\"'\n{\n hxx hxy hxz hyy hyz hzz\n} \"\\tilde gamma_ij\"\n\nCCTK_REAL conf_fac_chi type=gf tags='tensortypealias=\"Scalar\" tensorweight=-0.66666666666666666667 prolongation=\"none\" Checkpoint=\"no\"'\n{\n chi\n} \"conformal factor \\chi\"\n\nCCTK_REAL trk type=gf tags='tensortypealias=\"Scalar\" tensorweight=0 prolongation=\"none\" Checkpoint=\"no\"'\n{\n tracek\n} \"Tr(K)\"\n", - "params": "", + "param": "# Parameter definitions for thorn ProcaEvolve\n\nshares: ProcaBase\nUSES CCTK_REAL mu\nUSES CCTK_REAL E0\nUSES CCTK_REAL B0\nUSES CCTK_REAL A0\nUSES CCTK_REAL Aphi0\nUSES CCTK_INT n_E\nUSES CCTK_INT n_B\nUSES CCTK_INT n_A\nUSES CCTK_INT n_Aphi\nUSES CCTK_INT n_Zeta\n\nEXTENDS KEYWORD evolution_method \"\"\n{\n \"ProcaEvolve\" :: \"Use ProcaEvolve to evolve Proca variables\"\n}\n\n\nshares: MethodOfLines\nUSES CCTK_INT MoL_Num_Evolved_Vars\nUSES CCTK_INT MoL_Num_Constrained_Vars\nUSES CCTK_INT MoL_Num_SaveAndRestore_Vars\n\n\nrestricted:\n\nCCTK_INT ProcaEvolve_MaxNumEvolvedVars \"The maximum number of evolved variables used by ProcaEvolve\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Evolved_Vars\n{\n 8:8 :: \"Just 8: E^i, A_i, Aphi, Zeta\"\n} 8\n\nCCTK_INT ProcaEvolve_MaxNumConstrainedVars \"The maximum number of constrained variables used by ProcaEvolve\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Constrained_Vars\n{\n 0:0 :: \"none\"\n} 0\n\nCCTK_INT ProcaEvolve_MaxNumSandRVars \"The maximum number of save and restore variables used by ProcaEvolve\" ACCUMULATOR-BASE=MethodofLines::MoL_Num_SaveAndRestore_Vars\n{\n 16:16 :: \"lapse, shift, metric, and extrinsic curvature\"\n} 16\n\n\nprivate:\n\nCCTK_INT derivs_order \"Order for derivatives\"\n{\n 4 :: \"4th order stencils\"\n 6 :: \"6th order stencils\"\n} 4\n\nBOOLEAN use_advection_stencils \"Use lop-sided stencils for advection derivs\"\n{\n} \"yes\"\n\nCCTK_REAL kappa \"Damping parameter for Maxwell equations\"\n{\n 0:* :: \"non-negative\"\n} 1\n\nCCTK_REAL Zeta_Omega_fac \"Set to zero to not evolve Zeta and Omega\"\n{\n *:* :: \"zero or one\"\n} 1\n\nCCTK_REAL chi_floor \"Minimal value of abs(chi)\"\n{\n *:* :: \"Any value possible\"\n} 1.0d-05\n\nREAL conf_fac_exponent \"Exponent n for hgamma_ij = chi^n gamma_ij conformal decomposition\"\n{\n (*:*) :: \"1 or 2 are good choices\"\n} 1\n", "schedule": "# Schedule definitions for thorn ProcaEvolve\n\n# Schedule Proca evolution if evolution_method=ProcaEvolve\nif (CCTK_EQUALS (evolution_method, \"ProcaEvolve\")) {\n\n STORAGE: rhs_Ei rhs_Ai rhs_Aphi rhs_Zeta\n STORAGE: hmetric conf_fac_chi trk\n\n schedule Proca_InitSymBound at BASEGRID\n {\n LANG: Fortran\n OPTIONS: META\n } \"Schedule symmetries\"\n\n schedule Proca_zero_rhs at BASEGRID after Proca_InitSymBound\n {\n LANG: Fortran\n } \"set all rhs functions to zero to prevent spurious nans\"\n\n schedule Proca_RegisterVars in MoL_Register\n {\n LANG: C\n OPTIONS: META\n } \"Register variables for MoL\"\n\n schedule Proca_calc_rhs in MoL_CalcRHS as Proca_CalcRHS\n {\n LANG: Fortran\n } \"MoL RHS calculation for Proca variables\"\n\n schedule Proca_calc_rhs_bdry in MoL_CalcRHS as Proca_CalcRHS_Bdry \\\n after Proca_CalcRHS\n {\n LANG: Fortran\n } \"MoL boundary RHS calculation for Proca variables\"\n\n\n schedule Proca_Boundaries in MoL_PostStep\n {\n LANG: Fortran\n OPTIONS: LEVEL\n SYNC: ProcaBase::Ei\n SYNC: ProcaBase::Ai\n SYNC: ProcaBase::Aphi\n SYNC: ProcaBase::Zeta\n } \"MoL boundary enforcement for Proca variables\"\n\n schedule Proca_calc_B in MoL_PostStep after Proca_Boundaries\n {\n LANG: Fortran\n SYNC: ProcaBase::Bi\n } \"Calculate magnetic field\"\n\n schedule GROUP ApplyBCs as Proca_ApplyBCs in MoL_PostStep after Proca_Boundaries\n {\n } \"Apply boundary conditions\"\n\n schedule Proca_calc_Tmunu in AddToTmunu as Proca_AddToTmunu\n {\n LANG: Fortran\n } \"Compute the energy-momentum tensor\"\n\n}\n", "src": { "Proca_RegisterVars.c": "\n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Parameters.h\"\n\nvoid Proca_RegisterVars(CCTK_ARGUMENTS)\n{\n DECLARE_CCTK_ARGUMENTS;\n DECLARE_CCTK_PARAMETERS;\n\n CCTK_INT ierr = 0, group, rhs, var;\n\n // register evolution and rhs gridfunction groups with MoL\n\n /* metric and extrinsic curvature */\n group = CCTK_GroupIndex(\"ADMBase::lapse\");\n ierr += MoLRegisterSaveAndRestoreGroup(group);\n group = CCTK_GroupIndex(\"ADMBase::shift\");\n ierr += MoLRegisterSaveAndRestoreGroup(group);\n group = CCTK_GroupIndex(\"ADMBase::metric\");\n ierr += MoLRegisterSaveAndRestoreGroup(group);\n group = CCTK_GroupIndex(\"ADMBase::curv\");\n ierr += MoLRegisterSaveAndRestoreGroup(group);\n\n /* Ei and rhs_Ei */\n group = CCTK_GroupIndex(\"ProcaBase::Ei\");\n rhs = CCTK_GroupIndex(\"ProcaEvolve::rhs_Ei\");\n ierr += MoLRegisterEvolvedGroup(group, rhs);\n\n /* Ai and rhs_Ai */\n group = CCTK_GroupIndex(\"ProcaBase::Ai\");\n rhs = CCTK_GroupIndex(\"ProcaEvolve::rhs_Ai\");\n ierr += MoLRegisterEvolvedGroup(group, rhs);\n\n /* Aphi and rhs_Aphi */\n var = CCTK_VarIndex(\"ProcaBase::Aphi\");\n rhs = CCTK_VarIndex(\"ProcaEvolve::rhs_Aphi\");\n ierr += MoLRegisterEvolved(var, rhs);\n\n /* Zeta and rhs_Zeta */\n var = CCTK_VarIndex(\"ProcaBase::Zeta\");\n rhs = CCTK_VarIndex(\"ProcaEvolve::rhs_Zeta\");\n ierr += MoLRegisterEvolved(var, rhs);\n\n if (ierr) CCTK_ERROR(\"Problems registering with MoL\");\n\n}\n", diff --git a/Proca_Proca_simpleID.json b/Proca_Proca_simpleID.json index fcbf88e7183e3074e61a94e4e95aee00e599d7a7..1319134ef7ec265a66a7f6f9dadbfc0cde95ea0b 100644 --- a/Proca_Proca_simpleID.json +++ b/Proca_Proca_simpleID.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/canuda/Proca.git", "configuration": "", "interface": "# Interface definition\n\nIMPLEMENTS: Proca_simpleID\n\nINHERITS: ADMBase grid ProcaBase\n", - "params": "", + "param": "# Parameter definitions\n\nSHARES: ADMBase\n\nUSES KEYWORD metric_type\n\nEXTENDS KEYWORD initial_data\n{\n \"Proca_simpleID\" :: \"Initial data for Proca fields\"\n}\n\nEXTENDS KEYWORD initial_lapse\n{\n \"psi^n\" :: \"psi^n initial lapse profile\"\n}\n\n\nRESTRICTED:\n\n\nREAL par_b \"x coordinate of the puncture\" STEERABLE=always\n{\n (0.0:*) :: \"\"\n} 1.e-5\n\nREAL par_m_plus \"mass of the m+ puncture\" STEERABLE = ALWAYS\n{\n 0.0:*) :: \"\"\n} 1.0\n\nREAL par_m_minus \"mass of the m- puncture\" STEERABLE = ALWAYS\n{\n 0.0:*) :: \"\"\n} 0.0\n\nREAL par_q_plus \"charge of the m+ puncture\" STEERABLE = ALWAYS\n{\n (*:*) :: \"\"\n} 0.0\n\nREAL par_q_minus \"charge of the m- puncture\" STEERABLE = ALWAYS\n{\n (*:*) :: \"\"\n} 0.0\n\nREAL initial_lapse_psi_exponent \"Exponent n for psi^-n initial lapse profile\"\n{\n (*:*) :: \"Should be negative\"\n} -2.0\n\nBOOLEAN swap_xz \"Swap x and z coordinates when interpolating, so that the black holes are separated in the z direction\"\n{\n} \"no\"\n", "schedule": "# Schedule definitions\n\nif (CCTK_Equals(initial_data, \"Proca_simpleID\"))\n{\n SCHEDULE Proca IN ADMBase_InitialData\n {\n LANG: C\n OPTIONS: Local\n } \"simple analytic initial data when using Proca fields\"\n}\n", "src": { "make.code.defn": "# Main make.code.defn file\n\n# Source files in this directory\nSRCS = Proca.c\n\n# Subdirectories containing source files\nSUBDIRS =\n", diff --git a/Proca_TwoPunctures_KerrProca.json b/Proca_TwoPunctures_KerrProca.json index cb283f11c552d4638725c105cfdebaf21df4995b..bc173564032b3d636f10480fce81738abd8ef5cb 100644 --- a/Proca_TwoPunctures_KerrProca.json +++ b/Proca_TwoPunctures_KerrProca.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/canuda/Proca.git", "configuration": "# Configuration definition for thorn TwoPunctures_KerrProca\n\nREQUIRES GSL\n", "interface": "# Interface definition for thorn TwoPunctures_KerrProca\n\nIMPLEMENTS: TwoPunctures_KerrProca\n\nINHERITS: ADMBase StaticConformal grid ProcaBase\n\nREAL puncture_u TYPE=gf tags='prolongation=\"none\"'\n\nCCTK_INT FUNCTION Set_Rho_ADM( \\\n CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_REAL ARRAY OUT source, \\\n CCTK_REAL ARRAY IN x, \\\n CCTK_REAL ARRAY IN y, \\\n CCTK_REAL ARRAY IN z \\\n )\nCCTK_INT FUNCTION Set_Initial_Guess_for_u( \\\n CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_REAL ARRAY OUT u, \\\n CCTK_REAL ARRAY IN x, \\\n CCTK_REAL ARRAY IN y, \\\n CCTK_REAL ARRAY IN z \\\n )\nCCTK_INT FUNCTION Rescale_Sources( \\\n CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_REAL ARRAY IN x, \\\n CCTK_REAL ARRAY IN y, \\\n CCTK_REAL ARRAY IN z, \\\n CCTK_REAL ARRAY IN psi, \\\n CCTK_REAL ARRAY IN gxx, \\\n CCTK_REAL ARRAY IN gyy, \\\n CCTK_REAL ARRAY IN gzz, \\\n CCTK_REAL ARRAY IN gxy, \\\n CCTK_REAL ARRAY IN gxz, \\\n CCTK_REAL ARRAY IN gyz \\\n )\nUSES FUNCTION Set_Rho_ADM\nUSES FUNCTION Set_Initial_Guess_for_u\nUSES FUNCTION Rescale_Sources\n\nPRIVATE:\n\nCCTK_REAL energy TYPE=scalar\n{\n E\n} \"ADM energy of the Bowen-York spacetime\"\n\nCCTK_REAL angular_momentum TYPE=scalar\n{\n J1, J2, J3\n} \"Angular momentum of the Bowen-York spacetime\"\n\nPUBLIC:\n\nCCTK_REAL bare_mass TYPE=scalar\n{\n mp mm\n} \"Bare masses of the punctures\"\n\nCCTK_REAL puncture_adm_mass TYPE=scalar\n{\n mp_adm mm_adm\n} \"ADM masses of the punctures (measured at the other spatial infinities)\"\n\n", - "params": "", + "param": "# Parameter definitions for thorn TwoPunctures_KerrProca\n\nSHARES: ADMBase\n\nUSES KEYWORD metric_type\n\nEXTENDS KEYWORD initial_data \n{\n \"twopunctures_KerrProca\" :: \"initial data for rotating black hole in quasi-isotropic coords coupled to Proca field\"\n} \n\nEXTENDS KEYWORD initial_lapse\n{\n \"twopunctures-antisymmetric\" :: \"antisymmetric lapse for two puncture black holes, -1 <= alpha <= +1\"\n \"twopunctures-averaged\" :: \"averaged lapse for two puncture black holes, 0 <= alpha <= +1\"\n \"psi^n\" :: \"Based on the initial conformal factor\"\n \"brownsville\" :: \"See Phys. Rev. D 74, 041501 (2006)\"\n \"KQI_lapse\" :: \"lapse for Kerr in quasi-isotropic coordinates, alpha=sqrt(Delta Sigma/F)\"\n}\n\nEXTENDS KEYWORD initial_shift\n{\n \"KQI_shift\" :: \"shift for Kerr in quasi-isotropic coordinates\"\n}\n\n\n\nSHARES: StaticConformal\n\nUSES KEYWORD conformal_storage\n\nSHARES: IO\n\nUSES STRING out_dir\n\nSHARES: ProcaBase\nUSES REAL mu\n\n\nRESTRICTED:\n\nBOOLEAN verbose \"Print screen output while solving\"\n{\n} \"no\"\n\nBOOLEAN keep_u_around \"Keep the variable u around after solving\"\n{\n} \"no\"\n\nBOOLEAN give_bare_mass \"User provides bare masses rather than target ADM masses\"\n{\n} \"yes\"\n\nCCTK_REAL adm_tol \"Tolerance of ADM masses when give_bare_mass=no\"\n{\n (0:*) :: \"\"\n} 1.0e-10\n\nKEYWORD grid_setup_method \"How to fill the 3D grid from the spectral grid\"\n{\n \"Taylor expansion\" :: \"use a Taylor expansion about the nearest collocation point (fast, but might be inaccurate)\"\n \"evaluation\" :: \"evaluate using all spectral coefficients (slow)\"\n} \"Taylor expansion\"\n\n\n\nINT npoints_A \"Number of coefficients in the compactified radial direction\"\n{\n 4:* :: \"\"\n} 30\n\nINT npoints_B \"Number of coefficients in the angular direction\"\n{\n 4:* :: \"\"\n} 30\n\nINT npoints_phi \"Number of coefficients in the phi direction\"\n{\n 4:*:2 :: \"\"\n} 16\n\n\n\nREAL Newton_tol \"Tolerance for Newton solver\"\n{\n (0:*) :: \"\"\n} 1.0e-10\n\nINT Newton_maxit \"Maximum number of Newton iterations\"\n{\n 0:* :: \"\"\n} 5\n\nREAL TP_epsilon \"A small number to smooth out singularities at the puncture locations\"\n{\n 0:* :: \"\"\n} 0.0\n\nREAL TP_Tiny \"Tiny number to avoid nans near or at the pucture locations\"\n{\n 0:* :: \"anything positive, usually very small\"\n} 0.0\nREAL TP_Extend_Radius \"Radius of an extended spacetime instead of the puncture\"\n{\n 0:* :: \"anything positive, should be smaller than the horizon\"\n} 0.0\n\nREAL par_b \"x coordinate of the m+ puncture\" STEERABLE=always\n{\n (0.0:*) :: \"\"\n} 1.0\n\nREAL par_m_plus \"mass of the m+ puncture\" STEERABLE = ALWAYS\n{\n 0.0:*) :: \"\"\n} 1.0\n\nREAL par_m_minus \"mass of the m- puncture\" STEERABLE = ALWAYS\n{\n 0.0:*) :: \"\"\n} 1.0\n\nREAL target_M_plus \"target ADM mass for m+\"\n{\n 0.0:*) :: \"\"\n} 0.5\n\nREAL target_M_minus \"target ADM mass for m-\"\n{\n 0.0:*) :: \"\"\n} 0.5\n\nREAL par_P_plus[3] \"momentum of the m+ puncture\"\n{\n (*:*) :: \"\"\n} 0.0\n\nREAL par_P_minus[3] \"momentum of the m- puncture\"\n{\n (*:*) :: \"\"\n} 0.0\n\nREAL par_S_plus[3] \"spin of the m+ puncture\"\n{\n (*:*) :: \"\"\n} 0.0\n\nREAL par_S_minus[3] \"spin of the m- puncture\"\n{\n (*:*) :: \"\"\n} 0.0\n\nREAL center_offset[3] \"offset b=0 to position (x,y,z)\"\n{\n (*:*) :: \"\"\n} 0.0\n\nREAL initial_lapse_psi_exponent \"Exponent n for psi^-n initial lapse profile\"\n{\n (*:*) :: \"Should be negative\"\n} -2.0\n\n\n\nBOOLEAN swap_xz \"Swap x and z coordinates when interpolating, so that the black holes are separated in the z direction\"\n{\n} \"no\"\n\n\n\nBOOLEAN use_sources \"Use sources?\"\n{\n} \"no\"\n\nBOOLEAN rescale_sources \"If sources are used - rescale them after solving?\"\n{\n} \"yes\"\n\nBOOLEAN use_external_initial_guess \"Set initial guess by external function?\"\n{\n} \"no\"\n\nBOOLEAN do_residuum_debug_output \"Output debug information about the residuum\"\n{\n} \"no\"\n\nBOOLEAN do_initial_debug_output \"Output debug information about initial guess\"\n{\n} \"no\"\n\nBOOLEAN multiply_old_lapse \"Multiply the old lapse with the new one\"\n{\n} \"no\"\n\nBOOLEAN schedule_in_ADMBase_InitialData \"Schedule in (instead of after) ADMBase_InitialData\"\n{\n} \"yes\"\n\nBOOLEAN solve_momentum_constraint \"Solve for momentum constraint?\"\n{\n} \"no\"\n\n\nREAL lambda \"factor to adjust the resolution away from the punctures\"\n{\n 0:* :: \"zero recovers the standard case\"\n} 0\n\nPRIVATE:\n\nREAL w_gaussian \"width of gaussian\"\n{\n 0:* :: \"anything positive\"\n} 1.\n\nREAL r0_gaussian \"centre for gaussian\"\n{\n 0:* :: \"anything positive\"\n} 2.\n\nREAL c00 \"amplitude for monopolar term\"\n{\n 0:* :: \"anything non-negative\"\n} 0.\n\nREAL c10 \"Y10 multipolar term\"\n{\n (*:*) :: \"\"\n} 0.0\n\nREAL c11 \"Y11 multipolar term\"\n{\n (*:*) :: \"\"\n} 0.0\n", "schedule": "# Schedule definitions for thorn TwoPunctures_KerrProca\n\nif (CCTK_Equals(initial_data, \"twopunctures_KerrProca\"))\n{\n STORAGE: energy, angular_momentum, puncture_adm_mass\n\n if (keep_u_around) {\n STORAGE: puncture_u bare_mass\n }\n\n SCHEDULE TPKP_TwoPunctures_ParamCheck AT PARAMCHECK\n {\n LANG: C\n } \"Check parameters and thorn needs\"\n\n if (schedule_in_ADMBase_InitialData)\n {\n SCHEDULE GROUP TPKP_TwoPunctures_Group IN ADMBase_InitialData\n {\n } \"TwoPunctures initial data group\"\n }\n else\n {\n SCHEDULE GROUP TPKP_TwoPunctures_Group AT Initial AFTER ADMBase_InitialData BEFORE ADMBase_PostInitial AFTER HydroBase_Initial before SetTmunu before HydroBase_Prim2ConInitial\n {\n } \"TwoPunctures initial data group\"\n }\n\n SCHEDULE TPKP_TwoPunctures IN TPKP_TwoPunctures_Group\n {\n LANG: C\n STORAGE: puncture_u bare_mass\n # SYNC: ADMBase::metric ADMBase::curv ADMBase::lapse\n } \"Create puncture black hole initial data\"\n\n SCHEDULE TPKP_TwoPunctures_Metadata IN TPKP_TwoPunctures_Group after TPKP_TwoPunctures\n {\n LANG: C\n OPTIONS: global\n } \"Output TwoPunctures metadata\"\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn TwoPunctures_KerrProca\n\n# Source files in this directory\nSRCS = CoordTransf.c Equations.c FuncAndJacobian.c Newton.c TwoPunctures.c TP_utilities.c ParamCheck.c Metadata.cc\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/WVUThorns_Baikal.json b/WVUThorns_Baikal.json index 1a476f426fe1914b9b3c3d0da12f292cb6ec7f73..eba9d3e0df8c3ef39eb27128af13c884004d103c 100644 --- a/WVUThorns_Baikal.json +++ b/WVUThorns_Baikal.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/zach_etienne/wvuthorns.git", "configuration": "", "interface": "\n# This interface.ccl file was automatically generated by NRPy+.\n# You are advised against modifying it directly; instead\n# modify the Python code that generates it.\n\n# With \"implements\", we give our thorn its unique name.\nimplements: Baikal\n\n# By \"inheriting\" other thorns, we tell the Toolkit that we\n# will rely on variables/function that exist within those\n# functions.\ninherits: ADMBase Boundary Grid MethodofLines\ninherits: TmunuBase\n\n# Needed functions and #include's:\nUSES INCLUDE: Symmetry.h\nUSES INCLUDE: Boundary.h\n\n# Needed Method of Lines function\nCCTK_INT FUNCTION MoLRegisterEvolvedGroup(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\nREQUIRES FUNCTION MoLRegisterEvolvedGroup\n\n# Needed Boundary Conditions functions\nCCTK_INT FUNCTION SymmetryTableHandleForGrid(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION SymmetryTableHandleForGrid\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectVarForBC\n\n# Needed for EinsteinEvolve/NewRad outer boundary condition driver:\nCCTK_INT FUNCTION \\\n NewRad_Apply \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_REAL ARRAY IN var, \\\n CCTK_REAL ARRAY INOUT rhs, \\\n CCTK_REAL IN var0, \\\n CCTK_REAL IN v0, \\\n CCTK_INT IN radpower)\nREQUIRES FUNCTION NewRad_Apply\n\n# Needed to convert ADM initial data into BSSN initial data (gamma extrapolation)\nCCTK_INT FUNCTION \\\n ExtrapolateGammas \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_REAL ARRAY INOUT var)\nREQUIRES FUNCTION ExtrapolateGammas\n\n# Tell the Toolkit that we want all gridfunctions\n# to be visible to other thorns by using\n# the keyword \"public\". Note that declaring these\n# gridfunctions *does not* allocate memory for them;\n# that is done by the schedule.ccl file.\n\n# FIXME: add info for symmetry conditions:\n# https://einsteintoolkit.org/thornguide/CactusBase/SymBase/documentation.html\npublic:\nCCTK_REAL evol_variables type = GF Timelevels=3\n{\n aDD00GF,aDD01GF,aDD02GF,aDD11GF,aDD12GF,aDD22GF,alphaGF,betU0GF,betU1GF,betU2GF,cfGF,hDD00GF,hDD01GF,hDD02GF,hDD11GF,hDD12GF,hDD22GF,lambdaU0GF,lambdaU1GF,lambdaU2GF,trKGF,vetU0GF,vetU1GF,vetU2GF\n} \"BSSN evolved gridfunctions\"\n\nCCTK_REAL evol_variables_rhs type = GF Timelevels=1 TAGS='InterpNumTimelevels=1 prolongation=\"none\"'\n{\n aDD00_rhsGF,aDD01_rhsGF,aDD02_rhsGF,aDD11_rhsGF,aDD12_rhsGF,aDD22_rhsGF,alpha_rhsGF,betU0_rhsGF,betU1_rhsGF,betU2_rhsGF,cf_rhsGF,hDD00_rhsGF,hDD01_rhsGF,hDD02_rhsGF,hDD11_rhsGF,hDD12_rhsGF,hDD22_rhsGF,lambdaU0_rhsGF,lambdaU1_rhsGF,lambdaU2_rhsGF,trK_rhsGF,vetU0_rhsGF,vetU1_rhsGF,vetU2_rhsGF\n} \"right-hand-side storage for BSSN evolved gridfunctions\"\n\nCCTK_REAL aux_variables type = GF Timelevels=3\n{\n HGF,MU0GF,MU1GF,MU2GF\n} \"Auxiliary gridfunctions for BSSN diagnostics\"\n\nCCTK_REAL auxevol_variables type = GF Timelevels=1 TAGS='InterpNumTimelevels=1 prolongation=\"none\"'\n{\n RbarDD00GF,RbarDD01GF,RbarDD02GF,RbarDD11GF,RbarDD12GF,RbarDD22GF,T4UU00GF,T4UU01GF,T4UU02GF,T4UU03GF,T4UU11GF,T4UU12GF,T4UU13GF,T4UU22GF,T4UU23GF,T4UU33GF\n} \"Auxiliary gridfunctions needed for evaluating the BSSN RHSs\"\n\n", - "params": "", + "param": "\n# This param.ccl file was automatically generated by NRPy+.\n# You are advised against modifying it directly; instead\n# modify the Python code that generates it.\n\nshares: ADMBase # Extends multiple ADMBase variables:\n\nEXTENDS CCTK_KEYWORD evolution_method \"evolution_method\"\n{\n \"Baikal\" :: \"\"\n}\n\nEXTENDS CCTK_KEYWORD lapse_evolution_method \"lapse_evolution_method\"\n{\n \"Baikal\" :: \"\"\n}\n\nEXTENDS CCTK_KEYWORD shift_evolution_method \"shift_evolution_method\"\n{\n \"Baikal\" :: \"\"\n}\n\nEXTENDS CCTK_KEYWORD dtshift_evolution_method \"dtshift_evolution_method\"\n{\n \"Baikal\" :: \"\"\n}\n\nEXTENDS CCTK_KEYWORD dtlapse_evolution_method \"dtlapse_evolution_method\"\n{\n \"Baikal\" :: \"\"\n}\n\nrestricted:\n\nCCTK_INT FD_order \"Finite-differencing order\"\n{\n 2:2 :: \"finite-differencing order = 2\"\n 4:4 :: \"finite-differencing order = 4\"\n} 4\n\nCCTK_REAL PI \"PI (see NRPy+ for parameter definition)\"\n{\n *:* :: \"All values accepted. NRPy+ does not restrict the allowed ranges of parameters yet.\"\n} 3.14159265358979323846264338327950288\n\nCCTK_REAL eta \"eta (see NRPy+ for parameter definition)\"\n{\n *:* :: \"All values accepted. NRPy+ does not restrict the allowed ranges of parameters yet.\"\n} 2.0\n\nCCTK_REAL diss_strength \"diss_strength (see NRPy+ for parameter definition)\"\n{\n *:* :: \"All values accepted. NRPy+ does not restrict the allowed ranges of parameters yet.\"\n} 0.1\n\nCCTK_REAL lapse_floor \"lapse_floor (see NRPy+ for parameter definition)\"\n{\n *:* :: \"All values accepted. NRPy+ does not restrict the allowed ranges of parameters yet.\"\n} 1e-15\n\n", "schedule": "\n# This schedule.ccl file was automatically generated by NRPy+.\n# You are advised against modifying it directly; instead\n# modify the Python code that generates it.\n\n# First allocate storage for one timelevel of ADMBase gridfunctions, which is the\n# bare minimum needed by NRPy+. If another thorn (e.g., ADMBase itself) requests\n# more timelevels of storage, Cactus automatically allocates the maximum requested.\nSTORAGE: ADMBase::metric[1], ADMBase::curv[1], ADMBase::lapse[1], ADMBase::shift[1]\n\n# Next allocate storage for all 3 gridfunction groups used in Baikal\nSTORAGE: evol_variables[3] # Evolution variables\nSTORAGE: evol_variables_rhs[1] # Variables storing right-hand-sides\nSTORAGE: aux_variables[3] # Diagnostics variables\nSTORAGE: auxevol_variables[1] # Single-timelevel storage of variables needed for evolutions.\n\n# The following scheduler is based on Lean/LeanBSSNMoL/schedule.ccl\n\nschedule Baikal_Banner at STARTUP\n{\n LANG: C\n OPTIONS: meta\n} \"Output ASCII art banner\"\n\nschedule Baikal_RegisterSlicing at STARTUP after Baikal_Banner\n{\n LANG: C\n OPTIONS: meta\n} \"Register 3+1 slicing condition\"\n\nschedule Baikal_Symmetry_registration at BASEGRID\n{\n LANG: C\n OPTIONS: Global\n} \"Register symmetries, the CartGrid3D way.\"\n\nschedule Baikal_zero_rhss at BASEGRID after Baikal_Symmetry_registration\n{\n LANG: C\n} \"Idea from Lean: set all rhs functions to zero to prevent spurious nans\"\n\nschedule Baikal_ADM_to_BSSN at CCTK_INITIAL after ADMBase_PostInitial\n{\n LANG: C\n OPTIONS: Local\n SYNC: evol_variables\n} \"Convert initial data into BSSN variables\"\n\nschedule GROUP ApplyBCs as Baikal_ApplyBCs at CCTK_INITIAL after Baikal_ADM_to_BSSN\n{\n} \"Apply boundary conditions\"\n\n\n# MoL: registration\n\nschedule Baikal_MoL_registration in MoL_Register\n{\n LANG: C\n OPTIONS: META\n} \"Register variables for MoL\"\n\n\n# MoL: compute RHSs, etc\n\nschedule Baikal_driver_BSSN_T4UU in MoL_CalcRHS as Baikal_T4UU before Baikal_BSSN_to_ADM\n{\n LANG: C\n} \"MoL: Compute T4UU, needed for BSSN RHSs.\"\n\nschedule Baikal_driver_pt1_BSSN_Ricci in MoL_CalcRHS as Baikal_Ricci before Baikal_RHS\n{\n LANG: C\n} \"MoL: Compute Ricci tensor\"\n\nschedule Baikal_driver_pt2_BSSN_RHSs in MoL_CalcRHS as Baikal_RHS after Baikal_Ricci\n{\n LANG: C\n} \"MoL: Evaluate BSSN RHSs\"\n\nschedule Baikal_NewRad in MoL_CalcRHS after Baikal_RHS\n{\n LANG: C\n} \"NewRad boundary conditions, scheduled right after RHS eval.\"\n\nschedule Baikal_floor_the_lapse in MoL_PostStep before Baikal_enforce_detgammabar_constraint before BC_Update\n{\n LANG: C\n} \"Set lapse = max(lapse_floor, lapse)\"\n\nschedule Baikal_enforce_detgammabar_constraint in MoL_PostStep before BC_Update\n{\n LANG: C\n} \"Enforce detgammabar = detgammahat (= 1 in Cartesian)\"\n\nschedule Baikal_BoundaryConditions_evolved_gfs in MoL_PostStep\n{\n LANG: C\n OPTIONS: LEVEL\n SYNC: evol_variables\n} \"Apply boundary conditions and perform AMR+interprocessor synchronization\"\n\nschedule GROUP ApplyBCs as Baikal_ApplyBCs in MoL_PostStep after Baikal_BoundaryConditions_evolved_gfs\n{\n} \"Group for applying boundary conditions\"\n\n\n# Next update ADM quantities\n\nschedule Baikal_BSSN_to_ADM in MoL_PostStep after Baikal_ApplyBCs before ADMBase_SetADMVars\n{\n LANG: C\n OPTIONS: Local\n} \"Perform BSSN-to-ADM conversion. Useful for diagnostics.\"\n\n# Compute Hamiltonian & momentum constraints\n\nschedule Baikal_driver_BSSN_T4UU in MoL_PseudoEvolution before Baikal_BSSN_constraints\n{\n LANG: C\n OPTIONS: Local\n} \"MoL_PseudoEvolution: Compute T4UU, needed for BSSN constraints\"\n\n\nschedule Baikal_BSSN_constraints in MoL_PseudoEvolution\n{\n LANG: C\n OPTIONS: Local\n} \"Compute BSSN (Hamiltonian and momentum) constraints\"\n\nschedule Baikal_BoundaryConditions_aux_gfs in MoL_PseudoEvolution after Baikal_BSSN_constraints\n{\n LANG: C\n OPTIONS: LEVEL\n SYNC: aux_variables\n} \"Enforce symmetry BCs in constraint computation\"\n\n\nschedule Baikal_BSSN_to_ADM in MoL_PseudoEvolution after Baikal_BoundaryConditions_aux_gfs\n{\n LANG: C\n OPTIONS: Local\n} \"Perform BSSN-to-ADM conversion in MoL_PseudoEvolution. Needed for proper HydroBase integration.\"\n\nschedule GROUP ApplyBCs as Baikal_auxgfs_ApplyBCs in MoL_PseudoEvolution after Baikal_BoundaryConditions_aux_gfs\n{\n} \"Apply boundary conditions\"\n", "src": { "zero_rhss.c": "\n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Parameters.h\"\n#include \"Symmetry.h\"\n\nvoid Baikal_zero_rhss(CCTK_ARGUMENTS)\n{\n DECLARE_CCTK_ARGUMENTS;\n DECLARE_CCTK_PARAMETERS;\n#pragma omp parallel for\nfor (int i2 = 0; i2 < cctk_lsh[2]; i2++) {\n for (int i1 = 0; i1 < cctk_lsh[1]; i1++) {\n for (int i0 = 0; i0 < cctk_lsh[0]; i0++) {\n aDD00_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n aDD01_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n aDD02_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n aDD11_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n aDD12_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n aDD22_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n alpha_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n betU0_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n betU1_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n betU2_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n cf_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n hDD00_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n hDD01_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n hDD02_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n hDD11_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n hDD12_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n hDD22_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n lambdaU0_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n lambdaU1_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n lambdaU2_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n trK_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n vetU0_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n vetU1_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n vetU2_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n \n } // END LOOP: for (int i0 = 0; i0 < cctk_lsh[0]; i0++)\n } // END LOOP: for (int i1 = 0; i1 < cctk_lsh[1]; i1++)\n} // END LOOP: for (int i2 = 0; i2 < cctk_lsh[2]; i2++)\n}\n", diff --git a/WVUThorns_BaikalVacuum.json b/WVUThorns_BaikalVacuum.json index 3fbd6288ea86c70f5ecd810a73fcdce34d8f586f..955d178e1898b6b6bc1da5ab43b577de2104a4ad 100644 --- a/WVUThorns_BaikalVacuum.json +++ b/WVUThorns_BaikalVacuum.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/zach_etienne/wvuthorns.git", "configuration": "", "interface": "\n# This interface.ccl file was automatically generated by NRPy+.\n# You are advised against modifying it directly; instead\n# modify the Python code that generates it.\n\n# With \"implements\", we give our thorn its unique name.\nimplements: BaikalVacuum\n\n# By \"inheriting\" other thorns, we tell the Toolkit that we\n# will rely on variables/function that exist within those\n# functions.\ninherits: ADMBase Boundary Grid MethodofLines\n\n# Needed functions and #include's:\nUSES INCLUDE: Symmetry.h\nUSES INCLUDE: Boundary.h\n\n# Needed Method of Lines function\nCCTK_INT FUNCTION MoLRegisterEvolvedGroup(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\nREQUIRES FUNCTION MoLRegisterEvolvedGroup\n\n# Needed Boundary Conditions functions\nCCTK_INT FUNCTION SymmetryTableHandleForGrid(CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION SymmetryTableHandleForGrid\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nUSES FUNCTION Boundary_SelectVarForBC\n\n# Needed for EinsteinEvolve/NewRad outer boundary condition driver:\nCCTK_INT FUNCTION \\\n NewRad_Apply \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_REAL ARRAY IN var, \\\n CCTK_REAL ARRAY INOUT rhs, \\\n CCTK_REAL IN var0, \\\n CCTK_REAL IN v0, \\\n CCTK_INT IN radpower)\nREQUIRES FUNCTION NewRad_Apply\n\n# Needed to convert ADM initial data into BSSN initial data (gamma extrapolation)\nCCTK_INT FUNCTION \\\n ExtrapolateGammas \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_REAL ARRAY INOUT var)\nREQUIRES FUNCTION ExtrapolateGammas\n\n# Tell the Toolkit that we want all gridfunctions\n# to be visible to other thorns by using\n# the keyword \"public\". Note that declaring these\n# gridfunctions *does not* allocate memory for them;\n# that is done by the schedule.ccl file.\n\n# FIXME: add info for symmetry conditions:\n# https://einsteintoolkit.org/thornguide/CactusBase/SymBase/documentation.html\npublic:\nCCTK_REAL evol_variables type = GF Timelevels=3\n{\n aDD00GF,aDD01GF,aDD02GF,aDD11GF,aDD12GF,aDD22GF,alphaGF,betU0GF,betU1GF,betU2GF,cfGF,hDD00GF,hDD01GF,hDD02GF,hDD11GF,hDD12GF,hDD22GF,lambdaU0GF,lambdaU1GF,lambdaU2GF,trKGF,vetU0GF,vetU1GF,vetU2GF\n} \"BSSN evolved gridfunctions\"\n\nCCTK_REAL evol_variables_rhs type = GF Timelevels=1 TAGS='InterpNumTimelevels=1 prolongation=\"none\"'\n{\n aDD00_rhsGF,aDD01_rhsGF,aDD02_rhsGF,aDD11_rhsGF,aDD12_rhsGF,aDD22_rhsGF,alpha_rhsGF,betU0_rhsGF,betU1_rhsGF,betU2_rhsGF,cf_rhsGF,hDD00_rhsGF,hDD01_rhsGF,hDD02_rhsGF,hDD11_rhsGF,hDD12_rhsGF,hDD22_rhsGF,lambdaU0_rhsGF,lambdaU1_rhsGF,lambdaU2_rhsGF,trK_rhsGF,vetU0_rhsGF,vetU1_rhsGF,vetU2_rhsGF\n} \"right-hand-side storage for BSSN evolved gridfunctions\"\n\nCCTK_REAL aux_variables type = GF Timelevels=3\n{\n HGF,MU0GF,MU1GF,MU2GF\n} \"Auxiliary gridfunctions for BSSN diagnostics\"\n\nCCTK_REAL auxevol_variables type = GF Timelevels=1 TAGS='InterpNumTimelevels=1 prolongation=\"none\"'\n{\n RbarDD00GF,RbarDD01GF,RbarDD02GF,RbarDD11GF,RbarDD12GF,RbarDD22GF\n} \"Auxiliary gridfunctions needed for evaluating the BSSN RHSs\"\n\n", - "params": "", + "param": "\n# This param.ccl file was automatically generated by NRPy+.\n# You are advised against modifying it directly; instead\n# modify the Python code that generates it.\n\nshares: ADMBase # Extends multiple ADMBase variables:\n\nEXTENDS CCTK_KEYWORD evolution_method \"evolution_method\"\n{\n \"BaikalVacuum\" :: \"\"\n}\n\nEXTENDS CCTK_KEYWORD lapse_evolution_method \"lapse_evolution_method\"\n{\n \"BaikalVacuum\" :: \"\"\n}\n\nEXTENDS CCTK_KEYWORD shift_evolution_method \"shift_evolution_method\"\n{\n \"BaikalVacuum\" :: \"\"\n}\n\nEXTENDS CCTK_KEYWORD dtshift_evolution_method \"dtshift_evolution_method\"\n{\n \"BaikalVacuum\" :: \"\"\n}\n\nEXTENDS CCTK_KEYWORD dtlapse_evolution_method \"dtlapse_evolution_method\"\n{\n \"BaikalVacuum\" :: \"\"\n}\n\nrestricted:\n\nCCTK_INT FD_order \"Finite-differencing order\"\n{\n 4:4 :: \"finite-differencing order = 4\"\n 6:6 :: \"finite-differencing order = 6\"\n 8:8 :: \"finite-differencing order = 8\"\n} 4\n\nCCTK_REAL PI \"PI (see NRPy+ for parameter definition)\"\n{\n *:* :: \"All values accepted. NRPy+ does not restrict the allowed ranges of parameters yet.\"\n} 3.14159265358979323846264338327950288\n\nCCTK_REAL eta \"eta (see NRPy+ for parameter definition)\"\n{\n *:* :: \"All values accepted. NRPy+ does not restrict the allowed ranges of parameters yet.\"\n} 2.0\n\nCCTK_REAL diss_strength \"diss_strength (see NRPy+ for parameter definition)\"\n{\n *:* :: \"All values accepted. NRPy+ does not restrict the allowed ranges of parameters yet.\"\n} 0.1\n\nCCTK_REAL lapse_floor \"lapse_floor (see NRPy+ for parameter definition)\"\n{\n *:* :: \"All values accepted. NRPy+ does not restrict the allowed ranges of parameters yet.\"\n} 1e-15\n\n", "schedule": "\n# This schedule.ccl file was automatically generated by NRPy+.\n# You are advised against modifying it directly; instead\n# modify the Python code that generates it.\n\n# First allocate storage for one timelevel of ADMBase gridfunctions, which is the\n# bare minimum needed by NRPy+. If another thorn (e.g., ADMBase itself) requests\n# more timelevels of storage, Cactus automatically allocates the maximum requested.\nSTORAGE: ADMBase::metric[1], ADMBase::curv[1], ADMBase::lapse[1], ADMBase::shift[1]\n\n# Next allocate storage for all 3 gridfunction groups used in BaikalVacuum\nSTORAGE: evol_variables[3] # Evolution variables\nSTORAGE: evol_variables_rhs[1] # Variables storing right-hand-sides\nSTORAGE: aux_variables[3] # Diagnostics variables\nSTORAGE: auxevol_variables[1] # Single-timelevel storage of variables needed for evolutions.\n\n# The following scheduler is based on Lean/LeanBSSNMoL/schedule.ccl\n\nschedule BaikalVacuum_Banner at STARTUP\n{\n LANG: C\n OPTIONS: meta\n} \"Output ASCII art banner\"\n\nschedule BaikalVacuum_RegisterSlicing at STARTUP after BaikalVacuum_Banner\n{\n LANG: C\n OPTIONS: meta\n} \"Register 3+1 slicing condition\"\n\nschedule BaikalVacuum_Symmetry_registration at BASEGRID\n{\n LANG: C\n OPTIONS: Global\n} \"Register symmetries, the CartGrid3D way.\"\n\nschedule BaikalVacuum_zero_rhss at BASEGRID after BaikalVacuum_Symmetry_registration\n{\n LANG: C\n} \"Idea from Lean: set all rhs functions to zero to prevent spurious nans\"\n\nschedule BaikalVacuum_ADM_to_BSSN at CCTK_INITIAL after ADMBase_PostInitial\n{\n LANG: C\n OPTIONS: Local\n SYNC: evol_variables\n} \"Convert initial data into BSSN variables\"\n\nschedule GROUP ApplyBCs as BaikalVacuum_ApplyBCs at CCTK_INITIAL after BaikalVacuum_ADM_to_BSSN\n{\n} \"Apply boundary conditions\"\n\n\n# MoL: registration\n\nschedule BaikalVacuum_MoL_registration in MoL_Register\n{\n LANG: C\n OPTIONS: META\n} \"Register variables for MoL\"\n\n\n# MoL: compute RHSs, etc\n\nschedule BaikalVacuum_driver_pt1_BSSN_Ricci in MoL_CalcRHS as BaikalVacuum_Ricci before BaikalVacuum_RHS\n{\n LANG: C\n} \"MoL: Compute Ricci tensor\"\n\nschedule BaikalVacuum_driver_pt2_BSSN_RHSs in MoL_CalcRHS as BaikalVacuum_RHS after BaikalVacuum_Ricci\n{\n LANG: C\n} \"MoL: Evaluate BSSN RHSs\"\n\nschedule BaikalVacuum_NewRad in MoL_CalcRHS after BaikalVacuum_RHS\n{\n LANG: C\n} \"NewRad boundary conditions, scheduled right after RHS eval.\"\n\nschedule BaikalVacuum_floor_the_lapse in MoL_PostStep before BaikalVacuum_enforce_detgammabar_constraint before BC_Update\n{\n LANG: C\n} \"Set lapse = max(lapse_floor, lapse)\"\n\nschedule BaikalVacuum_enforce_detgammabar_constraint in MoL_PostStep before BC_Update\n{\n LANG: C\n} \"Enforce detgammabar = detgammahat (= 1 in Cartesian)\"\n\nschedule BaikalVacuum_BoundaryConditions_evolved_gfs in MoL_PostStep\n{\n LANG: C\n OPTIONS: LEVEL\n SYNC: evol_variables\n} \"Apply boundary conditions and perform AMR+interprocessor synchronization\"\n\nschedule GROUP ApplyBCs as BaikalVacuum_ApplyBCs in MoL_PostStep after BaikalVacuum_BoundaryConditions_evolved_gfs\n{\n} \"Group for applying boundary conditions\"\n\n\n# Next update ADM quantities\n\nschedule BaikalVacuum_BSSN_to_ADM in MoL_PostStep after BaikalVacuum_ApplyBCs before ADMBase_SetADMVars\n{\n LANG: C\n OPTIONS: Local\n} \"Perform BSSN-to-ADM conversion. Useful for diagnostics.\"\n\n# Compute Hamiltonian & momentum constraints\n\n\nschedule BaikalVacuum_BSSN_constraints in MoL_PseudoEvolution\n{\n LANG: C\n OPTIONS: Local\n} \"Compute BSSN (Hamiltonian and momentum) constraints\"\n\nschedule BaikalVacuum_BoundaryConditions_aux_gfs in MoL_PseudoEvolution after BaikalVacuum_BSSN_constraints\n{\n LANG: C\n OPTIONS: LEVEL\n SYNC: aux_variables\n} \"Enforce symmetry BCs in constraint computation\"\n\n\nschedule GROUP ApplyBCs as BaikalVacuum_auxgfs_ApplyBCs in MoL_PseudoEvolution after BaikalVacuum_BoundaryConditions_aux_gfs\n{\n} \"Apply boundary conditions\"\n", "src": { "zero_rhss.c": "\n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Parameters.h\"\n#include \"Symmetry.h\"\n\nvoid BaikalVacuum_zero_rhss(CCTK_ARGUMENTS)\n{\n DECLARE_CCTK_ARGUMENTS;\n DECLARE_CCTK_PARAMETERS;\n#pragma omp parallel for\nfor (int i2 = 0; i2 < cctk_lsh[2]; i2++) {\n for (int i1 = 0; i1 < cctk_lsh[1]; i1++) {\n for (int i0 = 0; i0 < cctk_lsh[0]; i0++) {\n aDD00_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n aDD01_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n aDD02_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n aDD11_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n aDD12_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n aDD22_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n alpha_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n betU0_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n betU1_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n betU2_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n cf_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n hDD00_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n hDD01_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n hDD02_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n hDD11_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n hDD12_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n hDD22_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n lambdaU0_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n lambdaU1_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n lambdaU2_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n trK_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n vetU0_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n vetU1_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n vetU2_rhsGF[CCTK_GFINDEX3D(cctkGH,i0,i1,i2)] = 0.0;\n \n } // END LOOP: for (int i0 = 0; i0 < cctk_lsh[0]; i0++)\n } // END LOOP: for (int i1 = 0; i1 < cctk_lsh[1]; i1++)\n} // END LOOP: for (int i2 = 0; i2 < cctk_lsh[2]; i2++)\n}\n", diff --git a/WVUThorns_Convert_to_HydroBase.json b/WVUThorns_Convert_to_HydroBase.json index 41c7d650ded8bc71295ae45ea9397fe3126d322c..98be6c6a571e22667a56ad77b43c4f75fa2007b9 100644 --- a/WVUThorns_Convert_to_HydroBase.json +++ b/WVUThorns_Convert_to_HydroBase.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/zach_etienne/wvuthorns.git", "configuration": "", "interface": "# Interface definition for thorn Convert_to_HydroBase\n# $Header:$\n\nimplements: Convert_to_HydroBase\ninherits: grid HydroBase ADMBase IllinoisGRMHD\n\nuses include header: IllinoisGRMHD_headers.h", - "params": "", + "param": "# Parameter definitions for thorn convert_to_HydroBase\n# $Header:$\n\n#############################################################################\n### import HydroBase & ADMBase parameters\n\nshares: HydroBase\nUSES CCTK_INT timelevels\n\nshares: ADMBase\nUSES CCTK_INT lapse_timelevels\nUSES CCTK_INT shift_timelevels\nUSES CCTK_INT metric_timelevels\n\nshares: IllinoisGRMHD\nUSES CCTK_REAL gamma_th\n#############################################################################\n\nprivate:\nINT Convert_to_HydroBase_every \"How often to convert IllinoisGRMHD primitive variables to HydroBase (Valencia formulation) primitive variables? Needed for some ET-based diagnostics. NOT needed for pure IllinoisGRMHD runs.\"\n{\n 0:* :: \"zero (disable) or positive (every N iterations)\"\n} 0\n", "schedule": "# Schedule definitions for thorn Convert_to_HydroBase\n# $Header:$\n\nSCHEDULE Convert_to_HydroBase AT CCTK_INITIAL AFTER SetTmunu\n{\n LANG: C\n} \"Convert IllinoisGRMHD-native variables to HydroBase\"\n\nSCHEDULE Convert_to_HydroBase AT CCTK_ANALYSIS BEFORE compute_bi_b2_Poyn_fluxET BEFORE particle_tracerET BEFORE VolumeIntegralGroup BEFORE convert_to_MHD_3velocity AFTER ML_BSSN_evolCalcGroup\n{\n OPTIONS: GLOBAL-EARLY,LOOP-LOCAL\n LANG: C\n} \"Convert IllinoisGRMHD-native variables to HydroBase\"\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Convert_to_HydroBase\n# $Header:$\n\n# Source files in this directory\nSRCS = Convert_to_HydroBase.C\n\n# Subdirectories containing source files\nSUBDIRS =\n", diff --git a/WVUThorns_Diagnostics_Seed_Magnetic_Fields_BNS.json b/WVUThorns_Diagnostics_Seed_Magnetic_Fields_BNS.json index 6cd89ef793b05357138f2a2dffbbb3f9dc02afb6..1809a1d9137fc423478c0cc6610d1d6eaa571e02 100644 --- a/WVUThorns_Diagnostics_Seed_Magnetic_Fields_BNS.json +++ b/WVUThorns_Diagnostics_Seed_Magnetic_Fields_BNS.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/zach_etienne/wvuthorns_diagnostics.git", "configuration": "", "interface": "# Interface definition for thorn Seed_Magnetic_Fields_Privt\n\nIMPLEMENTS: Seed_Magnetic_Fields_Privt\n\nINHERITS: grid ADMBase HydroBase # IllinoisGRMHD", - "params": "", + "param": "# Parameter definitions for thorn Seed_Magnetic_Fields_Priv\n\nrestricted:\nBOOLEAN enable_IllinoisGRMHD_staggered_A_fields \"Define A fields on an IllinoisGRMHD staggered grid\"\n{\n} \"no\"\n\nREAL A_b \"Magnetic field strength parameter.\"\n{\n *:* :: \"Any real\"\n} 1e-3\n\nREAL P_cut \"Cutoff pressure, below which vector potential is set to zero. Typically set to 4% of the maximum initial pressure.\"\n{\n 0:* :: \"Positive\"\n} 1e-5\n\nREAL n_s \"Magnetic field strength pressure exponent.\"\n{\n *:* :: \"Any real\"\n} 1.0\n\n#####################\n# Binary NS case\n\n# The following parameters do not exist in param.ccl of thorn wvuthorns/Seed_Magnetic_Fields\n\n# \nBOOLEAN have_two_NSs_along_x_axis \"Do we have two NSs centered along x-axis?\"\n{\n} \"no\"\n\n# x coordinate center of NS centers\nREAL x_c1 \"x coordinate of NS1 center\"\n{\n *:* :: \"Any real\"\n} -15.2\n\nREAL x_c2 \"x coordinate of NS2 center\"\n{\n *:* :: \"Any real\"\n} 15.2\n\n# NS radii\nREAL r_NS1 \"Radius of NS1. Does not have to be perfect, but must not overlap other star.\"\n{\n 0:* :: \"Any positive\"\n} 13.5\n\nREAL r_NS2 \"Radius of NS2. Does not have to be perfect, but must not overlap other star.\"\n{\n 0:* :: \"Any positive\"\n} 13.5\n\n#####################\n# parameters for poloidal seed magnetic field\n\nKEYWORD A_field_type \"Which field structure to use.\"\n{\n \"poloidal_A_interior\" :: \"Dipole magnetic field, interior to the star\"\n \"dipolar_A_everywhere\" :: \"Dipole magnetic field everywhere\"\n} \"poloidal_A_interior\"\n\n# Current loop radii\nREAL r_zero_NS1 \"Current loop radius of NS1.\"\n{\n 0.0:*) :: \"\"\n} 1.0\n\nREAL r_zero_NS2 \"Current loop radius of NS2.\"\n{\n 0.0:*) :: \"\"\n} 1.0\n\n# Current loop magnitudes\nREAL I_zero_NS1 \"Magnetic field loop current of NS1.\"\n{\n 0.0:*) :: \"\"\n} 0.0\n\nREAL I_zero_NS2 \"Magnetic field loop current of NS2.\"\n{\n 0.0:*) :: \"\"\n} 0.0\n", "schedule": "# Schedule definitions for thorn Seed_Magnetic_Fields_Privt\n\nSTORAGE: HydroBase::rho[1],HydroBase::press[1],HydroBase::eps[1],HydroBase::vel[1],HydroBase::Bvec[1],HydroBase::Avec[1],HydroBase::Aphi[1]\n\n#STORAGE: IllinoisGRMHD::em_Ax[3],IllinoisGRMHD::em_Ay[3],IllinoisGRMHD::em_Az[3],IllinoisGRMHD::em_psi6phi[3] \n#STORAGE: IllinoisGRMHD::grmhd_primitives_allbutBi\n\n\nSCHEDULE Seed_Magnetic_Fields_Privt after Meudon_Bin_NS_initialise BEFORE IllinoisGRMHD_ID_Converter IN HydroBase_Initial\n{\n LANG: C\n} \"Set up binary neutron star seed magnetic fields.\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Seed_Magnetic_Fields_Privt\n\n# Source files in this directory\nSRCS = Seed_Magnetic_Fields.C\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/WVUThorns_Diagnostics_VolumeIntegrals_GRMHD.json b/WVUThorns_Diagnostics_VolumeIntegrals_GRMHD.json index 63379923363abe8eab30d1fb3a381797fd2fca8e..3d31d7713a7429b6faf9d4756db08fc6d8ed26dd 100644 --- a/WVUThorns_Diagnostics_VolumeIntegrals_GRMHD.json +++ b/WVUThorns_Diagnostics_VolumeIntegrals_GRMHD.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/zach_etienne/wvuthorns_diagnostics.git", "configuration": "", "interface": "# Interface definition for thorn VolumeIntegrals_GRMHD\n# $Header:$\n\nimplements: VolumeIntegrals_GRMHD\ninherits: grid ADMBase CarpetRegrid2 HydroBase ADMBase\n\nprivate:\nreal VolIntegrands TYPE=GF TIMELEVELS=1 tags='InterpNumTimelevels=1 prolongation=\"none\" Checkpoint=\"no\"'\n{\n VolIntegrand1,VolIntegrand2,VolIntegrand3,VolIntegrand4\n}\n\nreal VolIntegrals TYPE=ARRAY DISTRIB=CONSTANT DIM=2 SIZE=101,4\n{\n VolIntegral\n} \"Volume integrals, post-sum. The first dimension denotes which integral(s), and the second denotes the values of the integral(s). E.g., a center of mass volume integral will have 3 outputs.\"\n\nreal MovingSphRegionIntegrals TYPE=ARRAY DISTRIB=CONSTANT DIM=1 SIZE=101\n{\n volintegral_inside_sphere__center_x, volintegral_inside_sphere__center_y, volintegral_inside_sphere__center_z,\n volintegral_outside_sphere__center_x, volintegral_outside_sphere__center_y, volintegral_outside_sphere__center_z\n} \"Specify regions for volume integrals inside/outside spheres THAT MOVE.\"\n\nint IntegralCounterVar type = SCALAR tags='checkpoint=\"no\"'\n{\n IntegralCounter\n} \"Counter that keeps track of which integral we are calculating.\"\n\nREAL VolIntegrals_vacuum_time type = SCALAR tags='checkpoint=\"no\"'\n{\n physical_time\n} \"keeps track of the physical time, in case time coordinate is reparameterized, a la http://arxiv.org/abs/1404.6523\"\n", - "params": "", + "param": "# Parameter definitions for thorn VolumeIntegrals_GRMHD\n# $Header:$\n\nshares: grid\n\nUSES KEYWORD domain\n\n\nprivate:\n\nCCTK_INT enable_file_output \"Enable output file\" STEERABLE = RECOVER\n{\n 0:1 :: \"0 = no output; 1 = yes, output to file\"\n} 1\n\nSTRING outVolIntegral_dir \"Output directory for volume integration output files, overrides IO::out_dir\" STEERABLE = RECOVER\n{\n \".+\" :: \"A valid directory name\"\n \"^$\" :: \"An empty string to choose the default from IO::out_dir\"\n} \"\"\n\nCCTK_INT VolIntegral_out_every \"How often to compute volume integrals?\" STEERABLE = ALWAYS\n{\n 0:1000 :: \"zero (disable integration) or some other number\"\n} 0\n\nCCTK_INT NumIntegrals \"Number of volume integrals to perform\" STEERABLE = ALWAYS\n{\n 0:1000 :: \"zero (disable integration) or some other number\"\n} 0\n\nkeyword Integration_quantity_keyword[101] \"Which quantity to integrate\" STEERABLE = ALWAYS\n{\n\"nothing\" :: \"Default, null parameter\"\n\"usepreviousintegrands\" :: \"Use integrands from step(s) immediately preceeding. Useful for Swiss-cheese-type volume integrations.\"\n\"centerofmass\" :: \"Center of Mass\"\n\"restmass\" :: \"Rest Mass\"\n\"one\" :: \"Integrand = 1. Useful for debugging\"\n} \"nothing\"\n\n########################################\n\nCCTK_INT volintegral_usepreviousintegrands_num_integrands[101] \"Number of integrands for usepreviousintegrands, must be specified explicitly as information from previous integrand is not passed.\" STEERABLE = ALWAYS\n{\n 0:100 :: \"Default is set to the maximum, 4.\"\n} 4\n\n########################################\n\n# CoM integrals can be used to track a neutron star center of mass.\n# The integrand for CoM is given by alpha*u^0*rho_0*sqrt(gamma),\n# where alpha*u^0 is the Lorentz factor, Gamma.\n# Typically in a binary neutron star (BNS) simulation, the maximum\n# density is ~1, with atmosphere values surrounding the stars of at\n# most ~1e-6. The concern is that a bad conservatives-to-primitives\n# inversion called before this diagnostic might cause Gamma to\n# be extremely large. Capping Gamma at 1e4 should prevent the CoM\n# integral from being thrown off significantly, which would throw\n# off the NS tracking.\nCCTK_REAL CoM_integrand_GAMMA_SPEED_LIMIT \"\" STEERABLE=ALWAYS\n{\n 0:* :: \"Any positive number\"\n} 1e4 \n\n\n########################################\nCCTK_REAL volintegral_sphere__center_x_initial[101] \"Volume integral in a spherical region: x-coord of center(s)\" STEERABLE=ALWAYS\n{\n *:* :: \"Any number\"\n} 0\n\nCCTK_REAL volintegral_sphere__center_y_initial[101] \"Volume integral in a spherical region: y-coord of center(s)\" STEERABLE=ALWAYS\n{\n *:* :: \"Any number\"\n} 0\n\nCCTK_REAL volintegral_sphere__center_z_initial[101] \"Volume integral in a spherical region: z-coord of center(s)\" STEERABLE=ALWAYS\n{\n *:* :: \"Any number\"\n} 0\n\n########################################\n\nCCTK_REAL volintegral_inside_sphere__radius[101] \"Volume integral in a spherical region: radius of spherical region\" STEERABLE=ALWAYS\n{\n *:* :: \"Any number\"\n} 0\nCCTK_REAL volintegral_outside_sphere__radius[101] \"Volume integral outside a spherical region: radius of spherical region\" STEERABLE=ALWAYS\n{\n *:* :: \"Any number\"\n} 0\n\n########################################\n\nCCTK_INT amr_centre__tracks__volintegral_inside_sphere[101] \"Use output from volume integral to move AMR box centre N.\" STEERABLE = ALWAYS\n{\n -1:100 :: \"-1 = do not track an AMR box centre. Otherwise track AMR box centre number N = [0,100]\"\n} -1\n\n\nCCTK_INT volintegral_sphere__tracks__amr_centre[101] \"Volume integral tracks AMR box centre N.\" STEERABLE = ALWAYS\n{\n -1:100 :: \"-1 = do not track an AMR box centre. Otherwise track AMR box centre number N = [0,100]\"\n} -1\n\n\n########################################\n\nCCTK_INT verbose \"Set verbosity level: 1=useful info; 2=moderately annoying (though useful for debugging)\" STEERABLE=ALWAYS\n{\n 0:2 :: \"0 = no output; 1=useful info; 2=moderately annoying (though useful for debugging)\"\n} 1\n\n#############################################################################\n\nBOOLEAN enable_time_reparameterization \"Enable time reparameterization a la http://arxiv.org/abs/1404.6523\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nCCTK_REAL VIv_time_reparam_t0 \"Time reparameterization parameter t_0: Center of time reparameterization curve. SET TO BE SAME AS IN ImprovedPunctureGauge thorn\"\n{\n 0:* :: \"Probably don't want to set this <0, so >=0 enforced\"\n} 10.0\n\nCCTK_REAL VIv_time_reparam_w \"Time reparameterization parameter w: Width of time reparameterization curve. SET TO BE SAME AS IN ImprovedPunctureGauge thorn\"\n{\n 0:* :: \"Probably don't want to set this <0, so >=0 enforced\"\n} 5.0\n\n\n#############################################################################\n### import IOUtil parameters\n#############################################################################\nshares: IO\n\nUSES STRING out_dir\n", "schedule": "# Schedule definitions for thorn VolumeIntegrals\n# $Header:$\n\nSTORAGE: VolIntegrands,VolIntegrals,MovingSphRegionIntegrals,IntegralCounterVar,VolIntegrals_vacuum_time\n\n\n##### FILE OUTPUT STUFF #####\nif(enable_file_output) {\n\nSCHEDULE VI_GRMHD_file_output_routine_Startup AT CCTK_INITIAL\n{\n LANG: C\n} \"Create directory for VI GRMHD file output.\"\n\n# In case we change our mind about disabling file output, at a checkpoint.\nSCHEDULE VI_GRMHD_file_output_routine_Startup AT CCTK_POST_RECOVER_VARIABLES\n{\n LANG: C\n} \"Create directory for VI GRMHD file output.\"\n\n}\n\n#############################\nSCHEDULE VI_GRMHD_InitializeIntegralCounterToZero AT CCTK_INITIAL\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Initialize IntegralCounter variable to zero\"\n\nSCHEDULE VI_GRMHD_InitializeIntegralCounterToZero AT CCTK_POST_RECOVER_VARIABLES\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Initialize IntegralCounter variable to zero\"\n\nSCHEDULE VI_GRMHD_InitializeIntegralCounter before VI_GRMHD_VolumeIntegralGroup AT CCTK_ANALYSIS\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Initialize IntegralCounter variable\"\n##################\nSCHEDULE GROUP VI_GRMHD_VolumeIntegralGroup AT CCTK_ANALYSIS BEFORE CarpetLib_printtimestats BEFORE CarpetLib_printmemstats WHILE VolumeIntegrals_GRMHD::IntegralCounter\n{\n} \"Evaluate all volume integrals\"\n\nSCHEDULE VI_GRMHD_ComputeIntegrand in VI_GRMHD_VolumeIntegralGroup before DoSum\n{\n STORAGE: VolIntegrands,VolIntegrals,MovingSphRegionIntegrals\n OPTIONS: GLOBAL,LOOP-LOCAL\n LANG: C\n} \"Compute Integrand\"\n\nSCHEDULE VI_GRMHD_DoSum in VI_GRMHD_VolumeIntegralGroup after ComputeIntegrand\n{\n OPTIONS: GLOBAL\n LANG: C\n} \"Do Sum\"\n#######\nSCHEDULE VI_GRMHD_DecrementIntegralCounter in VI_GRMHD_VolumeIntegralGroup after DoSum\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Decrement IntegralCounter variable\"\n##################\nSCHEDULE VI_GRMHD_file_output after VI_GRMHD_VolumeIntegralGroup AT CCTK_ANALYSIS\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Output VolumeIntegral results to disk\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn VolumeIntegrals\n# $Header:$\n\n# Source files in this directory\nSRCS = evaluate_integrands_local.C Initialize_or_Decrement_IntegralCounter.C perform_integration_sum_global.C file_output_routines.C\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/WVUThorns_Diagnostics_VolumeIntegrals_vacuum.json b/WVUThorns_Diagnostics_VolumeIntegrals_vacuum.json index 26a0d1c6de7b8faf8dde214bd6044800a0b121b7..38a1f4c6b63066280202c6fc1af21dca6c2a9940 100644 --- a/WVUThorns_Diagnostics_VolumeIntegrals_vacuum.json +++ b/WVUThorns_Diagnostics_VolumeIntegrals_vacuum.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/zach_etienne/wvuthorns_diagnostics.git", "configuration": "", "interface": "# Interface definition for thorn VolumeIntegrals\n# $Header:$\n\nimplements: VolumeIntegrals_vacuum\ninherits: grid ADMBase CarpetRegrid2\n\nreal VolIntegrands TYPE=GF TIMELEVELS=1 tags='InterpNumTimelevels=1 prolongation=\"none\" Checkpoint=\"no\"'\n{\n VolIntegrand1,VolIntegrand2,VolIntegrand3,VolIntegrand4\n}\n\nreal VolIntegrals TYPE=ARRAY DISTRIB=CONSTANT DIM=2 SIZE=101,4\n{\n VolIntegral\n} \"Volume integrals, post-sum. The first dimension denotes which integral(s), and the second denotes the values of the integral(s). E.g., a center of mass volume integral will have 3 outputs.\"\n\nreal MovingSphRegionIntegrals TYPE=ARRAY DISTRIB=CONSTANT DIM=1 SIZE=101\n{\n volintegral_inside_sphere__center_x, volintegral_inside_sphere__center_y, volintegral_inside_sphere__center_z,\n volintegral_outside_sphere__center_x, volintegral_outside_sphere__center_y, volintegral_outside_sphere__center_z\n} \"Specify regions for volume integrals inside/outside spheres THAT MOVE.\"\n\npublic:\n\nint IntegralCounterVar type = SCALAR tags='checkpoint=\"no\"'\n{\n IntegralCounter\n} \"Counter that keeps track of which integral we are calculating.\"\n\nREAL VolIntegrals_vacuum_time type = SCALAR tags='checkpoint=\"no\"'\n{\n physical_time\n} \"keeps track of the physical time, in case time coordinate is reparameterized, a la http://arxiv.org/abs/1404.6523\"\n", - "params": "", + "param": "# Parameter definitions for thorn VolumeIntegrals\n# $Header:$\n\nshares: grid\n\nUSES KEYWORD domain\n\n\nprivate:\n\n###################################################\n# The following variables set the BSSN constraint #\n# gridfunctions that will be used by this thorn #\n###################################################\nCCTK_STRING HamiltonianVarString \"Hamiltonian constraint variable name\" STEERABLE = RECOVER\n{\n \"ML_BSSN::H\" :: \"ML_BSSN thorn Hamiltonian constraint gridfunction name\"\n \"Baikal::HGF\" :: \"Baikal thorn Hamiltonian constraint gridfunction name\"\n \"BaikalVacuum::HGF\" :: \"BaikalVacuum thorn Hamiltonian constraint gridfunction name\"\n \"LeanBSSNMoL::hc\" :: \"LeanBSSNMoL thorn Hamiltonian constraint gridfunction name\"\n \".+\" :: \"Or use you can use your own thorn's Hamiltonian constraint gridfunction name\"\n} \"ML_BSSN::H\"\n\nCCTK_STRING Momentum0VarString \"Momentum constraint variable name (x-direction)\" STEERABLE = RECOVER\n{\n \"ML_BSSN::M1\" :: \"ML_BSSN thorn momentum constraint gridfunction name\"\n \"Baikal::MU0GF\" :: \"Baikal thorn momentum constraint gridfunction name\"\n \"BaikalVacuum::MU0GF\" :: \"BaikalVacuum thorn momentum constraint gridfunction name\"\n \"LeanBSSNMoL::mcx\" :: \"LeanBSSNMoL thorn momentum constraint gridfunction name\"\n \".+\" :: \"Or use you can use your own thorn's momentum constraint gridfunction name\"\n} \"ML_BSSN::M1\"\n\nCCTK_STRING Momentum1VarString \"Momentum constraint variable name (y-direction)\" STEERABLE = RECOVER\n{\n \"ML_BSSN::M2\" :: \"ML_BSSN thorn momentum constraint gridfunction name\"\n \"Baikal::MU1GF\" :: \"Baikal thorn momentum constraint gridfunction name\"\n \"BaikalVacuum::MU1GF\" :: \"BaikalVacuum thorn momentum constraint gridfunction name\"\n \"LeanBSSNMoL::mcy\" :: \"LeanBSSNMoL thorn momentum constraint gridfunction name\"\n \".+\" :: \"Or use you can use your own thorn's momentum constraint gridfunction name\"\n} \"ML_BSSN::M2\"\n\nCCTK_STRING Momentum2VarString \"Momentum constraint variable name (z-direction)\" STEERABLE = RECOVER\n{\n \"ML_BSSN::M3\" :: \"ML_BSSN thorn momentum constraint gridfunction name\"\n \"Baikal::MU2GF\" :: \"Baikal thorn momentum constraint gridfunction name\"\n \"BaikalVacuum::MU2GF\" :: \"BaikalVacuum thorn momentum constraint gridfunction name\"\n \"LeanBSSNMoL::mcz\" :: \"LeanBSSNMoL thorn momentum constraint gridfunction name\"\n \".+\" :: \"Or use you can use your own thorn's momentum constraint gridfunction name\"\n} \"ML_BSSN::M3\"\n###################################################\n\nCCTK_INT enable_file_output \"Enable output file\" STEERABLE = RECOVER\n{\n 0:1 :: \"0 = no output; 1 = yes, output to file\"\n} 1\n\nSTRING outVolIntegral_dir \"Output directory for volume integration output files, overrides IO::out_dir\" STEERABLE = RECOVER\n{\n \".+\" :: \"A valid directory name\"\n \"^$\" :: \"An empty string to choose the default from IO::out_dir\"\n} \"\"\n\nCCTK_INT VolIntegral_out_every \"How often to compute volume integrals?\" STEERABLE = ALWAYS\n{\n 0:1000 :: \"zero (disable integration) or some other number\"\n} 0\n\nCCTK_INT NumIntegrals \"Number of volume integrals to perform\" STEERABLE = ALWAYS\n{\n 0:1000 :: \"zero (disable integration) or some other number\"\n} 0\n\nkeyword Integration_quantity_keyword[101] \"Which quantity to integrate\" STEERABLE = ALWAYS\n{\n\"nothing\" :: \"Default, null parameter\"\n\"H_M_CnstraintsL2\" :: \"Hamiltonian^2, Momentum^2\"\n\"usepreviousintegrands\" :: \"Use integrands from step(s) immediately preceeding. Useful for Swiss-cheese-type volume integrations.\"\n\"centeroflapse\" :: \"Center of Lapse\"\n\"one\" :: \"Integrand = 1. Useful for debugging\"\n\"ADM_Mass\"\t\t :: \"ADM Mass\"\n\"ADM_Momentum\"\t \t :: \"ADM Momentum\"\n\"ADM_Angular_Momentum\"\t :: \"ADM Angular Momentum\"\n} \"nothing\"\n\n########################################\n\nCCTK_INT volintegral_usepreviousintegrands_num_integrands[101] \"Number of integrands for usepreviousintegrands, must be specified explicitly as information from previous integrand is not passed.\" STEERABLE = ALWAYS\n{\n 0:100 :: \"Default is set to the maximum, 4.\"\n} 4\n\n\n########################################\nCCTK_REAL volintegral_sphere__center_x_initial[101] \"Volume integral in a spherical region: x-coord of center(s)\" STEERABLE=ALWAYS\n{\n *:* :: \"Any number\"\n} 0\n\nCCTK_REAL volintegral_sphere__center_y_initial[101] \"Volume integral in a spherical region: y-coord of center(s)\" STEERABLE=ALWAYS\n{\n *:* :: \"Any number\"\n} 0\n\nCCTK_REAL volintegral_sphere__center_z_initial[101] \"Volume integral in a spherical region: z-coord of center(s)\" STEERABLE=ALWAYS\n{\n *:* :: \"Any number\"\n} 0\n\n########################################\n\nCCTK_REAL volintegral_inside_sphere__radius[101] \"Volume integral in a spherical region: radius of spherical region\" STEERABLE=ALWAYS\n{\n *:* :: \"Any number\"\n} 0\nCCTK_REAL volintegral_outside_sphere__radius[101] \"Volume integral outside a spherical region: radius of spherical region\" STEERABLE=ALWAYS\n{\n *:* :: \"Any number\"\n} 0\n\n########################################\n\nCCTK_INT amr_centre__tracks__volintegral_inside_sphere[101] \"Use output from volume integral to move AMR box centre N.\" STEERABLE = ALWAYS\n{\n -1:100 :: \"-1 = do not track an AMR box centre. Otherwise track AMR box centre number N = [0,100]\"\n} -1\n\n\nCCTK_INT volintegral_sphere__tracks__amr_centre[101] \"Volume integral tracks AMR box centre N.\" STEERABLE = ALWAYS\n{\n -1:100 :: \"-1 = do not track an AMR box centre. Otherwise track AMR box centre number N = [0,100]\"\n} -1\n\n\n########################################\n\nCCTK_INT verbose \"Set verbosity level: 1=useful info; 2=moderately annoying (though useful for debugging)\" STEERABLE=ALWAYS\n{\n 0:2 :: \"0 = no output; 1=useful info; 2=moderately annoying (though useful for debugging)\"\n} 1\n\n#############################################################################\n\nBOOLEAN enable_time_reparameterization \"Enable time reparameterization a la http://arxiv.org/abs/1404.6523\" STEERABLE = ALWAYS\n{\n} \"no\"\n\nCCTK_REAL VIv_time_reparam_t0 \"Time reparameterization parameter t_0: Center of time reparameterization curve. SET TO BE SAME AS IN ImprovedPunctureGauge thorn\"\n{\n 0:* :: \"Probably don't want to set this <0, so >=0 enforced\"\n} 10.0\n\nCCTK_REAL VIv_time_reparam_w \"Time reparameterization parameter w: Width of time reparameterization curve. SET TO BE SAME AS IN ImprovedPunctureGauge thorn\"\n{\n 0:* :: \"Probably don't want to set this <0, so >=0 enforced\"\n} 5.0\n\n\n#############################################################################\n### import IOUtil parameters\n#############################################################################\nshares: IO\n\nUSES STRING out_dir\n", "schedule": "# Schedule definitions for thorn VolumeIntegrals\n# $Header:$\n\nSTORAGE: VolIntegrands,VolIntegrals,MovingSphRegionIntegrals,IntegralCounterVar,VolIntegrals_vacuum_time\n\n\n##### FILE OUTPUT STUFF #####\nif(enable_file_output) {\nSCHEDULE file_output_routine_Startup AT CCTK_INITIAL\n{\n LANG: C\n} \"Create directory for file output.\"\n\n# In case we change our mind about disabling file output, at a checkpoint.\nSCHEDULE file_output_routine_Startup AT CCTK_POST_RECOVER_VARIABLES\n{\n LANG: C\n} \"Create directory for file output.\"\n\n\n}\n#############################\n\nSCHEDULE InitializeIntegralCounterToZero AT CCTK_INITIAL\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Initialize IntegralCounter variable to zero\"\n\nSCHEDULE InitializeIntegralCounterToZero AT CCTK_POST_RECOVER_VARIABLES\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Initialize IntegralCounter variable to zero\"\n\nSCHEDULE InitializeIntegralCounter before VolumeIntegralGroup AT CCTK_ANALYSIS\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Initialize IntegralCounter variable\"\n\n##################\nSCHEDULE GROUP VolumeIntegralGroup AT CCTK_ANALYSIS BEFORE CarpetLib_printtimestats BEFORE CarpetLib_printmemstats WHILE VolumeIntegrals_vacuum::IntegralCounter\n{\n} \"Evaluate all volume integrals\"\n\nSCHEDULE VolumeIntegrals_vacuum_ComputeIntegrand in VolumeIntegralGroup before DoSum\n{\n STORAGE: VolIntegrands,VolIntegrals,MovingSphRegionIntegrals\n OPTIONS: GLOBAL,LOOP-LOCAL\n LANG: C\n} \"Compute Integrand\"\n\nSCHEDULE DoSum in VolumeIntegralGroup after VolumeIntegrals_vacuum_ComputeIntegrand\n{\n OPTIONS: GLOBAL\n LANG: C\n} \"Do Sum\"\n#######\nSCHEDULE DecrementIntegralCounter in VolumeIntegralGroup after DoSum\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Decrement IntegralCounter variable\"\n##################\nSCHEDULE VI_vacuum_file_output after VolumeIntegralGroup AT CCTK_ANALYSIS\n{\n LANG: C\n OPTIONS: GLOBAL\n} \"Output VolumeIntegral results to disk\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn VolumeIntegrals\n# $Header:$\n\n# Source files in this directory\nSRCS = evaluate_integrands_local.C Initialize_or_Decrement_IntegralCounter.C perform_integration_sum_global.C file_output_routines.C number_of_reductions.C\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/WVUThorns_Diagnostics_particle_tracerET.json b/WVUThorns_Diagnostics_particle_tracerET.json index c4cefc8a37f792c962c13d75987942f59191c90c..94ed1c8ad1263140e85ec584b0b2251829e806b1 100644 --- a/WVUThorns_Diagnostics_particle_tracerET.json +++ b/WVUThorns_Diagnostics_particle_tracerET.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/zach_etienne/wvuthorns_diagnostics.git", "configuration": "", "interface": "# Interface definition for thorn particle_tracerET\n# $Header:$\n\nimplements: particle_tracerET\ninherits: grid HydroBase ADMBase\n\nint RK4IterationCounterVar type = SCALAR DISTRIB=CONSTANT\n{\n RK4IterationCounter\n} \"Counter that keeps track of which RK4 iteration we are on.\"\n\nreal particle_position_arrays TYPE=ARRAY DISTRIB=CONSTANT DIM=1 SIZE=10001\n{\n particle_position_x,particle_position_y,particle_position_z,\n particle_position_x_k1,particle_position_y_k1,particle_position_z_k1,\n particle_position_x_k2,particle_position_y_k2,particle_position_z_k2,\n particle_position_x_k3,particle_position_y_k3,particle_position_z_k3,\n particle_position_x_k4,particle_position_y_k4,particle_position_z_k4,\n particle_velx,particle_vely,particle_velz\n} \"Particle positions and RK4 coefficients k1,k2,k3,k4 for each particle\"\n\n#vvvvvvv u^i/u^0 3-velocity must be used here, as it is used in MHD induction equations. This way fluid flow is consistent with MHD frozen-in condition vvvvvvv#\ncctk_real velocity_consistent_with_MHD_induction_equations type = GF TAGS='InterpNumTimelevels=1 prolongation=\"none\" Checkpoint=\"no\"'\n{\n MHDvx,MHDvy,MHDvz\n}\n#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#\n", - "params": "", + "param": "# Parameter definitions for thorn particle_tracerET\n# $Header:$\n\n#############################################################################\n### import HydroBase & ADMBase parameters\n\nshares: HydroBase\nUSES CCTK_INT timelevels\n\nshares: ADMBase\nUSES CCTK_INT lapse_timelevels\nUSES CCTK_INT shift_timelevels\nUSES CCTK_INT metric_timelevels\n\nshares: IO\nUSES STRING out_dir\n#############################################################################\n\n\nprivate:\n\nSTRING outdir \"Directory for particle tracerET output files, overrides IO::out_dir\" STEERABLE = RECOVER\n{\n \".+\" :: \"A valid directory name\"\n \"^$\" :: \"An empty string to choose the default from IO::out_dir\"\n} \"\"\n\nCCTK_INT start_tracing_particles_iteration \"Iteration at which to start tracing particles\"\n{\n 0:* :: \"zero or some positive number.\"\n} 0\n\nCCTK_INT update_RK4_freq \"How often (in units of cctk_iteration) to perform an RK4 substep? Usually 4--8 works best. Definitely choose a power of 2.\"\n{\n 0:4096 :: \"zero (disable integration) or some other number\"\n} 0\n\nCCTK_INT num_particles \"Number of particles\"\n{\n 0:10000 :: \"zero (disable particle generation), or some other number\"\n} 0\n\nCCTK_REAL out_of_bounds_xyz \"fabs(x) > out_of_bounds_xyz || fabs(y) > out_of_bounds_xyz || fabs(z) > out_of_bounds_xyz -> OUT OF BOUNDS.\" STEERABLE=ALWAYS\n{\n 0:* :: \"Any number\"\n} 800.0\n\n########################################\n# Algorithm for seeding particles initially:\n# 1) Choose random point (x,y,z) within sphere.\n# 2) Probability of accepting random point = (density(x,y,z)/density_max)^central_condensation_paramter\n# 3) Go to (1) until all particles are seeded.\n\nCCTK_REAL density_max \"Maximum density within sphere.\" STEERABLE=ALWAYS\n{\n *:* :: \"Any number\"\n} 0\n\nCCTK_REAL central_condensation_parameter \"Probability of accepting random point x,y,z = (density(x,y,z)/density_max)^central_condensation_paramter\" STEERABLE=ALWAYS\n{\n *:* :: \"Any number\"\n} 1.0\n\nCCTK_REAL seed_particles_inside_sphere__x_coord \"x-coord of sphere center, within which to seed particles\" STEERABLE=ALWAYS\n{\n *:* :: \"Any number\"\n} 0\nCCTK_REAL seed_particles_inside_sphere__y_coord \"y-coord of sphere center, within which to seed particles\" STEERABLE=ALWAYS\n{\n *:* :: \"Any number\"\n} 0\nCCTK_REAL seed_particles_inside_sphere__z_coord \"z-coord of sphere center, within which to seed particles\" STEERABLE=ALWAYS\n{\n *:* :: \"Any number\"\n} 0\nCCTK_REAL seed_particles_inside_sphere__radius \"radius of sphere within which to seed particles\" STEERABLE=ALWAYS\n{\n 0:* :: \"Any number\"\n} 0\n\n\n########################################\n## Interpolator information\nCCTK_STRING interpolator_name \"Which interpolator should I use\"\n{\n \".+\" :: \"Any nonempty string\"\n} \"Lagrange polynomial interpolation\"\n\nCCTK_STRING interpolator_pars \"Parameters for the interpolator\"\n{\n \".*\" :: \"Any string that Util_TableSetFromString() will take\"\n} \"order=4\"\n\n\n########################################\nCCTK_INT verbose \"Set verbosity level: 1=useful info; 2=moderately annoying (though useful for debugging)\" STEERABLE=ALWAYS\n{\n 0:2 :: \"0 = no output; 1=useful info; 2=moderately annoying (though useful for debugging)\"\n} 1\n\nCCTK_INT debug \"Evolve analytic velocity data and verify that the RK4 solution is consistent to 4th order.\"\n{\n 0:1 :: \"0 = disable; 1=enable debug\"\n} 0\n", "schedule": "# Schedule definitions for thorn particle_tracerET\n# $Header:$\n\nSTORAGE: RK4IterationCounterVar,particle_position_arrays, velocity_consistent_with_MHD_induction_equations\n\nSTORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels]\nSTORAGE: HydroBase::rho[timelevels],HydroBase::press[timelevels],HydroBase::eps[timelevels],HydroBase::vel[timelevels],HydroBase::Bvec[timelevels]\n\n##### INITIALIZE FILE OUTPUT STUFF #####\nSCHEDULE particle_tracerET_file_output_routine_Startup AT CCTK_INITIAL\n{\n LANG: C\n} \"Create directory for file output.\"\n########################################\n\n##### CONVERT TO MHD 3 VELOCITY #####\nSCHEDULE convert_to_MHD_3velocity AT CCTK_ANALYSIS BEFORE particle_tracerET\n{\n LANG: C\n OPTIONS: GLOBAL-EARLY,loop-local\n} \"Convert to MHD 3 velocity\"\n#########################################\n\nSCHEDULE GROUP particle_tracerET AT CCTK_ANALYSIS\n{\n} \"Particle tracerET subroutines\"\n\n##### INITIALIZE RK4 ITERATION COUNTER #####\nSCHEDULE InitializeRK4IterationCounterToOne IN particle_tracerET\n{\n LANG: C\n OPTIONS: GLOBAL-EARLY\n} \"Initialize RK4IterationCounter variable to one\"\n############################################\n\n##### INITIALIZE PARTICLE POSITIONS #####\nSCHEDULE InitializeParticlePositions IN particle_tracerET AFTER InitializeRK4IterationCounterToOne\n{\n LANG: C\n OPTIONS: GLOBAL-EARLY\n} \"Initialize particle positions\"\n#########################################\n\n##### DO ONE RK4 STEP #####\nSCHEDULE DoOneRK4StepForParticleTracerET IN particle_tracerET AFTER InitializeParticlePositions\n{\n LANG: C\n OPTIONS: GLOBAL-EARLY\n} \"Do one RK4 step for particle tracerET\"\n############################\n\n##### OUTPUT TO FILE #####\nSCHEDULE particle_tracerET_file_output IN particle_tracerET AFTER DoOneRK4StepForParticleTracerET\n{\n LANG: C\n OPTIONS: GLOBAL-EARLY\n} \"Output particle tracerET data to disk\"\n##########################", "src": { "Interpolate_velocities_at_particle_positions.C": "#include \n#include \n#include \n#include \n#include \n#include \n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Parameters.h\"\n#include \"cctk_Functions.h\"\n#include \"util_Table.h\"\n#include \"util_String.h\"\n\n\nconst int NUM_INPUT_ARRAYS=3;\nconst int NUM_OUTPUT_ARRAYS=3;\n\n\nvoid Interpolate_velocities_at_particle_positions(cGH *cctkGH,int interp_num_points,double *particle_x,double *particle_y,double *particle_z, double *particle_velx,double *particle_vely,double *particle_velz) {\n DECLARE_CCTK_PARAMETERS; \n int ierr;\n\n /* NEEDED?\n // uni-processor code - only work on CPU 0\n const CCTK_INT myproc= CCTK_MyProc(cctkGH);\n if ( myproc != 0 ) {\n interp_npoints=0;\n }\n */\n\n for(int i=0;iout_of_bounds_xyz || \n fabs(particle_y[i])>out_of_bounds_xyz ||\n fabs(particle_z[i])>out_of_bounds_xyz) {\n \n printf(\"Interpolate_velocities_at_particle_positions: FOUND A PARTICLE %d WAS OUT OF BOUNDS.\\n\",i);\n \n particle_x[i] = 1e-100;\n particle_y[i] = 1e-100;\n particle_z[i] = 1e-100;\n }\n }\n\n\n CCTK_STRING coord_system = \"cart3d\";\n\n // Set up handles\n const int coord_system_handle = CCTK_CoordSystemHandle(coord_system);\n if (coord_system_handle < 0) {\n CCTK_VWarn(0, __LINE__, __FILE__, CCTK_THORNSTRING,\n \"can't get coordinate system handle for coordinate system \\\"%s\\\"!\",\n coord_system);\n }\n\n const int operator_handle = CCTK_InterpHandle(interpolator_name);\n if (operator_handle < 0)\n CCTK_VWarn(0, __LINE__, __FILE__, CCTK_THORNSTRING,\n \"couldn't find interpolator \\\"%s\\\"!\",\n interpolator_name);\n\n int param_table_handle = Util_TableCreateFromString(interpolator_pars);\n if (param_table_handle < 0) {\n CCTK_VWarn(0, __LINE__, __FILE__, CCTK_THORNSTRING,\n \"bad interpolator parameter(s) \\\"%s\\\"!\",\n interpolator_pars);\n }\n \n CCTK_INT operand_indices[NUM_INPUT_ARRAYS]; //NUM_OUTPUT_ARRAYS + MAX_NUMBER_EXTRAS];\n for(int i = 0 ; i < NUM_INPUT_ARRAYS ; i++) {\n operand_indices[i] = i;\n }\n Util_TableSetIntArray(param_table_handle, NUM_OUTPUT_ARRAYS,\n operand_indices, \"operand_indices\");\n \n\n CCTK_INT operation_codes[NUM_INPUT_ARRAYS]; //NUM_OUTPUT_ARRAYS + MAX_NUMBER_EXTRAS];\n for(int i = 0 ; i < NUM_INPUT_ARRAYS ; i++) {\n operation_codes[i] = 0;\n }\n Util_TableSetIntArray(param_table_handle, NUM_OUTPUT_ARRAYS, \n operation_codes, \"operation_codes\");\n\n const void* interp_coords[NUM_INPUT_ARRAYS] \n = { (const void *) particle_x,\n (const void *) particle_y,\n (const void *) particle_z };\n\n // 3d input arrays\n CCTK_STRING input_array_names[NUM_INPUT_ARRAYS]\n = { \"particle_tracerET::MHDvx\",\n\t\"particle_tracerET::MHDvy\",\n\t\"particle_tracerET::MHDvz\" };\n // = { \"HydroBase::rho\" };\n\n CCTK_INT input_array_indices[NUM_INPUT_ARRAYS];\n for(int i = 0 ; i < NUM_INPUT_ARRAYS ; i++) {\n input_array_indices[i] = CCTK_VarIndex(input_array_names[i]);\n if(input_array_indices[i] < 0) {\n CCTK_VWarn(0, __LINE__, __FILE__, CCTK_THORNSTRING,\n \"COULD NOT FIND VARIABLE '%s'.\",\n input_array_names[i]);\n exit(1);\n }\n }\n\n CCTK_INT output_array_types[NUM_OUTPUT_ARRAYS];\n for(int i = 0 ; i < NUM_OUTPUT_ARRAYS ; i++) {\n output_array_types[i] = CCTK_VARIABLE_REAL;\n }\n\n void * output_arrays[NUM_OUTPUT_ARRAYS]\n = { (void *) particle_velx,\n\t(void *) particle_vely,\n\t(void *) particle_velz };\n\n // actual interpolation call\n ierr = CCTK_InterpGridArrays(cctkGH,\n 3, // number of dimensions \n operator_handle,\n param_table_handle,\n coord_system_handle,\n interp_num_points,\n CCTK_VARIABLE_REAL,\n interp_coords,\n NUM_INPUT_ARRAYS, // Number of input arrays\n input_array_indices,\n NUM_OUTPUT_ARRAYS, // Number of output arrays\n output_array_types,\n output_arrays);\n if (ierr<0) {\n CCTK_WARN(1,\"interpolation screwed up\");\n Util_TableDestroy(param_table_handle);\n exit(1);\n }\n\n ierr = Util_TableDestroy(param_table_handle);\n if (ierr != 0) {\n CCTK_WARN(1,\"Could not destroy table\");\n exit(1);\n }\n /* - u_t - 1 */\n}\n", diff --git a/WVUThorns_Diagnostics_smallbPoynET.json b/WVUThorns_Diagnostics_smallbPoynET.json index ab72afc6b036df755088c444029cb9633cb20ecd..45bf1ac19588937218e5524041fa94003afb536f 100644 --- a/WVUThorns_Diagnostics_smallbPoynET.json +++ b/WVUThorns_Diagnostics_smallbPoynET.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/zach_etienne/wvuthorns_diagnostics.git", "configuration": "", "interface": "# Interface definition for thorn smallbPoyn\n# $Header:$\n\nimplements: smallbPoynET\ninherits: grid HydroBase ADMBase\n\nreal smallbPoynETGFs TYPE=GF TIMELEVELS=1 tags='InterpNumTimelevels=1 prolongation=\"none\" Checkpoint=\"no\"'\n{\n smallbt,smallbx,smallby,smallbz,smallb2,Poynx,Poyny,Poynz,minus_one_minus_u_0\n}\n", - "params": "", + "param": "# Parameter definitions for thorn smallbPoynET\n# $Header:$\n\n#############################################################################\n### import HydroBase & ADMBase parameters\n\nshares: HydroBase\nUSES CCTK_INT timelevels\n\nshares: ADMBase\nUSES CCTK_INT lapse_timelevels\nUSES CCTK_INT shift_timelevels\nUSES CCTK_INT metric_timelevels\n#############################################################################\n\nprivate:\n\nCCTK_INT smallbPoynET_compute_every \"How often to compute smallbPoyn?\" \n{\n 0:100000 :: \"zero (disable computation) or some other number (1 = every iteration)\"\n} 0\n\nCCTK_INT enable_warning \"Warn if regrid_every divided by smallbPoynET_compute_every is not an integer >= 1. You may see AMR artifacts otherwise!\"\n{\n 0:1 :: \"zero (disable) or one (enable)\"\n} 1\n\n", "schedule": "# Schedule definitions for thorn smallbPoynET\n# $Header:$\n\nSTORAGE: smallbPoynETGFs\n\nSTORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels]\n\nSTORAGE: HydroBase::rho[timelevels],HydroBase::press[timelevels],HydroBase::eps[timelevels],HydroBase::vel[timelevels],HydroBase::Bvec[timelevels]\n\n#SCHEDULE compute_bi_b2_Poyn_fluxET AT CCTK_POSTINITIAL AFTER SetTmunu\n#{\n# LANG: C\n#} \"Set b^mu, b^2, and Poynting flux gridfunctions.\"\n\nSCHEDULE compute_bi_b2_Poyn_fluxET AT CCTK_ANALYSIS BEFORE VolumeIntegralGroup\n{\n LANG: C\n OPTIONS: GLOBAL-EARLY,LOOP-LOCAL\n} \"Set b^mu, b^2, and Poynting flux gridfunctions.\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn smallbPoynET\n# $Header:$\n\n# Source files in this directory\nSRCS = compute_bi_b2_Poyn_fluxET.C\n\n# Subdirectories containing source files\nSUBDIRS = \n", diff --git a/WVUThorns_FishboneMoncriefID.json b/WVUThorns_FishboneMoncriefID.json index 90a7e5c5a5b3c8934e3b7cc8389c0c45a8a8c0f0..cdc722acb2f45afbf42499af672b070d394b9f46 100644 --- a/WVUThorns_FishboneMoncriefID.json +++ b/WVUThorns_FishboneMoncriefID.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/zach_etienne/wvuthorns.git", "configuration": "", "interface": "implements: FishboneMoncriefID\ninherits: admbase grid hydrobase\n", - "params": "", + "param": "shares: grid\nshares: ADMBase\nUSES CCTK_INT lapse_timelevels\nUSES CCTK_INT shift_timelevels\nUSES CCTK_INT metric_timelevels\n\nUSES KEYWORD metric_type\n\nEXTENDS KEYWORD initial_data \n{\n \"FishboneMoncriefID\" :: \"Initial data from FishboneMoncriefID solution\"\n}\nEXTENDS KEYWORD initial_lapse\n{\n \"FishboneMoncriefID\" :: \"Initial lapse from FishboneMoncriefID solution\"\n}\nEXTENDS KEYWORD initial_shift\n{\n \"FishboneMoncriefID\" :: \"Initial shift from FishboneMoncriefID solution\"\n}\nEXTENDS KEYWORD initial_dtlapse\n{\n \"FishboneMoncriefID\" :: \"Initial dtlapse from FishboneMoncriefID solution\"\n}\nEXTENDS KEYWORD initial_dtshift\n{\n \"FishboneMoncriefID\" :: \"Initial dtshift from FishboneMoncriefID solution\"\n}\n\nshares: HydroBase\nEXTENDS KEYWORD initial_hydro\n{\n \"FishboneMoncriefID\" :: \"Initial GRHD data from FishboneMoncriefID solution\"\n}\n\n#[\"r_in\",\"r_at_max_density\",\"a\",\"M\"] A_b, kappa, gamma\nrestricted:\nCCTK_REAL r_in \"Fixes the inner edge of the disk\"\n{\n 0.0:* :: \"Must be positive\"\n} 6.0\n\nrestricted:\nCCTK_REAL r_at_max_density \"Radius at maximum disk density. Needs to be > r_in\"\n{\n 0.0:* :: \"Must be positive\"\n} 12.0\n\nrestricted:\nCCTK_REAL a \"The spin parameter of the black hole\"\n{\n 0:1.0 :: \"Positive values, up to 1. Negative disallowed, as certain roots are chosen in the hydro fields setup. Check those before enabling negative spins!\"\n} 0.9375\n\nrestricted:\nCCTK_REAL M \"Kerr-Schild BH mass. Probably should always set M=1.\"\n{\n 0.0:* :: \"Must be positive\"\n} 1.0\n\nrestricted:\nCCTK_REAL A_b \"Scaling factor for the vector potential\"\n{\n *:* :: \"\"\n} 1.0\n\nrestricted:\nCCTK_REAL kappa \"Equation of state: P = kappa * rho^gamma\"\n{\n 0.0:* :: \"Positive values\"\n} 1.0e-3\n\nrestricted:\nCCTK_REAL gamma \"Equation of state: P = kappa * rho^gamma\"\n{\n 0.0:* :: \"Positive values\"\n} 1.3333333333333333333333333333\n\n##################################\n# PRESSURE PERTURBATION PARAMETERS\nprivate:\nCCTK_REAL random_min \"Floor value of random perturbation to initial pressure, where perturbed pressure = pressure*(1.0 + (random_min + (random_max-random_min)*RAND[0,1)))\"\n{\n *:* :: \"Any value\"\n} -0.02\n\nprivate:\nCCTK_REAL random_max \"Ceiling value of random perturbation to initial pressure, where perturbed pressure = pressure*(1.0 + (random_min + (random_max-random_min)*RAND[0,1)))\"\n{\n *:* :: \"Any value\"\n} 0.02\n\n", "schedule": "STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels]\n\nschedule FishboneMoncrief_ET_GRHD_initial IN HydroBase_Initial \n{\n LANG: C\n READS: grid::x(Everywhere)\n READS: grid::y(Everywhere)\n READS: grid::z(Everywhere)\n WRITES: admbase::alp(Everywhere)\n WRITES: admbase::betax(Everywhere)\n WRITES: admbase::betay(Everywhere)\n WRITES: admbase::betaz(Everywhere)\n WRITES: admbase::kxx(Everywhere)\n WRITES: admbase::kxy(Everywhere)\n WRITES: admbase::kxz(Everywhere)\n WRITES: admbase::kyy(Everywhere)\n WRITES: admbase::kyz(Everywhere)\n WRITES: admbase::kzz(Everywhere)\n WRITES: admbase::gxx(Everywhere)\n WRITES: admbase::gxy(Everywhere)\n WRITES: admbase::gxz(Everywhere)\n WRITES: admbase::gyy(Everywhere)\n WRITES: admbase::gyz(Everywhere)\n WRITES: admbase::gzz(Everywhere)\n WRITES: hydrobase::vel(Everywhere) # Note that vel is a vector gridfunction.\n WRITES: hydrobase::rho(Everywhere)\n WRITES: hydrobase::eps(Everywhere)\n WRITES: hydrobase::press(Everywhere)\n} \"Set up general relativistic hydrodynamic (GRHD) fields for Fishbone-Moncrief disk\"\n\nschedule FishboneMoncrief_ET_GRHD_initial__perturb_pressure IN CCTK_INITIAL AFTER Seed_Magnetic_Fields BEFORE IllinoisGRMHD_ID_Converter\n{\n LANG: C\n} \"Add random perturbation to initial pressure, after seed magnetic fields have been set up (in case we'd like the seed magnetic fields to depend on the pristine pressures)\"\n", "src": { "make.code.defn": "SRCS = InitialData.c\n", diff --git a/WVUThorns_GiRaFFE.json b/WVUThorns_GiRaFFE.json index d2f6a42560219a3eb78d85bd5ec5390d73c52106..fb3fb1de43a752c2ca92a0e159d7359e9d2f116e 100644 --- a/WVUThorns_GiRaFFE.json +++ b/WVUThorns_GiRaFFE.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/zach_etienne/wvuthorns.git", "configuration": "# Configuration definition for thorn GiRaFFE\nREQUIRES Boundary CartGrid3D SpaceMask\n\nPROVIDES GiRaFFE\n{\n}\n", "interface": "# Interface definition for thorn GiRaFFE\n\nimplements: GiRaFFE\ninherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid\n\nincludes header: GiRaFFE_headers.h in GiRaFFE_headers.h\n\nUSES INCLUDE: Symmetry.h\n\npublic:\n\n#vvvvvvvv EVOLVED VARIABLES vvvvvvvv#\n# HERE ARE OUR OPTIONS (WE'D PREFER IF 3RD ORDER LAGRANGE INTERPOLATION WERE AN OPTION, AS THIS WORKS BEST, E.G., WHEN SHOCKS DEVELOP AND CROSS REFINEMENT BOUNDARIES [even better than ENO/WENO!])\n#cctk_real grmhd_conservatives type = GF TAGS='prolongation=\"WENO\"' Timelevels=3\n#cctk_real grmhd_conservatives type = GF TAGS='prolongation=\"Lagrange_monotone\"' Timelevels=3\ncctk_real grmhd_conservatives type = GF Timelevels=3\n{\n mhd_st_x,mhd_st_y,mhd_st_z # st = Stilde, as mhd_st_i = \\tilde{S}_i.\n} \"Evolved mhd variables\"\n\n# These variables are semi-staggered:\n# Ax is defined on the semi-staggered grid (i,j+1/2,k+1/2)\n# WARNING: WILL NOT WORK PROPERLY WITHOUT SEMI-STAGGERED PROLONGATION/RESTRICTION:\ncctk_real em_Ax type = GF Timelevels=3 tags='Prolongation=\"STAGGER011\"'\n{\n Ax\n} \"x-component of the vector potential, evolved when constrained_transport_scheme==3\"\n# Ay is defined on the semi-staggered grid (i+1/2,j,k+1/2)\n\n# WARNING: WILL NOT WORK PROPERLY WITHOUT SEMI-STAGGERED PROLONGATION/RESTRICTION:\ncctk_real em_Ay type = GF Timelevels=3 tags='Prolongation=\"STAGGER101\"'\n{\n Ay\n} \"y-component of the vector potential, evolved when constrained_transport_scheme==3\"\n\n# WARNING: WILL NOT WORK PROPERLY WITHOUT SEMI-STAGGERED PROLONGATION/RESTRICTION:\n# Az is defined on the semi-staggered grid (i+1/2,j+1/2,k)\ncctk_real em_Az type = GF Timelevels=3 tags='Prolongation=\"STAGGER110\"'\n{\n Az\n} \"z-component of the vector potential, evolved when constrained_transport_scheme==3\"\n\n# psi6phi is defined on the staggered grid (i+1/2,j+1/2,k+1/2)\n# WARNING: WILL NOT WORK PROPERLY WITHOUT FULLY-STAGGERED PROLONGATION/RESTRICTION:\n#\ncctk_real em_psi6phi type = GF Timelevels=3 tags='Prolongation=\"STAGGER111\"'\n{\n psi6phi \n} \"sqrt{gamma} Phi, where Phi is the em scalar potential\"\n#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#\n\n\n#vvvvvvv PRIMITIVE VARIABLES vvvvvvv#\ncctk_real grmhd_primitives_allbutBi type = GF TAGS='InterpNumTimelevels=1 prolongation=\"none\"'\n{\n vx,vy,vz\n} \"Components of three velocity, defined in terms of 4-velocity as: v^i = u^i/u^0. Note that this definition differs from the Valencia formalism.\"\ncctk_real grmhd_primitives_Bi type = GF TAGS='InterpNumTimelevels=1 prolongation=\"none\"'\n{\n Bx,By,Bz,Bx_stagger,By_stagger,Bz_stagger\n} \"B-field components defined both at vertices (Bx,By,Bz) as well as at staggered points [Bx_stagger at (i+1/2,j,k),By_stagger at (i,j+1/2,k),Bz_stagger at (i,j,k+1/2)].\"\n#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#\n\n#vvvvvvv BSSN-based quantities, computed from ADM quantities.v vvvvvvv#\ncctk_real BSSN_quantities type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{\n gtxx,gtxy,gtxz,gtyy,gtyz,gtzz,gtupxx,gtupxy,gtupxz,gtupyy,gtupyz,gtupzz,phi_bssn,psi_bssn,lapm1\n} \"BSSN quantities, computed from ADM quantities\"\n#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#\n\nprivate:\n\n#vvvvvvv DIAGNOSTIC GRIDFUNCTIONS vvvvvvv#\ncctk_real diagnostic_gfs type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{\n failure_checker\n} \"Gridfunction to track conservative-to-primitives solver fixes. Beware that this gridfunction is overwritten at each RK substep.\"\n#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#\n\n#vvvvvvv TEMPORARY VARIABLES FOR RECONSTRUCTION vvvvvvv#\ncctk_real grmhd_primitives_reconstructed_temps type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{\n temporary,\n vxr,vyr,vzr,Bxr,Byr,Bzr,Bx_staggerr,By_staggerr,Bz_staggerr,\n vxl,vyl,vzl,Bxl,Byl,Bzl,Bx_staggerl,By_staggerl,Bz_staggerl,\n vxrr,vxrl,vyrr,vyrl,vzrr,vzrl,vxlr,vxll,vylr,vyll,vzlr,vzll\n} \"Temporary variables used for primitives reconstruction\"\n#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#\n\n#vvvvvvv RHS VARIABLES vvvvvvv#\ncctk_real grmhd_conservatives_rhs type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{\n st_x_rhs,st_y_rhs,st_z_rhs\n} \"Storage for the right-hand side of the partial_t tilde{S}_i equations. Needed for MoL timestepping.\"\n\ncctk_real em_Ax_rhs type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{ \n Ax_rhs \n} \"Storage for the right-hand side of the partial_t A_x equation. Needed for MoL timestepping.\"\ncctk_real em_Ay_rhs type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{\n Ay_rhs \n} \"Storage for the right-hand side of the partial_t A_y equation. Needed for MoL timestepping.\"\ncctk_real em_Az_rhs type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{ \n Az_rhs \n} \"Storage for the right-hand side of the partial_t A_z equation. Needed for MoL timestepping.\"\ncctk_real em_psi6phi_rhs type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{\n psi6phi_rhs \n} \"Storage for the right-hand side of the partial_t (psi^6 Phi) equation. Needed for MoL timestepping.\"\n#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#\n\n#vvvvvvv TEMPORARY VARIABLES USEFUL FOR A-FIELD EVOLUTION vvvvvvv#\ncctk_real grmhd_cmin_cmax_temps type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{\n cmin_x,cmax_x,\n cmin_y,cmax_y,\n cmin_z,cmax_z\n} \"Store min and max characteristic speeds in all three directions.\"\n#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#\n\n#vvvvvvv TEMPORARY VARIABLES USEFUL FOR FLUX COMPUTATION vvvvvvv#\ncctk_real grmhd_flux_temps type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{\n st_x_flux,st_y_flux,st_z_flux\n} \"Temporary variables for storing the flux terms of tilde{S}_i.\"\n#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#\n\n#vvvvvvv T^{\\mu \\nu}, stored to avoid expensive recomputation vvvvvvv#\ncctk_real TUPmunu type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{\n TUPtt,TUPtx,TUPty,TUPtz,TUPxx,TUPxy,TUPxz,TUPyy,TUPyz,TUPzz\n} \"T^{mu nu}, stored to avoid expensive recomputation\"\n#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#\n\n\n####################################################\n### Functions provided by MoL for registration ###\n####################################################\n\nCCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\nCCTK_INT FUNCTION MoLRegisterEvolvedSlow(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndexSlow)\nCCTK_INT FUNCTION MoLRegisterConstrained(CCTK_INT IN ConstrainedIndex)\nCCTK_INT FUNCTION MoLRegisterEvolvedGroup(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\nCCTK_INT FUNCTION MoLRegisterEvolvedGroupSlow(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndexSlow)\nCCTK_INT FUNCTION MoLRegisterConstrainedGroup(CCTK_INT IN ConstrainedIndex)\nCCTK_INT FUNCTION MoLRegisterSaveAndRestoreGroup(CCTK_INT IN SandRIndex)\n\nUSES FUNCTION MoLRegisterEvolved\nUSES FUNCTION MoLRegisterEvolvedSlow\nUSES FUNCTION MoLRegisterConstrained\nUSES FUNCTION MoLRegisterEvolvedGroup\nUSES FUNCTION MoLRegisterEvolvedGroupSlow\nUSES FUNCTION MoLRegisterConstrainedGroup\nUSES FUNCTION MoLRegisterSaveAndRestoreGroup\n\n#########################################\n### Aliased functions from Boundary ###\n#########################################\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\n\nUSES FUNCTION Boundary_SelectVarForBC\nUSES FUNCTION Boundary_SelectGroupForBC\n###########################################################################\n\n#########################################\n### Aliased functions from Carpet ###\n#########################################\n\nCCTK_INT FUNCTION \\\n GetRefinementLevel \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION GetRefinementLevel\n", - "params": "", + "param": "# Parameter definitions for thorn GiRaFFE\n\nshares: ADMBase\nUSES CCTK_INT lapse_timelevels\nUSES CCTK_INT shift_timelevels\nUSES CCTK_INT metric_timelevels\n\n#########################################################\nrestricted:\n\n#########################################################\n# Set the drift velocity perpendicular to the current sheet to zero.\nBOOLEAN current_sheet_null_v \"Shall we null the velocity normal to the current sheet?\"\n{\n} \"no\" #Necessary for the split monopole\n#########################################################\n\n#########################################################\n# SPEED LIMIT: Set maximum relativistic gamma factor\n# \nREAL GAMMA_SPEED_LIMIT \"Maximum relativistic gamma factor. Note the default is much higher than IllinoisGRMHD. (GRFFE can handle higher Lorentz factors)\"\n{\n 1:* :: \"Positive > 1, though you'll likely have troubles far above 2000.\"\n} 2000.0\n#########################################################\n\n#########################################################\n# OUTER BOUNDARY CONDITION CHOICE\nKEYWORD Velocity_BC \"Chosen fluid velocity boundary condition\"\n{\n \"outflow\" :: \"Outflow boundary conditions\"\n \"copy\" :: \"Copy data from nearest boundary point\"\n \"frozen\" :: \"Frozen boundaries\"\n} \"outflow\"\n\nKEYWORD EM_BC \"EM field boundary condition\"\n{\n \"copy\" :: \"Copy data from nearest boundary point\"\n \"frozen\" :: \"Frozen boundaries\"\n} \"copy\"\n#########################################################\n\n\n#########################################################\n# SYMMETRY BOUNDARY PARAMS. Needed for handling staggered gridfunctions.\nKEYWORD Symmetry \"Currently only no symmetry supported, though work has begun in adding equatorial-symmetry support. FIXME: Extend ET symmetry interface to support symmetries on staggered gridfunctions\"\n{\n \"none\" :: \"no symmetry, full 3d domain\"\n} \"none\"\n\nREAL Sym_Bz \"In-progress equatorial symmetry support: Symmetry parameter across z axis for magnetic fields = +/- 1\"\n{\n -1.0:1.0 :: \"Set to +1 or -1.\"\n} 1.0\n#########################################################\n\nREAL min_radius_inside_of_which_conserv_to_prims_FFE_and_FFE_evolution_is_DISABLED \"As parameter suggests, this is the minimum radius inside of which the conservatives-to-primitives solver is disabled. In the Aligned Rotator test, this should be set equal to R_NS_aligned_rotator.\" STEERABLE=ALWAYS\n{\n -1. :: \"disable the conservative-to-primitive solver modification\"\n (0:* :: \"any positive value\"\n} -1.\n\n###############################################################################################\nprivate:\n\n#########################################################\n# EVOLUTION PARAMS\nREAL damp_lorenz \"Damping factor for the generalized Lorenz gauge. Has units of 1/length = 1/M. Typically set this parameter to 1.5/(maximum Delta t on AMR grids).\" STEERABLE=ALWAYS\n{\n *:* :: \"any real\"\n} 0.0\n#########################################################\n", "schedule": "# Scheduler setup for GiRaFFE\nSTORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels]\nSTORAGE: GiRaFFE::BSSN_quantities\n\nSTORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] \nSTORAGE: grmhd_primitives_allbutBi,grmhd_primitives_Bi,grmhd_primitives_reconstructed_temps,grmhd_conservatives_rhs,em_Ax_rhs,em_Ay_rhs,em_Az_rhs,em_psi6phi_rhs,grmhd_cmin_cmax_temps,grmhd_flux_temps,TUPmunu,diagnostic_gfs\n\n####################\n# RUN INITIALLY ONLY\nschedule GiRaFFE_RegisterVars in MoL_Register after BSSN_RegisterVars after lapse_RegisterVars\n{\n LANG: C\n OPTIONS: META\n} \"Register evolved, rhs variables in GiRaFFE for MoL\"\n\n# Tells the symmetry thorn how to apply symmetries on each gridfunction:\nschedule GiRaFFE_InitSymBound at BASEGRID after Lapse_InitSymBound\n{\n LANG: C\n} \"Schedule symmetries\"\n####################\n\n\n####################\n# POSTPOSTINITIAL\nschedule GROUP GiRaFFE_PostPostInitial at CCTK_POSTPOSTINITIAL before MoL_PostStep after HydroBase_Con2Prim\n{\n} \"HydroBase_Con2Prim in CCTK_POSTPOSTINITIAL sets conserv to prim then outer boundaries (OBs, which are technically disabled). The post OB SYNCs actually reprolongate the conservative variables, making cons and prims INCONSISTENT. So here we redo the con2prim, avoiding the SYNC afterward, then copy the result to other timelevels\"\n\nschedule GiRaFFE_InitSymBound in GiRaFFE_PostPostInitial as postid before compute_b\n{\n SYNC: grmhd_conservatives,em_Ax,em_Ay,em_Az,em_psi6phi\n LANG: C\n} \"Schedule symmetries -- Actually just a placeholder function to ensure prolongations / processor syncs are done BEFORE outer boundaries are updated.\"\n\n# Easiest primitives to solve for: B^i\nschedule GiRaFFE_compute_B_and_Bstagger_from_A in GiRaFFE_PostPostInitial as compute_b after postid after empostid after lapsepostid\n{\n # This is strictly a processor sync, as prolongation is disabled for all primitives & B^i's.\n SYNC: grmhd_primitives_Bi\n LANG: C\n} \"Compute B and B_stagger from A SYNC: grmhd_primitives_Bi\"\n\n# Nontrivial primitives solve, for vx,vy,vz:\nschedule GiRaFFE_conserv_to_prims_FFE in GiRaFFE_PostPostInitial after compute_b\n{\n LANG: C\n} \"Applies the FFE condition B^2>E^2 and recomputes the velocities\"\n\n# Copy data to other timelevels.\nschedule GiRaFFE_PostPostInitial_Set_Symmetries__Copy_Timelevels in GiRaFFE_PostPostInitial as mhdpostid after compute_b after p2c\n{\n LANG: C\n} \"Compute post-initialdata quantities\"\n####################\n\n\n####################\n# RHS EVALUATION\nschedule GiRaFFE_driver_evaluate_FFE_rhs in MoL_CalcRHS as GiRaFFE_RHS_eval after bssn_rhs after shift_rhs\n{\n LANG: C\n} \"Evaluate RHSs of GRFFE equations\"\n####################\n\n############################################################\n# COMPUTE B FROM A & RE-SOLVE FOR PRIMITIVES\n# After a full timestep, there are two types of boundaries that need filling:\n# (A) Outer boundaries (on coarsest level)\n# (B) AMR grid refinement boundaries\n\n# (A) OUTER BOUNDARY STEPS:\n# ( 0) Synchronize (prolongate/restrict) all evolved variables\n# ( 1) Apply outer boundary conditions (BCs) on A_{\\mu}\n# ( 2) Compute B^i from A_i everywhere, synchronize (processor sync) B^i\n# ( 3) Call con2prim to get consistent primitives {vx,vy,vz} and conservatives at all points (if no restriction, really only need interior)\n# ( 4) Apply outer BCs on {vx,vy,vz}, recompute conservatives.\n\n# (B) AMR GRID REFINEMENT BOUNDARY STEPS:\n# Same as steps 0,2,3 above. Just need if() statements in steps 1,4 to prevent \"outer boundaries\" being updated\n# Problem: all the sync's in outer boundary updates might just overwrite prolongated values.\n############################################################\n\nschedule GiRaFFE_InitSymBound in HydroBase_Boundaries after HydroBase_ApplyBCs before GiRaFFE_outer_boundaries_on_A_mu\n{\n SYNC: grmhd_conservatives,em_Ax,em_Ay,em_Az,em_psi6phi\n LANG: C\n} \"Schedule symmetries -- Actually just a placeholder function to ensure prolongations / processor syncs are done BEFORE outer boundaries are updated.\"\n\nschedule GiRaFFE_outer_boundaries_on_A_mu in HydroBase_Boundaries after GiRaFFE_InitSymBound before GiRaFFE_compute_B_and_Bstagger_from_A\n{\n SYNC: em_Ax,em_Ay,em_Az,em_psi6phi\n LANG: C\n} \"Apply linear extrapolation BCs on A_mu, so that BCs are flat on B^i.\"\n\n# Easiest primitives to solve for: B^i.\n# Note however that B^i depends on derivatives of A_{\\mu}, so a SYNC is necessary on B^i.\nschedule GiRaFFE_compute_B_and_Bstagger_from_A in HydroBase_Boundaries after GiRaFFE_outer_boundaries_on_A_mu\n{\n # This is strictly a processor sync, as prolongation is disabled for all B^i's.\n SYNC: grmhd_primitives_Bi\n LANG: C\n} \"Compute B and B_stagger from A\"\n\n# Nontrivial primitives solve, for vx,vy,vz.\nschedule GiRaFFE_conserv_to_prims_FFE in AddToTmunu after GiRaFFE_compute_B_and_Bstagger_from_A\n{\n LANG: C\n} \"Applies the FFE condition B^2>E^2 and recomputes the velocities\"\n\n#schedule outer_boundaries_on_vx_vy_vz in HydroBase_Boundaries after conserv_to_prims\nschedule GiRaFFE_outer_boundaries_on_vx_vy_vz in AddToTmunu after conserv_to_prims\n{\n# We must sync {vx,vy,vz} AND conservatives here.\n SYNC: grmhd_primitives_allbutBi,grmhd_conservatives\n LANG: C\n} \"Apply outflow-only, flat BCs on {vx,vy,vz}. Outflow only == velocities pointed inward from outer boundary are set to zero.\"\n##########################################################\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn GiRaFFE\n\n# Source files in this directory\nSRCS = InitSymBound.C MoL_registration.C \\\n \\\n postpostinitial__set_symmetries__copy_timelevels.C \\\n \\\n convert_ADM_to_BSSN__enforce_detgtij_eq_1__and_compute_gtupij.C \\\n \\\n driver_evaluate_FFE_rhs.C \\\n driver_conserv_to_prims_FFE.C \\\n \\\n compute_B_and_Bstagger_from_A.C \\\n symmetry__set_gzs_staggered_gfs.C \\\n \\\n outer_boundaries.C\n", diff --git a/WVUThorns_GiRaFFE_to_HydroBase.json b/WVUThorns_GiRaFFE_to_HydroBase.json index d7992db215450b17641fd10354312c6ec6d5fbac..b59d006a62340ef8736d92e6b358e31675d6a6af 100644 --- a/WVUThorns_GiRaFFE_to_HydroBase.json +++ b/WVUThorns_GiRaFFE_to_HydroBase.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/zach_etienne/wvuthorns.git", "configuration": "", "interface": "# Interface definition for thorn GiRaFFE_to_HydroBase\n# $Header:$\n\nimplements: GiRaFFE_to_HydroBase\ninherits: grid HydroBase ADMBase GiRaFFE\n\nuses include header: GiRaFFE_headers.h", - "params": "", + "param": "# Parameter definitions for thorn GiRaFFE_to_HydroBase\n# $Header:$\n\n#############################################################################\n### import HydroBase & ADMBase parameters\n\nshares: HydroBase\nUSES CCTK_INT timelevels\n\nshares: ADMBase\nUSES CCTK_INT lapse_timelevels\nUSES CCTK_INT shift_timelevels\nUSES CCTK_INT metric_timelevels\n\n#############################################################################\n\nprivate:\nINT Convert_GiRaFFE_to_HydroBase_every \"How often to convert GiRaFFE primitive variables to HydroBase (Valencia formulation) primitive variables? Needed for some ET-based diagnostics. NOT needed for pure GiRaFFE runs.\"\n{\n 0:* :: \"zero (disable) or positive (every N iterations)\"\n} 0\n", "schedule": "# Schedule definitions for thorn GiRaFFE_to_HydroBase\n# $Header:$\n\nSCHEDULE Convert_GiRaFFE_to_HydroBase AT CCTK_INITIAL AFTER GiRaFFE_ID_Converter\n{\n LANG: C\n} \"Convert GiRaFFE-native variables to HydroBase\"\n\nSCHEDULE Convert_GiRaFFE_to_HydroBase AT CCTK_ANALYSIS BEFORE compute_bi_b2_Poyn_fluxET BEFORE particle_tracerET BEFORE VolumeIntegralGroup BEFORE convert_to_MHD_3velocity AFTER ML_BSSN_evolCalcGroup\n{\n OPTIONS: GLOBAL-EARLY,LOOP-LOCAL\n LANG: C\n} \"Convert GiRaFFE-native variables to HydroBase\"\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn GiRaFFE_to_HydroBase\n# $Header:$\n\n# Source files in this directory\nSRCS = Convert_GiRaFFE_to_HydroBase.C\n\n# Subdirectories containing source files\nSUBDIRS =\n", diff --git a/WVUThorns_GiRaFFEfood.json b/WVUThorns_GiRaFFEfood.json index 388a57f0e82af2bbc2d940f0f01e0348b3f0afae..1a7c5d119ce45715e3bfd0c2efc2d9e4f7db4856 100644 --- a/WVUThorns_GiRaFFEfood.json +++ b/WVUThorns_GiRaFFEfood.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/zach_etienne/wvuthorns.git", "configuration": "# Configuration definitions for thorn GiRaFFEfood\nREQUIRES Boundary CartGrid3D SpaceMask ShiftedKerrSchild\n\nPROVIDES GiRaFFEFood\n{\n}\n\n# Requires GSL for dilogarithm function in split monopole test.\nREQUIRES GSL\n", "interface": "# Interface definition for thorn GiRaFFEfood\nimplements: GiRaFFEFood\n\ninherits: HydroBase, ADMBase, Boundary, SpaceMask, grid, GiRaFFE, ShiftedKerrSchild # Needs mhd_st_i, vi, Ai, and Bi gridfunctions from GiRaFFE\n\n##analysis variables\nprotected:\n#Implemented for ExactWald and SplitMonopole\nCCTK_REAL delAi TYPE = GF timelevels = 1\n{\n delAx, delAy, delAz,delpsi6phi\n} \"the difference between the numerical and analytical solution\"\n\nCCTK_REAL delvi TYPE = GF timelevels = 1\n{\n delvx, delvy, delvz, exactVx,exactVy,exactVz\n} \"the difference between the numerical and analytical solution\"\n\nCCTK_REAL B2mE2 TYPE = GF timelevels = 1 \\\n\"The difference between the magnetic and electric fields\"\n\n#Implemented for ThreeAlfvenWaves, SplitMonopole and ExactWald\nCCTK_REAL delBi TYPE = GF timelevels = 1\n{\n delBx, delBy, delBz, exactBx,exactBy,exactBz\n} \"the difference between the numerical and analytical solution\"\n\nCCTK_REAL delBi_ThreeWaves TYPE = GF timelevels = 1\n{\n delBx_ThreeWaves, delBy_ThreeWaves, delBz_ThreeWaves, exactBx_ThreeWaves,exactBy_ThreeWaves,exactBz_ThreeWaves\n} \"the difference between the numerical and analytical solution for the Three Waves test\"\n\nCCTK_REAL ElectricFields TYPE = GF timelevels = 1\n{\n Ex,Ey,Ez\n} \"Electric field gridfunctions\"\n\n\n\nCCTK_INT FUNCTION \\\n GetRefinementLevel \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION GetRefinementLevel\n", - "params": "", + "param": "# Parameter definitions for thorn GiRaFFEfood\n\nshares: GiRaFFE\n\nUSES REAL GAMMA_SPEED_LIMIT\n\nshares: ShiftedKerrSchild\nUSES REAL KerrSchild_radial_shift\nUSES REAL BH_mass\nUSES REAL BH_spin\n\nrestricted:\n\nKEYWORD test_case \"Select the test case to be set as initial condition\"\n{\n \"FastWave\" :: \"Fast 1D force free wave travelling in Minkowski background\"\n \"AlfvenWave\" :: \"Alfven 2D force free wave\" \n \"DegenAlfvenWave\" :: \"Degenerate Alfven 2D force free wave\" \n \"ThreeAlfvenWave\" :: \"Three Alfven 2D force free waves\"\n \"FFEBreakdown\" :: \"Force free breakdown 2D test\"\n \"SplitMonopole\" :: \"Bandford-Znajek Split Monopole Test\"\n \"ExactWald\" :: \"Exact Wald Electrovacuum Solution\"\n \"MagnetoWald\" :: \"Magnetic Wald Force Free Solution\"\n \"AlignedRotator\" :: \"Aligned Rotator Solution\"\n} \"FastWave\"\n\n\nREAL wave_speed \"What is the wave speed relative to the grid frame?\"\n{\n -1.0:1.0 :: \"Anything between -1 and +1\"\n} -0.5 \n\nREAL split_C \"The constant for the split monopole solution\"\n{\n *:* :: \"Anything?\"\n} 1.0\n\nREAL Wald_B0 \"The constant for the exact Wald solution\"\n{\n *:* :: \"Anything?\"\n} 1.0\n\nBOOLEAN drop_fr_SplitM \"Should we drop f(r) and f'(r) for the Split Monopole solution?\"\n{\n} \"yes\" #Makes Split Monopole 1st order accurate, consistent with the papers. Otherwise the exact solution diverges! \n\nINT Compute_Exact_Every \"How often do we compute difference between exact and numerical (delAi quantities)?\"\n{\n -1:* :: \"-1 = disabled\"\n} 1\n\n# ALIGNED ROTATOR PARAMETERS\nREAL B_p_aligned_rotator \"The magnitude of the poloidal magnetic field in the aligned rotator test.\" STEERABLE=ALWAYS\n{\n *:* :: \"any real\"\n} 1e-5\n\nREAL Omega_aligned_rotator \"The angular velocity for the aligned rotator solution test.\" STEERABLE=ALWAYS\n{\n *:0) :: \"any negative value\"\n (0:* :: \"any positive value\"\n} 1e3 # the default = an arbitrary but crazy value that can be set to any value other than zero, as R_NS_aligned_rotator/Omega_aligned_rotator cannot result in a division by zero.\n\nREAL R_NS_aligned_rotator \"The radius of the so-called neutron star (NS) set by hand for the aligned rotator solution test.\" STEERABLE=ALWAYS\n{\n -1. :: \"disable the conservative-to-primitive solver modification\"\n (0:* :: \"any positive value\"\n} -1.\n", "schedule": "# Schedule definitions for thorn GiRaFFEfood\n\nSTORAGE: HydroBase::rho[1],HydroBase::press[1],HydroBase::eps[1],HydroBase::vel[1],HydroBase::Bvec[1],HydroBase::Avec[1],HydroBase::Aphi[1]\n\nSTORAGE: delAi, B2mE2, delBi, delvi, ElectricFields, delBi_ThreeWaves\n\nschedule GiRaFFEfood_CheckParameters at CCTK_PARAMCHECK\n{\n LANG: C\n} \"Check parameters\"\n\nschedule GROUP GiRaFFE_Initial IN CCTK_INITIAL after HydroBase_Initial before GiRaFFE_ID_Converter\n{\n} \"Schedule GiRaFFE functions in HydroBase_Initial\"\n\nschedule GiRaFFEfood_Set_HydroBase_to_Zero in GiRaFFE_Initial before GiRaFFE_Food after HydroBase_Aphi_zero\n{\n LANG: C\n} \"Set HydroBase quantities to zero, including velocity and magnetic potentials, before initialization.\"\n\nif (CCTK_Equals(test_case,\"FastWave\")) {\n schedule GiRaFFEfood_FastWave in GiRaFFE_Initial as GiRaFFE_Food\n {\n LANG: C\n } \"Fast 1D force free wave\"\n}\n\nif (CCTK_Equals(test_case,\"AlfvenWave\")) {\n schedule GiRaFFEfood_AlfvenWave in GiRaFFE_Initial as GiRaFFE_Food\n {\n LANG: C\n } \"Alfven 2D force free wave\"\n}\n\nif (CCTK_Equals(test_case,\"DegenAlfvenWave\")) {\n schedule GiRaFFEfood_DegenAlfvenWave in GiRaFFE_Initial as GiRaFFE_Food\n {\n LANG: C\n } \"Degenerate Alfven 2D force free wave\"\n}\n\nif (CCTK_Equals(test_case,\"ThreeAlfvenWave\")) {\n schedule GiRaFFEfood_ThreeAlfvenWave in GiRaFFE_Initial as GiRaFFE_Food \n {\n LANG: C\n } \"Three Alfven 2D force free waves\"\n}\n\nif (CCTK_Equals(test_case,\"FFEBreakdown\")) {\n schedule GiRaFFEfood_FFEBreakdown in GiRaFFE_Initial as GiRaFFE_Food\n {\n LANG: C\n } \"Force free breakdown 2D test\"\n}\n\nif (CCTK_Equals(test_case,\"SplitMonopole\")) {\n schedule GiRaFFEfood_SplitMonopole in GiRaFFE_Initial as GiRaFFE_Food\n {\n LANG: C\n } \"Bandford-Znajek Split Monopole Test\"\n\n}\n\nif (CCTK_Equals(test_case,\"ExactWald\")) {\n schedule GiRaFFEfood_ExactWald in GiRaFFE_Initial as GiRaFFE_Food\n {\n LANG: C\n } \"Exact Wald Electrovacuum Solution Test\"\n}\n\nif (CCTK_Equals(test_case,\"MagnetoWald\")) {\n schedule GiRaFFEfood_MagnetoWald in GiRaFFE_Initial as GiRaFFE_Food\n {\n LANG: C\n } \"Magnetic Wald Electrovacuum Solution Test\"\n}\n\nif (CCTK_Equals(test_case,\"AlignedRotator\")) {\n schedule GiRaFFEfood_AlignedRotator in GiRaFFE_Initial as GiRaFFE_Food\n {\n LANG: C\n } \"Aligned Rotator Solution Test\"\n}\n\n##########################################################\n\n#Error analysis\n\nif ( CCTK_Equals(test_case,\"ThreeAlfvenWave\") ) {\n schedule GiRaFFEfood_ErrorBThreeWaves at Analysis #in MoL_PostStep after AddtoTmunu\n {\n LANG: C\n OPTIONS: GLOBAL-EARLY,loop-local\n } \"Calculate the difference between the numerical and analytical magnetic field for the Three Wave\"\n}\n\nif ( CCTK_Equals(test_case,\"DegenAlfvenWave\") || CCTK_Equals(test_case,\"FastWave\") ) {\n schedule GiRaFFEfood_OutputFlatSpaceEfield at Analysis\n {\n LANG: C\n OPTIONS: GLOBAL-EARLY,loop-local\n } \"Output flat-space electric field\"\n}\n\nif ( CCTK_Equals(test_case,\"FFEBreakdown\") ) {\n schedule GiRaFFEfood_OutputB2mE2 at Analysis\n {\n LANG: C\n OPTIONS: GLOBAL-EARLY,loop-local\n } \"Output B^2 - E^2\"\n}\n\nif ( CCTK_Equals(test_case,\"SplitMonopole\") ) {\n schedule GiRaFFEfood_ErrorSplitM at Analysis before VIslab_InitializeIntegralCounter #in MoL_PostStep after AddtoTmunu\n {\n LANG: C\n OPTIONS: GLOBAL-EARLY,loop-local\n } \"Calculate the difference between the numerical and analytical magnetic field for the split monopole\" \n}\n\nif ( CCTK_Equals(test_case,\"ExactWald\") ) {\n schedule GiRaFFEfood_ConvergenceWald at Analysis before VIslab_InitializeIntegralCounter #at MoL_PostStep after AddtoTmunu\n {\n LANG: C\n## Uncommenting following line removes NaN's from t=0 data, but introduces weird results at later times.\n OPTIONS: GLOBAL-EARLY,loop-local\n# OPTIONS: GLOBAL,loop-local\n } \"Calculate the difference between the numerical and analytical vector potential for the Wald solution\"\n}\n\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn GiRaFFEfood\n\n# Source files in this directory\nSRCS = CheckParameters.cc \\\n FastWave.cc \\\n AlfvenWave.cc \\\n DegenAlfvenWave.cc \\\n ThreeAlfvenWave.cc \\\n FFEBreakdown.cc \\\n SplitMonopole.cc \\\n ExactWald.cc \\\n MagnetoWald.cc \\\n AlignedRotator.cc \\\n Set_HydroBase_to_Zero.cc\n\n# Subdirectories containing source files\nSUBDIRS =\n", diff --git a/WVUThorns_ID_converter_GiRaFFE.json b/WVUThorns_ID_converter_GiRaFFE.json index edf1fc68a1dde3a9d850bdb58c145f7610c438c5..20d48ab5a776ad14df361e87802653a29a540c2c 100644 --- a/WVUThorns_ID_converter_GiRaFFE.json +++ b/WVUThorns_ID_converter_GiRaFFE.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/zach_etienne/wvuthorns.git", "configuration": "", "interface": "# Interface definition for thorn ID_converter_GiRaFFE\n\nimplements: ID_converter_GiRaFFE\n\ninherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid, GiRaFFE\n\nuses include header: GiRaFFE_headers.h\nUSES INCLUDE: Symmetry.h\n", - "params": "", + "param": "# Parameter definitions for thorn ID_converter_GiRaFFE\n\nshares: GiRaFFE\nUSES REAL Sym_Bz\nUSES REAL GAMMA_SPEED_LIMIT\n\nprivate:\n\nINT random_seed \"Random seed for random, generally roundoff-level perturbation on initial data. Seeds srand(), and rand() is used for the RNG.\"\n{\n 0:99999999 :: \"Anything unsigned goes.\"\n} 0\n\nREAL random_pert \"Random perturbation atop data\"\n{\n *:* :: \"Anything goes.\"\n} 0\n", "schedule": "# Schedule definitions for thorn ID_converter_GiRaFFE\n\nschedule group GiRaFFE_ID_Converter at CCTK_INITIAL after HydroBase_Initial before Convert_to_HydroBase\n{\n} \"Translate ET-generated, HydroBase-compatible initial data and convert into variables used by GiRaFFE\"\n\nschedule set_GiRaFFE_metric_GRMHD_variables_based_on_HydroBase_and_ADMBase_variables IN GiRaFFE_ID_Converter as first_initialdata before TOV_Initial_Data\n{\n LANG: C\n OPTIONS: LOCAL\n # What the heck, let's synchronize everything!\n SYNC: GiRaFFE::grmhd_primitives_Bi, GiRaFFE::grmhd_primitives_allbutBi, GiRaFFE::em_Ax,GiRaFFE::em_Ay,GiRaFFE::em_Az,GiRaFFE::em_psi6phi,GiRaFFE::grmhd_conservatives,GiRaFFE::BSSN_quantities,ADMBase::metric,ADMBase::lapse,ADMBase::shift,ADMBase::curv\n} \"Convert HydroBase initial data (ID) to ID that GiRaFFE can read.\"\n\nschedule GiRaFFE_InitSymBound IN GiRaFFE_ID_Converter as third_initialdata after second_initialdata\n{\n SYNC: GiRaFFE::grmhd_conservatives,GiRaFFE::em_Ax,GiRaFFE::em_Ay,GiRaFFE::em_Az,GiRaFFE::em_psi6phi\n LANG: C\n} \"Schedule symmetries -- Actually just a placeholder function to ensure prolongation / processor syncs are done BEFORE the primitives solver.\"\n\nschedule GiRaFFE_compute_B_and_Bstagger_from_A IN GiRaFFE_ID_Converter as fourth_initialdata after third_initialdata\n{\n SYNC: GiRaFFE::grmhd_primitives_Bi\n LANG: C\n} \"Compute B and B_stagger from A\"\n\n# Nontrivial primitives solve, for vx,vy,vz:\nschedule GiRaFFE_conserv_to_prims_FFE IN GiRaFFE_ID_Converter as fifth_initialdata after fourth_initialdata\n{\n LANG: C\n} \"Applies the FFE condition B^2>E^2 and recomputes the velocities\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn ID_converter_GiRaFFE\n\n# Source files in this directory\nSRCS = set_GiRaFFE_metric_GRMHD_variables_based_on_HydroBase_and_ADMBase_variables.C\n", diff --git a/WVUThorns_ID_converter_ILGRMHD.json b/WVUThorns_ID_converter_ILGRMHD.json index 4279b47dcb507b04c4e264964d3eb95357340ecd..b0cd617233ecc7c4fd80cc8a0ad105e953380fdd 100644 --- a/WVUThorns_ID_converter_ILGRMHD.json +++ b/WVUThorns_ID_converter_ILGRMHD.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/zach_etienne/wvuthorns.git", "configuration": "", "interface": "# Interface definition for thorn ID_converter_ILGRMHD\n\nimplements: ID_converter_ILGRMHD\n\ninherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid, IllinoisGRMHD\n\nuses include header: IllinoisGRMHD_headers.h\nUSES INCLUDE: Symmetry.h\n", - "params": "", + "param": "# Parameter definitions for thorn ID_converter_ILGRMHD\n\nshares: IllinoisGRMHD\nUSES REAL rho_b_max\nUSES REAL rho_b_atm\nUSES REAL tau_atm\nUSES REAL K_poly\nUSES INT neos\nUSES REAL gamma_th\nUSES REAL Sym_Bz\nUSES REAL GAMMA_SPEED_LIMIT\nUSES REAL Psi6threshold\nUSES BOOLEAN update_Tmunu\n\nprivate:\n\nREAL Gamma_Initial \"Single Gamma-law EOS: Gamma\"\n{\n 0:* :: \"Positive or zero\"\n} 1.3\n\nREAL K_Initial \"Single Gamma-law EOS: K\"\n{\n 0:* :: \"Positive or zero\"\n} 1.0\n\nINT random_seed \"Random seed for random, generally roundoff-level perturbation on initial data. Seeds srand(), and rand() is used for the RNG.\"\n{\n 0:99999999 :: \"Anything unsigned goes.\"\n} 0\n\nREAL random_pert \"Random perturbation atop data\"\n{\n *:* :: \"Anything goes.\"\n} 0\n\nBOOLEAN pure_hydro_run \"Set the vector potential and corresponding EM gauge quantity to zero\"\n{\n} \"no\"\n\n", "schedule": "# Schedule definitions for thorn ID_converter_ILGRMHD\n\nSTORAGE: HydroBase::Avec[1], HydroBase::Aphi[1] # This will only allocate a single timelevel of storage if it's not already been allocated.\n\nschedule group IllinoisGRMHD_ID_Converter at CCTK_INITIAL after HydroBase_Initial before Convert_to_HydroBase\n{\n} \"Translate ET-generated, HydroBase-compatible initial data and convert into variables used by IllinoisGRMHD\"\n\nschedule set_IllinoisGRMHD_metric_GRMHD_variables_based_on_HydroBase_and_ADMBase_variables IN IllinoisGRMHD_ID_Converter as first_initialdata before TOV_Initial_Data\n{\n LANG: C\n OPTIONS: LOCAL\n # What the heck, let's synchronize everything!\n SYNC: IllinoisGRMHD::grmhd_primitives_Bi, IllinoisGRMHD::grmhd_primitives_Bi_stagger, IllinoisGRMHD::grmhd_primitives_allbutBi, IllinoisGRMHD::em_Ax,IllinoisGRMHD::em_Ay,IllinoisGRMHD::em_Az,IllinoisGRMHD::em_psi6phi,IllinoisGRMHD::grmhd_conservatives,IllinoisGRMHD::BSSN_quantities,ADMBase::metric,ADMBase::lapse,ADMBase::shift,ADMBase::curv\n} \"Convert HydroBase initial data (ID) to ID that IllinoisGRMHD can read.\"\n\nschedule IllinoisGRMHD_InitSymBound IN IllinoisGRMHD_ID_Converter as third_initialdata after second_initialdata\n{\n SYNC: IllinoisGRMHD::grmhd_conservatives,IllinoisGRMHD::em_Ax,IllinoisGRMHD::em_Ay,IllinoisGRMHD::em_Az,IllinoisGRMHD::em_psi6phi\n LANG: C\n} \"Schedule symmetries -- Actually just a placeholder function to ensure prolongation / processor syncs are done BEFORE the primitives solver.\"\n\nschedule IllinoisGRMHD_compute_B_and_Bstagger_from_A IN IllinoisGRMHD_ID_Converter as fourth_initialdata after third_initialdata\n{\n SYNC: IllinoisGRMHD::grmhd_primitives_Bi, IllinoisGRMHD::grmhd_primitives_Bi_stagger\n LANG: C\n} \"Compute B and B_stagger from A\"\n\nschedule IllinoisGRMHD_conserv_to_prims IN IllinoisGRMHD_ID_Converter as fifth_initialdata after fourth_initialdata\n{\n LANG: C\n} \"Compute primitive variables from conservatives. This is non-trivial, requiring a Newton-Raphson root-finder.\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn ID_converter_ILGRMHD\n\n# Source files in this directory\nSRCS = set_IllinoisGRMHD_metric_GRMHD_variables_based_on_HydroBase_and_ADMBase_variables.C\n", diff --git a/WVUThorns_IllinoisGRMHD.json b/WVUThorns_IllinoisGRMHD.json index 03f95f425a1ab5d1d5864a31c8a1de99e9f643a4..9ce4291ae5f0f944c2ca8b4826e6a62860c20fd6 100644 --- a/WVUThorns_IllinoisGRMHD.json +++ b/WVUThorns_IllinoisGRMHD.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/zach_etienne/wvuthorns.git", "configuration": "# Configuration definition for thorn IllinoisGRMHD\nREQUIRES EOS_Omni Boundary CartGrid3D SpaceMask\n\nPROVIDES IllinoisGRMHD\n{\n}\n", "interface": "# Interface definition for thorn IllinoisGRMHD\n\nimplements: IllinoisGRMHD\ninherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid\n\nincludes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h\n\nUSES INCLUDE: Symmetry.h\n\npublic:\n\n#vvvvvvvv EVOLVED VARIABLES vvvvvvvv#\n#cctk_real grmhd_conservatives type = GF TAGS='prolongation=\"Lag3\"' Timelevels=3\ncctk_real grmhd_conservatives type = GF Timelevels=3\n{\n rho_star,tau,mhd_st_x,mhd_st_y,mhd_st_z # Note that st = Stilde, as mhd_st_i = \\tilde{S}_i.\n} \"Evolved mhd variables\"\n\n# These variables are semi-staggered:\n# Ax is defined on the semi-staggered grid (i,j+1/2,k+1/2)\n# WARNING: WILL NOT WORK PROPERLY WITHOUT SEMI-STAGGERED PROLONGATION/RESTRICTION:\ncctk_real em_Ax type = GF Timelevels=3 tags='Prolongation=\"STAGGER011\"'\n{\n Ax\n} \"x-component of the vector potential, evolved when constrained_transport_scheme==3\"\n\n# Ay is defined on the semi-staggered grid (i+1/2,j,k+1/2)\n# WARNING: WILL NOT WORK PROPERLY WITHOUT SEMI-STAGGERED PROLONGATION/RESTRICTION:\ncctk_real em_Ay type = GF Timelevels=3 tags='Prolongation=\"STAGGER101\"'\n{\n Ay\n} \"y-component of the vector potential, evolved when constrained_transport_scheme==3\"\n# WARNING: WILL NOT WORK PROPERLY WITHOUT SEMI-STAGGERED PROLONGATION/RESTRICTION:\n\n# Az is defined on the semi-staggered grid (i+1/2,j+1/2,k)\ncctk_real em_Az type = GF Timelevels=3 tags='Prolongation=\"STAGGER110\"'\n{\n Az\n} \"z-component of the vector potential, evolved when constrained_transport_scheme==3\"\n\n# psi6phi is defined on the staggered grid (i+1/2,j+1/2,k+1/2)\n# WARNING: WILL NOT WORK PROPERLY WITHOUT FULLY-STAGGERED PROLONGATION/RESTRICTION:\n#\ncctk_real em_psi6phi type = GF Timelevels=3 tags='Prolongation=\"STAGGER111\"'\n{\n psi6phi \n} \"sqrt{gamma} Phi, where Phi is the em scalar potential\"\n#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#\n\n\n#vvvvvvv PRIMITIVE VARIABLES vvvvvvv#\n# TODO: split into groups with well defined symmetry properties: (rho_b, P, u0), (vx,vy,vz)\ncctk_real grmhd_primitives_allbutBi type = GF TAGS='InterpNumTimelevels=1 prolongation=\"none\"'\n{\n rho_b,P,vx,vy,vz\n} \"Primitive variables density, pressure, and components of three velocity v^i. Note that v^i is defined in terms of 4-velocity as: v^i = u^i/u^0. Note that this definition differs from the Valencia formalism.\"\n# It is useful to split Bi from Bi_stagger, since we're generally only interested in outputting Bi for diagnostics\ncctk_real grmhd_primitives_Bi type = GF TAGS='InterpNumTimelevels=1 prolongation=\"none\"'\n{\n Bx,By,Bz\n} \"B-field components defined at vertices.\"\ncctk_real grmhd_primitives_Bi_stagger type = GF TAGS='InterpNumTimelevels=1 prolongation=\"none\"'\n{\n Bx_stagger,By_stagger,Bz_stagger\n} \"B-field components defined at staggered points [Bx_stagger at (i+1/2,j,k),By_stagger at (i,j+1/2,k),Bz_stagger at (i,j,k+1/2)].\"\n#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#\n\n#vvvvvvv EQUATION OF STATE VARIABLES vvvvvvv#\nREAL eos_params_arrays1 TYPE=ARRAY DISTRIB=CONSTANT DIM=1 SIZE=10\n{\n rho_tab,P_tab,eps_tab\n} \"Equation of state (EOS) parameters\"\n\nREAL eos_params_arrays2 TYPE=ARRAY DISTRIB=CONSTANT DIM=1 SIZE=11\n{\n k_tab,gamma_tab\n} \"Equation of state (EOS) parameters\"\n\nREAL eos_params_scalar TYPE = SCALAR \n{\n n_poly\n} \"polytropic index\"\n#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#\n\n#vvvvvvv BSSN-based quantities, computed from ADM quantities.v vvvvvvv#\ncctk_real BSSN_quantities type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{\n gtxx,gtxy,gtxz,gtyy,gtyz,gtzz,gtupxx,gtupxy,gtupxz,gtupyy,gtupyz,gtupzz,phi_bssn,psi_bssn,lapm1\n} \"BSSN quantities, computed from ADM quantities\"\n#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#\n\n#vvvvvvv RHS VARIABLES vvvvvvv#\ncctk_real grmhd_conservatives_rhs type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{\n rho_star_rhs,tau_rhs,st_x_rhs,st_y_rhs,st_z_rhs\n} \"Storage for the right-hand side of the partial_t rho_star, partial_t tau, and partial_t tilde{S}_i equations. Needed for MoL timestepping.\"\n\ncctk_real em_Ax_rhs type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{ \n Ax_rhs \n} \"Storage for the right-hand side of the partial_t A_x equation. Needed for MoL timestepping.\"\ncctk_real em_Ay_rhs type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{\n Ay_rhs \n} \"Storage for the right-hand side of the partial_t A_y equation. Needed for MoL timestepping.\"\ncctk_real em_Az_rhs type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{ \n Az_rhs \n} \"Storage for the right-hand side of the partial_t A_z equation. Needed for MoL timestepping.\"\ncctk_real em_psi6phi_rhs type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{\n psi6phi_rhs \n} \"Storage for the right-hand side of the partial_t (psi^6 Phi) equation. Needed for MoL timestepping.\"\n#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#\n\nprivate:\n\n#vvvvvvv DIAGNOSTIC GRIDFUNCTIONS vvvvvvv#\ncctk_real diagnostic_gfs type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{\n failure_checker\n} \"Gridfunction to track conservative-to-primitives solver fixes. Beware that this gridfunction is overwritten at each RK substep.\"\n#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#\n\n#vvvvvvv TEMPORARY VARIABLES FOR RECONSTRUCTION vvvvvvv#\ncctk_real grmhd_primitives_reconstructed_temps type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{\n ftilde_gf,temporary,\n rho_br,Pr,vxr,vyr,vzr,Bxr,Byr,Bzr,Bx_staggerr,By_staggerr,Bz_staggerr,\n rho_bl,Pl,vxl,vyl,vzl,Bxl,Byl,Bzl,Bx_staggerl,By_staggerl,Bz_staggerl,\n vxrr,vxrl,vyrr,vyrl,vzrr,vzrl,vxlr,vxll,vylr,vyll,vzlr,vzll\n} \"Temporary variables used for primitives reconstruction\"\n#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#\n\n#vvvvvvv TEMPORARY VARIABLES USEFUL FOR A-FIELD EVOLUTION vvvvvvv#\ncctk_real grmhd_cmin_cmax_temps type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{\n cmin_x,cmax_x,\n cmin_y,cmax_y,\n cmin_z,cmax_z\n} \"Store min and max characteristic speeds in all three directions.\"\n#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#\n\n#vvvvvvv TEMPORARY VARIABLES USEFUL FOR FLUX COMPUTATION vvvvvvv#\ncctk_real grmhd_flux_temps type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{\n rho_star_flux,tau_flux,st_x_flux,st_y_flux,st_z_flux\n} \"Temporary variables for storing the flux terms of tilde{S}_i.\"\n#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#\n\n#vvvvvvv T^{\\mu \\nu}, stored to avoid expensive recomputation vvvvvvv#\ncctk_real TUPmunu type = GF TAGS='prolongation=\"none\" Checkpoint=\"no\"'\n{\n TUPtt,TUPtx,TUPty,TUPtz,TUPxx,TUPxy,TUPxz,TUPyy,TUPyz,TUPzz\n} \"T^{mu nu}, stored to avoid expensive recomputation\"\n#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#\n\n###########################################################################\n####################################################\n### Functions provided by MoL for registration ###\n####################################################\n\nCCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\nCCTK_INT FUNCTION MoLRegisterEvolvedSlow(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndexSlow)\nCCTK_INT FUNCTION MoLRegisterConstrained(CCTK_INT IN ConstrainedIndex)\nCCTK_INT FUNCTION MoLRegisterEvolvedGroup(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndex)\nCCTK_INT FUNCTION MoLRegisterEvolvedGroupSlow(CCTK_INT IN EvolvedIndex, \\\n CCTK_INT IN RHSIndexSlow)\nCCTK_INT FUNCTION MoLRegisterConstrainedGroup(CCTK_INT IN ConstrainedIndex)\nCCTK_INT FUNCTION MoLRegisterSaveAndRestoreGroup(CCTK_INT IN SandRIndex)\n\nUSES FUNCTION MoLRegisterEvolved\nUSES FUNCTION MoLRegisterEvolvedSlow\nUSES FUNCTION MoLRegisterConstrained\nUSES FUNCTION MoLRegisterEvolvedGroup\nUSES FUNCTION MoLRegisterEvolvedGroupSlow\nUSES FUNCTION MoLRegisterConstrainedGroup\nUSES FUNCTION MoLRegisterSaveAndRestoreGroup\n\n#########################################\n### Aliased functions from Boundary ###\n#########################################\n\nCCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_STRING IN var_name, CCTK_STRING IN bc_name)\nCCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, \\\n CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \\\n CCTK_STRING IN group_name, CCTK_STRING IN bc_name)\n\nUSES FUNCTION Boundary_SelectVarForBC\nUSES FUNCTION Boundary_SelectGroupForBC\n###########################################################################\n\n#########################################\n### Aliased functions from Carpet ###\n#########################################\n\nCCTK_INT FUNCTION \\\n GetRefinementLevel \\\n (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION GetRefinementLevel\n", - "params": "", + "param": "# Parameter definitions for thorn IllinoisGRMHD\n\nshares: ADMBase\nUSES CCTK_INT lapse_timelevels\nUSES CCTK_INT shift_timelevels\nUSES CCTK_INT metric_timelevels\n\n#########################################################\nrestricted:\n#########################################################\n# Verbosity Level\nKEYWORD verbose \"Determines how much evolution information is output\" STEERABLE=ALWAYS\n{\n \"no\" :: \"Complete silence\"\n \"essential\" :: \"Essential health monitoring of the GRMHD evolution: Information about conservative-to-primitive fixes, etc.\"\n \"essential+iteration output\" :: \"Outputs health monitoring information, plus a record of which RK iteration. Very useful for backtracing a crash.\"\n} \"essential+iteration output\"\n#########################################################\n\n\n#########################################################\n# SPEED LIMIT: Set maximum relativistic gamma factor\n# \nREAL GAMMA_SPEED_LIMIT \"Maximum relativistic gamma factor.\"\n{\n 1:* :: \"Positive > 1, though you'll likely have troubles far above 10.\"\n} 10.0\n#########################################################\n\n#########################################################\n# CONSERV TO PRIMS PARAMETERS\n\n# FIXME: Enable this parameter! IllinoisGRMHD is currently hard-coded to tau_stildefix_enable=2.\n#INT tau_stildefix_enable \"tau<0 fix in primitive_vars_hybrid2 to reduce number of Font fixes, especially in puncture+matter evolutions\" STEERABLE=ALWAYS\n#{\n# 0:3 :: \"zero (disable), one (enable everywhere), or two (enable only where Psi6 > Psi6threshold [i.e., inside the horizon, where B's are set to zero], or three (kludge: set B=0 if tau<0 inside horizon))\"\n#} 0\n\nBOOLEAN update_Tmunu \"Update Tmunu, for RHS of Einstein's equations?\" STEERABLE=ALWAYS\n{\n} \"yes\"\n\n############################\n# Limiters on tau and rho_b:\nREAL tau_atm \"Floor value on the energy variable tau (cf. tau_stildefix_enable). Given the variety of systems this code may encounter, there *is no reasonable default*. Effectively the current (enormous) value should disable the tau_atm floor. Please set this in your initial data thorn, and reset at will during evolutions.\" STEERABLE=ALWAYS\n{\n 0:* :: \"Positive\"\n} 1e100\n\nREAL rho_b_atm \"Floor value on the baryonic rest mass density rho_b (atmosphere). Given the variety of systems this code may encounter, there *is no reasonable default*. Your run will die unless you override this default value in your initial data thorn.\" STEERABLE=ALWAYS\n{\n *:* :: \"Allow for negative values. This enables us to debug the code and verify if rho_b_atm is properly set.\"\n} 1e200\n\nREAL rho_b_max \"Ceiling value on the baryonic rest mass density rho_b. The enormous value effectively disables this ceiling by default. It can be quite useful after a black hole has accreted a lot of mass, leading to enormous densities inside the BH. To enable this trick, set rho_b_max in your initial data thorn! You are welcome to change this parameter mid-run (after restarting from a checkpoint).\" STEERABLE=ALWAYS\n{\n 0:* :: \"Note that you will have problems unless rho_b_atm Psi6threshold, we assume we're inside the horizon in the primitives solver, and certain limits are relaxed or imposed\" STEERABLE=ALWAYS\n{\n *:* :: \"Can set to anything\"\n} 1e100\n#########################################################\n\n#########################################################\n# EQUATION OF STATE PARAMS, LOOK FOR MORE IN interface.ccl!\nINT neos \"number of parameters in EOS table. If you want to increase from the default max value, you MUST also set eos_params_arrays1 and eos_params_arrays2 in interface.ccl to be consistent!\"\n{\n 1:10 :: \"Any integer between 1 and 10\"\n} 1\n\nREAL gamma_th \"thermal gamma parameter\"\n{\n 0:* :: \"Physical values\"\n-1 :: \"forbidden value to make sure it is explicitly set in the parfile\"\n} -1\n\nREAL K_poly \"initial polytropic constant\"\n{\n 0:* :: \"Positive\"\n} 1.0\n#########################################################\n\n#########################################################\n# OUTER BOUNDARY CONDITION CHOICE\nKEYWORD Matter_BC \"Chosen Matter boundary condition\"\n{\n \"outflow\" :: \"Outflow boundary conditions\"\n \"frozen\" :: \"Frozen boundaries\"\n} \"outflow\"\n\nKEYWORD EM_BC \"EM field boundary condition\"\n{\n \"copy\" :: \"Copy data from nearest boundary point\"\n \"frozen\" :: \"Frozen boundaries\"\n} \"copy\"\n#########################################################\n\n\n#########################################################\n# SYMMETRY BOUNDARY PARAMS. Needed for handling staggered gridfunctions.\nKEYWORD Symmetry \"Currently only no symmetry supported, though work has begun in adding equatorial-symmetry support. FIXME: Extend ET symmetry interface to support symmetries on staggered gridfunctions\"\n{\n \"none\" :: \"no symmetry, full 3d domain\"\n} \"none\"\n\nREAL Sym_Bz \"In-progress equatorial symmetry support: Symmetry parameter across z axis for magnetic fields = +/- 1\"\n{\n -1.0:1.0 :: \"Set to +1 or -1.\"\n} 1.0\n#########################################################\n\n###############################################################################################\nprivate:\n\n#########################################################\n# EVOLUTION PARAMS\nREAL damp_lorenz \"Damping factor for the generalized Lorenz gauge. Has units of 1/length = 1/M. Typically set this parameter to 1.5/(maximum Delta t on AMR grids).\" STEERABLE=ALWAYS\n{\n *:* :: \"any real\"\n} 0.0\n#########################################################\n", "schedule": "# Scheduler setup for IllinoisGRMHD\n\nSTORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels]\nSTORAGE: IllinoisGRMHD::BSSN_quantities\n\nSTORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] \nSTORAGE: grmhd_primitives_allbutBi,grmhd_primitives_Bi,grmhd_primitives_Bi_stagger,grmhd_primitives_reconstructed_temps,grmhd_conservatives_rhs,em_Ax_rhs,em_Ay_rhs,em_Az_rhs,em_psi6phi_rhs,grmhd_cmin_cmax_temps,grmhd_flux_temps,TUPmunu,diagnostic_gfs\nSTORAGE: eos_params_arrays1,eos_params_arrays2,eos_params_scalar\n\n####################\n# RUN INITIALLY ONLY\nschedule IllinoisGRMHD_RegisterVars in MoL_Register after BSSN_RegisterVars after lapse_RegisterVars\n{\n LANG: C\n OPTIONS: META\n} \"Register evolved, rhs variables in IllinoisGRMHD for MoL\"\n\n# Tells the symmetry thorn how to apply symmetries on each gridfunction:\nschedule IllinoisGRMHD_InitSymBound at BASEGRID after Lapse_InitSymBound\n{\n LANG: C\n} \"Schedule symmetries\"\n####################\n\n####################\n# POSTPOSTINITIAL\n# HydroBase_Con2Prim in CCTK_POSTPOSTINITIAL sets conserv to prim then\n# outer boundaries (OBs, which are technically disabled). The post OB \n# SYNCs actually reprolongate the conservative variables, making cons\n# and prims INCONSISTENT. So here we redo the con2prim, avoiding the \n# SYNC afterward, then copy the result to other timelevels\"\nschedule GROUP IllinoisGRMHD_PostPostInitial at CCTK_POSTPOSTINITIAL before MoL_PostStep after HydroBase_Con2Prim\n{\n} \"HydroBase_Con2Prim in CCTK_POSTPOSTINITIAL sets conserv to prim then outer boundaries (OBs, which are technically disabled). The post OB SYNCs actually reprolongate the conservative variables, making cons and prims INCONSISTENT. So here we redo the con2prim, avoiding the SYNC afterward, then copy the result to other timelevels\"\n\nschedule IllinoisGRMHD_InitSymBound in IllinoisGRMHD_PostPostInitial as postid before compute_b\n{\n SYNC: grmhd_conservatives,em_Ax,em_Ay,em_Az,em_psi6phi\n LANG: C\n} \"Schedule symmetries -- Actually just a placeholder function to ensure prolongations / processor syncs are done BEFORE outer boundaries are updated.\"\n\n# Easiest primitives to solve for: B^i\nschedule IllinoisGRMHD_compute_B_and_Bstagger_from_A in IllinoisGRMHD_PostPostInitial as compute_b after postid after empostid after lapsepostid\n{\n # This is strictly a processor sync, as prolongation is disabled for all primitives & B^i's.\n SYNC: grmhd_primitives_Bi,grmhd_primitives_Bi_stagger # FIXME: Are both SYNC's necessary?\n LANG: C\n} \"Compute B and B_stagger from A SYNC: grmhd_primitives_Bi,grmhd_primitives_Bi_stagger\"\n\n# Nontrivial primitives solve, for P,rho_b,vx,vy,vz:\nschedule IllinoisGRMHD_conserv_to_prims in IllinoisGRMHD_PostPostInitial after compute_b\n{\n LANG: C\n} \"Compute primitive variables from conservatives. This is non-trivial, requiring a Newton-Raphson root-finder.\"\n\n# Copy data to other timelevels.\nschedule IllinoisGRMHD_PostPostInitial_Set_Symmetries__Copy_Timelevels in IllinoisGRMHD_PostPostInitial as mhdpostid after compute_b after p2c\n{\n LANG: C\n} \"Compute post-initialdata quantities\"\n####################\n\n####################\n# RHS EVALUATION\nschedule IllinoisGRMHD_driver_evaluate_MHD_rhs in MoL_CalcRHS as IllinoisGRMHD_RHS_eval after bssn_rhs after shift_rhs\n{\n LANG: C\n} \"Evaluate RHSs of GR Hydro & GRMHD equations\"\n####################\n\n\n############################################################\n# COMPUTE B FROM A & RE-SOLVE FOR PRIMITIVES\n# After a full timestep, there are two types of boundaries that need filling:\n# (A) Outer boundaries (on coarsest level)\n# (B) AMR grid refinement boundaries\n\n# (A) OUTER BOUNDARY STEPS:\n# ( 0) Synchronize (prolongate/restrict) all evolved variables\n# ( 1) Apply outer boundary conditions (BCs) on A_{\\mu}\n# ( 2) Compute B^i from A_i everywhere, synchronize (processor sync) B^i\n# ( 3) Call con2prim to get consistent primitives {P,rho_b,vx,vy,vz} and conservatives at all points (if no restriction, really only need interior)\n# ( 4) Apply outer BCs on {P,rho_b,vx,vy,vz}, recompute conservatives.\n\n# (B) AMR GRID REFINEMENT BOUNDARY STEPS:\n# Same as steps 0,2,3 above. Just need if() statements in steps 1,4 to prevent \"outer boundaries\" being updated\n# Problem: all the sync's in outer boundary updates might just overwrite prolongated values.\n############################################################\n\nschedule IllinoisGRMHD_InitSymBound in HydroBase_Boundaries as Boundary_SYNCs before compute_B_postrestrict\n{\n SYNC: grmhd_conservatives,em_Ax,em_Ay,em_Az,em_psi6phi\n LANG: C\n} \"Schedule symmetries -- Actually just a placeholder function to ensure prolongations / processor syncs are done BEFORE outer boundaries are updated.\"\n\nschedule IllinoisGRMHD_outer_boundaries_on_A_mu in HydroBase_Boundaries after Boundary_SYNCs before mhd_conserv2prims_postrestrict\n{\n LANG: C\n} \"Apply linear extrapolation BCs on A_{mu}, so that BCs are flat on B^i.\"\n\n# Easiest primitives to solve for: B^i.\n# Note however that B^i depends on derivatives of A_{\\mu}, so a SYNC is necessary on B^i.\nschedule IllinoisGRMHD_compute_B_and_Bstagger_from_A in HydroBase_Boundaries after outer_boundaries_on_A_mu\n{\n # This is strictly a processor sync, as prolongation is disabled for all B^i's.\n SYNC: grmhd_primitives_Bi,grmhd_primitives_Bi_stagger # FIXME: Are both SYNC's necessary?\n LANG: C\n} \"Compute B and B_stagger from A, SYNC: grmhd_primitives_Bi,grmhd_primitives_Bi_stagger\"\n\n# Nontrivial primitives solve, for P,rho_b,vx,vy,vz.\nschedule IllinoisGRMHD_conserv_to_prims in AddToTmunu after compute_B_and_Bstagger_from_A\n{\n LANG: C\n} \"Compute primitive variables from conservatives. This is non-trivial, requiring a Newton-Raphson root-finder.\"\n\nschedule IllinoisGRMHD_outer_boundaries_on_P_rho_b_vx_vy_vz in AddToTmunu after IllinoisGRMHD_conserv_to_prims\n{\n# We must sync {P,rho_b,vx,vy,vz} here.\n SYNC: grmhd_primitives_allbutBi\n LANG: C\n} \"Apply outflow-only, flat BCs on {P,rho_b,vx,vy,vz}. Outflow only == velocities pointed inward from outer boundary are set to zero.\"\n##########################################################\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn IllinoisGRMHD\n\n# Source files in this directory\nSRCS = InitSymBound.C MoL_registration.C \\\n \\\n postpostinitial__set_symmetries__copy_timelevels.C \\\n \\\n convert_ADM_to_BSSN__enforce_detgtij_eq_1__and_compute_gtupij.C \\\n \\\n driver_evaluate_MHD_rhs.C \\\n compute_B_and_Bstagger_from_A.C \\\n driver_conserv_to_prims.C \\\n symmetry__set_gzs_staggered_gfs.C \\\n \\\n outer_boundaries.C\n", diff --git a/WVUThorns_Seed_Magnetic_Fields.json b/WVUThorns_Seed_Magnetic_Fields.json index a7dc44d426eabc3765fee8b0524d28ecc423c031..0928512707c95adeb06d96118ea7ceba89bd3448 100644 --- a/WVUThorns_Seed_Magnetic_Fields.json +++ b/WVUThorns_Seed_Magnetic_Fields.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/zach_etienne/wvuthorns.git", "configuration": "", "interface": "# Interface definition for thorn Seed_Magnetic_Fields\n\nIMPLEMENTS: seed_magnetic_fields\n\nINHERITS: grid ADMBase HydroBase", - "params": "", + "param": "# Parameter definitions for thorn Seed_Magnetic_Fields\n\nrestricted:\nBOOLEAN enable_IllinoisGRMHD_staggered_A_fields \"Define A fields on an IllinoisGRMHD staggered grid\"\n{\n} \"yes\"\n\nKEYWORD Afield_type \"A-field prescription\"\n{\n\"Pressure_prescription\" :: \"A_phi propto (P - P_cut)^n_s\"\n\"Density_prescription\" :: \"A_phi propto rho\"\n} \"Pressure_prescription\"\n\nBOOLEAN enable_varpi_squared_multiplication \"Multiply A_phi by varpi^2?\"\n{\n} \"yes\"\n\nREAL A_b \"Magnetic field strength parameter.\"\n{\n *:* :: \"Any real\"\n} 1e-3\n\nREAL P_cut \"Cutoff pressure, below which vector potential is set to zero. Typically set to 4% of the maximum initial pressure.\"\n{\n 0:* :: \"Positive\"\n} 1e-5\n\nREAL n_s \"Magnetic field strength pressure exponent.\"\n{\n *:* :: \"Any real\"\n} 1.0\n\nREAL rho_cut \"Cutoff density, below which vector potential is set to zero. Typically set to 20% of the maximum initial density.\"\n{\n 0:* :: \"Positive\"\n} 0.2 # If max density = 1.0\n\n", "schedule": "# Schedule definitions for thorn Seed_Magnetic_Fields\n\n# Zach says: these explicit STORAGE statements ARE necessary. Otherwise, segfault.\nSTORAGE: HydroBase::rho[1],HydroBase::press[1],HydroBase::eps[1],HydroBase::vel[1],HydroBase::Bvec[1],HydroBase::Avec[1],HydroBase::Aphi[1]\n\nSCHEDULE Seed_Magnetic_Fields at CCTK_INITIAL after HydroBase_Initial before IllinoisGRMHD_ID_Converter\n{\n LANG: C\n} \"Set up seed magnetic field configuration.\"\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn Seed_Magnetic_Fields\n\n# Source files in this directory\nSRCS = Seed_Magnetic_Fields.C\n\n# Subdirectories containing source files\nSUBDIRS =\n", diff --git a/WVUThorns_ShiftedKerrSchild.json b/WVUThorns_ShiftedKerrSchild.json index 462c5c6db8ea4e822aa2d5c43f63db53a123175a..fba3f076d50da5302268bf734c5995b833e78863 100644 --- a/WVUThorns_ShiftedKerrSchild.json +++ b/WVUThorns_ShiftedKerrSchild.json @@ -3,7 +3,7 @@ "url": "https://bitbucket.org/zach_etienne/wvuthorns.git", "configuration": "# Configuration definitions for thorn ShiftedKerrSchild\nREQUIRES Boundary CartGrid3D GiRaFFE\n\nPROVIDES ShiftedKerrSchild\n{\n}\n", "interface": "# Interface definition for thorn ShiftedKerrSchild\nimplements: ShiftedKerrSchild\ninherits: ADMBase, Boundary, grid\n\nprotected:\n# Shouldn't need to store any gridfunctions in this thorn.\n\npublic:\nREAL ShiftedKerrSchild_3metric_shift TYPE = GF timelevels = 1 tags='prolongation=\"none\"'\n{\n SKSgrr,SKSgrth,SKSgrph,SKSgthth,SKSgthph,SKSgphph,\n SKSbetar,SKSbetath,SKSbetaph\n} \"Shifted Kerr-Schild 3 metric and shift\"\n", - "params": "", + "param": "# Parameter definitions for thorn ShiftedKerrSchild\n\nshares: ADMBase\n\n# right now we only support the \"physical metric type\"\nUSES KEYWORD metric_type\n\nEXTENDS KEYWORD initial_data \n{\n \"ShiftedKerrSchild\" :: \"Initial data from ShiftedKerrSchild solution\"\n}\nEXTENDS KEYWORD initial_lapse\n{\n \"ShiftedKerrSchild\" :: \"Initial lapse from ShiftedKerrSchild solution\"\n}\nEXTENDS KEYWORD initial_shift\n{\n \"ShiftedKerrSchild\" :: \"Initial shift from ShiftedKerrSchild solution\"\n}\n\nrestricted:\n\nREAL KerrSchild_radial_shift \"Radial shift for Kerr Schild initial data. Actual shift = KerrSchild_radial_shift*BH_mass\"\n{\n 0.0:* :: \"Positive\"\n} 0.0\n\nREAL BH_mass \"The mass of the black hole. Let's keep this at 1!\"\n{\n 0.0:* :: \"Positive\"\n} 1.0\n\nREAL BH_spin \"The z-axis *dimensionless* spin of the black hole\"\n{\n -1.0:1.0 :: \"Anything between -1 and +1\"\n} 0.0\n", "schedule": "# Schedule definitions for thorn ShiftedKerrSchild\n\nSTORAGE: ShiftedKerrSchild_3metric_shift[1]\n\n# The C code selectively only sets the quantities asked for so this just keeps\n# the schedule tidy\nif (CCTK_EQUALS(initial_data , \"ShiftedKerrSchild\") ||\n CCTK_EQUALS(initial_lapse, \"ShiftedKerrSchild\") ||\n CCTK_EQUALS(initial_shift, \"ShiftedKerrSchild\")) {\n\n schedule ShiftedKerrSchild_ParamCheck AT PARAMCHECK\n {\n LANG: C\n } \"Check parameters for consitency and unsupported values\"\n\n schedule GROUP ShiftedKerrSchild_Initial IN CCTK_INITIAL before HydroBase_Initial after ADMBase_InitialGauge\n {\n } \"Schedule ShiftedKerrSchild initial data group\"\n\n schedule ShiftedKS_ID in ShiftedKerrSchild_Initial\n {\n LANG: C\n } \"Set up shifted Kerr-Schild initial data\"\n\n schedule ShiftedKS_ID in CCTK_PRESTEP\n {\n LANG: C\n } \"Set up shifted Kerr-Schild initial data\"\n\n schedule ShiftedKS_ID in CCTK_ANALYSIS\n {\n LANG: C\n } \"Set up shifted Kerr-Schild initial data\"\n\n}\n", "src": { "make.code.defn": "# Main make.code.defn file for thorn ShiftedKerrSchild\n\n# Source files in this directory\nSRCS = ShiftedKerrSchild.c\n\n# Subdirectories containing source files\nSUBDIRS =\n",