Skip to content

Conversation

@totto82
Copy link
Member

@totto82 totto82 commented Dec 5, 2025

During well testing, we want (and need) a reasonable bhp/thp/temperature in the well.

@totto82
Copy link
Member Author

totto82 commented Dec 5, 2025

jenkins build this failure_report please

@GitPaean GitPaean added the manual:irrelevant This PR is a minor fix and should not appear in the manual label Dec 5, 2025
@totto82 totto82 force-pushed the fix_wellstate_init branch from 37e474d to 1c0f4b6 Compare December 5, 2025 10:46
@totto82
Copy link
Member Author

totto82 commented Dec 5, 2025

jenkins build this failure_report please

@totto82 totto82 requested a review from GitPaean December 5, 2025 15:27
@totto82 totto82 marked this pull request as ready for review December 5, 2025 15:27
@GitPaean
Copy link
Member

GitPaean commented Dec 5, 2025

Thanks for the request, can you give some more details about the scenario that the master branch will fail before I can review and comment on this?

@totto82
Copy link
Member Author

totto82 commented Dec 5, 2025

With #6653 we use the bhp during well testing to compute IPR to be used for gaslift optimization.

@GitPaean
Copy link
Member

GitPaean commented Dec 9, 2025

The PR has some good points, while with the function defined as follows,

template<typename Scalar, typename IndexTraits>
void SingleWellState<Scalar, IndexTraits>::init_timestep(const SingleWellState& other)
{
    if (this->producer != other.producer)
        return;

    if (this->status == Well::Status::SHUT)
        return;

    if (other.status == Well::Status::SHUT)
        return;

    this->bhp = other.bhp;
    this->thp = other.thp;
    this->temperature = other.temperature;
}

I do not understand how the bhp/thp and temperature are copied from the previously SHUT well?

@totto82
Copy link
Member Author

totto82 commented Dec 9, 2025

I do not understand how the bhp/thp and temperature are copied from the previously SHUT well?

Neither do I. @GitPaean, Thank you for reading the PR carefully enough to spot it.

@totto82 totto82 closed this Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual:irrelevant This PR is a minor fix and should not appear in the manual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants