summaryrefslogtreecommitdiff
path: root/interface.ccl
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-05-14 11:02:46 +0200
committerAnton Khirnov <anton@khirnov.net>2020-05-14 11:02:46 +0200
commitd9fe4596350d4526098743aa6fad2216ac72585c (patch)
tree7fadce82c7dbc798aebf9ce17cc30ecd4b8cca8c /interface.ccl
parentdbba307e91e7e44ff9e1a2b01992e07398898b4c (diff)
Integrate individual photons rather than null surfaces.
Diffstat (limited to 'interface.ccl')
-rw-r--r--interface.ccl27
1 files changed, 18 insertions, 9 deletions
diff --git a/interface.ccl b/interface.ccl
index 612f623..b0f1325 100644
--- a/interface.ccl
+++ b/interface.ccl
@@ -1,11 +1,7 @@
# Interface definition for thorn NullSurf
implements: NullSurf
-INHERITS: ADMBase grid CoordBase MethodOfLines ML_BSSN Driver
-
-CCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex)
-
-REQUIRES FUNCTION MoLRegisterEvolved
+INHERITS: ADMBase grid CoordBase ML_BSSN Driver
CCTK_POINTER FUNCTION \
VarDataPtrI \
@@ -17,13 +13,26 @@ CCTK_POINTER FUNCTION \
CCTK_INT IN varindex)
USES FUNCTION VarDataPtrI
+
public:
-REAL null_surface TYPE=GF TIMELEVELS=3 tags='tensortypealias="Scalar" tensorweight=0'
+REAL photon_coord TYPE=array DIM=2 SIZE=nb_surfaces,photons_per_surface DISTRIB=constant
{
- F
+ pos_x,
+ # stored only to send zeroes to interpolator
+ pos_y,
+ pos_z,
+ mom_x,
+ mom_z
}
-REAL null_surface_rhs TYPE=GF TIMELEVELS=3 tags='tensortypealias="Scalar" tensorweight=0 Prolongation="None"'
+REAL photon_rhs TYPE=array DIM=3 SIZE=4,nb_surfaces,photons_per_surface DISTRIB=constant
{
- F_rhs
+ pos_x_rhs,
+ pos_z_rhs,
+ mom_x_rhs,
+ mom_z_rhs
}
+
+REAL photon_times TYPE=array DIM=1 SIZE=nb_surfaces DISTRIB=constant
+INT evol_next_step TYPE=scalar
+INT surfaces_active TYPE=scalar