From 4c119798856e82376846ca4a86e2504f89290b57 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Wed, 21 Sep 2011 15:49:40 -0400 Subject: [PATCH] minor tweaks --- src/mitsuba/mitsuba.cpp | 5 +++++ src/volume/gridvolume.cpp | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mitsuba/mitsuba.cpp b/src/mitsuba/mitsuba.cpp index a27e48ca..4e60dbc6 100644 --- a/src/mitsuba/mitsuba.cpp +++ b/src/mitsuba/mitsuba.cpp @@ -84,6 +84,11 @@ void signalHandler(int signal) { renderQueue->flush(); } else if (signal == SIGFPE) { SLog(EWarn, "Caught a floating-point exception!"); + + #if defined(MTS_DEBUG_FP) + /* Generate a core dump! */ + abort(); + #endif } } #endif diff --git a/src/volume/gridvolume.cpp b/src/volume/gridvolume.cpp index 81d47432..65d79506 100644 --- a/src/volume/gridvolume.cpp +++ b/src/volume/gridvolume.cpp @@ -26,9 +26,6 @@ // Uncomment to enable nearest-neighbor direction interpolation //#define VINTERP_NEAREST_NEIGHBOR -// Uncomment to enable structure tensor-based direction interpolation (better, but slow) -#define VINTERP_STRUCTURE_TENSOR - // Number of power iteration steps used to find the dominant direction #define POWER_ITERATION_STEPS 5