radiasoft / sirepo

Sirepo is a framework for scientific cloud computing. Try it out!
https://sirepo.com
Apache License 2.0
63 stars 31 forks source link

SRW: propagation with coherent mode decomposition file gives error for KB beamline #4664

Open bnash opened 2 years ago

bnash commented 2 years ago

I am trying to use a mode file to do a partially coherent calculation for a KB beamline. I try to use one of the existing mode files However I get the message: "Simulation Error: An unknown error occurred" My simulation URL is https://www.sirepo.com/srw#/beamline/F4y8YhM5?tab=multi The simulation is able to finish using the same mode file for the CHX beamline.

moellep commented 2 years ago

I also reproduced the problem using a coherent modes file create by that simulation. The simulation is crashing with a core dump. I'll investigate further.

moellep commented 2 years ago

The problem seems to be in SRW - in certain cases the simulation crashes with a core dump. I was able to compare your simulation with the CHX beamline which runs OK and found a way to make it work by increasing the horizontal/vertical range modifier on the first element in the propagation parameters.

Here is the working example: https://www.sirepo.com/srw#/beamline/MRakJ5ms?tab=multi

Screen Shot 2022-08-03 at 3 31 59 PM