Problems passing PyTrilinos objects to DOLFIN matrix/vector
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DOLFIN |
Fix Released
|
Medium
|
Johan Hake |
Bug Description
With trilinos 10.8.3 and latest lp:dolfin, I get errors like the following when trying to create dolfin vectors/matrices:
File "/home/
return dolfin.
File "/home/
_cpp.
TypeError: expected positive 'int' for argument 1
File "/home/
matrix = dolfin.
File "/home/
_cpp.
TypeError: in method 'new_EpetraMatrix', argument 1 of type 'Epetra_CrsGraph const &'
Changed in dolfin: | |
milestone: | none → 1.0-rc1 |
assignee: | nobody → Johan Hake (johan-hake) |
importance: | Undecided → Medium |
Changed in dolfin: | |
status: | Confirmed → Fix Committed |
Changed in dolfin: | |
status: | Fix Committed → Fix Released |
On 1 Nov 2011, at 07:32, Joachim Haga <email address hidden> wrote:
> Public bug reported: jobh/src/ cbc.block/ block/algebraic /trilinos/ Epetra. py", line 192, in create_vec EpetraVector( m) ### m is a PyTrilinos. Epetra. BlockMap jobh/src/ FEniCS/ lib/python2. 7/site- packages/ dolfin/ cpp.py" , line 4466, in __init__ or_swiginit( self,_cpp. new_EpetraVecto r(*args) ) jobh/src/ cbc.block/ block/algebraic /trilinos/ Epetra. py", line 299, in create_identity EpetraMatrix( graph) ### graph is a PyTrilinos. Epetra. CrsGraph jobh/src/ FEniCS/ lib/python2. 7/site- packages/ dolfin/ cpp.py" , line 4352, in __init__ ix_swiginit( self,_cpp. new_EpetraMatri x(*args) )
>
> With trilinos 10.8.3 and latest lp:dolfin, I get errors like the
> following when trying to create dolfin vectors/matrices:
>
> File "/home/
> return dolfin.
> File "/home/
> _cpp.EpetraVect
> TypeError: expected positive 'int' for argument 1
>
> File "/home/
> matrix = dolfin.
> File "/home/
> _cpp.EpetraMatr
> TypeError: in method 'new_EpetraMatrix', argument 1 of type 'Epetra_CrsGraph const &'
>
Trilinos nows uses its own shared pointers in its interface. Johan sorted this out for vectors and matrices. Take a look at what he added in the SWIG code. It's probably a case of extending this to more Epetra objects.
Garth
> ** Affects: dolfin /bugs.launchpad .net/bugs/ 884617 /bugs.launchpad .net/dolfin/ +bug/884617/ +subscriptions
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of DOLFIN
> Core Team, which is subscribed to DOLFIN.
> https:/
>
> Title:
> Problems passing PyTrilinos objects to DOLFIN matrix/vector
>
> To manage notifications about this bug go to:
> https:/