Strange error "floating exception pointing" only in Vis mode

Hi,

I have a simulation that work perfectly when I comment the following line in init_vis.mac:

#/control/execute vis.mac

If a de-comment that line, in order to see the geometry an ONLY one particle, the simulation crash when i give the command:

/run/beamOn 1

giving only the following error:

Eccezione in virgola mobile (in english is: floating exception pointing) 

But, some weeks ago, the simulation also work perfectly in vis mode.
What is the problem?

Best Regards.

what might be the content of the file vis.mac?

Mmm this is the vis.mac file:

#Macro file for the visualization setting in the initialization phase 
#
# Use these open statements to open selected visualization
#
# Use this open statement to create an OpenGL view:
/vis/open OGL 600x600-0+0
#
# Disable auto refresh and quieten vis messages whilst scene and
# trajectories are established:
/vis/viewer/set/autoRefresh false
#/vis/verbose errors
#
# Draw geometry:
/vis/drawVolume
#
# Specify zoom value:
/vis/viewer/zoom 1.8
# Draw smooth trajectories at end of event, showing trajectory points
# as markers 2 pixels wide:
/vis/scene/add/trajectories smooth
#/vis/modeling/trajectories/create/drawByCharge
#/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
#/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 1
#
# For example, to select colour by particle ID:
#/vis/modeling/trajectories/create/drawByParticleID
#/vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts true
#
# To superimpose all of the events from a given run:
#/vis/scene/endOfEventAction accumulate
#
# Re-establish auto refreshing and verbosity:
#/vis/viewer/set/autoRefresh true
#/vis/scene/add/axes 0 0 0 

Seems to be all ok, seems…

What do you think about that? @weller

I discover that the visualizzazion work only if the number of event is >= of 100:

If I give the command:

/run/beamOn 99

the simulation crash giving always the same error that i descrived before. It is so STRANGE i don’t understand why.

I need to see only a few photons in order to understand if the distribution of my particle source is well written…

I partially solved running only 100 events and putting transmission = 1 in order to see the geometry of the source.

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