Message: Re: Problem with G4NeutronElasticXS::Initialise(..) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Note Re: Problem with G4NeutronElasticXS::Initialise(..) 

Forum: Installation and Configuration
Re: Question Problem with G4NeutronElasticXS::Initialise(..) (Yuriy)
Re: Question Re: Problem with G4NeutronElasticXS::Initialise(..) (Ben Morgan)
Date: 22 Aug, 2016
From: Yuriy <Yuriy>

Thanks for reply. Env is "G4NEUTRONXSDATA=/usr/local/share/Geant4-10.2.2/data/G4NEUTRONS1.4" and it seem's OK. In my mind problem with this code

...
std::ostringstream ost;
  ost << path << "/elast" << Z ;
  std::ifstream filein(ost.str().c_str());
  if (!(filein)) {
    G4ExceptionDescription ed;
    ed << "Data file <" << ost.str().c_str()
       << "> is not opened!";
    G4Exception("G4NeutronElasticXS::Initialise(..)","had014",
                FatalException, ed, "Check G4NEUTRONXSDATA");
    return;
  }else
...

from geant4/source/processes/hadronic/cross_sections/src/G4NeutronElasticXS.cc it generate exception and cannot gain access to elastZ files.

I wrote little example based on code from above (just copy paste it) and run it on CentOS 7 (3.10.0-327.28.2.el7.x86_64) and Debian 8 (3.16.0-4-amd64) and it doesn't work (same error with inaccessible file)! Maybe problem with C/C++ libraries in systems?

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

1 Question: Re: Problem with G4NeutronElasticXS::Initialise(..)   (Ben Morgan - 23 Aug, 2016)
 Add Message Add Message
to: "Re: Problem with G4NeutronElasticXS::Initialise(..)"

 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 ]