← Back to team overview

dolfin team mailing list archive

Re: Vector and uBlasVector

 

Alessio Quaglino wrote:
I forgot to mention that the error I obtain is a segmentation fault.

Alessio


Ok thanks! It works as:

PlasticityUpdatedSolver::PlasticityUpdatedSolver(Mesh& mesh) :

    mesh(mesh),
    astress()
    { Function S(mesh, s, astress); }

but not as:

PlasticityUpdatedSolver::PlasticityUpdatedSolver(Mesh& mesh) :

    mesh(mesh),
    astress()
    S(mesh, s, astress), { }

having declared:

Function S;
Mesh& mesh;
Vector s;
FooBilinearForm astress;

I don't see which could be the difference. Thanks.

This could be connected to the initialisation correct of s and astress.

Also, my compiler would not allow the above code since the member data is not being initialised in the order that it is declared.

Garth


Regards,
Alessio

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




References