Thread Previous • Date Previous • Date Next • Thread Next |
Alessio Quaglino wrote:
I forgot to mention that the error I obtain is a segmentation fault. AlessioOk 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
Thread Previous • Date Previous • Date Next • Thread Next |