lanl / LaGriT

Los Alamos Grid Toolbox (LaGriT) is a library of user callable tools that provide mesh generation, mesh optimization and dynamic mesh maintenance in two and three dimensions.
https://lanl.github.io/LaGriT/
Other
122 stars 49 forks source link

PyLaGriT: "LaGriT binary doesn't exist at path" #198

Closed daniellivingston closed 4 years ago

daniellivingston commented 4 years ago

Problem

LaGriT =>   OSError: LaGriT binary doesn't exist at path: ~/dev/LaGriT/src/lagrit

PyLaGriT => >>> l = PyLaGriT()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/user/dev/LaGriT/PyLaGriT/pylagrit/pylagrit.py", line 56, in __init__
    raise FileNotFoundError(
FileNotFoundError: Error: LaGriT executable is not defined. 

Solution

The LaGriT exe path, either in the .pylagritrc file or as an argument in PyLaGriT(lagrit_exe=...), needs to be expanded:

~/dev/LaGriT/src/lagrit -> /home/user/dev/LaGriT/src/lagrit