Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Issue #798 partition ssm packages #819

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

luitjansl
Copy link
Contributor

@luitjansl luitjansl commented Feb 5, 2024

Fixes #798

When we split a simulation of both flow and transport models, the ssm package of the transport simulation is re-generated after splitting, because not every flow boundary will be present in every partition.

  • Links to correct issue
  • Update changelog, if changes affect users
  • PR title starts with Issue #nr, e.g. Issue #737
  • Unit tests were added
  • If feature added: Added/extended example

Copy link
Contributor

@JoerivanEngelen JoerivanEngelen left a comment

Choose a reason for hiding this comment

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

One comment!

@@ -146,7 +146,7 @@ def from_flow_model(
aux_var_names.append(species)

if len(names) == 0:
raise ValueError("flow model does not contain boundary conditions")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this appropriate behavior? Or required?
We can log a warning?

Copy link
Contributor Author

@luitjansl luitjansl Feb 5, 2024

Choose a reason for hiding this comment

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

before we implemented partitioning, this was a red flag. But now, we can have a partition which is not on the boundary, and it will not have flow boundaries, so it is not a red flag anymore.

Now we check if the model is being split. If it is split, then it is fine to not have flow boundary conditions in this transport domain, but when it is not split, an exception is thrown if this happens

@JoerivanEngelen JoerivanEngelen merged commit 4bc897a into model_splitting_transport_feature Feb 5, 2024
@JoerivanEngelen JoerivanEngelen deleted the Issue_#798_partition_ssm_packages branch February 5, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants