[Debian-astro-commits] [gyoto] 200/221: Adding the Disk3D to yorick test suit

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 3e45810d24fc4b3f9212d9e34b51c0bc500286b2
Author: Frederic <frederic at MacFrederic.local>
Date:   Wed Jan 21 16:44:18 2015 +0100

    Adding the Disk3D to yorick test suit
---
 yorick/check-disk3d.i | 15 ++++++++-------
 yorick/check.i        |  2 +-
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/yorick/check-disk3d.i b/yorick/check-disk3d.i
index 9605145..50eca07 100644
--- a/yorick/check-disk3d.i
+++ b/yorick/check-disk3d.i
@@ -17,9 +17,9 @@
     along with Gyoto.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "gyoto.i"
-gyoto_debug, 0;
-#include "gyoto_std.i"
+#include "check-helpers.i"
+
+begin_section, "Disk3D Astrobj";
 
 emissquant=array(double, 1, 2, 10 ,10);
 emissquant(,1,,1:3)=100.;
@@ -44,8 +44,8 @@ pd;
 write, format="%s\n", " done.";
 
 screen = gyoto_Screen(metric=metric, resolution=64,
-                      time=1000.*metric.unitlength/GYOTO_C,
-                      distance=100.*metric.unitlength, fov=30./100.,
+                      time=1000.*metric.unitlength()/GYOTO_C,
+                      distance=100.*metric.unitlength(), fov=30./100.,
                       inclination=110./180.*pi, paln=pi);
 
 write, format="%s", "Attaching Disk3D to scenery...";
@@ -80,10 +80,11 @@ pd2 = sc2.astrobj;
 write, format="%s\n", " done.";
 
 write, format="%s", "Comparing emissquant array...";
-if (anyof(emissquant != pd2.copyemissquant)) error, "CHECK FAILED";
+if (anyof(emissquant != pd2.copyemissquant())) error, "CHECK FAILED";
 write, format="%s\n", " done.";
 
 write, format="%s", "Comparing velocity array...";
-if (anyof(velocity != pd2.copyvelocity)) error, "CHECK FAILED";
+if (anyof(velocity != pd2.copyvelocity())) error, "CHECK FAILED";
 write, format="%s\n", " done.";
 
+end_section, "Disk3D Astrobj";
diff --git a/yorick/check.i b/yorick/check.i
index 7422ccf..cdd16ee 100644
--- a/yorick/check.i
+++ b/yorick/check.i
@@ -158,7 +158,7 @@ end_section, "basic functionality";
 #include "check-startrace.i"
 #include "check-patterndisk.i"
 #include "check-directionaldisk.i"
-//#include "check-disk3d.i"
+#include "check-disk3d.i"
 #include "check-polish-doughnut.i"
 // Don't run check-mpi.i automatically,
 // It may hang the computer if not plugged to the network

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