mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
Merge branch 'archive_table' into 'master'
fix table archive See merge request jschoeberl/netgen!397
This commit is contained in:
commit
487c32bbb4
@ -171,7 +171,19 @@ namespace ngcore
|
||||
void DoArchive(Archive& ar)
|
||||
{
|
||||
ar & size;
|
||||
if(size == 0)
|
||||
return;
|
||||
if(ar.Input())
|
||||
{
|
||||
index = new IndexType[size+1];
|
||||
mt.Alloc(sizeof(IndexType) * (size+1));
|
||||
}
|
||||
ar.Do(index, size+1);
|
||||
if(ar.Input())
|
||||
{
|
||||
data = new T[index[size]];
|
||||
mt.Alloc(sizeof(T) * index[size]);
|
||||
}
|
||||
ar.Do(data, index[size]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user