Merge branch 'fix_pointindex_cout' into 'master'

do not trigger pointindex = 0 cout in debug mode

See merge request ngsolve/netgen!525
This commit is contained in:
Schöberl, Joachim 2022-09-12 17:01:53 +02:00
commit d7c10a4d7c

View File

@ -46,8 +46,7 @@ namespace ngcore
/// Access entry
NETGEN_INLINE const FlatArray<T> operator[] (IndexType i) const
{
i = i-BASE;
return FlatArray<T> (index[i+1]-index[i], data+index[i]);
return FlatArray<T> (index[i-BASE+1]-index[i-BASE], data+index[i-BASE]);
}
NETGEN_INLINE T * Data() const { return data; }