Commit Graph
34 Commits
Author SHA1 Message Date
Magne Sjaastad 56e98ba1c4 #14476 ApplicationLibCode: Replace CVF_ASSERT with CAF_ASSERT
Migrate all assert macros in ApplicationLibCode to CAF_ASSERT and remove every
use of cvfAssert.h.

CVF_ASSERT is replaced one to one. CVF_TIGHT_ASSERT is also replaced by
CAF_ASSERT, which is semantically exact: CVF_ENABLE_TIGHT_ASSERTS is 1 only
under _DEBUG, and that is what CAF_ASSERT now does. The two CVF_FAIL_MSG sites
become CAF_ASSERT( false && "message" ), preserving the message with the idiom
already used elsewhere in the code base.

Counts before and after: CVF_ASSERT 1044 to 0, CVF_TIGHT_ASSERT 66 to 0,
CVF_FAIL_MSG 2 to 0, cvfAssert.h references 154 to 0.

Include handling: files that included cvfAssert.h directly now include
cafAssert.h instead, includes left dead by the migration are removed, and files
that were relying on cvfAssert.h transitively get an explicit cafAssert.h. Files
that reach cafAssert.h through another caf header are left unchanged; a missing
include here is a compile error, not a silently disabled assert.

ResultStatisticsCache links only LibCore and therefore had no path to
cafAssert.h. Add the cafPdmCore directory as a private include path rather than
linking the library, since cafAssert.h is header only.

Note that this stops these asserts from firing in Release and RelWithDebInfo,
where CVF_ASSERT was previously active.
2026-08-07 15:05:57 +02:00
Kristian Bendiksen 5ffcb69acc #13126 RiaLogging: Use std::string_view instead of QString for logging 2026-05-08 10:11:09 +02:00
Kristian Bendiksen a0dbbf6cb1 Remove deprecated size_t overloads from RigActiveCellInfo
Migrate all callers to use type-safe ReservoirCellIndex and
ActiveCellIndex wrappers, then remove the deprecated isActive(size_t),
cellResultIndex(size_t), and setCellResultIndex(size_t, size_t) methods.
2026-03-31 12:32:05 +02:00
jonjenssen da683bed9e Move Rig well related things to subfolder and update include statements 2024-10-31 15:08:59 +01:00
Kristian Bendiksen 290d03df6c StimPlanModel: Fix log level failing pressure interp. message. 2023-09-20 14:09:15 +02:00
Kristian Bendiksen ec6a13e1da StimPlanModel: Extrapolate pressure table to cover extraction range. 2023-09-20 14:09:15 +02:00
Kristian Bendiksen 0ca609fdac StimPlanModel: Use default overburden facies for pressure depletion. 2023-09-19 09:03:56 +02:00
Kristian Bendiksen 1e2f8fadef StimPlanModel: Fix bug in pressure interpolation. 2023-09-19 09:03:56 +02:00
Magne Sjaastad 952e766c2f Update clang-format.yml (#10068)
* Update to clang-format-15
Removed two custom .clang-format files in subfolders of AppFwk

* Fixes by clang-format
2023-04-13 07:05:53 +02:00
Magne Sjaastad f8c5cf389f clang-format: Set column width to 140
* Set column width to 140
* Use c++20
* Remove redundant virtual
2023-02-26 10:48:40 +01:00
Kristian Bendiksen 53f102ee55 Stim Plan Model: Handle pressure values in field units. 2021-11-08 09:51:22 +01:00
Magne Sjaastad da30992d5a Janitor : Guard access to empty vector 2021-10-20 14:44:25 +02:00
Kristian Bendiksen 511439277a #7871 StimPlan Model: Add check-box for EQLNUM pressure interpolation 2021-08-18 14:46:25 +02:00
Kristian Bendiksen 40bd4c285a Improve logging when extracting StimPlan well logs. 2021-08-12 08:14:29 +02:00
Kristian Bendiksen 7db9efe387 StimPlan Model: Improve error handling on missing pressure and porosity data. 2021-08-12 08:14:29 +02:00
Kristian Bendiksen 7f99a9561b Stim Plan Model: warn and handle error instead of assert. 2021-06-25 11:51:23 +02:00
Kristian Bendiksen dde4f021ab StimPlanModel: replace assert with error handling 2021-06-22 07:17:12 +02:00
Kristian Bendiksen f498138f4e StimPlanModel: use data from input cases when available 2021-06-22 07:17:12 +02:00
Kristian Bendiksen 42f998a7a5 #7763 Interpolate missing values for initial pressure
Fix problem with inf and NaN in exported Geological.frk.
This could happen when there is no grid cells of a given
EQLNUM for a given depth.

Also fix index issues due to mixing extractions with
and without over/underburden.
2021-06-09 21:23:50 +02:00
Kristian Bendiksen 429d1e4166 StimPlanModel export: use linear interpolation as last fallback for EQLNUM 2021-05-29 09:57:39 +02:00
Kristian Bendiksen bc206adc95 #7452 Improve naming of interpolated variables. 2021-03-19 13:24:25 +01:00
Kristian Bendiksen c83af62aae #7452 Refactor: Extract method 2021-03-19 13:24:25 +01:00
Kristian Bendiksen 5b7a73230e #7452 Refactoring: extract method 2021-03-19 13:24:25 +01:00
Kristian Bendiksen 66df15224f #7452 Remove magic number. 2021-03-19 13:24:25 +01:00
Kristian Bendiksen 8542643963 #7452 Use pressure gradient from equilibrium region for stress gradient 2021-03-19 13:24:25 +01:00
Kristian Bendiksen 6532b2ce74 #7454 StimPlanModelTemplate: Invert delta pressure fraction calculation 2021-03-05 13:42:15 +01:00
Kristian Bendiksen 9373326281 #7400 StimPlanModel: Bin pressure by depth and use mean value. 2021-02-26 14:03:30 +01:00
Kristian Bendiksen 023bb062b5 #7400 Make proper methods of helper functions. 2021-02-26 14:03:30 +01:00
Kristian Bendiksen 36b9f084c0 #7400 Minor refactoring: remove duplication. 2021-02-26 14:03:30 +01:00
Kristian Bendiksen 5c5b9e7f34 #7400 StimPlanModel: Search vertically for EQLNUM for inactive regions. 2021-02-26 14:03:30 +01:00
Kristian Bendiksen 762e36ae9d #7400 Interpolate initial pressure per EQLNUM region 2021-02-26 14:03:30 +01:00
Kristian Bendiksen 77d02e67da #7365 StimPlanModel: Add optional table for inital and current pressure data. 2021-02-19 12:18:30 +01:00
Kristian Bendiksen 3e43ca2b65 #7339 StimPlanModel: handle facies without pressure depletion. 2021-02-19 12:18:30 +01:00
Kristian Bendiksen e72cec3c62 #7339 StimPlanModel: Interpolate pressure data from dynamic eclipse case 2021-02-19 12:18:30 +01:00