I need to solve the same problem on finer and finer mesh sizes and compare the results. Therefore, I have constructed my code as a function and am calling the function with the mesh sizes as input. The problem is solved on the first mesh size input with no problems. But, when the code moves onto the next mesh size, I get the following error
In instant.build_module: Cache directory '/U1/accounts/adiegel/.instant/cache/ffc_form_6521db4140648849bfb344c812903380188afb57' shouldn't exist at this point!
Is there a python command which I could write into my code which would clear the cache between different mesh sizes (not from a command line in the terminal)?
Any help is much appreciated! Please let me know if I need to clarify the statement of my issue.