xinshuo commited on
Commit
10a2580
·
verified ·
1 Parent(s): 7ea5ac2

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. CTThorns_CT_Analytic.json +1 -1
  2. CTThorns_CT_MultiLevel.json +1 -1
  3. CactusBase_Boundary.json +1 -1
  4. CactusBase_CartGrid3D.json +1 -1
  5. CactusBase_CoordBase.json +1 -1
  6. CactusBase_Fortran.json +1 -1
  7. CactusBase_IOASCII.json +1 -1
  8. CactusBase_IOBasic.json +1 -1
  9. CactusBase_IOUtil.json +1 -1
  10. CactusBase_InitBase.json +1 -1
  11. CactusBase_SymBase.json +1 -1
  12. CactusBase_Time.json +1 -1
  13. CactusConnect_HTTPD.json +1 -1
  14. CactusConnect_HTTPDExtra.json +1 -1
  15. CactusConnect_Socket.json +1 -1
  16. CactusElliptic_EllBase.json +1 -1
  17. CactusElliptic_EllSOR.json +1 -1
  18. CactusElliptic_TATelliptic.json +1 -1
  19. CactusExamples_DemoInterp.json +1 -1
  20. CactusExamples_FleshInfo.json +1 -1
  21. CactusExamples_HelloWorld.json +1 -1
  22. CactusExamples_IDWaveMoL.json +1 -1
  23. CactusExamples_Poisson.json +1 -1
  24. CactusExamples_SampleBoundary.json +1 -1
  25. CactusExamples_SampleIO.json +1 -1
  26. CactusExamples_TimerInfo.json +1 -1
  27. CactusExamples_WaveMoL.json +1 -1
  28. CactusExamples_WaveToy1DF77.json +1 -1
  29. CactusExamples_WaveToy2DF77.json +1 -1
  30. CactusIO_IOJpeg.json +1 -1
  31. CactusNumerical_Cartoon2D.json +1 -1
  32. CactusNumerical_Dissipation.json +1 -1
  33. CactusNumerical_InterpToArray.json +1 -1
  34. CactusNumerical_LocalInterp.json +1 -1
  35. CactusNumerical_LocalInterp2.json +1 -1
  36. CactusNumerical_LocalReduce.json +1 -1
  37. CactusNumerical_MoL.json +1 -1
  38. CactusNumerical_Noise.json +1 -1
  39. CactusNumerical_Norms.json +1 -1
  40. CactusNumerical_Periodic.json +1 -1
  41. CactusNumerical_ReflectionSymmetry.json +1 -1
  42. CactusNumerical_RotatingSymmetry180.json +1 -1
  43. CactusNumerical_RotatingSymmetry90.json +1 -1
  44. CactusNumerical_Slab.json +1 -1
  45. CactusNumerical_SlabTest.json +1 -1
  46. CactusNumerical_SpaceMask.json +1 -1
  47. CactusNumerical_SphericalSurface.json +1 -1
  48. CactusNumerical_SummationByParts.json +1 -1
  49. CactusNumerical_TensorTypes.json +1 -1
  50. CactusNumerical_TestLocalInterp2.json +1 -1
CTThorns_CT_Analytic.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/eloisa/ctthorns.git",
4
  "configuration": "# File produced by Kranc\n\nREQUIRES GenericFD\nOPTIONAL LoopControl\n{\n}\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "CT_Analytic_LumpBoundary.cc": "/* File produced by Kranc */\n\n#define KRANC_C\n\n#include <algorithm>\n#include <assert.h>\n#include <math.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\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",
 
3
  "url": "https://bitbucket.org/eloisa/ctthorns.git",
4
  "configuration": "# File produced by Kranc\n\nREQUIRES GenericFD\nOPTIONAL LoopControl\n{\n}\n",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "CT_Analytic_LumpBoundary.cc": "/* File produced by Kranc */\n\n#define KRANC_C\n\n#include <algorithm>\n#include <assert.h>\n#include <math.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\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",
CTThorns_CT_MultiLevel.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/eloisa/ctthorns.git",
4
  "configuration": "REQUIRES Carpet MPI\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/eloisa/ctthorns.git",
4
  "configuration": "REQUIRES Carpet MPI\n",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusBase_Boundary.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusbase.git",
4
  "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",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusbase.git",
4
  "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",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusBase_CartGrid3D.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusbase.git",
4
  "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",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusbase.git",
4
  "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",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusBase_CoordBase.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusbase.git",
4
  "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",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusbase.git",
4
  "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",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusBase_Fortran.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusbase.git",
4
  "configuration": "# Configuration definition for thorn Fortran\n\nPROVIDES Fortran\n{\n SCRIPT fortran.sh\n LANG sh\n}\n\nREQUIRES Fortran\n",
5
  "interface": "# Interface definition for thorn Fortran\n\nIMPLEMENTS: Fortran\n\nINCLUDES SOURCE: fortran.h IN fortran.h\n",
6
- "params": "",
7
  "schedule": "# Schedule definitions for thorn Fortran\n\nSCHEDULE CheckFortranParameters AT paramcheck\n{\n LANG: Fortran\n} \"Test whether Fortran parameters work correctly\"\n",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusbase.git",
4
  "configuration": "# Configuration definition for thorn Fortran\n\nPROVIDES Fortran\n{\n SCRIPT fortran.sh\n LANG sh\n}\n\nREQUIRES Fortran\n",
5
  "interface": "# Interface definition for thorn Fortran\n\nIMPLEMENTS: Fortran\n\nINCLUDES SOURCE: fortran.h IN fortran.h\n",
6
+ "param": "# Parameter definitions for thorn Fortran\n\nCCTK_INT one \"This parameter has the value one\"\n{\n 1:1 :: \"1\"\n} 1\n",
7
  "schedule": "# Schedule definitions for thorn Fortran\n\nSCHEDULE CheckFortranParameters AT paramcheck\n{\n LANG: Fortran\n} \"Test whether Fortran parameters work correctly\"\n",
