Closed neil-lindquist closed 3 years ago
Describe the bug cds->FS is allocated to hold cds->nBDF * cds->fieldOffsetSum dfloats, while cds->o_FS is allocated to hold cds->nEXT * cds->fieldOffsetSum dfloats. This can cause a segfault when nBDF != nEXT.
cds->FS
cds->nBDF * cds->fieldOffsetSum
cds->o_FS
cds->nEXT * cds->fieldOffsetSum
nBDF != nEXT
See: https://github.com/Nek5000/nekRS/blob/next/src/core/setup.cpp#L966 https://github.com/Nek5000/nekRS/blob/next/src/core/setup.cpp#L1021
To Reproduce NekRS segfaulted when running a test case with the tombo2 timestepper and not setting the extrapolation.
Expected behavior NekRS should not segfault
Desktop (please complete the following information):
Describe the bug
cds->FS
is allocated to holdcds->nBDF * cds->fieldOffsetSum
dfloats, whilecds->o_FS
is allocated to holdcds->nEXT * cds->fieldOffsetSum
dfloats. This can cause a segfault whennBDF != nEXT
.See: https://github.com/Nek5000/nekRS/blob/next/src/core/setup.cpp#L966 https://github.com/Nek5000/nekRS/blob/next/src/core/setup.cpp#L1021
To Reproduce NekRS segfaulted when running a test case with the tombo2 timestepper and not setting the extrapolation.
Expected behavior NekRS should not segfault
Desktop (please complete the following information):