Message: Bug in G4OpRayleigh constructor Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Warning Bug in G4OpRayleigh constructor 

Forum: Processes Involving Optical Photons
Date: 26 Apr, 2004
From: Dmitry Onoprienko <Dmitry Onoprienko>

I don't know whether this is a bug or a feature, but whenever
you have a material named "Water" in your simulation, 
G4OpRayleigh constructor attempts to automatically compute
Rayleigh scattering length for 10-degrees water and assign it
to that material. Which causes the program to crash if "Water"
does not have a material table associated with it, or if the
material table does not have RINDEX property vector.

I don't think this is documented anywhere - I was surprised 
when the simulation suddenly started to give me a segmentation 
fault after I changed the material name from "water" to "Water".
I think the code should at least check for the existence of the
table before attempting to modify it - and warn the user before 
overwriting the properties he assigned to the material.

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

1 Feedback: Re: Bug in G4OpRayleigh constructor   (Peter Gumplinger - 26 Apr, 2004)
 Add Message Add Message
to: "Bug in G4OpRayleigh constructor"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews