svenreiche / Genesis-1.3-Version4

Time-dependent, 3D Code to simulate the amplification process of a Free-electron Laser.
GNU General Public License v3.0
53 stars 26 forks source link

&importfield is not honored when &field is used #171

Open balticfish opened 3 months ago

balticfish commented 3 months ago

When importing an external field via &importfield, if a &field command is present with accumulate=True, it will erase the imported field effectively making the simulation to start from noise (instead of seeded).

svenreiche commented 2 months ago

I tried to reproduce this but didn't succeed. In my test I imported a field distribution and then accumulated a different field. They both added up as expected. Can you send me your input files to reproduce this error?