mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-03 08:40:33 +05:00
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:
commit
d7c10a4d7c
@ -46,8 +46,7 @@ namespace ngcore
|
|||||||
/// Access entry
|
/// Access entry
|
||||||
NETGEN_INLINE const FlatArray<T> operator[] (IndexType i) const
|
NETGEN_INLINE const FlatArray<T> operator[] (IndexType i) const
|
||||||
{
|
{
|
||||||
i = i-BASE;
|
return FlatArray<T> (index[i-BASE+1]-index[i-BASE], data+index[i-BASE]);
|
||||||
return FlatArray<T> (index[i+1]-index[i], data+index[i]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
NETGEN_INLINE T * Data() const { return data; }
|
NETGEN_INLINE T * Data() const { return data; }
|
||||||
|
Loading…
Reference in New Issue
Block a user