Add a correction where the size passed to the Fortran arrays was wrong
Guillaume Blaclard
Branch: berkeleylab/atap-warp:add_part_pxr_correction
Branch: berkeleylab/warp:master
Merged
Merged pull request
Merged in berkeleylab/atap-warp/add_part_pxr_correction (pull request #160)
When the particles were initialized out of the domain (or when the variable
cond
has a non-zero size), the particle arrays were subsampled. However, their sizenbs0
was not changed and it could induce an error during the copy to Fortran.Adding this line should correct the problem.