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

help with paths #70

Closed Ericadp1992 closed 6 months ago

Ericadp1992 commented 9 months ago

Hello, and first of all thanks for sharing dfnWorks!

We are trying to install on Ubuntu (running as Windows Subsystem for Linux, but this should not be relevant).

We have cloned the repo, installed required libraries, compiled, and we have set variables in /home//.bashrc as follows:

export PETSC_DIR=/home/erica/petsc
export PETSC_ARCH=gnu-c-debug
export dfnworks_PATH=/home/erica/dfnWorks
export PFLOTRAN_EXE=/home/erica/pflotran/src/pflotran/pflotran
export PYTHON_EXE=/usr/bin/python3
export LAGRIT_EXE=/home/erica/LaGriT/build/lagrit
export FEHM_EXE=/home/erica/FEHM/src/xfehm_v3.3.1
export DFNGEN_EXE=home/erica/.local/lib/python3.10/site-packages/pydfnworks/dfnGen

The last line was added since running examples we get an error related to not finding the DFNGEN_EXE key, but we are probably using the wrong path, since now we get

--> Running DFNGEN
Running:
>>home/erica/.local/lib/python3.10/site-packages/pydfnworks/dfnGen dfnGen_output/output_dfnGen_input_clean.dat /home/erica/dfnWorks/examples/4_user_rects/output
/bin/sh: 1: home/erica/.local/lib/python3.10/site-packages/pydfnworks/dfnGen: not found
Error. Unable to find 'params.txt' in current directory <built-in function getcwd>.

Could you please help us setting the path?

We feel that everything else is OK since it actually starts running the workflow.

Thanks!

hymanjd commented 9 months ago

Hi Erica, You should be setting these paths in ~/.dfnworksrc not in your ~/.bashrc. Please see in the instructions here

https://github.com/lanl/dfnWorks#set-the-lagrit-petsc-pflotran-python-and-fehm-paths