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
116 stars 48 forks source link

TINerator Error: LaGriT executable is not defined #179

Closed pinshuai closed 4 years ago

pinshuai commented 4 years ago

I have compiled LaGriT on my mac and created a .pylagritrc file under my home directory. I also installed tinerator and pylagrit and was able to import those into a Jupyter notebook. But when I ran the following code, I got an error saying it could not find the lagrit executable.

Screenshot 2019-11-05 14 22 59

This is what's in the .pylagritrc file.

lagrit_exe : '/Users/shua784/Dropbox/github/LaGriT/src/lagrit'

I also tried putting .pylagritrc file in my working directory, but still got the same problem.

Any idea?

daniellivingston commented 4 years ago

@pinshuai , can you try replacing the single quotes in your LaGriT path with double-quotes and let me know if that works? I.e.:

lagrit_exe : "/Users/shua784/Dropbox/github/LaGriT/src/lagrit"
mhannonj commented 4 years ago

For what it's worth, I was running into the same issues, and replacing the path with double quotes fixed it.

pinshuai commented 4 years ago

It worked! Such an easy fix...

daniellivingston commented 4 years ago

I agree that this is confusing though: we're operating in Python, where both " and ' represent string literals, and so it follows that either should work. I'll get a patch pushed when I have a free minute.