Skip to content

make blackoilmodules gpu compatible - #6849

Merged
multitalentloes merged 6 commits into
OPM:masterfrom
multitalentloes:prepare_blackoilmodules_for_gpu
Feb 25, 2026
Merged

multitalentloes merged 6 commits into
OPM:masterfrom
multitalentloes:prepare_blackoilmodules_for_gpu

Conversation

@multitalentloes

Copy link
Copy Markdown
Member

Partial merge of the work for the GPU assembly in #6612

@bska bska added the manual:irrelevant This PR is a minor fix and should not appear in the manual label Feb 20, 2026
avoid new template argument in addStorage calls
fix indentation
only use __device__ where needed
@multitalentloes

Copy link
Copy Markdown
Member Author

Jenkins build this please

@multitalentloes

Copy link
Copy Markdown
Member Author

Jenkins build this please

@multitalentloes

Copy link
Copy Markdown
Member Author

Warnings produced by blackoilenergymodules are now resolved

@atgeirr atgeirr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good to go when the two issues are adressed, please merge when done and Jenkins is green again.

using LhsEval = typename StorageType::value_type;

if constexpr (enableFullyImplicitThermal) {
FluidSystem fsys = intQuants.getFluidSystem();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Although it is as of now a tiny object, I think this should be a const ref in case the design changes later.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good catch, fixed here and in diffusionmodules where the same mistake was made once.

* \brief Construct the energy intensive quantities for the fully implicit thermal module.
*/
BlackOilEnergyIntensiveQuantities(Evaluation rockInternalEnergy,
Evaluation totalThermalConductivity,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Weird indent.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fixed.

@multitalentloes

Copy link
Copy Markdown
Member Author

Jenkins build this please

@multitalentloes
multitalentloes merged commit e6805a8 into OPM:master Feb 25, 2026
2 checks passed
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.

3 participants