mirror of
https://github.com/cosmo-sims/monofonIC.git
synced 2024-09-19 17:03:45 +02:00
fixed memset out of bounds (missing factor 1/2)
This commit is contained in:
parent
0ffa733344
commit
8aec696340
1 changed files with 1 additions and 2 deletions
3
external/panphasia_ho/pan_mpi_routines.c
vendored
3
external/panphasia_ho/pan_mpi_routines.c
vendored
|
@ -286,8 +286,7 @@ printf("Plan completed ... \n");
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
memset(return_field, 0, local_n0_fourier_return*N0_fourier_grid *(N0_fourier_grid +2)/2 * sizeof(FFTW_COMPLEX));
|
||||||
memset(return_field, 0, local_n0_fourier_return*N0_fourier_grid *(N0_fourier_grid +2) * sizeof(FFTW_COMPLEX));
|
|
||||||
|
|
||||||
|
|
||||||
for (int iter = 0; iter < nsubdivide; iter++){
|
for (int iter = 0; iter < nsubdivide; iter++){
|
||||||
|
|
Loading…
Reference in a new issue