Closed egelfer closed 4 years ago
The doc says:
Each “shift” consists in removing a column of patches from the x_min border and adding a new one after the x_max border, thus changing the physical domain that the simulation represents but keeping the same box size
If your patch takes the whole domain, then all will disappear at once. You need more patches.
Dear mccoys, thank you very much, adding more patches in x direction solved the problem!
Description
Dear SMILEI developers,
I have a problem with running of 2D simulation with moving window. When the window starts to move, the length of the shift is not equal to velocity_x c dt, but to the length of the simulation box. It leads to the loosing of all the particles and fields.
For example, when I use the command
for tt in timesteps: gxm+=[Diag.getXmoved(tt)/l0] print gxm
it provides [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 70.0, 70.0, 70.0, 70.0, 70.0, 70.0, 70.0, 70.0, 70.0, 70.0, 70.0, 70.0, 70.0, 70.0, 70.0, 70.0, 70.0, 70.0, 70.0, 70.0, 70.0, 70.0, 70.0, 70.0, 70.0, 140.0, 140.0, 140.0, 140.0, 140.0, 140.0, 140.0, 140.0, 140.0, 140.0, 140.0]
and in the input file (see below) grid_length=70*l0.
In the corresponding 1D simulation this problem does not appear.
Steps to reproduce the problem
If relevant, provide a step-by-step guide
Parameters
g++ --version
)mpic++ --version
,mpic++ -show
)h5cc --version
)python --version
)