Problem with H1D example laplace_bc_newton2

1 view
Skip to first unread message

Pavel Solin

unread,
Feb 20, 2011, 8:59:03 PM2/20/11
to hermes1d
Hi,
the following test fails in Hermes1D:

7/490 Test #17: example-laplace_bc_newton2
........................................................***Exception:
Other 1.22 sec

It must be something simple since ndof = 0 (i.e., not
even the Space is initialized correctly).

Could please someone look at this?

Pavel


--
Pavel Solin
University of Nevada, Reno
Home page: http://hpfem.org/~pavel
FEMTEC 2011: http://hpfem.org/events/femtec-2011/
Hermes: http://hpfem.org/
FEMhub: http://femhub.org/

David Pánek

unread,
Feb 21, 2011, 3:04:16 AM2/21/11
to herm...@googlegroups.com
Hello, I think there is missing:

this->assign_dofs();

in the function Space::Space (line 407), in the file
hermes/hermes1d/src/space.cpp.

After adding this line the result was:
I ndof--: 10
I ---- Newton iter 1, ndof 10, res. l2 norm 2.0894
I ---- Newton iter 2, ndof 10, res. l2 norm 4.57757e-16
I Total running time: 9.54e-07 s
I ndof = 10.
I Success!

Best regards.

David Pánek


Pavel Solin píše v Ne 20. 02. 2011 v 17:59 -0800:

Pavel Solin

unread,
Feb 21, 2011, 3:29:02 AM2/21/11
to herm...@googlegroups.com, David Pánek
Hi David,
this helped a lot, I fixed the bug and will push this in a few minutes.
Pavel

2011/2/21 David Pánek <pan...@kte.zcu.cz>:

--

Reply all
Reply to author
Forward
0 new messages