mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 13:50:33 +05:00
Call constructor after allocation with BlockAllocator
This commit is contained in:
parent
483bece790
commit
9ba75145c0
@ -71,7 +71,7 @@ namespace netgen
|
|||||||
BTree (const Point<dim> & pmin, const Point<dim> & pmax)
|
BTree (const Point<dim> & pmin, const Point<dim> & pmax)
|
||||||
: global_min(pmin), global_max(pmax), n_leaves(1), n_nodes(1), ball_nodes(sizeof(Node)), ball_leaves(sizeof(Leaf))
|
: global_min(pmin), global_max(pmax), n_leaves(1), n_nodes(1), ball_nodes(sizeof(Node)), ball_leaves(sizeof(Leaf))
|
||||||
{
|
{
|
||||||
root.leaf = (Leaf*) ball_leaves.Alloc();
|
root.leaf = (Leaf*) ball_leaves.Alloc(); new (root.leaf) Leaf();
|
||||||
root.level = 0;
|
root.level = 0;
|
||||||
tol = 1e-7 * Dist(pmax, pmin);
|
tol = 1e-7 * Dist(pmax, pmin);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user