← Back to team overview

dolfin team mailing list archive

Re: Temporary files

 



Joachim B Haga wrote:
These last days, /tmp on the buildbots have started filling up again, at a rate
of ~300MB per build. The attached patch should fix that (again!).

It doesn't to work, but as far as I can tell it didn't work before either. And
now at least it fails cleanly, without leaving any files behind.

(f=Function('file.xml'); plot(f) -> 'str' object has no attribute 'element')

I did make an effort to make it more readable (code generation by fprintf is
hard to read) by moving the logic from the code generation down to the python
level.

If this patch is not to your liking, please fix it in some other way, so I
don't have to bug Ilmar every two days to clean out /tmp.


I deliberately set up the generated Python code so that it doesn't clean up when plotting fails. It's good to clean up for now while plotting is not working, but when plotting via Python is working again it is useful to leave the generated file in /tmp when plotting fails to enable debugging.

Garth

-j.



------------------------------------------------------------------------

_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev




References