-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Axom namespace issue #133
Comments
Thanks @sean-baccas -- @srwopschall -- I'm not sure about the best way to handle this since it tracks the develop branch of axom. In the immediate term, if you want to give tribol users a bit of time, something like the following should work: BBox elementBoundingBox( const MeshData::Viewer& mesh, IndexT eId )
{
+ using namespace axom; // <-- (1) add the axom and axom::primal namespace to this function
+ using namespace axom::primal;
BBox box;
for ( int i{ 0 }; i < mesh.numberOfNodesPerElement(); ++i ) {
- axom::primal::NumericArray<RealT, D> vert_array;
+ NumericArray<RealT, D> vert_array; // <-- (2) remove the `axom::primal` namespace
auto vert_id = mesh.getGlobalNodeId( eId, i );
for ( int d{ 0 }; d < D; ++d ) {
vert_array[d] = mesh.getPosition()[d][vert_id];
}
box.addPoint( PointT( vert_array ) );
}
return box;
} |
Hi @kennyweiss and @sean-baccas, Tribol is tested with the axom hash defined in our local spack We're in the process of updating TPLs in Serac and Tribol (see here and here) and the namespace fix will be made in those PRs. If the latest axom support is needed now, Kenny's suggestion should work fine (thanks Kenny!). |
Tribol/src/tribol/search/InterfacePairFinder.cpp
Line 456 in 76e6685
I believe this mention of the
NumericArray
is not namespaced correctly. This causes a compilation error for me, and is fixed by changing it toaxom::NumericArray
The text was updated successfully, but these errors were encountered: