-
Notifications
You must be signed in to change notification settings - Fork 93
mesh adaptation: add MeshFields SPR support #1157
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: master
Are you sure you want to change the base?
Conversation
porting from meshfields/test/testSprThwaitesAdapt.cpp
bartgol
left a comment
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.
Looks good!
|
|
||
| #include <Panzer_IntrepidFieldPattern.hpp> | ||
|
|
||
| //FIXME! |
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.
What's the FIXME about? Meaning, what is wrong with the code below that we need to keep in mind?
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.
Thanks for asking; I forgot about this. Is there a better/cleaner way to use the exec/mem space that Albany is using?
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.
In Albany_KokkosTypes.hpp there are some types that may help. It all comes out of PHX::Device.
src/landIce/CMakeLists.txt
Outdated
| set_target_properties(landIce PROPERTIES PUBLIC_HEADER "${HEADERS}") | ||
| target_link_libraries(landIce PUBLIC albanyLib) | ||
| if (ALBANY_OMEGAH) | ||
| target_link_libraries(landIce PUBLIC Omega_h::omega_h) |
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 am not sure why we link omegah to landIce. We don't explicitly use omegah stuff in landice, and it is already linked indirectly through albany lib.
I think we can remove these two lib linking...
| # 2d test | ||
| configure_file(${CMAKE_CURRENT_SOURCE_DIR}/input_2d_omegah.yaml | ||
| ${CMAKE_CURRENT_BINARY_DIR}/input_2d_omegah.yaml COPYONLY) | ||
| add_test(${testName}_2d_omegah ${SerialAlbany.exe} input_2d_stk.yaml) |
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.
whoops! Good catch!
This PR adds MeshFields as a new TPL that provides a superconvergent patch recovery implementation to compute a size field to drive mesh adaptation. A 2d adaptive version of the 2d transient stk test
tests/corePDEs/AdvDiff/input_2d_stk.yamlwas added to exercise the functionality.CMake flags to enable UVM support in Omega_h is included in this PR and was tested on Perlmutter GPU.