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