public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sci-physics/geant/files: geant-4.10.0-TrackingNavigator.patch
@ 2014-01-06  2:12 Benda XU (heroxbd)
  0 siblings, 0 replies; only message in thread
From: Benda XU (heroxbd) @ 2014-01-06  2:12 UTC (permalink / raw
  To: gentoo-commits

heroxbd     14/01/06 02:12:07

  Added:                geant-4.10.0-TrackingNavigator.patch
  Log:
  backport upstream SetNavigatorForTracking inline function fix, credits Oliver Freyermuth for reporting bug 496678
  
  (Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit)

Revision  Changes    Path
1.1                  sci-physics/geant/files/geant-4.10.0-TrackingNavigator.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/geant/files/geant-4.10.0-TrackingNavigator.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/geant/files/geant-4.10.0-TrackingNavigator.patch?rev=1.1&content-type=text/plain

Index: geant-4.10.0-TrackingNavigator.patch
===================================================================
accepted upstream. to be removed in the next minor release.

https://bugs.gentoo.org/show_bug.cgi?id=496678
http://bugzilla-geant4.kek.jp/show_bug.cgi?id=1537

diff -Naur geant4.10.00/source/geometry/navigation/include/G4TransportationManager.hh geant4.10.00-mod/source/geometry/navigation/include/G4TransportationManager.hh
--- geant4.10.00/source/geometry/navigation/include/G4TransportationManager.hh	2013-12-05 10:28:54.000000000 +0100
+++ geant4.10.00-mod/source/geometry/navigation/include/G4TransportationManager.hh	2013-12-12 01:40:12.341428809 +0100
@@ -68,7 +68,7 @@
        // Accessors for field handling
 
      inline G4Navigator* GetNavigatorForTracking() const;
-     inline void SetNavigatorForTracking( G4Navigator* newNavigator );
+     void SetNavigatorForTracking( G4Navigator* newNavigator );
        // Accessors for the navigator for tracking
 
      inline void SetWorldForTracking(G4VPhysicalVolume* theWorld);
diff -Naur geant4.10.00/source/geometry/navigation/include/G4TransportationManager.icc geant4.10.00-mod/source/geometry/navigation/include/G4TransportationManager.icc
--- geant4.10.00/source/geometry/navigation/include/G4TransportationManager.icc	2013-12-05 10:28:54.000000000 +0100
+++ geant4.10.00-mod/source/geometry/navigation/include/G4TransportationManager.icc	2013-12-12 01:40:12.341428809 +0100
@@ -59,6 +59,7 @@
    fNavigators[0]->SetWorldVolume(theWorld);
 }
 
+/*
 // ----------------------------------------------------------------------------
 // SetNavigatorForTracking()
 //
@@ -70,6 +71,7 @@
 {
    fNavigators[0] = newNavigator;
 }
+*/
 
 // ----------------------------------------------------------------------------
 // GetPropagatorInField()
diff -Naur geant4.10.00/source/geometry/navigation/src/G4TransportationManager.cc geant4.10.00-mod/source/geometry/navigation/src/G4TransportationManager.cc
--- geant4.10.00/source/geometry/navigation/src/G4TransportationManager.cc	2013-12-05 10:28:56.000000000 +0100
+++ geant4.10.00-mod/source/geometry/navigation/src/G4TransportationManager.cc	2013-12-12 01:40:12.345428679 +0100
@@ -124,6 +124,20 @@
    }
 }
 
+
+// ----------------------------------------------------------------------------
+// SetNavigatorForTracking()
+//
+// Set the active navigator for tracking, always
+// the first in the collection of registered navigators.
+//
+void G4TransportationManager::SetNavigatorForTracking(G4Navigator* newNavigator)
+{
+   fNavigators[0] = newNavigator;
+   fActiveNavigators[0] = newNavigator;
+   fPropagatorInField->SetNavigatorForPropagating(newNavigator);
+}
+
 // ----------------------------------------------------------------------------
 // ClearNavigators()
 //





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-06  2:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-06  2:12 [gentoo-commits] gentoo-x86 commit in sci-physics/geant/files: geant-4.10.0-TrackingNavigator.patch Benda XU (heroxbd)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox