Skip to content
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

Add support for SLAVES keyword #5436

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

hakonhagland
Copy link
Contributor

@hakonhagland hakonhagland commented Jun 20, 2024

Depends on upstream OPM/opm-common#4114.

This is a first step to implement reservoir coupling

Currently the SLAVES keywords does nothing. The plan is to activate the keyword after GRUPMAST and GRUPSLAV has been implemented. This can hopefully be done using MPI_Comm_spawn() from the master, and then MPI communication between master and slaves.

@totto82
Copy link
Member

totto82 commented Jun 24, 2024

Since we SLAVES does not do anything at the moment, isn't it better to wait with merging this until we actually supports this feature. For testing you can always set the parsing-strictness=low

@hakonhagland
Copy link
Contributor Author

Since we SLAVES does not do anything at the moment, isn't it better to wait with merging this until we actually supports this feature.

@totto82 Good point.

@hakonhagland hakonhagland marked this pull request as draft June 24, 2024 12:20
@hakonhagland
Copy link
Contributor Author

I convert this to draft until it is ready for merging

@hakonhagland
Copy link
Contributor Author

Rebased

@hakonhagland hakonhagland marked this pull request as ready for review September 23, 2024 16:21
@hakonhagland
Copy link
Contributor Author

@blattms I have removed the draft state of this PR, in accordance with #5620 (comment). Can you have a look again at this PR and see if we can get it merged?

{
"SLAVES",
{
{1,{true, [](const std::string& val){ return val.size()<=8;}, "SLAVES(SLAVE_RESERVOIR): Only names of slave reservoirs of up to 8 characters are supported."}},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should check with the engineers whether they really only use 8 or reky on truncation and use the rest for further documentation. I think the commercial simulator just truncates.

@blattms Referring to: #5453 (comment) : then we should use "false" instead of "true" here and in the keyword handlers in opm-common, we should truncate the length if the slave reservoir if it is more than 8 characters long?

@blattms
Copy link
Member

blattms commented Oct 2, 2024

I would like to run jennkins here. Would be cool if you would rebase this onto current master. Without that some updated tests might actually fail.

@blattms
Copy link
Member

blattms commented Oct 2, 2024

Just to clarify: This PR is there to simply mark the SLAVE keyword as supported?

IMHO, then this PR should actually be the last one in the sequence to support reservoir coupling. Once this is a user can run simulations with coupled reservoirs with the default option. He might expect that such a simulation then works and be surprised that it does not, because the feature is still work in progress.

I don't think that having the SLAVE keyword marked as supported is needed for testing. I would simply start flow with --parsing-strictness=low to make it continue the simulation with keywords marked as unsupported.

@hakonhagland
Copy link
Contributor Author

@blattms this PR should actually be the last one in the sequence to support reservoir coupling.

Good point. I put this back into draft state then.

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.

3 participants