Nek5000 / nekRS

our next generation fast and scalable CFD code
https://nek5000.mcs.anl.gov/
Other
269 stars 71 forks source link

Fix uninitialized memory errors in occa when array sizes are zero #493

Closed thilinarmtb closed 1 year ago

thilinarmtb commented 1 year ago

At E/P = 1, examples/channel threw an uninitialized memory error in occa due to these quantities (N and ogs->Ngather) being zero (or at lest one of them, but it is best to guard both for future errors).

stgeke commented 1 year ago

I prefer to fix these kind of issue with https://github.com/libocca/occa/pull/678.