Commit Graph
496 Commits
Author SHA1 Message Date
Tobias Meyer Andersen 5900098f87 rebasing and adjusting false blackoilmodule instantiation 2026-06-04 13:43:31 +02:00
Santiago Ospina De Los Ríos 593aea4c12 Fix casing of OpenCL_FOUND CMake variable 2026-05-28 19:26:20 +02:00
Kai Bao 85f756f27e finishing supporting of 8-9 components 2026-05-20 17:18:22 +02:00
Arne Morten Kvarving 19c7d131cc use opm_add_executable to add executables 2026-05-20 15:15:25 +02:00
Kai Bao ca710acd5c extending the allowing component number to be 10 2026-05-20 09:56:00 +02:00
Arne Morten Kvarving 8a94bbc5f5 add option to use development simulator binaries in regression tests 2026-05-13 13:45:40 +02:00
Arne Morten Kvarving bae64e9121 fixed: do not print warning about missing ParMETIS in serial builds 2026-05-05 08:52:30 +02:00
Markus Blatt 481b03f787 Merge pull request #7012 from blattms/bugfix/support-parmetis-again
[cmake] Search for ParMETIS and use it if it is there.
2026-04-29 13:15:34 +02:00
Markus Blatt 2314c80699 Only search for ParMETIS in the prereq file
and make sure that we always search for ParMETIS in the *prereq.cmake file

This file gets processed when running CMake for opm-simulators and
during a find_package(opm-simulators) call.
2026-04-29 12:52:35 +02:00
Markus Blatt 827fdda14f [bugfix] Make sure avx2 defines are set for compilation if supported.
Previously this was done via config.h, but due to the recent build
system refactoring these defines became MIA and some  code is never
activated even if it would be supported by the hardware.

We now set the necessary compile definitois as properties for the relevant
source files to fix this.
2026-04-28 20:58:40 +02:00
Markus Blatt 6c29bef524 [cmake] Search for ParMETIS and use it if it there.
This is what we did before refactoring the build system. Somehow this
was accidentally skipped during the refactoring and this commit
reintroduces it.

This is needed, because without it we will always directly agglomerate
the data on the coase levels to on process instead of fewer and fewer.
This should make a difference in scalability of the linear solver when
using many processes.
2026-04-27 16:52:04 +02:00
Arne Morten Kvarving 587a579720 fixed: also have to copy include directories
in particular installed builds with vendored fmt broke
2026-04-08 11:28:42 +02:00
Tor Harald Sandve e4842a3569 Merge pull request #6650 from svenn-t/tpsa_pr
Two-point stress approximation (TPSA) geomechanics
2026-04-07 10:14:20 +02:00
Santiago Ospina De Los Ríos 0b0fe4a05d Merge pull request #6949 from blattms/bugfix/fix-build-vexcl-without-opencl
If OpenCL is not found, then do not attempt to set up VexCL.
2026-03-27 21:53:41 +01:00
Svenn Tveit 106d8d51c9 TPSA implementation with coupling to Flow.
- TPSA-Flow coupling done at the nonlinear solver step level:
- -- Lagged coupling -> TPSA lags behind one time step
- -- Fixed-stress -> Iterate until Flow and TPSA converge
- Generic TPSA solver using Newton with associated linearizer.
- Linear elasticity equations implemented
- Specialized version of ISTL linear solver for TPSA
- Output to restart files and VTK
2026-03-26 15:23:47 +01:00
Håkon Hægland a9a694b9fa Add GCONINJE top-up phase validation
Reject invalid GCONINJE configurations where multiple RESV/VREP
injection phases conflict, either within the same group or along
an ancestor-descendant path in the group hierarchy. Disconnected
branches with different top-up phases remain allowed.

The validation runs once per time step from setCmodeGroup() when
processing the FIELD group, before injection controls and guide
rates are propagated.

Also add a defensive NETV guide rate check in GuideRateHandler
that rejects NETV usage when the group's top-up phase does not
match the guide rate phase.

Companion PR: opm-common change to exclude REIN from
Group::topup_phase(), so it only reflects RESV and VREP modes.
2026-03-24 07:20:39 +01:00
Bård Skaflestad b9766728fa Merge pull request #6955 from akva2/fix_missing_boost_link
add forgotten link for Boost::date_time
2026-03-19 14:16:34 +01:00
Arne Morten Kvarving 8b08082370 add forgotten link for Boost::date_time 2026-03-19 13:40:22 +01:00
Markus Blatt 21a44bfc5a Do not search for VexCL if there is no OpenCL. 2026-03-19 13:33:19 +01:00
Markus Blatt 5aaa55fe35 Fix CMake for vexcl with CMAKE_DISABLE_FIND_PACKAGE_OpenCL=OFF
In that case using vexcl does not make sense as we only want to
use the OpenCL backend. Hence we switch it off completely.
2026-03-19 12:55:51 +01:00
Arne Morten Kvarving 8d245d8dbb use opm_add_library
this handles a lot of common options, include paths, ...
2026-03-19 11:13:45 +01:00
Arne Morten Kvarving a4da31a3c0 add include directories for config.h
this is temporary, will be wrapped up in
a function soon.
2026-03-19 10:41:04 +01:00
Arne Morten Kvarving c782e41134 use targets for prereqs 2026-03-18 14:22:02 +01:00
Arne Morten Kvarving abc8a9b50b hipify: suppress warnings 2026-03-18 11:31:26 +01:00
Arne Morten Kvarving afcb4134e2 make rocalution a private dependency 2026-03-17 15:30:01 +01:00
Arne Morten Kvarving 4189e6f015 make amgcl a private dependency 2026-03-17 14:16:35 +01:00
Arne Morten Kvarving 92fc0150ce make VexCL a private dependency 2026-03-17 14:16:35 +01:00
Arne Morten Kvarving dd204202d2 HAVE_OPENCL_HPP: make it a private compile definition
not used in any public code, no need for downstreams to
have to deal with this

