mirror of
https://github.com/NGSolve/netgen.git
synced 2025-03-31 11:59:52 +05:00
auto difference type
This commit is contained in:
parent
8f73a00d2d
commit
975414c2fe
@ -296,7 +296,7 @@ namespace ngcore
|
|||||||
|
|
||||||
NETGEN_INLINE T_Range Split (size_t nr, int tot) const
|
NETGEN_INLINE T_Range Split (size_t nr, int tot) const
|
||||||
{
|
{
|
||||||
T diff = next-first;
|
auto diff = next-first;
|
||||||
return T_Range (first + nr * diff / tot,
|
return T_Range (first + nr * diff / tot,
|
||||||
first + (nr+1) * diff / tot);
|
first + (nr+1) * diff / tot);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user