[Debian-astro-commits] [gyoto] 197/221: ThinDisk: adding a trivial constant emission for simple visualization

Thibaut Jean-Claude Paumard thibaut at moszumanska.debian.org
Fri May 22 20:52:46 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 4783d49d394efad393ee3ffe75c2dea7e70c8384
Author: Frederic <frederic at MacFrederic.local>
Date:   Mon Jan 19 18:11:13 2015 +0100

    ThinDisk: adding a trivial constant emission for simple visualization
---
 include/GyotoThinDisk.h | 1 +
 lib/ThinDisk.C          | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/include/GyotoThinDisk.h b/include/GyotoThinDisk.h
index 8d01db8..487fdec 100644
--- a/include/GyotoThinDisk.h
+++ b/include/GyotoThinDisk.h
@@ -147,6 +147,7 @@ class Gyoto::Astrobj::ThinDisk :
   public:
   virtual int Impact(Gyoto::Photon* ph, size_t index,
 		     Astrobj::Properties *data=NULL) ;
+  virtual double emission(double , double, double *, double) const;
 
 };
 
diff --git a/lib/ThinDisk.C b/lib/ThinDisk.C
index d3510e3..4baf53b 100644
--- a/lib/ThinDisk.C
+++ b/lib/ThinDisk.C
@@ -207,3 +207,9 @@ int ThinDisk::Impact(Photon *ph, size_t index,
 
   return 1;
 }
+
+double ThinDisk::emission(double , double,
+			    double *, double) const{
+  // This is a trivial constant emission for geometric visualization
+  return 1.;
+}

-- 
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