mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-15 11:01:22 +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<double> surfacefacs;
|
||||||
Array<int> si_map;
|
Array<int> si_map;
|
||||||
Array<double, PointIndex> limits;
|
|
||||||
|
|
||||||
std::map<PointIndex, SpecialBoundaryPoint> special_boundary_points;
|
std::map<PointIndex, SpecialBoundaryPoint> special_boundary_points;
|
||||||
std::map<PointIndex, std::tuple<Vec<3>*, double>> growth_vector_map;
|
std::map<PointIndex, std::tuple<Vec<3>*, double>> growth_vector_map;
|
||||||
|
@ -15,7 +15,7 @@ struct GrowthVectorLimiter {
|
|||||||
const BoundaryLayerParameters ¶ms;
|
const BoundaryLayerParameters ¶ms;
|
||||||
Mesh &mesh;
|
Mesh &mesh;
|
||||||
double height;
|
double height;
|
||||||
FlatArray<double, PointIndex> limits;
|
Array<double, PointIndex> limits;
|
||||||
FlatArray<Vec<3>, PointIndex> growthvectors;
|
FlatArray<Vec<3>, PointIndex> growthvectors;
|
||||||
BitArray changed_domains;
|
BitArray changed_domains;
|
||||||
unique_ptr<BoxTree<3>> tree;
|
unique_ptr<BoxTree<3>> tree;
|
||||||
@ -24,7 +24,7 @@ struct GrowthVectorLimiter {
|
|||||||
|
|
||||||
GrowthVectorLimiter(BoundaryLayerTool &tool_)
|
GrowthVectorLimiter(BoundaryLayerTool &tool_)
|
||||||
: tool(tool_), params(tool_.params), mesh(tool_.mesh),
|
: 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()),
|
growthvectors(tool_.growthvectors), map_from(mesh.Points().Size()),
|
||||||
debug("debug.txt") {
|
debug("debug.txt") {
|
||||||
changed_domains = tool.domains;
|
changed_domains = tool.domains;
|
||||||
@ -406,8 +406,8 @@ struct GrowthVectorLimiter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Perform() {
|
void Perform() {
|
||||||
tool.limits.SetSize(mesh.Points().Size());
|
limits.SetSize(mesh.Points().Size());
|
||||||
tool.limits = 1.0;
|
limits = 1.0;
|
||||||
|
|
||||||
// limit to not intersect with other (original) surface elements
|
// limit to not intersect with other (original) surface elements
|
||||||
double trig_shift = 0;
|
double trig_shift = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user