wschreyer / PENTrack

PENTrack - a simulation tool for ultra-cold neutrons, protons and electrons
GNU General Public License v2.0
8 stars 20 forks source link

Spin tracking seg fault #52

Closed dougUCN closed 4 years ago

dougUCN commented 4 years ago

I attempted to turn on spin tracking for the config files in test/Ramsey/, test/IntegrationTest/, and test/comsolFieldTest (<-- with the config file updated to now have a [FORMULAS] section)

spinlog 1
spinlogvars jobnumber particle t x y z Sx Sy Sz
spinloginterval 5e-5
spinlogfilter
spintimes   0 1000
Bmax 0.1
flipspin 0
interpolatefields 0 # I also tried 1

In all cases I receive the error

*** Break *** segmentation violation
 Generating stack trace...
 0x00007fb53ce2eb22 in _ZN8TTracker17IntegrateParticleERSt10unique_ptrI9TParticleSt14default_deleteIS1_EEdRSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESC_St4lessISC_ESaISt4pairIKSC_SC_EEERSt23mersenne_twister + 0x1ab2 from ./PENTrack
 0x00007fb53cc075a1 in main + 0x531 from ./PENTrack
 0x00007fb539f91b97 in __libc_start_main + 0xe7 from /lib/x86_64-linux-gnu/libc.so.6
 0x00007fb53cc2b08a in _start + 0x2a from ./PENTrack

Running the default configuration in/config.in works fine.

Not sure if I've run into a bug or if I am messing up a config file setting??