Skip to content

[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

Merged
merged 60 commits into from
Jun 20, 2025

Conversation

sunethwarna
Copy link
Member

@sunethwarna sunethwarna commented Aug 17, 2023

📝 Description
Update PropertiesIO and NodalSolutionStepVariablesIO. This removes the LocalGhostSplittingUtility as well.

🆕 Changelog

  • Updated PropertiesIO
  • Updated NodalSolutionStepVariablesIO

@sunethwarna sunethwarna changed the base branch from master to hdf5/update/point_data August 29, 2023 13:26
@sunethwarna sunethwarna self-assigned this Sep 4, 2023
@sunethwarna sunethwarna marked this pull request as ready for review September 4, 2023 13:48
@sunethwarna sunethwarna requested a review from a team as a code owner September 4, 2023 13:48
Base automatically changed from hdf5/update/point_data to master June 3, 2025 14:06
@sunethwarna sunethwarna requested a review from a team as a code owner June 5, 2025 06:45
Comment on lines +681 to +683
} else {
// do nothing
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
} else {
// do nothing
}
}

it->SetSolutionStepVariablesList(&r_variables_list);
}
block_for_each(rModelPart.Nodes(), [&r_variables_list](auto& rNode) {
rNode.SetSolutionStepVariablesList(&r_variables_list);
Copy link
Contributor

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?

Copy link
Member Author

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.

Comment on lines +107 to +110
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):
Copy link
Contributor

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.

sunethwarna and others added 18 commits June 18, 2025 08:32
…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>
@sunethwarna sunethwarna requested a review from matekelemen June 18, 2025 22:43
Comment on lines 44 to 45
IndexType start_index, block_size;
std::tie(start_index, block_size) = StartIndexAndBlockSize(rFile, rPrefix + "/Properties/");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not addressed

sunethwarna and others added 3 commits June 20, 2025 15:43
…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>
@sunethwarna sunethwarna enabled auto-merge June 20, 2025 17:31
@sunethwarna sunethwarna requested a review from matekelemen June 20, 2025 17:31
@sunethwarna sunethwarna merged commit 5fcfd23 into master Jun 20, 2025
11 checks passed
@sunethwarna sunethwarna deleted the hdf5/update/properties_io branch June 20, 2025 20:05
@github-project-automation github-project-automation bot moved this from In progress to Done in HDF5Application Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants