mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-24 11:50:33 +05:00
table from flattable
This commit is contained in:
parent
52a71a5f76
commit
948a7bfc4d
@ -149,13 +149,17 @@ namespace ngcore
|
|||||||
size = tab2.Size();
|
size = tab2.Size();
|
||||||
|
|
||||||
index = new size_t[size+1];
|
index = new size_t[size+1];
|
||||||
for (size_t i = 0; i <= size; i++)
|
this->IndexArray() = tab2.IndexArray();
|
||||||
index[i] = tab2.index[i];
|
// for (size_t i = 0; i <= size; i++)
|
||||||
|
// index[i] = tab2.index[i];
|
||||||
|
|
||||||
size_t cnt = index[size];
|
size_t cnt = index[size];
|
||||||
data = new T[cnt];
|
data = new T[cnt];
|
||||||
|
this->AsArray() = tab2.AsArray();
|
||||||
|
/*
|
||||||
for (size_t i = 0; i < cnt; i++)
|
for (size_t i = 0; i < cnt; i++)
|
||||||
data[i] = tab2.data[i];
|
data[i] = tab2.data[i];
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
explicit NETGEN_INLINE Table (const Table & tab2)
|
explicit NETGEN_INLINE Table (const Table & tab2)
|
||||||
|
Loading…
Reference in New Issue
Block a user