Skip to content

Commit

Permalink
If our benchmarks needs a another default / automatic search length, …
Browse files Browse the repository at this point in the history
…then this should be done during the construct grid procedure an not in inside the search function.
  • Loading branch information
Thomas-TK committed Jul 26, 2018
1 parent 872a44e commit 0d0a179
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions MSH/msh_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ void CFEMesh::ConstructGrid()

// computeSearchLength();
computeMinEdgeLength();
setSearchLength(_min_edge_length / 2);
setSearchLength(0.375 * _min_edge_length / 2);
constructMeshGrid();
}

Expand Down Expand Up @@ -1738,9 +1738,10 @@ void CFEMesh::GetNODOnSFC(const GEOLIB::Surface* sfc,
const size_t nodes_in_usage((size_t)NodesInUsage());
for (size_t j(0); j < nodes_in_usage; j++)
{
if (sfc->isPntInBV((nod_vector[j])->getData(), _search_length * 0.375))
// Multiplicator * 0.375 should only be used if _search_length was calculated automatically.
if (sfc->isPntInBV((nod_vector[j])->getData(), _search_length))
{
if (sfc->isPntInSfc((nod_vector[j])->getData(), _search_length * 0.375))
if (sfc->isPntInSfc((nod_vector[j])->getData(), _search_length))
{
msh_nod_vector.push_back(nod_vector[j]->GetIndex());
}
Expand Down

0 comments on commit 0d0a179

Please sign in to comment.