8
  "src": {
9
  "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",
CactusBase_IOASCII.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusbase.git",
4
  "configuration": "# Configuration definition for thorn IOASCII\n# $Header$\n\nREQUIRES IOUtil\n\nREQUIRES THORNS: IOUtil\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusbase.git",
4
  "configuration": "# Configuration definition for thorn IOASCII\n# $Header$\n\nREQUIRES IOUtil\n\nREQUIRES THORNS: IOUtil\n",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusBase_IOBasic.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusbase.git",
4
  "configuration": "# Configuration definition for thorn IOBasic\n# $Header$\n\nREQUIRES IOUtil\n\nREQUIRES THORNS: IOUtil\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusbase.git",
4
  "configuration": "# Configuration definition for thorn IOBasic\n# $Header$\n\nREQUIRES IOUtil\n\nREQUIRES THORNS: IOUtil\n",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusBase_IOUtil.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusbase.git",
4
  "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",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusbase.git",
4
  "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",
5
  "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",
6
+ "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 <recover_dir>\"\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",
7
  "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",
8
  "src": {
9
  "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",
CactusBase_InitBase.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusbase.git",
4
  "configuration": "",
5
  "interface": "# Interface definition for thorn InitBase\n\nIMPLEMENTS: InitBase\n",
6
- "params": "",
7
  "schedule": "# Schedule definitions for thorn InitBase\n",
8
  "src": {
9
  "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"
 
3
  "url": "https://bitbucket.org/cactuscode/cactusbase.git",
4
  "configuration": "",
5
  "interface": "# Interface definition for thorn InitBase\n\nIMPLEMENTS: InitBase\n",
6
+ "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",
7
  "schedule": "# Schedule definitions for thorn InitBase\n",
8
  "src": {
9
  "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"
CactusBase_SymBase.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusbase.git",
4
  "configuration": "",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusbase.git",
4
  "configuration": "",
5
  "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",
6
+ "param": "# Parameter definitions for thorn SymBase\n# $Header$\n\nBOOLEAN verbose \"Output symmetry boundary face descriptions after registration\"\n{\n} \"yes\"\n",
7
  "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",
8
  "src": {
9
  "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",
CactusBase_Time.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusbase.git",
4
  "configuration": "",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusbase.git",
4
  "configuration": "",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusConnect_HTTPD.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusconnect.git",
4
  "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",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusconnect.git",
4
  "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",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusConnect_HTTPDExtra.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusconnect.git",
4
  "configuration": "# Configuration definition for thorn http_utils\n# $Header$\n\nREQUIRES HTTPD IOUTIL\n\nOPTIONAL MPI\n{\n}\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusconnect.git",
4
  "configuration": "# Configuration definition for thorn http_utils\n# $Header$\n\nREQUIRES HTTPD IOUTIL\n\nOPTIONAL MPI\n{\n}\n",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusConnect_Socket.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusconnect.git",
4
  "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",
5
  "interface": "# Interface definition for thorn Socket\n# $Header$\n\nimplements: Socket\n\nINCLUDE HEADER: SocketUtils.h in SocketUtils.h\n",
6
- "params": "",
7
  "schedule": "# Schedule definitions for thorn Socket\n# $Header$\n",
8
  "src": {
9
  "make.code.defn": "# Main make.code.defn file for thorn Socket\n# $Header$\n\n# Source files in this directory\nSRCS = Utils.c\n",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusconnect.git",
4
  "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",
5
  "interface": "# Interface definition for thorn Socket\n# $Header$\n\nimplements: Socket\n\nINCLUDE HEADER: SocketUtils.h in SocketUtils.h\n",
6
+ "param": "# Parameter definitions for thorn Socket\n# $Header$\n",
7
  "schedule": "# Schedule definitions for thorn Socket\n# $Header$\n",
8
  "src": {
9
  "make.code.defn": "# Main make.code.defn file for thorn Socket\n# $Header$\n\n# Source files in this directory\nSRCS = Utils.c\n",
CactusElliptic_EllBase.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactuselliptic.git",
4
  "configuration": "PROVIDES EllBase\n{\n SCRIPT\n LANG\n}\n\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactuselliptic.git",
4
  "configuration": "PROVIDES EllBase\n{\n SCRIPT\n LANG\n}\n\n",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusElliptic_EllSOR.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactuselliptic.git",
4
  "configuration": "# Configuration definition for thorn EllSOR\n# $Header$\n\nREQUIRES Boundary CartGrid3D\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactuselliptic.git",
4
  "configuration": "# Configuration definition for thorn EllSOR\n# $Header$\n\nREQUIRES Boundary CartGrid3D\n",
5
  "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",
6
+ "param": "# Parameter definitions for thorn EllSOR\n# $Header$\n\nshares:ellbase\n\nUSES KEYWORD elliptic_verbose \n",
7
  "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",
8
  "src": {
9
  "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",
CactusElliptic_TATelliptic.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactuselliptic.git",
4
  "configuration": "# Configuration definition for thorn TATelliptic\n\nPROVIDES TATelliptic\n{\n SCRIPT\n LANG\n}\n",
5
  "interface": "# Interface definition for thorn TATelliptic\n\nIMPLEMENTS: TATelliptic\n\nINCLUDE HEADER: TATelliptic.h IN TATelliptic.h\n",
6
- "params": "",
7
  "schedule": "# Schedule definitions for thorn TATelliptic\n\nSCHEDULE TATelliptic_register_monitor AT startup\n{\n LANG: C\n} \"Register the pseudo solver\"\n",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactuselliptic.git",
4
  "configuration": "# Configuration definition for thorn TATelliptic\n\nPROVIDES TATelliptic\n{\n SCRIPT\n LANG\n}\n",
5
  "interface": "# Interface definition for thorn TATelliptic\n\nIMPLEMENTS: TATelliptic\n\nINCLUDE HEADER: TATelliptic.h IN TATelliptic.h\n",
6
+ "param": "# Parameter definitions for thorn TATelliptic\n",
7
  "schedule": "# Schedule definitions for thorn TATelliptic\n\nSCHEDULE TATelliptic_register_monitor AT startup\n{\n LANG: C\n} \"Register the pseudo solver\"\n",
8
  "src": {
9
  "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",
CactusExamples_DemoInterp.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusExamples_FleshInfo.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "",
5
  "interface": "# Interface definition for thorn FleshInfo\n# $Header$\n\nimplements: FleshInfo",
6
- "params": "",
7
  "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\"",
8
  "src": {
9
  "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 <stdio.h>\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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "",
5
  "interface": "# Interface definition for thorn FleshInfo\n# $Header$\n\nimplements: FleshInfo",
6
+ "param": "# Parameter definitions for thorn FleshInfo\n# $Header$\n",
7
  "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\"",
8
  "src": {
9
  "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 <stdio.h>\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",
CactusExamples_HelloWorld.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "",
5
  "interface": "# Interface definition for thorn HelloWorld\n# $Header$\n\nimplements: helloworld",
6
- "params": "",
7
  "schedule": "# Schedule definitions for thorn HelloWorld\n# $Header$\n\nschedule HelloWorld at CCTK_EVOL\n{\n LANG: C\n} \"Print message to screen\"",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "",
5
  "interface": "# Interface definition for thorn HelloWorld\n# $Header$\n\nimplements: helloworld",
6
+ "param": "# Parameter definitions for thorn HelloWorld\n# $Header$\n",
7
  "schedule": "# Schedule definitions for thorn HelloWorld\n# $Header$\n\nschedule HelloWorld at CCTK_EVOL\n{\n LANG: C\n} \"Print message to screen\"",
8
  "src": {
9
  "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",
CactusExamples_IDWaveMoL.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "",
5
  "interface": "# Interface definition for thorn IDScalarWaveMoLC\n# $Header$\n\nimplements: idwavemol\ninherits: wavemol grid\n\n",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "",
5
  "interface": "# Interface definition for thorn IDScalarWaveMoLC\n# $Header$\n\nimplements: idwavemol\ninherits: wavemol grid\n\n",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusExamples_Poisson.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "# Configuration definition for thorn Poisson\n\nREQUIRES Boundary Carpet CartGrid3D TATelliptic\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "# Configuration definition for thorn Poisson\n\nREQUIRES Boundary Carpet CartGrid3D TATelliptic\n",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusExamples_SampleBoundary.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "",
5
  "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",
6
+ "param": "# Parameter definitions for thorn SampleBoundary\n# $Header$\n\n",
7
  "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",
8
  "src": {
9
  "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",
CactusExamples_SampleIO.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "# Configuration definition for thorn SampleIO\n# $Header$\n\n# names of the capabilities that this thorn requires\nRequires IOUtil\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "# Configuration definition for thorn SampleIO\n# $Header$\n\n# names of the capabilities that this thorn requires\nRequires IOUtil\n",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusExamples_TimerInfo.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "",
5
  "interface": "# Interface definition for thorn TimerInfo\n# $Header$\n\nimplements: timerinfo",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "",
5
  "interface": "# Interface definition for thorn TimerInfo\n# $Header$\n\nimplements: timerinfo",
6
+ "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\"",
7
  "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",
8
  "src": {
9
  "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",
CactusExamples_WaveMoL.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "# Configuration definition for thorn WaveMoL\n# $Header$\n\nREQUIRES CartGrid3D\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "# Configuration definition for thorn WaveMoL\n# $Header$\n\nREQUIRES CartGrid3D\n",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusExamples_WaveToy1DF77.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "# Configuration definition for thorn WaveToy1DF77\n# $Header$\n\nREQUIRES Boundary\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "# Configuration definition for thorn WaveToy1DF77\n# $Header$\n\nREQUIRES Boundary\n",
5
  "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",
6
+ "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\"",
7
  "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",
8
  "src": {
9
  "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",
CactusExamples_WaveToy2DF77.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "# Configuration definition for thorn WaveToy2DF77\n# $Header$\n\nREQUIRES Boundary\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusexamples.git",
4
  "configuration": "# Configuration definition for thorn WaveToy2DF77\n# $Header$\n\nREQUIRES Boundary\n",
5
  "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",
6
+ "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\"",
7
  "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",
8
  "src": {
9
  "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",
CactusIO_IOJpeg.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusio.git",
4
  "configuration": "# Configuration definitions for thorn IOJpeg\n\nREQUIRES libjpeg\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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 <stdio.h>\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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusio.git",
4
  "configuration": "# Configuration definitions for thorn IOJpeg\n\nREQUIRES libjpeg\n",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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 <stdio.h>\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",
CactusNumerical_Cartoon2D.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "# Configuration definition for thorn Cartoon2D\n# $Header$\n\nREQUIRES SpaceMask\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "# Configuration definition for thorn Cartoon2D\n# $Header$\n\nREQUIRES SpaceMask\n",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusNumerical_Dissipation.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "# Configuration definition for thorn Dissipation\n# $Header$\n\nREQUIRES THORNS: SphericalSurface\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "# Configuration definition for thorn Dissipation\n# $Header$\n\nREQUIRES THORNS: SphericalSurface\n",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusNumerical_InterpToArray.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusNumerical_LocalInterp.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "",
5
  "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",
6
+ "param": "# Parameter definitions for thorn LocalInterp\n# $Header$\n\n# there are no parameters for this thorn\n",
7
  "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",
8
  "src": {
9
  "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",
CactusNumerical_LocalInterp2.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "",
5
  "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",
6
+ "param": "# Parameter definitions for thorn LocalInterp2\n# $Header$\n\n# there are no parameters for this thorn\n",
7
  "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",
8
  "src": {
9
  "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",
CactusNumerical_LocalReduce.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "",
5
  "interface": "# Interface definition for thorn LocalReduce\n# $Header$\n\nImplements: LocalReduce\n",
6
- "params": "",
7
  "schedule": "# Schedule definitions for thorn LocalReduce\n# $Header$\n\nschedule LocalReduce_Startup at STARTUP\n{\n LANG:C\n} \"Startup routine\"\n",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "",
5
  "interface": "# Interface definition for thorn LocalReduce\n# $Header$\n\nImplements: LocalReduce\n",
6
+ "param": "# Parameter definitions for thorn LocalReduce\n# $Header$\n\n",
7
  "schedule": "# Schedule definitions for thorn LocalReduce\n# $Header$\n\nschedule LocalReduce_Startup at STARTUP\n{\n LANG:C\n} \"Startup routine\"\n",
8
  "src": {
9
  "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",
CactusNumerical_MoL.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "# Configuration definition for thorn MoL\n# $Header$\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "# Configuration definition for thorn MoL\n# $Header$\n",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusNumerical_Noise.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "",
5
  "interface": "# Interface definition for thorn Noise\n# $Header$\n\nIMPLEMENTS: Noise\n\nINHERITS: grid\n\nuses include header: Symmetry.h\n\n",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "",
5
  "interface": "# Interface definition for thorn Noise\n# $Header$\n\nIMPLEMENTS: Noise\n\nINHERITS: grid\n\nuses include header: Symmetry.h\n\n",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusNumerical_Norms.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusNumerical_Periodic.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "# Configuration definition for thorn Periodic\n\nREQUIRES THORNS: Slab\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "# Configuration definition for thorn Periodic\n\nREQUIRES THORNS: Slab\n",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusNumerical_ReflectionSymmetry.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusNumerical_RotatingSymmetry180.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "# Configuration definition for thorn RotatingSymmetry180\n\nREQUIRES THORNS: Slab\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "# Configuration definition for thorn RotatingSymmetry180\n\nREQUIRES THORNS: Slab\n",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusNumerical_RotatingSymmetry90.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "# Configuration definition for thorn RotatingSymmetry90\n\nREQUIRES THORNS: Slab\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "# Configuration definition for thorn RotatingSymmetry90\n\nREQUIRES THORNS: Slab\n",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusNumerical_Slab.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "# Configuration definition for thorn Slab\n\nPROVIDES Slab\n{\n}\n\nOPTIONAL LoopControl MPI\n{\n}\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "# Configuration definition for thorn Slab\n\nPROVIDES Slab\n{\n}\n\nOPTIONAL LoopControl MPI\n{\n}\n",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",
CactusNumerical_SlabTest.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "",
5
  "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",
6
+ "param": "# Parameter definitions for thorn SlabTest\n# $Header$\n",
7
  "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",
8
  "src": {
9
  "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",
CactusNumerical_SpaceMask.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "# Configuration definition for thorn SpaceMask\n# $Header$\n\nPROVIDES SpaceMask\n{\n SCRIPT\n LANG\n}\n\nREQUIRES CartGrid3D\n",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "# Configuration definition for thorn SpaceMask\n# $Header$\n\nPROVIDES SpaceMask\n{\n SCRIPT\n LANG\n}\n\nREQUIRES CartGrid3D\n",
5
  "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",
6
+ "param": "# Parameter definitions for thorn SpaceMask\n# $Header$\n\nrestricted:\n\nBOOLEAN use_mask \"Turn on storage for mask?\"\n{\n} \"no\"\n",
7
  "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",
8
  "src": {
9
  "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",
CactusNumerical_SphericalSurface.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "radius.c": "#include <assert.h>\n#include <math.h>\n#include <stdio.h>\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<nsurfaces; ++n) {\n \n if (set_spherical[n]) {\n \n sf_active[n] = +1;\n sf_valid[n] = +1;\n \n sf_area[n] = 4 * pi * pow (radius[n], 2);\n \n sf_mean_radius[n] = radius[n];\n \n sf_centroid_x[n] = origin_x[n];\n sf_centroid_y[n] = origin_y[n];\n sf_centroid_z[n] = origin_z[n];\n \n sf_quadrupole_xx[n] = 0.0;\n sf_quadrupole_xy[n] = 0.0;\n sf_quadrupole_xz[n] = 0.0;\n sf_quadrupole_yy[n] = 0.0;\n sf_quadrupole_yz[n] = 0.0;\n sf_quadrupole_zz[n] = 0.0;\n \n sf_min_radius[n] = radius[n];\n sf_max_radius[n] = radius[n];\n \n sf_min_x[n] = origin_x[n] - radius[n];\n sf_min_y[n] = origin_y[n] - radius[n];\n sf_min_z[n] = origin_z[n] - radius[n];\n sf_max_x[n] = origin_x[n] + radius[n];\n sf_max_y[n] = origin_y[n] + radius[n];\n sf_max_z[n] = origin_z[n] + radius[n];\n \n for (j=0; j<sf_nphi[n]; ++j) {\n for (i=0; i<sf_ntheta[n]; ++i) {\n int const ind = i + maxntheta * (j + maxnphi * n);\n sf_radius[ind] = radius[n];\n }\n }\n \n sf_origin_x[n] = origin_x[n];\n sf_origin_y[n] = origin_y[n];\n sf_origin_z[n] = origin_z[n];\n \n } else if (set_elliptic[n]) {\n \n /*\n * Equation for an ellipsoid:\n * x^2 / rx^2 + y^2 / ry^2 + z^2/ rz^2 = 1\n * where rx, ry, rz are the radii in the x, y, and z directions.\n *\n * With\n * x = r (sin theta) (cos phi)\n * y = r (sin theta) (sin phi)\n * z = r (cos theta)\n *\n * we get the solution\n * 1/r^2 = x^2/rx^2 + y^2/ry^2 + z^2/rz^2\n *\n * With the form\n * x A x = 1\n * we obtain\n * A = diag [1/rx^2, 1/ry^2, 1/rz^2]\n */\n \n CCTK_REAL const rx2 = pow (radius_x[n], 2);\n CCTK_REAL const ry2 = pow (radius_y[n], 2);\n CCTK_REAL const rz2 = pow (radius_z[n], 2);\n \n sf_active[n] = +1;\n sf_valid[n] = +1;\n \n sf_area[n] = 0 * 4 * pi * pow (radius[n], 2);\n \n sf_mean_radius[n] = 0 * radius[n];\n \n sf_centroid_x[n] = origin_x[n];\n sf_centroid_y[n] = origin_y[n];\n sf_centroid_z[n] = origin_z[n];\n \n sf_quadrupole_xx[n] = 1.0 / rz2;\n sf_quadrupole_xy[n] = 0.0;\n sf_quadrupole_xz[n] = 0.0;\n sf_quadrupole_yy[n] = 1.0 / ry2;\n sf_quadrupole_yz[n] = 0.0;\n sf_quadrupole_zz[n] = 1.0 / rx2;\n \n sf_min_radius[n] = min (radius_x[n], min (radius_y[n], radius_z[n]));\n sf_max_radius[n] = max (radius_x[n], max (radius_y[n], radius_z[n]));\n \n sf_min_x[n] = origin_x[n] - radius_x[n];\n sf_min_y[n] = origin_y[n] - radius_y[n];\n sf_min_z[n] = origin_z[n] - radius_z[n];\n sf_max_x[n] = origin_x[n] + radius_x[n];\n sf_max_y[n] = origin_y[n] + radius_y[n];\n sf_max_z[n] = origin_z[n] + radius_z[n];\n \n for (j=0; j<sf_nphi[n]; ++j) {\n for (i=0; i<sf_ntheta[n]; ++i) {\n int const ind = i + maxntheta * (j + maxnphi * n);\n CCTK_REAL const theta = sf_origin_theta[n] + i * sf_delta_theta[n];\n CCTK_REAL const phi = sf_origin_phi[n] + j * sf_delta_phi[n];\n CCTK_REAL const x2 = pow (sin(theta) * cos(phi), 2);\n CCTK_REAL const y2 = pow (sin(theta) * sin(phi), 2);\n CCTK_REAL const z2 = pow (cos(theta) , 2);\n sf_radius[ind] = 1.0 / sqrt (x2 / rx2 + y2 / ry2 + z2 / rz2);\n }\n }\n \n sf_origin_x[n] = origin_x[n];\n sf_origin_y[n] = origin_y[n];\n sf_origin_z[n] = origin_z[n];\n \n }\n \n } /* for n */\n}\n",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "radius.c": "#include <assert.h>\n#include <math.h>\n#include <stdio.h>\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<nsurfaces; ++n) {\n \n if (set_spherical[n]) {\n \n sf_active[n] = +1;\n sf_valid[n] = +1;\n \n sf_area[n] = 4 * pi * pow (radius[n], 2);\n \n sf_mean_radius[n] = radius[n];\n \n sf_centroid_x[n] = origin_x[n];\n sf_centroid_y[n] = origin_y[n];\n sf_centroid_z[n] = origin_z[n];\n \n sf_quadrupole_xx[n] = 0.0;\n sf_quadrupole_xy[n] = 0.0;\n sf_quadrupole_xz[n] = 0.0;\n sf_quadrupole_yy[n] = 0.0;\n sf_quadrupole_yz[n] = 0.0;\n sf_quadrupole_zz[n] = 0.0;\n \n sf_min_radius[n] = radius[n];\n sf_max_radius[n] = radius[n];\n \n sf_min_x[n] = origin_x[n] - radius[n];\n sf_min_y[n] = origin_y[n] - radius[n];\n sf_min_z[n] = origin_z[n] - radius[n];\n sf_max_x[n] = origin_x[n] + radius[n];\n sf_max_y[n] = origin_y[n] + radius[n];\n sf_max_z[n] = origin_z[n] + radius[n];\n \n for (j=0; j<sf_nphi[n]; ++j) {\n for (i=0; i<sf_ntheta[n]; ++i) {\n int const ind = i + maxntheta * (j + maxnphi * n);\n sf_radius[ind] = radius[n];\n }\n }\n \n sf_origin_x[n] = origin_x[n];\n sf_origin_y[n] = origin_y[n];\n sf_origin_z[n] = origin_z[n];\n \n } else if (set_elliptic[n]) {\n \n /*\n * Equation for an ellipsoid:\n * x^2 / rx^2 + y^2 / ry^2 + z^2/ rz^2 = 1\n * where rx, ry, rz are the radii in the x, y, and z directions.\n *\n * With\n * x = r (sin theta) (cos phi)\n * y = r (sin theta) (sin phi)\n * z = r (cos theta)\n *\n * we get the solution\n * 1/r^2 = x^2/rx^2 + y^2/ry^2 + z^2/rz^2\n *\n * With the form\n * x A x = 1\n * we obtain\n * A = diag [1/rx^2, 1/ry^2, 1/rz^2]\n */\n \n CCTK_REAL const rx2 = pow (radius_x[n], 2);\n CCTK_REAL const ry2 = pow (radius_y[n], 2);\n CCTK_REAL const rz2 = pow (radius_z[n], 2);\n \n sf_active[n] = +1;\n sf_valid[n] = +1;\n \n sf_area[n] = 0 * 4 * pi * pow (radius[n], 2);\n \n sf_mean_radius[n] = 0 * radius[n];\n \n sf_centroid_x[n] = origin_x[n];\n sf_centroid_y[n] = origin_y[n];\n sf_centroid_z[n] = origin_z[n];\n \n sf_quadrupole_xx[n] = 1.0 / rz2;\n sf_quadrupole_xy[n] = 0.0;\n sf_quadrupole_xz[n] = 0.0;\n sf_quadrupole_yy[n] = 1.0 / ry2;\n sf_quadrupole_yz[n] = 0.0;\n sf_quadrupole_zz[n] = 1.0 / rx2;\n \n sf_min_radius[n] = min (radius_x[n], min (radius_y[n], radius_z[n]));\n sf_max_radius[n] = max (radius_x[n], max (radius_y[n], radius_z[n]));\n \n sf_min_x[n] = origin_x[n] - radius_x[n];\n sf_min_y[n] = origin_y[n] - radius_y[n];\n sf_min_z[n] = origin_z[n] - radius_z[n];\n sf_max_x[n] = origin_x[n] + radius_x[n];\n sf_max_y[n] = origin_y[n] + radius_y[n];\n sf_max_z[n] = origin_z[n] + radius_z[n];\n \n for (j=0; j<sf_nphi[n]; ++j) {\n for (i=0; i<sf_ntheta[n]; ++i) {\n int const ind = i + maxntheta * (j + maxnphi * n);\n CCTK_REAL const theta = sf_origin_theta[n] + i * sf_delta_theta[n];\n CCTK_REAL const phi = sf_origin_phi[n] + j * sf_delta_phi[n];\n CCTK_REAL const x2 = pow (sin(theta) * cos(phi), 2);\n CCTK_REAL const y2 = pow (sin(theta) * sin(phi), 2);\n CCTK_REAL const z2 = pow (cos(theta) , 2);\n sf_radius[ind] = 1.0 / sqrt (x2 / rx2 + y2 / ry2 + z2 / rz2);\n }\n }\n \n sf_origin_x[n] = origin_x[n];\n sf_origin_y[n] = origin_y[n];\n sf_origin_z[n] = origin_z[n];\n \n }\n \n } /* for n */\n}\n",
CactusNumerical_SummationByParts.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "# Configuration definition for thorn SummationByParts\n# $Header$\n\nPROVIDES SummationByParts\n{\n}\n",
5
  "interface": "# Interface definition for thorn SummationByParts\n# $Header$\n\nimplements: SummationByParts\n#inherits: grid\n\nSUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN dir, \\\n CCTK_STRING IN var_name, \\\n CCTK_STRING IN dvar_name )\nPROVIDES FUNCTION Diff_gf WITH DiffGf LANGUAGE C\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 )\nPROVIDES FUNCTION Diff_gv WITH DiffGv LANGUAGE C\n\nSUBROUTINE Diff_up_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_REAL IN ARRAY up, \\\n CCTK_INT IN table_handle )\nPROVIDES FUNCTION Diff_up_gv WITH DiffUpGv LANGUAGE C\n\nSUBROUTINE Diff2_gv ( CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN dir1, \\\n CCTK_INT IN dir2, \\\n CCTK_REAL IN ARRAY var, \\\n CCTK_REAL OUT ARRAY dvar, \\\n CCTK_INT IN table_handle )\nPROVIDES FUNCTION Diff2_gv WITH DiffGv2 LANGUAGE C\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 )\nPROVIDES FUNCTION Diff_coeff WITH DiffCoeff LANGUAGE C\n\nSUBROUTINE Diff_up_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 up, \\\n CCTK_INT IN table_handle )\nPROVIDES FUNCTION Diff_up_coeff WITH DiffUpCoeff LANGUAGE C\n\nSUBROUTINE Diff2_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 )\nPROVIDES FUNCTION Diff2_coeff WITH DiffCoeff2 LANGUAGE C\n\n#Routine to return the coefficients for the diagonal norms.\nSUBROUTINE GetScalProdDiag ( CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN dir, \\\n CCTK_INT IN nsize, \\\n CCTK_REAL OUT ARRAY sigmad )\nPROVIDES FUNCTION GetScalProdDiag WITH SBP_GetScalProdDiag LANGUAGE Fortran\n\nCCTK_REAL FUNCTION GetScalProdCoeff ()\nPROVIDES FUNCTION GetScalProdCoeff WITH GetCoeff LANGUAGE Fortran\n\nSUBROUTINE GetLshIndexRanges ( \\\n CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT OUT ARRAY imin, \\\n CCTK_INT OUT ARRAY imax )\nPROVIDES FUNCTION GetLshIndexRanges WITH get_lsh_iranges LANGUAGE C\n \nSUBROUTINE GetBoundWidth (\\\n CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT OUT ARRAY bsize, \\\n CCTK_INT IN table_handle )\nPROVIDES FUNCTION GetBoundWidth WITH Get_Bound_Width LANGUAGE C\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)\nUSES FUNCTION GetDomainSpecification\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 MultiPatch_GetMap (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n\nCCTK_INT FUNCTION MultiPatch_GetMaps (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMaps\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 SymmetryHandleOfName (CCTK_STRING IN sym_name)\nREQUIRES FUNCTION SymmetryHandleOfName\n\nCCTK_INT FUNCTION MoLQueryEvolvedRHS (CCTK_INT IN EvolvedIndex)\nUSES FUNCTION MoLQueryEvolvedRHS\n\npublic:\n\nCCTK_REAL normmask TYPE=gf TAGS='tensortypealias=\"scalar\" Prolongation=\"None\" checkpoint=\"no\"'\n{\n nmask\n} \"Mask for the norm calculation\"\n\nCCTK_REAL deltas TYPE=gf TIMELEVELS=1 TAGS='tensortypealias=\"U\" Prolongation=\"None\"'\n{\n sbp_dx, sbp_dy, sbp_dz\n} \"Dissipation deltas\"\n",
6
- "params": "",
7
  "schedule": "# Schedule definitions for thorn SummationByParts\n# $Header$\n\n# Mask for norms\nSTORAGE: normmask\n\nif (use_variable_deltas)\n{\n STORAGE: deltas\n}\n\nSCHEDULE SBP_SetNormMask AT basegrid\n{\n LANG: Fortran\n WRITES: SummationByParts::nmask(everywhere)\n} \"Setup the mask for the calculation of the norm\"\n\nif (use_variable_deltas)\n{\n SCHEDULE SBP_DeltaInitial AT basegrid\n {\n LANG: Fortran\n WRITES: SummationByParts::deltas(everywhere)\n } \"Initialize dissipation deltas\"\n}\n\nif (check_grid_sizes)\n{\n SCHEDULE SBP_CheckGridSizes AT postinitial\n {\n LANG: Fortran\n# WRITES: SummationByParts::nmask(everywhere)\n } \"Check grid sizes and ghost zones\"\n}\n\nif (use_dissipation)\n{\n SCHEDULE SBP_DissipationAdd IN MoL_PostRHS\n {\n LANG: C\n READS: SummationByParts::deltas(everywhere)\n } \"Add SBP compatible dissipation to the right hand sides\"\n}\n",
8
  "src": {
9
  "Derivatives_6_5_min_err_coeff.F90": "#include \"cctk.h\"\n#include \"cctk_Functions.h\"\n#include \"cctk_Parameters.h\"\n\nsubroutine deriv_gf_6_5_opt ( var, ni, nj, nk, dir, bb, gsize, offset, delta, dvar )\n\n use All_Coeffs_mod\n\n implicit none\n\n DECLARE_CCTK_FUNCTIONS\n DECLARE_CCTK_PARAMETERS\n\n CCTK_INT, intent(IN) :: ni, nj, nk\n CCTK_REAL, dimension(ni,nj,nk), intent(IN) :: var\n CCTK_INT, intent(IN) :: dir\n CCTK_INT, intent(IN) :: bb(2)\n CCTK_INT, intent(IN) :: gsize\n CCTK_INT, intent(IN) :: offset(2)\n CCTK_REAL, intent(IN) :: delta\n CCTK_REAL, dimension(ni,nj,nk), intent(OUT) :: dvar\n\n CCTK_REAL, dimension(3), save :: a\n CCTK_REAL, dimension(10,7), save :: q \n CCTK_REAL :: idel\n\n CCTK_INT :: il, ir, jl, jr, kl, kr, ol, or\n\n logical, save :: first = .true.\n\n if ( first ) then\n call coeffs_1_6_5_opt ( a, q )\n first = .false.\n end if\n\n idel = 1.0_wp / delta\n\n if (gsize < 3) call CCTK_WARN (0, \"not enough ghostzones\")\n\n direction: select case (dir)\n case (0) direction\n if ( bb(1) == 0 ) then\n il = 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 il = 8 + ol\n end if\n if ( bb(2) == 0 ) then\n ir = ni - gsize\n else\n or = ni - 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 ir = or - 7\n end if\n if (il > 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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "# Configuration definition for thorn SummationByParts\n# $Header$\n\nPROVIDES SummationByParts\n{\n}\n",
5
  "interface": "# Interface definition for thorn SummationByParts\n# $Header$\n\nimplements: SummationByParts\n#inherits: grid\n\nSUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN dir, \\\n CCTK_STRING IN var_name, \\\n CCTK_STRING IN dvar_name )\nPROVIDES FUNCTION Diff_gf WITH DiffGf LANGUAGE C\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 )\nPROVIDES FUNCTION Diff_gv WITH DiffGv LANGUAGE C\n\nSUBROUTINE Diff_up_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_REAL IN ARRAY up, \\\n CCTK_INT IN table_handle )\nPROVIDES FUNCTION Diff_up_gv WITH DiffUpGv LANGUAGE C\n\nSUBROUTINE Diff2_gv ( CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN dir1, \\\n CCTK_INT IN dir2, \\\n CCTK_REAL IN ARRAY var, \\\n CCTK_REAL OUT ARRAY dvar, \\\n CCTK_INT IN table_handle )\nPROVIDES FUNCTION Diff2_gv WITH DiffGv2 LANGUAGE C\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 )\nPROVIDES FUNCTION Diff_coeff WITH DiffCoeff LANGUAGE C\n\nSUBROUTINE Diff_up_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 up, \\\n CCTK_INT IN table_handle )\nPROVIDES FUNCTION Diff_up_coeff WITH DiffUpCoeff LANGUAGE C\n\nSUBROUTINE Diff2_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 )\nPROVIDES FUNCTION Diff2_coeff WITH DiffCoeff2 LANGUAGE C\n\n#Routine to return the coefficients for the diagonal norms.\nSUBROUTINE GetScalProdDiag ( CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN dir, \\\n CCTK_INT IN nsize, \\\n CCTK_REAL OUT ARRAY sigmad )\nPROVIDES FUNCTION GetScalProdDiag WITH SBP_GetScalProdDiag LANGUAGE Fortran\n\nCCTK_REAL FUNCTION GetScalProdCoeff ()\nPROVIDES FUNCTION GetScalProdCoeff WITH GetCoeff LANGUAGE Fortran\n\nSUBROUTINE GetLshIndexRanges ( \\\n CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT OUT ARRAY imin, \\\n CCTK_INT OUT ARRAY imax )\nPROVIDES FUNCTION GetLshIndexRanges WITH get_lsh_iranges LANGUAGE C\n \nSUBROUTINE GetBoundWidth (\\\n CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT OUT ARRAY bsize, \\\n CCTK_INT IN table_handle )\nPROVIDES FUNCTION GetBoundWidth WITH Get_Bound_Width LANGUAGE C\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)\nUSES FUNCTION GetDomainSpecification\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 MultiPatch_GetMap (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMap\n\nCCTK_INT FUNCTION MultiPatch_GetMaps (CCTK_POINTER_TO_CONST IN cctkGH)\nUSES FUNCTION MultiPatch_GetMaps\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 SymmetryHandleOfName (CCTK_STRING IN sym_name)\nREQUIRES FUNCTION SymmetryHandleOfName\n\nCCTK_INT FUNCTION MoLQueryEvolvedRHS (CCTK_INT IN EvolvedIndex)\nUSES FUNCTION MoLQueryEvolvedRHS\n\npublic:\n\nCCTK_REAL normmask TYPE=gf TAGS='tensortypealias=\"scalar\" Prolongation=\"None\" checkpoint=\"no\"'\n{\n nmask\n} \"Mask for the norm calculation\"\n\nCCTK_REAL deltas TYPE=gf TIMELEVELS=1 TAGS='tensortypealias=\"U\" Prolongation=\"None\"'\n{\n sbp_dx, sbp_dy, sbp_dz\n} \"Dissipation deltas\"\n",
6
+ "param": "# Parameter definitions for thorn SummationByParts\n# $Header$\n\nrestricted:\n\nKEYWORD norm_type \"Type of norm\" STEERABLE=always\n{\n \"Diagonal\" :: \"Diagonal norm\"\n \"Full restricted\" :: \"Full restricted norm\"\n} \"Diagonal\"\n\nKEYWORD operator_type \"Type of operator\" STEERABLE=always\n{\n \"Minimal Bandwidth\" :: \"Minimal bandwidth (except for 8-4 which is minimal spectral radius)\"\n \"Optimized\" :: \"Optimized for performance\"\n} \"Optimized\"\n\nBOOLEAN sbp_1st_deriv \"Should the 1st derivative operator be SBP\" STEERABLE=always\n{\n} \"yes\"\n \nBOOLEAN sbp_2nd_deriv \"Should the 2nd derivative operator be SBP\" STEERABLE=always\n{\n} \"yes\"\n \nBOOLEAN sbp_upwind_deriv \"Should the upwind derivative operator be SBP\" STEERABLE=always\n{\n} \"yes\"\n \nINT order \"Order of accuracy\" STEERABLE=always\n{\n 2:8:2 :: \"\"\n} 2\n\nBOOLEAN onesided_outer_boundaries \"Evaluate derivatives within ghost zones of the outer boundary\" STEERABLE=always\n{\n} \"yes\"\n\nBOOLEAN onesided_interpatch_boundaries \"Evaluate derivatives near the local grid boundary if it is an inter-patch boundary\" STEERABLE=always\n{\n} \"yes\"\n\nBOOLEAN use_dissipation \"Should we add dissipation\"\n{\n} \"no\"\n\nBOOLEAN use_variable_deltas \"Use extra grid functions to allow for variable delta's in the dissipation operators\"\n{\n} \"no\"\n\nBOOLEAN use_shiftout \"Should we use the boundary_shift_out parameters from CoordBase to shift the stencils of derivatives and dissipation\"\n{\n} \"no\"\n\nBOOLEAN poison_derivatives \"Should we poison Dvar at boundary_shiftout perimeter when taking derivatives\" STEERABLE=always\n{\n} \"no\"\n\nBOOLEAN poison_dissipation \"Should we poison rhs at boundary_shiftout perimeter when applying dissipation\" STEERABLE=always\n{\n} \"no\"\n\nREAL poison_value \"Degree of intoxication\" STEERABLE=always\n{\n *:* :: \"Anything you want\"\n} 666.0\n\n# Note: scaling the dissipation operators with h reduces the order by one.\nBOOLEAN scale_with_h \"Should we scale the dissipation with the grid spacing h\"\n{\n} \"no\"\n\nKEYWORD dissipation_type \"Type of dissipation operator\" STEERABLE=always\n{\n \"Mattson-Svard-Nordstrom\" :: \"Mattson, Svaerd and Nordstroem type\"\n \"Kreiss-Oliger\" :: \"Kreiss-Oliger modified near the boundaries\"\n} \"Mattson-Svard-Nordstrom\"\n\nREAL epsdis \"Dissipation strength\" STEERABLE=always\n{\n *:* :: \"Values typical between 0 and 1\"\n} 0.2\n\nREAL diss_fraction[3] \"Fractional size of the transition region for the full restricted dissipation operator\"\n{\n 0:0.5 :: \"\"\n} 0.2\n\nREAL h_scaling[3] \"Scaling factor for the local grid spacing in the dissipation operators\"\n{\n 0:* :: \"Positive please\"\n} 1.0\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\nBOOLEAN zero_derivs_y \"set all derivatives to 0 in the y-direction\"\n{\n} \"no\"\n\nBOOLEAN zero_derivs_z \"set all derivatives to 0 in the z-direction\"\n{\n} \"no\"\n\n# If you use this parameter be careful. You have to know what you are doing...\nBOOLEAN check_grid_sizes \"Should we check grid sizes and ghost zones\"\n{\n} \"yes\"\n",
7
  "schedule": "# Schedule definitions for thorn SummationByParts\n# $Header$\n\n# Mask for norms\nSTORAGE: normmask\n\nif (use_variable_deltas)\n{\n STORAGE: deltas\n}\n\nSCHEDULE SBP_SetNormMask AT basegrid\n{\n LANG: Fortran\n WRITES: SummationByParts::nmask(everywhere)\n} \"Setup the mask for the calculation of the norm\"\n\nif (use_variable_deltas)\n{\n SCHEDULE SBP_DeltaInitial AT basegrid\n {\n LANG: Fortran\n WRITES: SummationByParts::deltas(everywhere)\n } \"Initialize dissipation deltas\"\n}\n\nif (check_grid_sizes)\n{\n SCHEDULE SBP_CheckGridSizes AT postinitial\n {\n LANG: Fortran\n# WRITES: SummationByParts::nmask(everywhere)\n } \"Check grid sizes and ghost zones\"\n}\n\nif (use_dissipation)\n{\n SCHEDULE SBP_DissipationAdd IN MoL_PostRHS\n {\n LANG: C\n READS: SummationByParts::deltas(everywhere)\n } \"Add SBP compatible dissipation to the right hand sides\"\n}\n",
8
  "src": {
9
  "Derivatives_6_5_min_err_coeff.F90": "#include \"cctk.h\"\n#include \"cctk_Functions.h\"\n#include \"cctk_Parameters.h\"\n\nsubroutine deriv_gf_6_5_opt ( var, ni, nj, nk, dir, bb, gsize, offset, delta, dvar )\n\n use All_Coeffs_mod\n\n implicit none\n\n DECLARE_CCTK_FUNCTIONS\n DECLARE_CCTK_PARAMETERS\n\n CCTK_INT, intent(IN) :: ni, nj, nk\n CCTK_REAL, dimension(ni,nj,nk), intent(IN) :: var\n CCTK_INT, intent(IN) :: dir\n CCTK_INT, intent(IN) :: bb(2)\n CCTK_INT, intent(IN) :: gsize\n CCTK_INT, intent(IN) :: offset(2)\n CCTK_REAL, intent(IN) :: delta\n CCTK_REAL, dimension(ni,nj,nk), intent(OUT) :: dvar\n\n CCTK_REAL, dimension(3), save :: a\n CCTK_REAL, dimension(10,7), save :: q \n CCTK_REAL :: idel\n\n CCTK_INT :: il, ir, jl, jr, kl, kr, ol, or\n\n logical, save :: first = .true.\n\n if ( first ) then\n call coeffs_1_6_5_opt ( a, q )\n first = .false.\n end if\n\n idel = 1.0_wp / delta\n\n if (gsize < 3) call CCTK_WARN (0, \"not enough ghostzones\")\n\n direction: select case (dir)\n case (0) direction\n if ( bb(1) == 0 ) then\n il = 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 il = 8 + ol\n end if\n if ( bb(2) == 0 ) then\n ir = ni - gsize\n else\n or = ni - 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 ir = or - 7\n end if\n if (il > 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",
CactusNumerical_TensorTypes.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "# Configuration definition for thorn TensorTypes\n# $Header$\n\nPROVIDES TensorTypes\n{\n SCRIPT\n LANG\n}\n",
5
  "interface": "# Interface definition for thorn TensorTypes\n# $Header$\n\nIMPLEMENTS: TensorTypes\n\nINCLUDES HEADER: tensortypes.h IN tensortypes.h\n",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "# Configuration definition for thorn TensorTypes\n# $Header$\n\nPROVIDES TensorTypes\n{\n SCRIPT\n LANG\n}\n",
5
  "interface": "# Interface definition for thorn TensorTypes\n# $Header$\n\nIMPLEMENTS: TensorTypes\n\nINCLUDES HEADER: tensortypes.h IN tensortypes.h\n",
6
+ "param": "# Parameter definitions for thorn TensorTypes\n# $Header$\n",
7
  "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",
8
  "src": {
9
  "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",
CactusNumerical_TestLocalInterp2.json CHANGED
@@ -3,7 +3,7 @@
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "",
5
  "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",
6
- "params": "",
7
  "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",
8
  "src": {
9
  "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",
 
3
  "url": "https://bitbucket.org/cactuscode/cactusnumerical.git",
4
  "configuration": "",
5
  "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",
6
+ "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",
7
  "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",
8
  "src": {
9
  "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",