Message: Re: Magnetic field nan values Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Magnetic field nan values 

Forum: Fields: Magnetic and Otherwise
Re: None Magnetic field nan values (Balint Radics)
Date: 30 Oct, 2015
From: Gumplinger Peter <Gumplinger Peter>

Hi Balint,

Try:

(1) change Point[3] to Point[4] in

void Field::GetFieldValue( const G4double Point[4], G4double* Bfield ) const

(2) add as first line

if(point[0] != point[0]) return;

in your Field::GetFieldValue method

(3) switch to a newer version of Geant4.

You can also switch on

/tracking/verbose 1

to see the coordinates of the actual tracking steps.

Peter

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Magnetic field nan values   (Balint Radics - 01 Nov, 2015)
 Add Message Add Message
to: "Re: Magnetic field nan values"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]