Commit Graph
26 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 5e880ffc26 Refactor: migrate fourteen more collections to caf::PdmObjectCollection<T>
Migrated to the templated base, preserving each collection's existing XML
field keyword for project-file backward compatibility:

- RimEnsembleFractureStatisticsCollection
- RimEclipseInputPropertyCollection
- RimPlotDataFilterCollection
- RimGeoMechContourMapViewCollection
- RimIntersectionResultsDefinitionCollection
- RimCustomObjectiveFunctionCollection
- RimStimPlanModelTemplateCollection
- RimEnsembleWellLogsCollection
- RimEclipseContourMapViewCollection
- RimSeismicViewCollection
- RimGridInfoCollection
- RimEclipseStatisticsCaseCollection
- RimWellIASettingsCollection
- RimVfpDataCollection

External callers that accessed the old public/named array fields directly
(RimEclipseInputPropertyCollection::inputProperties,
RimEclipseStatisticsCaseCollection::cases) now use addItem/items() from
the base. RimCustomObjectiveFunction.h replaced its include of the
collection header with a forward declaration to break the new include
cycle introduced by the migration.
2026-05-11 13:42:13 +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
Magne Sjaastad 5ee764af48 Refactor result definition 2023-05-11 08:37:58 +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 3a77d77689 #9363 StimPlan: Incorrect extraction size when changing extraction offsets from python 2022-10-24 07:47:09 +02:00
Kristian Bendiksen f7a2acc3cf StimPlanModel: avoid crashing on incomplete projects. 2022-10-24 07:47:09 +02:00
Kristian Bendiksen fbd1412853 StimPlan Model: Improve logging format for extration options. 2021-08-18 16:29:15 +02:00
Kristian Bendiksen 56a86eee5f #7871 StimPlan Model: resample well log data when not from static case 2021-08-18 14:46:25 +02:00
Kristian Bendiksen b69665ce23 #7871 StimPlan Model: Add data source ordering for EQLNUM extraction 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 f498138f4e StimPlanModel: use data from input cases when available 2021-06-22 07:17:12 +02:00
Kristian Bendiksen 9d29ba47b0 StimPlan Model: Fall back to replacement values from input property 2021-06-10 15:51:29 +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 d96e28b433 StimPlan Well Log Calculator: log missing result name when replacing missing values. 2021-05-20 07:18:44 +02:00
Magne Sjaastad 562ec1a398 Fix type cast warnings 2021-02-26 16:03:17 +01:00
Kristian Bendiksen 5c5b9e7f34 #7400 StimPlanModel: Search vertically for EQLNUM for inactive regions. 2021-02-26 14:03:30 +01:00
Kristian Bendiksen 8ce620323e #7400 Refactor: Extract methods for replacing values. 2021-02-26 14:03:30 +01:00
Kristian Bendiksen f6fe69ba45 #7400 StimPlanModel: Add support for multiple missing value strategies. 2021-02-26 14:03:30 +01:00
Kristian Bendiksen f0c70a0fd2 #7400 StimPlanModel: Add EQLNUM result to calculator.
Take results from EQLNUM_1 input properties for missing values in
static eclipse case.
2021-02-26 14:03:30 +01:00
Kristian Bendiksen dc4e372fc2 Janitor: Remove "Interpolating missing values" info logging.
This is expected behavior.
2021-02-19 12:18:30 +01:00
Kristian Bendiksen 54cdb6e8ef #7339 Refactoring: extract two methods. 2021-02-19 12:18:30 +01:00
Kristian Bendiksen c6f35cbe1f #7339 StimPlanFracture: Add methods to use two grids for data extraction. 2021-02-19 12:18:30 +01:00
Gaute Lindkvist 81699db187 Rename ApplicationCode to ApplicationLibCode 2021-01-11 15:27:45 +01:00