-
Notifications
You must be signed in to change notification settings - Fork 32
Updates mfem dependency to [email protected] #1751
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
base: develop
Are you sure you want to change the base?
Conversation
e622d30 to
d4110da
Compare
| //! \brief Accessor for the size of the quadrature rule | ||
| AXOM_HOST_DEVICE | ||
| int getNumPoints() const { return m_nodes.size(); } | ||
| int getNumPoints() const { return static_cast<int>(m_nodes.size()); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed some type conversion warnings from msvc along the way.
(There are many more)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: Some mfem-based shaping tests were failing after the upgrade to [email protected].
Some users were also experiencing memory-related issues w/ shaping against newer versions of mfem.
I think these fixes should resolve the user problem and work against [email protected] as well.
Mfem file type is *.mesh and we should add the background material that we are initializing
Calling mfem::QuadratureFunction::GetValues(int, mfem::DenseMatrix&) on the "positions" quadrature function can invalidate/corrupt the buffer. Use mfem::Reshape() instead. Note: This was tested against [email protected] and [email protected].
b6586a1 to
3fef819
Compare
| ## Note that NUM_OMP_THREADS delegates to the corresponding argument | ||
| ## in blt_add_test() and sets the OpenMP environment variable OMP_NUM_THREADS. | ||
| ## When AXOM_ENABLE_OPENMP is set and NUM_OMP_THREADS is not provided, | ||
| ## this macros also sets the environment variable OMP_NUM_THREADS=1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This update is for a request in #1749
Tag: @Arlie-Capps @rhornung67
|
|
||
| #if defined(AXOM_USE_MFEM) | ||
| #include "mfem.hpp" | ||
| #include "mfem/linalg/dtensor.hpp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this not included in the above header? Should this be reported to mfem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not:
- https://github.com/mfem/mfem/blob/8e3a7b90fc1934c33b66baafee10fabd1eca0dea/mfem.hpp#L46
- https://github.com/mfem/mfem/blob/master/linalg/linalg.hpp
- https://github.com/mfem/mfem/blob/master/linalg/dtensor.hpp
@v-dobrev, @tzanio -- is dtensor.hpp intentionally left out of mfem.hpp / linalg.hpp ?
Summary
mfem::Reshape()instead ofQuadratureFunction::GetValues()(which was failing w/ [email protected]).TODO: