FEM: elmer tasks, comment regression added with ece663444c

This commit is contained in:
Bernd Hahnebach
2020-07-20 08:09:52 +02:00
committed by GitHub
parent 2bfc6301bc
commit ce18f6afdb

View File

@@ -113,11 +113,13 @@ class Solve(run.Solve):
# Needed if elmer is compiled but not installed on Linux
# http://www.elmerfem.org/forum/viewtopic.php?f=2&t=7119
# https://stackoverflow.com/questions/1506010/how-to-use-export-with-python-on-linux
"""
if system() == "Linux" and "ELMER_HOME" not in os.environ:
solvpath = os.path.split(binary)[0]
if os.path.isdir(solvpath):
os.environ["ELMER_HOME"] = solvpath
os.environ["LD_LIBRARY_PATH"] = "$LD_LIBRARY_PATH:{}/modules".format(solvpath)
"""
self._process = subprocess.Popen(
[binary], cwd=self.directory,
stdout=subprocess.PIPE,