Commit Graph

20509 Commits

Author SHA1 Message Date
Bård Skaflestad
bde91b7331 Release Candidate 2024.10-rc4 release/2024.10/rc4 2024-10-31 09:14:21 +01:00
Bård Skaflestad
92ab250aa2 Merge pull request #5703 from OPM/backport-of-pr-5701
fixed: set active indices in fieldprops
2024-10-31 09:12:42 +01:00
Arne Morten Kvarving
27d102c4d2 fixed: set active indices in fieldprops 2024-10-31 09:12:04 +01:00
Bård Skaflestad
275e6e4772 Merge pull request #5700 from OPM/backport-of-pr-5697
Handle WELPI from ACTIONX Separately From Constraints
2024-10-30 09:37:39 +01:00
Bård Skaflestad
0340f9fe74 Handle WELPI from ACTIONX Separately From Constraints
This commit switches to using the 'welpi_wells' information from the
SimulatorUpdate structure as a basis to decide the wells for which
it is safe/sufficient to update only the CTFs in response to an
ACTIONX block running WELPI.  To this end, we split the actions of
the existing member function updateEclWells() into two parts,

  1. updateEclWellsConstraints()
  2. updateEclWellsCTFFromAction()

in which the first handles well status and well control updates
while the second deals with CTF updates in response to WELPI.  We do
not run the second part if the well structure has changed--e.g., due
to COMPDAT or WELOPEN--since the update loop depends on a static
connection topology.

We add a new member function wellUpdateLoop() which will traverse a
sequence of well names and invoke a loop body on those wells which
exist in wells_ecl_.  This collects common operations needed for
both the constraints and the CTF updates.
2024-10-30 09:36:28 +01:00
Bård Skaflestad
41bfd5638e Release Candidate 2024.10-rc3 release/2024.10/rc3 2024-10-25 16:58:40 +02:00
Bård Skaflestad
aa7fc73917 Release Candidate 2024.10-rc2 release/2024.10/rc2 2024-10-21 12:16:52 +02:00
Bård Skaflestad
f0f885677f Merge pull request #5685 from OPM/backport-of-pr-5664
Mark Solution Data as Invalid at the End of a Time Step
2024-10-21 12:15:37 +02:00
Kai Bao
ad5283eaf7 removing invalidateLocalData() in updateSolution() in BlackoilModel 2024-10-21 12:13:30 +02:00
Kai Bao
3fa4da847b in flowexp_blackoil, invalidate output data after solution is updated 2024-10-21 12:13:30 +02:00
Bård Skaflestad
33532c0631 Merge pull request #5683 from OPM/backport-gcc-build-fix
avoid declaring t1 outside lambda
2024-10-18 09:39:56 +02:00
Arne Morten Kvarving
56c2f9817d avoid declaring t1 outside lambda
clang doesn't want us to capture t1, and g++-14 requires us
to capture t1. this workaround avoids warnings with both.
2024-10-18 09:37:36 +02:00
Bård Skaflestad
c8c65acab3 Merge pull request #5681 from OPM/backport-of-pr-5668
Fix gas-water restart
2024-10-17 09:24:29 +02:00
Tor Harald Sandve
d88ac93698 Add rsw to restart arrays and remove temperature 2024-10-17 09:22:46 +02:00
Tor Harald Sandve
533283447c FIX gas-water restart 2024-10-17 09:22:46 +02:00
Bård Skaflestad
996bd78172 Merge pull request #5676 from OPM/backport-of-pr-5675
Fix memory bug in setPrimaryVars for MSW
2024-10-16 09:40:02 +02:00
jakobtorben
1e0ac42094 Fix memory bug in setPrimaryVars for MSW 2024-10-16 09:36:17 +02:00
Bård Skaflestad
d32e858f07 Merge pull request #5670 from OPM/backport-of-pr-5665
Use Rank's Local Cells for Tracer Concentration Restart
2024-10-14 17:33:07 +02:00
Bård Skaflestad
7ee7010d5f Use Rank's Local Cells for Tracer Concentration Restart
The 'globalIdx' generated by localIdxToGlobalIdx() is in the range
zero to number of active cells in global model, not zero to number
of active cells on rank.  Using 'globalIdx' as an argument to
set*TracerConcentration() therefore ends up indexing out-of-bounds
for the internal arrays in the tracer model object in parallel
restarted simulation runs.

