opm-simulators/opm/simulators/wells
Håkon Hægland 4970b0641e Improve debugging tools in gaslift code.
Introduces a gaslift debugging variable in ALQState in WellState. This
variable will persist between timesteps in contrast to when debugging
variables are defined in GasLiftSingleWell, GasLiftGroupState, or GasLiftStage2.

Currently only an integer variable debug_counter is added to ALQState,
which can be used as follows: First debugging is switched on globally
for BlackOilWellModel, GasLiftSingleWell, GasLiftGroupState, and
GasLiftStage2 by setting glift_debug to a true value in BlackOilWellModelGeneric.
Then, the following debugging code can be added to e.g. one of
GasLiftSingleWell, GasLiftGroupState, or GasLiftStage2 :

    auto count = debugUpdateGlobalCounter_();
    if (count == some_integer) {
        displayDebugMessage_("stop here");
    }

Here, the integer "some_integer" is determined typically by looking at
the debugging output of a previous run. This can be done since the
call to debugUpdateGlobalCounter_() will print out the current value
of the counter and then increment the counter by one. And it will be
easy to recognize these values in the debug ouput. If you find a place
in the output that looks suspect, just take a note of the counter
value in the output around that point and insert the value for
"some_integer", then after recompiling the code with the desired value
for "some_integer", it is now easy to set a breakpoint in GDB at the
line

    displayDebugMessage_("stop here").

shown in the above snippet. This should improve the ability to quickly
to set a breakpoint in GDB around at a given time and point in the simulation.
2022-01-23 20:37:26 +01:00
..
ALQState.cpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
ALQState.hpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
BlackoilWellModel_impl.hpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
BlackoilWellModel.hpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
BlackoilWellModelGeneric.cpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
BlackoilWellModelGeneric.hpp Merge pull request #3771 from totto82/fixUpdateGR 2022-01-21 10:33:00 +01:00
GasLiftCommon.cpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
GasLiftCommon.hpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
GasLiftGroupInfo.cpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
GasLiftGroupInfo.hpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
GasLiftSingleWell_impl.hpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
GasLiftSingleWell.hpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
GasLiftSingleWellGeneric.cpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
GasLiftSingleWellGeneric.hpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
GasLiftStage2.cpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
GasLiftStage2.hpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
GasLiftWellState.hpp remove empty _impl file 2021-05-20 12:17:24 +02:00
GlobalWellInfo.cpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
GlobalWellInfo.hpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
GroupState.cpp Remove debugging aid GroupState::dump 2021-11-01 13:47:36 +01:00
GroupState.hpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
MSWellHelpers.hpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
MultisegmentWell_impl.hpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
MultisegmentWell.hpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
MultisegmentWellEval.cpp add Index Traits 2021-12-08 16:52:23 +01:00
MultisegmentWellEval.hpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
MultisegmentWellGeneric.cpp addressing reviewing comments for PR#3760 2022-01-10 11:33:11 +01:00
MultisegmentWellGeneric.hpp refactoring to shorten the function computeBhpAtThpLimitProd 2022-01-07 15:49:48 +01:00
ParallelWellInfo.cpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
ParallelWellInfo.hpp clean up after review 2021-10-05 13:07:52 +02:00
PerfData.cpp Extract functionality to update target rates to SingleWellState 2021-11-03 12:30:40 +01:00
PerfData.hpp Extract functionality to update target rates to SingleWellState 2021-11-03 12:30:40 +01:00
PerforationData.hpp Adds original ECL index of well connection to PerforationData 2020-11-12 17:21:37 +01:00
RateConverter.hpp Replacing use of MPI_COMM_WORLD with a variable communicator. 2021-10-05 13:07:52 +02:00
RegionAttributeHelpers.hpp clean-up 2021-09-07 09:47:41 +02:00
RegionAverageCalculator.hpp Replacing use of MPI_COMM_WORLD with a variable communicator. 2021-10-05 13:07:52 +02:00
SegmentState.cpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
SegmentState.hpp Add method SegmentState::size() 2021-06-03 10:46:26 +02:00
SingleWellState.cpp Call SingleWellState::update_targets for ACTIONX affected wells 2021-11-05 09:48:27 +01:00
SingleWellState.hpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
StandardWell_impl.hpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
StandardWell.hpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
StandardWellEval.cpp add Index Traits 2021-12-08 16:52:23 +01:00
StandardWellEval.hpp Replacing use of MPI_COMM_WORLD with a variable communicator. 2021-10-05 13:07:52 +02:00
StandardWellGeneric.cpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
StandardWellGeneric.hpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
TargetCalculator.cpp Add brine and thermal simulator 2021-10-15 11:50:17 +02:00
TargetCalculator.hpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
VFPHelpers.cpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
VFPHelpers.hpp Switch to Passing VFP Wrapper Tables as References 2021-11-04 21:28:55 +01:00
VFPInjProperties.cpp return zero thp value for extremely small injection rate 2022-01-18 10:12:20 +01:00
VFPInjProperties.hpp changed: make bhp template hidden and use explicit instantations 2021-05-31 11:42:29 +02:00
VFPProdProperties.cpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
VFPProdProperties.hpp changed: make bhp template hidden and use explicit instantations 2021-05-31 11:42:29 +02:00
VFPProperties.hpp changed: make bhp template hidden and use explicit instantations 2021-05-31 11:42:29 +02:00
WellConnectionAuxiliaryModule.hpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
WellContainer.hpp Add method WellContainer<T>::wells() 2021-10-19 11:16:41 +02:00
WellGroupHelpers.cpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
WellGroupHelpers.hpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
WellHelpers.hpp GasLiftStage2: no longer a need to template on TypeTag 2021-05-28 08:24:07 +02:00
WellInterface_impl.hpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
WellInterface.hpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
WellInterfaceEval.cpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
WellInterfaceEval.hpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
WellInterfaceFluidSystem.cpp Remove assert in ratio check for completions 2022-01-21 10:51:40 +01:00
WellInterfaceFluidSystem.hpp Use SingleWellState argument instead of full WellState 2021-09-20 11:45:24 +02:00
WellInterfaceGeneric.cpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
WellInterfaceGeneric.hpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
WellInterfaceIndices.cpp add Index Traits 2021-12-08 16:52:23 +01:00
WellInterfaceIndices.hpp add StandardWellEval 2021-06-09 08:32:30 +02:00
WellProdIndexCalculator.cpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
WellProdIndexCalculator.hpp Productivity Index Calculator: Add Reinitialization operation 2020-12-04 15:16:24 +01:00
WellState.cpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00
WellState.hpp Improve debugging tools in gaslift code. 2022-01-23 20:37:26 +01:00
WGState.cpp Make sure to filter out wells from other processes in WellTestState 2021-10-19 11:16:41 +02:00
WGState.hpp Downstream filesystem reorganisation in opm-common 2022-01-02 14:33:34 +01:00