Message: Re: bad alloc Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: bad alloc 

Forum: Hadronic Processes
Re: Question bad alloc (Eduardo Medinaceli)
Re: None Re: bad alloc (Vladimir IVANTCHENKO )
Date: 21 Jun, 2007
From: Eduardo Medinaceli <Eduardo Medinaceli>

thanks for your unswer

Now to try to find the error I'm just using the Elastic Scattering

 void PhysiscsList::ElasticScattering(){
   G4ParticleDefinition* particle = theParticleIterator->value();
   G4ProcessManager* pmanager = particle->GetProcessManager();

   if(particleName == "neutron"){
     G4UHadronElasticProcess* hadElastProc = new G4UHadronElasticProcess();
     G4HadronElastic* elasticModel = new G4HadronElastic();

     G4NeutronHPElastic* theElasticNeutron = new G4NeutronHPElastic(); 
     G4NeutronHPElasticData* theNeutronData = G4NeutronHPElasticData();
My prymari particle is a neutron of 5*Mev

The programm has no compiling errors, but when it runs, writtes down the information about primaries and then reports an bad alloc error

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

1 None: Re: bad alloc   (Vladimir IVANTCHENKO - 21 Jun, 2007)
 Add Message Add Message
to: "Re: bad alloc"

 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 ]