Message: Re: non-uniform electric field in chamber Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: non-uniform electric field in chamber 

Forum: Fields: Magnetic and Otherwise
Re: Question non-uniform electric field in chamber
Re: None Re: non-uniform electric field in chamber
Date: 02 Jul, 2008
From: Gumplinger Peter <Gumplinger Peter>

Hi Jane,

You should change the line:

G4FieldManager *pFieldMgrEF3 = new G4FieldManager();

to simply read:

G4FieldManager *pFieldMgrEF3;

The former is only required if you need a new G4FieldManager (as is the case for fields attached to logical volumes). When you get a pointer to the global field manager, with:

G4TransportationManager::GetTransportationManager()->GetFieldManager();

the pointer already exists and you don't have to get it from the heap.

I don't know if this is the cause of your seg-fault in the absence of knowing the message you get when the program crashes. It could be in your private code 'TabulatedElField2D3D'.

Please, also consult the /examples/extended/field02 and field04

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

1 None: Re: non-uniform electric field in chamber   (janitor0405@126.com - 04 Jul, 2008)
(_ News: Re: non-uniform electric field in chamber   (Sunring Ling - 12 Mar, 2012)
1 None: Re: non-uniform electric field in chamber   (Sunring Ling - 12 Mar, 2012)
2 Disagree: Re: non-uniform electric field in chamber   (Gumplinger Peter - 12 Mar, 2012)
3 None: Re: non-uniform electric field in chamber   (John Apostolakis - 13 Mar, 2012)
 Add Message Add Message
to: "Re: non-uniform electric field in chamber"

 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 ]