mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-27 07:30:20 -05:00
Replace the include_welsegs / include_compsegs boolean flags on the schedule-generation API with a list of wells (export_msw_for_wells) that gates the multi-segment-well keywords. WSEGVALV and WSEGAICD are now gated the same way as WELSEGS and COMPSEGS: all four are emitted only for wells present in the list. An empty list (the default) suppresses MSW export for all wells, while COMPDAT and well-control keywords are unaffected. C++: RicScheduleDataGenerator takes a std::set<const RimWellPath*> mswWells and generateMswForWell early-returns for wells not in the set. RimcWellEventTimeline_generateSchedule replaces the two bool fields with a scriptable PdmPtrArrayField<RimWellPath*>, resolved via ptrReferencedObjectsByType(). Python: generate_schedule_text / generate_schedule expose export_msw_for_wells (List[WellPath]) instead of the boolean flags. Updates the well_event_schedule example and adds regression tests covering the empty-list default, per-well selection, and WSEGVALV/WSEGAICD gating.