Skip to content

Commit

Permalink
Bug fix for segmented wells
Browse files Browse the repository at this point in the history
  • Loading branch information
daavid00 committed Sep 11, 2024
1 parent 764159e commit 67db4fa
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/pycopm/utils/generate_coarser_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 67db4fa

Please sign in to comment.