|Message: Re: Magnetic field nan values||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
Hi Peter, thanks a lot for the advice. It did not help. Nevertheless, I did rebuild my code on Geant4.10.1.p02, but I got the same problem. So, then I realised that for my particular process I accidentally started it at a coordinate of exactly x=0, which probably put the initial value for the numerical integration of the e.o.m. to this small value, so therefore I got this behaviour from time to time. So I simply randomized the initial value and voila it works now, even without the nasty isnan check. Thanks, Balint > On 30 Oct 2015, at 23:33, Gumplinger Peter <email@example.com> wrote: > > > *** Discussion title: Fields: Magnetic and Otherwise > > Hi Balint, > > Try: > > (1) change Point to Point in > > void Field::GetFieldValue( const G4double Point, G4double* Bfield ) > const > > (2) add as first line > > if(point != point) 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 > > ------------------------------------------------------------- > Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at: > http://hypernews.slac.stanford.edu/HyperNews/geant4/get/emfields/232/1.html