kathryntmorrison / inla

Automatically exported from code.google.com/p/inla
0 stars 0 forks source link

Orphaned temporary files from inla.spde and inla.fmesher.smorg #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
inla.mesh has a default option to delete temporary files after completing, but
inla.fmesher.smorg and inla.spde do not, which leaves many orphaned files in 
tempdir().

Currently, inla.spde must leave the files behind, since the purpose is to 
construct those files as input to the inla program.  The solution is to move 
that part of the code into the f(..., model=spde,...) function, so that the 
files can be placed in the appropriate locations immediately, and removed or 
not depending on the inla 'keep' option.

inla.fmesher.smorg leaves reading its output files to the caller.
This could be changed by having inla.fmesher.smorg read the output itself.

Original issue reported on code.google.com by finn.lin...@gmail.com on 7 Mar 2011 at 12:57

GoogleCodeExporter commented 9 years ago
This issue was updated by revision f19c619bbc.

inla.fmesher.smorg now returns the actual matrices, and deletes the temporary 
files, unless keep=TRUE.

Original comment by finn.lin...@gmail.com on 7 Mar 2011 at 1:46