mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
use Range iterators
This commit is contained in:
parent
ec0a2a5ae8
commit
229d1da5ea
@ -581,7 +581,9 @@ namespace netgen
|
|||||||
|
|
||||||
// accumulate number of edges
|
// accumulate number of edges
|
||||||
int ned = edge2vert.Size();
|
int ned = edge2vert.Size();
|
||||||
for (size_t v = 0; v < mesh->GetNV(); v++)
|
|
||||||
|
// for (size_t v = 0; v < mesh->GetNV(); v++)
|
||||||
|
for (size_t v : cnt.Range())
|
||||||
{
|
{
|
||||||
auto hv = cnt[v];
|
auto hv = cnt[v];
|
||||||
cnt[v] = ned;
|
cnt[v] = ned;
|
||||||
@ -755,7 +757,8 @@ namespace netgen
|
|||||||
// accumulate number of faces
|
// accumulate number of faces
|
||||||
int nfa = oldnfa;
|
int nfa = oldnfa;
|
||||||
// for (auto v : Range(mesh->GetNV())) // Points().Range())
|
// for (auto v : Range(mesh->GetNV())) // Points().Range())
|
||||||
for (size_t v = 0; v < mesh->GetNV(); v++)
|
// for (size_t v = 0; v < mesh->GetNV(); v++)
|
||||||
|
for (auto v : cnt.Range())
|
||||||
{
|
{
|
||||||
auto hv = cnt[v];
|
auto hv = cnt[v];
|
||||||
cnt[v] = nfa;
|
cnt[v] = nfa;
|
||||||
|
Loading…
Reference in New Issue
Block a user