lanl / dfnWorks

dfnWorks is a parallelized computational suite to generate three-dimensional discrete fracture networks (DFN) and simulate flow and transport. If you download the software please fill out our interest form to stay up to date on releases https://goo.gl/forms/VE39oKsyp4LVC6Gj2 and join our google group https://groups.google.com/d/forum/dfnworks-users . Precompiled Docker Container https://hub.docker.com/r/ees16/dfnworks
https://dfnworks.lanl.gov/
Other
73 stars 42 forks source link

Well package error #55

Closed jakubriha85 closed 1 year ago

jakubriha85 commented 1 year ago

I am trying to use Well Package in DFNWorks V2.7 (alannah Docker Image) and it is crashing with the following error (it does so with both my task and GitHub master example problem well_example):

--> Working on well inject --> Interpolating well coordinates into a polyline --> Interpolating well coordinates into a polyline: Complete --> Writing polyline into avs file : well_inject_line.inp --> Writing polyline into avs file : well_inject_line.inp : Complete Traceback (most recent call last): File "/dfnWorks/work/driver.py", line 86, in DFN.find_well_intersection_points(wells) File "/usr/local/lib/python3.10/dist-packages/pydfnworks-2.7-py3.10.egg/pydfnworks/dfnGen/well_package/wells.py", line 590, in find_well_intersection_points run_find_well_intersection_points(well, self.h) File "/usr/local/lib/python3.10/dist-packages/pydfnworks-2.7-py3.10.egg/pydfnworks/dfnGen/well_package/wells.py", line 637, in run_find_well_intersection_points find_segments(well) File "/usr/local/lib/python3.10/dist-packages/pydfnworks-2.7-py3.10.egg/pydfnworks/dfnGen/well_package/wells.py", line 791, in find_segments mh.run_lagrit_script(f"findwell{well['name']}_segment.lgi", NameError: name 'mh' is not defined

hymanjd commented 1 year ago

Hi Jakub,

I just pushed a patch. Please pull, rebuild and try again. Let me know how it goes.

J

jakubriha85 commented 1 year ago

Hi, It seems to be working. Thank You for the fix. Jakub