Commit Graph

1298 Commits

Author SHA1 Message Date
Arne Morten Kvarving
2dda16bc71 Transmissibility::applyAllZMultipliers: simplify by passing FaceInfo structs 2025-01-17 16:55:24 +01:00
Arne Morten Kvarving
637bd7a1c4 Transmissibility::applyNtg_: increase readbility, no reason for using a switch 2025-01-17 16:55:24 +01:00
Arne Morten Kvarving
68dfd12a3c Transmissibility::applyNtg_: simplify by passing FaceInfo struct
and make it static
2025-01-17 16:55:24 +01:00
Arne Morten Kvarving
6c292a9d4a Transmissibility::computeFaceProperties: simplify by passing FaceInfo structs 2025-01-17 16:55:24 +01:00
Arne Morten Kvarving
81de485575 Transmissibility: introduce a FaceInfo struct
use this to group variables in ::update()
2025-01-17 16:55:23 +01:00
Arne Morten Kvarving
e10531513a Transmissibility::update: add faceIdxDir lambda function
short loop increases readability
2025-01-17 16:54:59 +01:00
Arne Morten Kvarving
2197a1ea7c Transmissibility::update: extract calculation of harmonic mean to a lambda 2025-01-17 16:54:59 +01:00
Arne Morten Kvarving
50c5369c39 Transmissibility::computeHalfDiffusivity_: use return value instead of out-param
and make it static
2025-01-17 16:54:59 +01:00
Arne Morten Kvarving
9ce9fe49f2 Transmissibility::computeHalfTrans_: use return value instead of out-param
and make it static
2025-01-17 16:54:59 +01:00
Arne Morten Kvarving
3695ea8b0b Transmissibility::update(): use Dune::intersections() range generator 2025-01-17 16:54:58 +01:00
Arne Morten Kvarving
a9787f23f7 Transmissibility:update: replace operator[] with insert_or_assign() 2025-01-17 16:54:17 +01:00
Arne Morten Kvarving
471eeb1004 cosmetics 2025-01-17 16:54:17 +01:00
Atgeirr Flø Rasmussen
41524e3cca
Merge pull request #5889 from atgeirr/use-createthreaditerators
Use the createThreadIterators() utility.
2025-01-17 13:53:21 +01:00
Markus Blatt
2bbf48c39c
Merge pull request #5856 from michal-toth/bugfix/thread-spawn
Bugfix/thread spawn
2025-01-16 17:12:26 +01:00
Atgeirr Flø Rasmussen
c06d89b068 Use the createThreadIterators() utility. 2025-01-16 13:56:19 +01:00
Arne Morten Kvarving
9a97bf41c5 Transmissibility: add a cache for centroids and use this in update()
The loops repeatedly calls distanceVector which recalculates
the centroid for a cell. This is not a trivial calculation
2025-01-16 11:53:09 +01:00
Atgeirr Flø Rasmussen
635d7d77dd
Merge pull request #5862 from GitPaean/simplying_flash_usage
adapting to the interface change for PTFlash::solve()
2025-01-16 10:59:48 +01:00
Michal Tóth
66b353d8ee Remove one extraneous registration of ThreadsPerProcess parameter 2025-01-15 16:53:06 +01:00
Michal Tóth
47c44862ab Remove false-positive warning with OMP_NUM_THREADS. 2025-01-15 16:51:45 +01:00
Kai Bao
2a86950959 refactoring initial() function in FlowProblemComp
We should be able to initialize from either ZMF or XMF and YMF
initialization.
2025-01-15 16:40:10 +01:00
David Landa Marban
74d6ac18af Skip allocTrans when enableEclOutput is False and 2025-01-15 15:56:55 +01:00
Michal Tóth
c3489c5e62 Make 2 threads default and fix -1 for automatic 2025-01-15 12:09:03 +01:00
Arne Morten Kvarving
dcd739fa09 BlackoilModel: add impl file 2025-01-15 11:51:39 +01:00
Bård Skaflestad
5df8c8b2a7
Merge pull request #5885 from akva2/simulatorfullyimplicitblackoil_param_tu
SimulatorFullyImplicitBlackoil: move parameter registration to TU
2025-01-15 10:46:39 +01:00
Bård Skaflestad
95aa6599a8
Merge pull request #5884 from akva2/damaris_param_tu
Damaris: move some more code to TU
2025-01-15 10:45:54 +01:00
Bård Skaflestad
3cb1f16e05
Merge pull request #5883 from akva2/flowproblem_param_generic
FlowProblem: move some more code to FlowGenericProblem
2025-01-15 10:44:48 +01:00
Arne Morten Kvarving
d1c9c040ce SimulatorFullyImplicitBlackoil: move parameter registration to TU 2025-01-15 09:58:54 +01:00
Arne Morten Kvarving
512263110c OutputBlackoilModule: move some more code to GenericOutputBlackoilModule
typetag less parameter system now allows us to initialize these variables
in class that holds them.
2025-01-15 09:18:33 +01:00
Arne Morten Kvarving
ef176d4b5c Damaris: move some more code to TU
possible with typetag less parameter system
2025-01-15 09:14:17 +01:00
Arne Morten Kvarving
f7cfa7a04b FlowProblem: move some more code to FlowGenericProblem
typetag less parameter system now allows us to initialize these variables
in class that holds them.
2025-01-15 08:40:48 +01:00
Michal Tóth
5ba8e87f55 Uncomment OpmLog warning 2025-01-14 16:42:31 +01:00
Bård Skaflestad
6438f120ed
Merge pull request #5871 from akva2/blackoilmodel_penalty_card
BlackoilModel: move to has-a instead of is-a modelling of penalty cards
2025-01-14 15:56:47 +01:00
Arne Morten Kvarving
cee75a152a FlowBaseVanguard: move some more code to FlowGenericVanguard
typetag less parameter system now allows us to initialize these variables
in class that holds them.
2025-01-14 13:44:44 +01:00
Arne Morten Kvarving
15cb87576c SimulatorConvergenceOutput: move to separate class
model using has-a in SimulatorFullyImplicitBlackoil
2025-01-14 10:24:53 +01:00
Michal Tóth
eb782d9ae2 Set maximum threads immediately after parsing paramteres. Remove hotfix. 2025-01-14 09:56:10 +01:00
Michal Tóth
f267df98b4 Avoid repeated rewriting. 2025-01-14 09:56:10 +01:00
Michal Tóth
b865e80c2f Set limit to the number of threads if it is unset when we ask for the number. 2025-01-14 09:56:10 +01:00
Arne Morten Kvarving
79f5a1a958 NonlinearSolver::Parameters: move to separate struct
and move some more code to the TU. small tidy up enabled
by typetag-less parameters system
2025-01-14 07:51:08 +01:00
Arne Morten Kvarving
653cdfc247 BlackoilModel: move to has-a instead of is-a modelling of penalty cards 2025-01-14 06:26:52 +01:00
Bård Skaflestad
b82616adcc
Merge pull request #5869 from akva2/was_switched
BlackoilModel: make wasSwitched_ private
2025-01-13 14:59:22 +01:00
Arne Morten Kvarving
7590f015bf BlackoilModel: make wasSwitched_ private 2025-01-13 14:20:16 +01:00
Markus Blatt
f59262d403
Merge pull request #5800 from blattms/feature/default-is-merge-well-cells-for-partioning
Switch default load balancer to Zoltan with vertex = all cells of a well
2025-01-13 13:40:12 +01:00
Arne Morten Kvarving
c909283288 BlackoilModel: move properties to separate header 2025-01-13 11:34:14 +01:00
Atgeirr Flø Rasmussen
6952d19a92
Merge pull request #5849 from akva2/rename_haswell
Fix BlackoilWellModel::hasWell mixups
2025-01-13 11:29:19 +01:00
Atgeirr Flø Rasmussen
cfedccb880
Merge pull request #5824 from vkip/fix_rft_inactive_and_shut_distributed_wells
Fix RFT output for shut distributed wells
2025-01-10 13:48:48 +01:00
Arne Morten Kvarving
8a1ccaca80 changed: rename BlackoilWellModelGeneric::hasWell to hasLocalWell 2025-01-09 15:33:44 +01:00
Markus Blatt
e667efe522
Merge pull request #5829 from aritorto/addGridArgument
Add grid argument to recycle code
2024-12-20 20:03:16 +01:00
Antonella Ritorto
950c5f0765 Add grid argument to recycle code 2024-12-20 19:32:36 +01:00
Atgeirr Flø Rasmussen
939f944b86 Remove unneded capture of 'this'. 2024-12-20 14:44:02 +01:00
Vegard Kippe
802e73fe28 Fix RFT output for shut distributed wells and permamently inactive wells split across processors (partition method 3 issue only). 2024-12-20 10:46:14 +01:00