From: Roy S. <roy...@ic...> - 2009-09-04 17:52:17
|
On Fri, 4 Sep 2009, Derek Gaston wrote: > ok - I just committed a fix for this that does work. Thanks! > It does kind of suck now that creating a PetscVector from a Vec doesn't quite > work properly... it leads to odd breakages like this one where you don't > expect it... What do you think of John's "make the Vec constructor take a type with no defaults" idea? It's an API-breaking change, but to an API that shouldn't be used by most application codes anyway. And unless there's a PETSc way to test whether a Vec is ghosted, we can't make the PetscVector(Vec) constructor work properly without an extra argument regardless. --- Roy |