The problem has been present since the restart support for tracers
was added in commit e9c45f4ca (PR #3708).

This commit switches to using the 'elemIdx' instead, as we already
do when calling the output module's setRestart() member function.
Following this, we are able to restart the standard Norne benchmark
case (NORNE_ATW2013.DATA) in parallel.  The numerical results for
the tracer concentrations are, however, a little questionable and
will warrant further investigation.  Nevertheless, the tracer values
are now the same in a parallel restarted run as in a sequential
restarted run.
2024-10-14 17:31:10 +02:00
Bård Skaflestad
822538cc65 Release Candidate 2024.10-rc1 release/2024.10/rc1 2024-10-11 09:42:01 +02:00
Atgeirr Flø Rasmussen
af93859a29 Merge pull request #5660 from jakobtorben/remove_unused_num_cells_argument
Remove unused num_cells argument from well equations
release/2024.10/branchpoint
2024-10-11 08:25:16 +02:00
jakobtorben
60bd3f5514 Remove unused num_cells argument from well equations 2024-10-10 20:26:13 +02:00
Atgeirr Flø Rasmussen
064a66e794 Merge pull request #5659 from atgeirr/delay-well-stop-by-one-iteration-rebased
Delay stopping wells after local well solves until global update agrees (rebased)
2024-10-10 17:37:24 +02:00
Atgeirr Flø Rasmussen
a7efc0091d Merge pull request #5341 from jakobtorben/NLDD_remove_need_for_addWellContrib
Remove the need for add well contributions to matrix for NLDD
2024-10-10 16:23:52 +02:00
Atgeirr Flø Rasmussen
6602c8be7f Reformulate a nonzero rate criterion. 2024-10-10 16:17:38 +02:00
Stein Krogstad
a94d667462 Don't stop wells unless global update agrees 2024-10-10 16:17:38 +02:00
jakobtorben
e790972201 PR review changes 2024-10-10 15:51:53 +02:00
Atgeirr Flø Rasmussen
0ff3d63c0a Merge pull request #5653 from bska/fix-rst-inplace
Initialise Fluid-in-Place Balance Sheets at Restart
2024-10-10 15:43:03 +02:00
Atgeirr Flø Rasmussen
fc43d3ba44 Merge pull request #5655 from BigDataAccelerate/fix_type
Bug fix in rocsparsesolver
2024-10-10 15:34:03 +02:00
jakobtorben
22af0bd2ae Pre-calculate local perforated cell indexes in subdomains 2024-10-10 15:12:48 +02:00
jakobtorben
61d61541d6 Remove reallocatin of temporary local variables 2024-10-10 15:12:48 +02:00
jakobtorben
3ea5c5820e Add well operator for NLDD domains 2024-10-10 15:12:48 +02:00
Kjetil Olsen Lye
9bc7155cf3 Merge pull request #5552 from multitalentloes/add_mixed_precision_ilu0_and_dilu_on_gpu
Add mixed precision ilu0 on gpu
2024-10-10 13:03:14 +02:00
Bård Skaflestad
71079ce737 Initialise Fluid-in-Place Balance Sheets at Restart
Commit 6ba9dc086 (PR #5626) moved the balance sheet report output
logic ahead of the timestep.  As a consequence, the output module's
'inplace_' and 'initialInplace_' data members must be fully
initialised the first time we call 'writeReports()' if the run
requests balance sheet output.

This commit initialises those objects by calling calc_inplace() from
EclWriter<>::endRestart().  Doing so restores the behaviour from
before PR #5626.  Note, however, that using this value for
'initialInplace_' is incorrect as the simulator then, in a restarted
run, will calculate recovery factors based on the fluid distribution
at the restart time instead of at the start of the base run.
Nevertheless this is, as alluded to earlier, how the simulator has
always performed.  The behaviour is just a little more explicit now.
2024-10-10 12:47:13 +02:00
Bård Skaflestad
1475e47901 Merge pull request #5652 from bska/regression-test-equalreg-multy
Activate New Regression Tests for EQUALREG/MULTY
2024-10-10 12:39:08 +02:00
Bård Skaflestad
ffc0b5304f Merge pull request #5654 from bska/varnish-eclwriter-beginrestart
Varnish EclWriter::beginRestart() Implementation
2024-10-10 12:35:43 +02:00
Bård Skaflestad
9344423d04 Varnish EclWriter::beginRestart() Implementation
In particular,

  - Split some long lines
  - Mark objects 'const' where possible
  - Reduce scope of objects
  - Add braces to single statement control structures
  - Prefer pre-increment
  - Prefer type deduction for induction variables
2024-10-10 11:35:21 +02:00
Bård Skaflestad
8ccf4682a8 Activate New Regression Tests for EQUALREG/MULTY
We use all models generously provided in PR OPM/opm-tests#1239.
2024-10-10 11:35:16 +02:00
Kai Bao
0e127194de Merge pull request #5631 from vkip/winjmult_damp
Add dampening to the injectivity multipliers (WINJMULT)
2024-10-10 11:28:22 +02:00
Markus Blatt
9300e4819a Merge pull request #5656 from bska/simplify_logoutput_helper_test
Simplify Unit Tests for LogOutputHelper
2024-10-10 10:09:25 +02:00
Bård Skaflestad
e550fd71d0 Simplify Unit Tests for LogOutputHelper
In particular, put more of the common setup code into the test
fixture and use more powerful constructors for the EclipseState
object.  While here, also switch to using the update_well_var() and
update_group_var() member functions on the SummaryState object where
appropriate since the resulting statements become slightly easier to
understand in isolation.
2024-10-10 09:56:14 +02:00
Vegard Kippe
a2882dc0c8 Resetting WINJMULT dampening factors before fixed BHP calculations 2024-10-10 09:25:28 +02:00
Kai Bao
56619e4476 Merge pull request #5651 from kjetilly/only_one_component
Compile only a select number of components.
2024-10-10 08:58:32 +02:00
Kjetil Olsen Lye
1816e9dfad Added better help message 2024-10-09 20:57:37 +02:00
Razvan Nane
82f32be1d9 fix typo in rocsparsesolver 2024-10-09 20:27:01 +02:00
Kjetil Olsen Lye
10cf9ff839 use fmt::print instead of fmt::println 2024-10-09 16:29:02 +02:00
Kjetil Olsen Lye
d91208099f Use array instead of vector 2024-10-09 13:56:06 +02:00
Kjetil Olsen Lye
ea76a1987c Typo and include cstdlib 2024-10-09 10:16:08 +02:00
Kjetil Olsen Lye
cbf7504030 Added extra error check for OPM_COMPILE_COMPONENTS 2024-10-09 07:17:25 +02:00
Kjetil Olsen Lye
02b31fb9b2 Can now compile only a select number of components. 2024-10-08 20:35:42 +02:00