make opencl a private dependency
2026-03-17 14:16:35 +01:00
Bård Skaflestad 52ef8cce80 Merge pull request #6945 from akva2/instantiate_float_priv
make FLOW_INSTANTIATE_FLOAT a private compile definition
2026-03-17 12:45:23 +01:00
Arne Morten Kvarving 154341f873 make FLOW_INSTANTIATE_FLOAT a private compile definition
only used in cpp files and two header files. neither of
these header files are part of any public interface,
so mark them private.

while this means downstreams cannot detect if the library
was built with float support, they will certainly notice the linking
errors. should this become a problem, we can easily move it to
public
2026-03-17 12:22:18 +01:00
Arne Morten Kvarving d2c1aa8e41 use UseCUDA module 2026-03-17 11:03:45 +01:00
Markus Blatt 9a021263c7 Fix failing compilation with HIP on Debian 2026-03-13 17:15:52 +01:00
Arne Morten Kvarving d86151d86c remove unnecessary version variables 2026-03-11 15:20:16 +01:00
Arne Morten Kvarving 90ad0a2956 the float from chars define is only used in a single file
remove from config variables
2026-03-11 15:20:16 +01:00
Arne Morten Kvarving ffc09f8787 the component template list is only interesting to flowexp_comp
remove from config variables
2026-03-11 12:30:32 +01:00
Bård Skaflestad 7d175770e3 Merge pull request #6903 from akva2/janitoring_cuda
Janitoring: quell some cuda warnings
2026-03-10 14:55:35 +01:00
Arne Morten Kvarving 6afb711485 adjust to changed DownloadFmt 2026-03-10 08:47:42 +01:00
Arne Morten Kvarving 3a6ee1496f prereqs is now included by OpmLibMain 2026-03-09 15:18:58 +01:00
Arne Morten Kvarving d792fe0fce move language setup to language hook
needs to run before the target is added
2026-03-09 13:03:31 +01:00
Arne Morten Kvarving 1b92015617 turn on expt-relaxed-constexpr for two more cuda tests
the stl functions are marked constexpr, and this causes
warnings when used in device code. turn on option to
relax this restriction.

move code doing this for other files into source hook
2026-03-06 08:30:23 +01:00
Arne Morten Kvarving ea2a722235 link these targets to opmcommon
needed to obtain include dir for generated headers using
sibling build
2026-03-03 10:57:03 +01:00
Arne Morten Kvarving 16cfadab7d opm-common(-prereqs.cmake) now handles its own python dependency 2026-03-02 14:20:40 +01:00
Arne Morten Kvarving ca32763ead fixed: boost propertytree 1.66 cannot be built as c++-20
workaround engines engaged
2026-02-25 09:52:25 +01:00
Markus Blatt 0260ce51fc Merge pull request #6842 from blattms/bugfix/fix-roc-linking
Fix CMake linking for rocalution, rocblas and rocsparse.
2026-02-24 11:56:12 +01:00
Arne Morten Kvarving 35be5dde30 tracy is now handled by generic build system 2026-02-23 12:15:41 +01:00
Markus Blatt 2b6f9b24f2 Fix CMake linking for rocalution.
We cannot rely on finding this via hip. A found HIP mighr even
be pulled in by dependencies.
2026-02-19 14:37:06 +01:00
Arne Morten Kvarving af5f4425e9 move installation of flow and its bash completion into hoook 2026-02-16 10:26:56 +01:00
Arne Morten Kvarving d602802619 move addition of flow and its variants to targets hook
respect the BUILD_FLOW_VARIANTS option
2026-02-16 10:23:03 +01:00
Arne Morten Kvarving 3fe15351cb move addition of flow_blackoil_polyhedralgrid to targets hook
respect the BUILD_FLOW_VARIANTS option
2026-02-16 10:11:20 +01:00
Arne Morten Kvarving 7c2b301398 move addition of flow_blackoil_alugrid to targets hook
respect the BUILD_FLOW_VARIANTS option
2026-02-16 10:09:03 +01:00