Trouble in plotting

Hi,

When I tried to plot the geometry by using ‘openmc.plot_geometry’ the out is -9. Could someone to tell me what is the meaning of -9?

Best regards,
Zhongming Zhang

Hi Zhongming,

Calling the plot_geometry function will execute OpenMC in plotting mode. The return value that you’re getting is the return code when OpenMC is run, and a negative value indicates some kind of error. Do you get any output when you call this function (that is, output from running OpenMC)? This output would help figure out what is going on.

Best,
Paul

Hi Paul,

Sorry for reply late. I coped the code to a new file and solved the problem.

Thank you!
Best regards ,
Zhongming Zhang