diff options
author | reisswig <reisswig@a2659f00-0f4f-0410-9214-a4596bbb8a4f> | 2008-10-05 01:51:48 +0000 |
---|---|---|
committer | reisswig <reisswig@a2659f00-0f4f-0410-9214-a4596bbb8a4f> | 2008-10-05 01:51:48 +0000 |
commit | 4fe9f81a717896a25c4f982d0658f0514d59e895 (patch) | |
tree | 103d8d64d253b9b801897a23e328b82a9280c491 /src/puncture_tracker.c | |
parent | d88e493e4a617cfc474785105503006df9b30eeb (diff) |
Add capability to store puncture locations in spherical surfaces so that
CarpetMask can still exclude the region around the punctures.
git-svn-id: http://svn.aei.mpg.de/numrel/AEIThorns/PunctureTracker/trunk@12 a2659f00-0f4f-0410-9214-a4596bbb8a4f
Diffstat (limited to 'src/puncture_tracker.c')
-rw-r--r-- | src/puncture_tracker.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/puncture_tracker.c b/src/puncture_tracker.c index 4e36c1f..9dee438 100644 --- a/src/puncture_tracker.c +++ b/src/puncture_tracker.c @@ -298,6 +298,19 @@ PunctureTracker_SetPositions (CCTK_ARGUMENTS) position_z[n] = pt_loc_z[n]; } + + // store puncture location in spherical surface + if (which_surface_to_store_info[n] != -1) + { + int sn = which_surface_to_store_info[n]; + + sf_origin_x[sn] = position_x[n]; + sf_origin_y[sn] = position_y[n]; + sf_origin_z[sn] = position_z[n]; + + sf_active[sn] = 1; + } + } if ( modify_puncture[0]>=0 && modify_puncture[0]<max_num_tracked && |