Open
Description
There's a check on the size of the argument to zp(int dz)
and zm(int dz)
BOUT-dev/include/bout/region.hxx
Lines 288 to 292 in 6755324
It's not used very much, but the commonest use is with no argument. Instead of having the default argument of dz = 1
, would it be worth having a special no-argument case that does not need the check on dz
(as if nz == 1
the result is always 0
anyway)? And possibly another for zpp()
and zmm()
where we could have something like ASSERT3(nz >= 2);
instead of always checking dz
?