From a668e34d3daa43f85fe206141379a0716095eea8 Mon Sep 17 00:00:00 2001 From: hristov Date: Wed, 2 Nov 2005 13:10:02 +0000 Subject: [PATCH] Additional protection --- TFluka/TFlukaMCGeometry.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/TFluka/TFlukaMCGeometry.cxx b/TFluka/TFlukaMCGeometry.cxx index 19837954635..03196d2a594 100644 --- a/TFluka/TFlukaMCGeometry.cxx +++ b/TFluka/TFlukaMCGeometry.cxx @@ -1662,9 +1662,11 @@ void nrmlwr(Double_t &pSx, Double_t &pSy, Double_t &pSz, norml[1] = -pVy; norml[2] = -pVz; } - norml[0] = -dnorm[0]; - norml[1] = -dnorm[1]; - norml[2] = -dnorm[2]; + else { + norml[0] = -dnorm[0]; + norml[1] = -dnorm[1]; + norml[2] = -dnorm[2]; + } if (gMCGeom->IsDebugging()) { printf(" normal to boundary: (%g, %g, %g)\n", norml[0], norml[1], norml[2]); printf("<= NRMLWR\n"); -- 2.31.1