Skip to content

Commit 4c6d82e

Browse files
committed
Fixed: Clear the threadGroups before (re)generating them.
Added: Implementation of ASMunstruct::findClosestNode. Changed: Some cosmetics in other ASMunstruct methods.
1 parent 607c977 commit 4c6d82e

3 files changed

Lines changed: 163 additions & 138 deletions

File tree

src/ASM/ASMunstruct.C

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,10 @@ bool ASMunstruct::refine (const LR::RefineData&, Vectors&, const char*)
5353
return false;
5454
}
5555

56+
57+
std::pair<size_t,double> ASMunstruct::findClosestNode (const Vec3&) const
58+
{
59+
return std::make_pair(0,-1.0);
60+
}
61+
5662
#endif

src/ASM/ASMunstruct.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,9 @@ class ASMunstruct : public ASMbase
214214
//! \param[in] refTol Mesh refinement threshold
215215
virtual bool refine(const RealFunc& refC, double refTol) = 0;
216216

217+
//! \brief Finds the node that is closest to the given point \b X.
218+
virtual std::pair<size_t,double> findClosestNode(const Vec3& X) const;
219+
217220
protected:
218221
//! \brief Refines the mesh adaptively.
219222
//! \param[in] prm Input data used to control the mesh refinement

0 commit comments

Comments
 (0)