[Debian-astro-commits] [gyoto] 77/221: Store coordinates of escaping photons in impactcoords

Thibaut Jean-Claude Paumard thibaut at moszumanska.debian.org
Fri May 22 20:52:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

thibaut pushed a commit to branch master
in repository gyoto.

commit f6f711ff8201bea086fa36f4fbc1e2dd2ed39ef4
Author: Thibaut Paumard <paumard at users.sourceforge.net>
Date:   Fri Oct 31 19:06:01 2014 +0100

    Store coordinates of escaping photons in impactcoords
---
 lib/Photon.C | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/Photon.C b/lib/Photon.C
index 06171d9..2976791 100644
--- a/lib/Photon.C
+++ b/lib/Photon.C
@@ -408,6 +408,12 @@ int Photon::hit(Astrobj::Properties *data) {
 		    << "2) we are flying away" << endl;
 #       endif
 
+	// store coordinates of outgoing photon in impactcoords
+	if (data && data->impactcoords) {
+	  for (size_t i=0; i<8; ++i) data->impactcoords[i]=DBL_MAX;
+	  memcpy(data->impactcoords+8, coord, 8 * sizeof(double));
+	}
+
 	stopcond=1;
 	break;
       }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/gyoto.git



More information about the Debian-astro-commits mailing list