Skip to content

Commit d91f098

Browse files
committed
Add MSW option to COMPTRAJ
1 parent a3a27b1 commit d91f098

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

opm/input/eclipse/Schedule/Well/WellCompletionKeywordHandlers.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ Well {} is not connected to grid - will remain SHUT)",
201201
OpmLog::warning(msg);
202202
}
203203

204-
{ // Generate WELSEGS data:
204+
const auto add_msw = DeckItem::to_bool(record.getItem("MSW").get<std::string>(0));
205+
206+
if (add_msw) { // Generate WELSEGS data:
205207
const auto& perf_top = record.getItem("PERF_TOP").getSIDouble(0);
206208
const auto& diameter = record.getItem("DIAMETER").getSIDouble(0);
207209

@@ -211,7 +213,7 @@ Well {} is not connected to grid - will remain SHUT)",
211213
handlerContext.record_well_structure_change();
212214
}
213215

214-
{ // Generate COMPSEGS data:
216+
if (add_msw) { // Generate COMPSEGS data:
215217
auto well = handlerContext.state().wells.get(name);
216218
auto [new_connections, new_segments] = Compsegs::processCOMPSEGS(
217219
intersection_depths, intersection_ijk, well.getSegments(), well.getConnections(), well.getSegments(), handlerContext.grid

opm/input/eclipse/share/keywords/900_OPM/C/COMPTRAJ

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@
8787
"value_type": "DOUBLE",
8888
"dimension": "1",
8989
"comment": "Not used"
90+
},
91+
{
92+
"item": 14,
93+
"name": "MSW",
94+
"value_type": "STRING",
95+
"default": "NO"
9096
}
9197
]
9298
}

0 commit comments

Comments
 (0)