Error on the definition of the material

Please fill out the following information to help in answering your question, and also see tips for posting code snippets

Geant4 Version:11.1.2
Operating System:ubuntu

hello to everyone, I have a problem when defining the material of my detector.
I would like to have your help
Thank you, cordially Raoul. (2.0 KB)

Run bt (or backtrace) in gdb to identify where in your code the problem starts. I’d guess there’s a null pointer somewhere but it’s unclear from the messages.

For future reference, it’s easier for use to diagnose and help with issues if fenced code blocks are used to post code snippets and console output. Whilst screenshots show the information, they cannot be copy/pasted, e.g. to show a correction.

1 Like

You can not add fractions of elements, but only materials. You may add integer quantities of elements, though.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.