mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-22 03:55:40 +05:00
Move limits array to Limiter
This commit is contained in:
parent
c0422c160b
commit
d82c96ba2b
@ -72,7 +72,6 @@ class BoundaryLayerTool
|
||||
|
||||
Array<double> surfacefacs;
|
||||
Array<int> si_map;
|
||||
Array<double, PointIndex> limits;
|
||||
|
||||
std::map<PointIndex, SpecialBoundaryPoint> special_boundary_points;
|
||||
std::map<PointIndex, std::tuple<Vec<3>*, double>> growth_vector_map;
|
||||
|
@ -15,7 +15,7 @@ struct GrowthVectorLimiter {
|
||||
const BoundaryLayerParameters ¶ms;
|
||||
Mesh &mesh;
|
||||
double height;
|
||||
FlatArray<double, PointIndex> limits;
|
||||
Array<double, PointIndex> limits;
|
||||
FlatArray<Vec<3>, PointIndex> growthvectors;
|
||||
BitArray changed_domains;
|
||||
unique_ptr<BoxTree<3>> tree;
|
||||
@ -24,7 +24,7 @@ struct GrowthVectorLimiter {
|
||||
|
||||
GrowthVectorLimiter(BoundaryLayerTool &tool_)
|
||||
: tool(tool_), params(tool_.params), mesh(tool_.mesh),
|
||||
height(tool_.total_height), limits(tool_.limits),
|
||||
height(tool_.total_height),
|
||||
growthvectors(tool_.growthvectors), map_from(mesh.Points().Size()),
|
||||
debug("debug.txt") {
|
||||
changed_domains = tool.domains;
|
||||
@ -406,8 +406,8 @@ struct GrowthVectorLimiter {
|
||||
}
|
||||
|
||||
void Perform() {
|
||||
tool.limits.SetSize(mesh.Points().Size());
|
||||
tool.limits = 1.0;
|
||||
limits.SetSize(mesh.Points().Size());
|
||||
limits = 1.0;
|
||||
|
||||
// limit to not intersect with other (original) surface elements
|
||||
double trig_shift = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user