← Back to team overview

dolfin team mailing list archive

Re: Vector and uBlasVector

 

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.
>
> Regards,
> Alessio



Follow ups

References