Closed robertsawko closed 8 years ago
Clearly this is not a proteus issue, but an issue with the way I use it. I was confident that I can set up several cases by importing physics and numerics and then creating NumericalSolution
objects.
When I run my *_p.py
and *_n.py
files separately using parun, the saving to the archive works fine. It's only when I import them into another py
file and manipulate NumericalSolution
objects things go wrong. There must be some relation with proteus.iproteus
which I import too.
That script used to work though, so please let me know if you're aware of any changes that I could incorporate to bring back this functionality.
Right, it seems that the problem was in one of the options I was setting. I don't know remember why I needed cacheArchive=True
, but commenting that out made the problem disappear. I can now run cases again directly through python (rather than through parun).
I am back to working on my partial differential equations with stochastic inputs. Figured out some mistakes I did back then, but unfortunately not all the old scripts are working. Could you have a look at this file
https://github.com/robertsawko/pde-and-uq/blob/master/high_dimension/lc_and_forcing.py
The code seems to calculate the solution to Burgers' equation just fine, but begins crashes the moment it attempts to save the solution. I am running it with
python2 lc_and_forcing.py
, but I also tried withmpirun
+parun
as it seems to have something to do with parallel implementation.Here's the error:
If you could look at it and let me know if can think of anything which may be causing it, would be great. From what I could figure out doing short pdb session is that XDMF has length zero so any index puts it out of range.