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 WTHPH+WBHPH keywords #222

Merged
merged 1 commit into from
Dec 2, 2017
Merged

Conversation

sveinung-r
Copy link
Contributor

@sveinung-r sveinung-r commented Dec 1, 2017

Depends on pull request OPM/opm-parser#1162.


double bhp_hist;
if ( sched_well->isProducer( timestep ) ) {
bhp_hist = sched_well->getProductionProperties( timestep ).BHPH;
Copy link
Member

Choose a reason for hiding this comment

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

Please don't add all these extra braces:

if (sched_well->isProducer( timestep ))
   bhp_hist = sched_well->getProd ...
else
   bhp_hist = ...

W_1 SHUT ORAT 10.1 10 10.2 /
W_2 SHUT ORAT 20.1 20 20.2 /
W_1 SHUT ORAT 10.1 10 10.2 0 0 0.2 0.1 /
W_2 SHUT ORAT 20.1 20 20.2 0 0 1.2 1.1 /
Copy link
Member

@joakim-hove joakim-hove Dec 1, 2017

Choose a reason for hiding this comment

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

Since I assume the two 0 values are not tested for in any way you can just do:

W_1 SHUT ORAT 10.1 10 10.2  2* 0.2 0.1 /

@joakim-hove
Copy link
Member

Except the brace disease this can be merged when the parser PR is merged.

@joakim-hove joakim-hove merged commit 25ba406 into OPM:master Dec 2, 2017
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