Message: Error in run time Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Error in run time 

Forum: Run Management
Date: 12 Aug, 2015
From: Hamid Akbari <Hamid Akbari>

I define water for a target by G4material:

///////////////////////////////////////////////////////////////////
G4Element* O = new G4Element("Oxygen", symbol="O", z=8.0, a=16.00*g/mole);
 G4Element* H = new G4Element("Hydrojen",   symbol="H", z=1., a=1.01*g/mole);

  // Define water
 G4Material* water = new G4Material("Water", density= 1.0000*mg/cm3, ncomponents=2);
 water->AddElement(H,  natoms=2);
 water->AddElement(O,  natoms=1);
////////////////////////////////////////////////////////////////////

my program is MAKE, but in run time There is an error:

**************************************************
-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : GeomMgt0002
      issued by : G4Region::ScanVolumeTree()
Logical volume <PhantomPhantom2>
does not have a valid material pointer.
A logical volume belonging to the (tracking) world volume must have a valid material.Check your geometry construction.

*** Fatal Exception *** core dump *** -------- EEEE -------- G4Exception-END --------- EEEE -------

*** G4Exception: Aborting execution *** Aborted ***************************************************

HELP ME PLEASE ... Thanks, Hamid Akbari

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

1 Feedback: Re: Error in run time   (Gumplinger Peter - 12 Aug, 2015)
 Add Message Add Message
to: "Error in run time"

 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 ]