Files
opm-simulators/opm/simulators/wells
Håkon Hægland fe6b508b28 Fix reservoir coupling sync to only occur on first substep
The master-slave synchronization code in beginTimeStep() was executing
on every internal substep within a "sync" timestep. This is incorrect
because:

1. The SubStepIteration loop typically splits a sync timestep into
   multiple smaller internal substeps for numerical stability
2. After the first internal substep, master and slaves are at different
   simulation times and cannot exchange data correctly
3. Repeated sync attempts would cause deadlocks or incorrect data

This fix adds an isFirstSubstepOfSyncTimestep flag to track whether we
are at the start of a coordinated "sync" timestep. The flag is:
- Set to true before each SubStepIteration::run() call
- Cleared to false after the first runSubStep_() returns
2026-01-14 17:10:40 +01:00
..
2025-05-30 08:01:22 +02:00
2025-11-28 08:03:55 +01:00
2025-11-28 08:03:55 +01:00
2025-12-08 23:39:47 +01:00
2025-12-22 17:23:24 +01:00
2025-12-20 05:30:36 +01:00
2025-12-12 18:17:52 +01:00
2024-12-11 15:34:36 +01:00
2024-12-11 15:34:36 +01:00
2025-09-08 11:54:45 +02:00
2025-12-12 18:17:52 +01:00
2025-09-08 11:54:45 +02:00
2025-12-12 18:17:52 +01:00
2025-12-12 18:17:52 +01:00
2025-12-12 18:22:18 +01:00
2025-09-16 11:20:00 +02:00
2025-12-12 18:17:52 +01:00
2025-09-04 09:21:21 +02:00