From 67db4fa6dbac73344edd18e11fbaf6acae9cc100 Mon Sep 17 00:00:00 2001 From: David Landa Marban Date: Wed, 11 Sep 2024 13:12:45 +0200 Subject: [PATCH] Bug fix for segmented wells --- src/pycopm/utils/generate_coarser_files.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/pycopm/utils/generate_coarser_files.py b/src/pycopm/utils/generate_coarser_files.py index c1c5e08..7136d29 100644 --- a/src/pycopm/utils/generate_coarser_files.py +++ b/src/pycopm/utils/generate_coarser_files.py @@ -98,10 +98,10 @@ def create_deck(dic): ) as file: for row in dic["lol"]: file.write(row + "\n") - os.chdir(dic["fol"]) - os.system( - f"{dic['flow']} {dic['deck'].upper()}_PYCOPM.DATA --enable-dry-run=1 & wait\n" - ) + # os.chdir(dic["fol"]) + # os.system( + # f"{dic['flow']} {dic['deck'].upper()}_PYCOPM.DATA --enable-dry-run=1 & wait\n" + # ) def map_properties(dic, actnum, d_z, z_t, z_b, z_b_t): @@ -735,7 +735,6 @@ def handle_segmented_wells(dic, nrwo): edit[0] = str(dic["ic"][int(edit[0])]) edit[1] = str(dic["jc"][int(edit[1])]) edit[2] = str(dic["kc"][int(edit[2])]) - edit[3] = str(dic["kc"][int(edit[3])]) dic["lol"].append(" ".join(edit)) return True return False