-
Notifications
You must be signed in to change notification settings - Fork 265
[HDF5] Update - 6 - PropertiesIO and NodalSolutionStepVariablesIO #11488
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
Conversation
…5/update/properties_io
…5/update/properties_io
…5/update/properties_io
…5/update/properties_io
…5/update/properties_io
applications/HDF5Application/custom_io/hdf5_nodal_solution_step_variables_io.cpp
Outdated
Show resolved
Hide resolved
applications/HDF5Application/custom_utilities/container_io_utils.h
Outdated
Show resolved
Hide resolved
} else { | ||
// do nothing | ||
} |
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.
} else { | |
// do nothing | |
} | |
} |
applications/HDF5Application/custom_utilities/container_io_utils.h
Outdated
Show resolved
Hide resolved
applications/HDF5Application/custom_utilities/container_io_utils.h
Outdated
Show resolved
Hide resolved
it->SetSolutionStepVariablesList(&r_variables_list); | ||
} | ||
block_for_each(rModelPart.Nodes(), [&r_variables_list](auto& rNode) { | ||
rNode.SetSolutionStepVariablesList(&r_variables_list); |
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.
hm
is this thread safe?
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 think so, since it is setting a pointer within the rNode.
if (element.Id % 2 == 0): | ||
element.SetValue(DISPLACEMENT, Vector([random.random(), random.random(), random.random()])) | ||
element.SetValue(VELOCITY, Vector([random.random(), random.random(), random.random()])) | ||
if (element.Id % 3 == 0): |
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 know randoms have been used in these tests before, but I really dislike the idea of unreproducible tests.
applications/HDF5Application/tests/test_hdf5_model_part_io_mpi.py
Outdated
Show resolved
Hide resolved
applications/HDF5Application/tests/test_hdf5_model_part_io_mpi.py
Outdated
Show resolved
Hide resolved
…ls.h Co-authored-by: Máté Kelemen <44344022+matekelemen@users.noreply.github.com>
…ls.h Co-authored-by: Máté Kelemen <44344022+matekelemen@users.noreply.github.com>
…ies.h Co-authored-by: Máté Kelemen <44344022+matekelemen@users.noreply.github.com>
…ies.h Co-authored-by: Máté Kelemen <44344022+matekelemen@users.noreply.github.com>
Co-authored-by: Máté Kelemen <44344022+matekelemen@users.noreply.github.com>
…ies.h Co-authored-by: Máté Kelemen <44344022+matekelemen@users.noreply.github.com>
IndexType start_index, block_size; | ||
std::tie(start_index, block_size) = StartIndexAndBlockSize(rFile, rPrefix + "/Properties/"); |
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.
not addressed
applications/HDF5Application/custom_io/hdf5_container_component_io.cpp
Outdated
Show resolved
Hide resolved
applications/HDF5Application/custom_io/hdf5_container_component_io.cpp
Outdated
Show resolved
Hide resolved
…t_io.cpp Co-authored-by: Máté Kelemen <44344022+matekelemen@users.noreply.github.com>
…t_io.cpp Co-authored-by: Máté Kelemen <44344022+matekelemen@users.noreply.github.com>
📝 Description
Update
PropertiesIO
andNodalSolutionStepVariablesIO
. This removes theLocalGhostSplittingUtility
as well.🆕 Changelog
PropertiesIO
NodalSolutionStepVariablesIO