From 58719b376c1d2db6405b86dc10b48086d12d4c26 Mon Sep 17 00:00:00 2001 From: Vegard Kippe Date: Wed, 16 Oct 2024 17:25:11 +0200 Subject: [PATCH] Allow zero-length records in COMPSEGS --- opm/input/eclipse/Schedule/MSW/Compsegs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/input/eclipse/Schedule/MSW/Compsegs.cpp b/opm/input/eclipse/Schedule/MSW/Compsegs.cpp index 72b77a44ddf..5379a1cc8fa 100644 --- a/opm/input/eclipse/Schedule/MSW/Compsegs.cpp +++ b/opm/input/eclipse/Schedule/MSW/Compsegs.cpp @@ -227,7 +227,7 @@ namespace { parseContext.handleError(ParseContext::SCHEDULE_COMPSEGS_NOT_SUPPORTED, msg_fmt, location, errors); } - if (distance_end <= distance_start) { + if (distance_end < distance_start) { std::string msg_fmt = fmt::format("Problems with {{keyword}}\n" "In {{file}} line {{line}}\n" "The end of the perforation must be below the start for well {} connection({},{},{})", well_name, I+1, J+1, K+1);