Commit Graph
39 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
JJ 6689000d85 New Sector Model Export user interface (#13247)
* Add sector model export wizard
* GUI cleanup
* Use job name as deck name for simulation runs
* Remove new things from old export GUI
* Use radio-buttons for enum dropdowns
2025-11-28 16:43:51 +01:00
Kristian Bendiksen c4177b6282 Simulation Input: Reintroduce porv multiplier. 2025-11-19 16:47:27 +01:00
Kristian Bendiksen 0626c2e199 Simulation Input: reintroduce OPERNUM+OPERATER/BCCON+BCPROP.
Was incorrectly removed in the refactoring in c47e8ac76f
2025-11-19 16:47:27 +01:00
Kristian Bendiksen 59584b5681 Simulation Input: Remove unused argument. 2025-11-19 16:47:27 +01:00
Kristian Bendiksen c47e8ac76f Refactor: move simulation file/input code to separate class. 2025-11-17 15:48:12 +01:00
Kristian Bendiksen 3a8d521bc2 Sector Export: fix bug comparing caf::VecIjk1 with caf::VecIjk0. 2025-11-17 13:04:13 +01:00
Kristian Bendiksen 5a7e987034 Refactor: Use VecIjk0 instead of Vec3st. 2025-11-17 13:04:13 +01:00
Kristian Bendiksen 7a36ea9932 Add EQUALS keyword processing. 2025-11-15 11:22:44 +01:00
Kristian Bendiksen 3e668a049d Refactor: move transformIjkToSectorCoordinates and add tests. 2025-11-15 11:22:44 +01:00
Kristian Bendiksen eb02db6cc0 Sector Export: fix indexes in EQUALS keyword. 2025-11-15 11:22:44 +01:00
Kristian Bendiksen 2bba6afe10 Sector Export: dump with "INLINE" to workaround strange inserts. 2025-11-15 11:22:44 +01:00
Kristian Bendiksen c3286d9a7e Sector Export: changes to handle model5 from opm-tests. 2025-11-15 11:22:44 +01:00
Kristian Bendiksen 9f597c63f9 Sector Export: handle missing OPERNUM.
Also use keyword when inserting in deck.
2025-11-15 11:22:44 +01:00
Kristian Bendiksen 38c691d9a4 Refactor: Update usage of caf::VecIjk. 2025-11-14 14:44:21 +01:00
Kristian Bendiksen b7a4983009 #12950 Simulation Input: add boundary condition choice. 2025-11-12 08:39:20 +01:00
Kristian Bendiksen b1646d9a1f #12950 Generate BCCON/BCPROP for simulation input. 2025-11-12 08:39:20 +01:00
Kristian Bendiksen 1cc1073af0 Remove MAPAXES keyword (for now). 2025-11-03 09:56:19 +01:00
Kristian Bendiksen 2e363e4d73 Update OPERNUM correctly. 2025-11-03 09:56:19 +01:00
Kristian Bendiksen 788e054734 Export sector model: Set opernum in regdims. 2025-11-03 09:56:19 +01:00
Kristian Bendiksen 864c56866d Sector Export: fix well properties in deck file. 2025-11-03 09:56:19 +01:00
Kristian Bendiksen 4e736a8cc0 Refactor: move opm-flow deck keyword generation to factory. 2025-10-24 19:33:35 +02:00
Kristian Bendiksen 2a82ee4670 Simulation Input Export: handle faults. 2025-10-24 19:33:35 +02:00
Kristian Bendiksen fe46ced410 Refactor: use Vec3st in sector export ui, and split long method. 2025-10-22 16:20:50 +02:00
Kristian Bendiksen b329318e05 Replace more keywords. 2025-10-22 16:20:50 +02:00
Kristian Bendiksen ebb8d62eb6 Replace values in deck file values. 2025-10-22 16:20:50 +02:00
Kristian Bendiksen 8f5432c28e Export sector UI: add UI for bccon/bcprop. 2025-10-22 16:20:50 +02:00
Kristian Bendiksen a81229bad8 Introduce type-safe cell index for active reservoir cell index. 2025-10-13 16:17:03 +02:00
Kristian Bendiksen 4421536349 Refactor: add BORDNUM and OPERNUM to RiaResultNames. 2025-09-26 15:28:29 +02:00
Kristian Bendiksen fdbb07b8cd Sector Export: add OPERNUM result. 2025-09-26 15:28:29 +02:00
Kristian Bendiksen c6b8620486 #12547 Export border classification as BORDNUM to sector model. 2025-09-19 15:22:17 +02:00
Kristian Bendiksen efee24736c #12900 Export Sector Model: Add "Visible Wells" option. 2025-09-18 12:53:07 +02:00
Magne Sjaastad 1da509166a Improve CmdFeature base class
Add default implementation of isEnabled() and add const
2023-06-26 14:28:46 +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
Magne Sjaastad f0e78f32e8 Minor issues related to release
* Add shortcut for Plot Editor, and modify how command features are triggered
Use Ctrl-E to launch the Plot Editor.

* Add optional use of NOECHO and ECHO keywords in GRDECL files
* Add ECHO keywords to sector model export
* Add Help button to Preferences
2023-02-20 08:18:08 +01:00
Magne Sjaastad 86af2b4dfc Export Sector Model: Add file path
* Export Sector Model: Add file path
* Avoid abort if a file cannot be opened
* Add missing return
2022-11-28 11:57:00 +01:00
Gaute Lindkvist 81699db187 Rename ApplicationCode to ApplicationLibCode 2021-01-11 15:27:45 +01:00