-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fix MFEMSidreDataCollection::LoadExternalData
and add test cases for various LoadExternalData
functions
#1473
Conversation
e284561
to
470de37
Compare
/style |
9c2795c
to
1fbf8dd
Compare
MFEMSidreDataCollection::LoadExternalData
and add test cases for various LoadExternalData
functions
#if defined(AXOM_USE_MPI) && defined(MFEM_USE_MPI) | ||
if(m_comm != MPI_COMM_NULL) | ||
{ | ||
// The conduit abstraction appears to automatically handle the ".root" |
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.
Would it be cleaner to move the logic for the path suffix into the reader.loadExternalData() method?
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 willing to put this in this PR or make an issue of it. I was just following the previous pattern and advice of @nselliott (i think)
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 @white238
SLIC_ERROR( | ||
"Loading external data with a group name is not supported in " | ||
"parallel."); |
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.
Will this be resolved by #1479 ?
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.
Yes, that is the intention.
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 put this in because I kept forgetting and getting no loading and feedback. So I put in an error to warn the user until @nselliott adds the new capability.
{ | ||
test_MFEMSidreDataCollection_user_defined_data<double, 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.
Please add a comment about why these are commented out, and add or update an issue to fix these when SPIO can load into the specified group in the MFEMSidreDataCollection
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 completely forgot I wrote these then wrote a much simpler single test in the MFEMSidreDataCollection test file..... good catch! They even passed just uncommenting them. Past Me was great!
//------------------------------------------------------------------------------ | ||
TEST(spio_parallel, external_piecemeal_writeread) | ||
{ | ||
if(PROTOCOL != "sidre_hdf5") |
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 have an equivalent test in my work for #1479 , so that will probably replace this in the future, possibly incorporating some pieces of what you have here.
…ead of a file path
…error if non-root is requested
Co-authored-by: Kenneth Weiss <[email protected]>
b42ca90
to
3066766
Compare
MFEMSidreDataCollection::LoadExternalData
to work on the root of theDataStore
when in parallel because it is currently required, see Allow IOManager to load external data at specific locations in Sidre hierarchy. #1479DataStore
,IOManager
andMFEMSidreDataCollection
classesEnables LLNL/serac#1258