Open rqthomas opened 2 years ago
Is this related to #20?
I don't think so because the fix in #20 still has the appending
Sys.setenv(LD_LIBRARY_PATH=paste(system.file('extbin/nixGLM',
package=packageName()),
Sys.getenv('LD_LIBRARY_PATH'),
sep = ":"))
the issue I found only occurs if running run_glm
1000s of times and the standard GLM3r use case doesn't involve this
Because of the following code
the current environment is appended to the
DYLD_LIBRARY_PATH
. This results in an exponentially increasing environment variable that max out the limit for the environment variable if run_glm is executed repeatedly (as done in data assimilation with FLARE). Is there a need for this code in both the unix and Mac executions? I have removed it and used the followingand
The Mac execution already does this but the Unix did not (so we were crashing on unix FLARE runs). I can do a PR with the fixes if helpful.