Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assemble bilinearform in the case of VectorFECurlIntegrator #73

Closed
Asadanees opened this issue Jul 19, 2016 · 2 comments
Closed

Assemble bilinearform in the case of VectorFECurlIntegrator #73

Asadanees opened this issue Jul 19, 2016 · 2 comments
Assignees

Comments

@Asadanees
Copy link
Member

ND_FECollection fe_coll(order,dim);
FiniteElementSpace fespace(mesh, &fe_coll);

S.AddDomainIntegrator(new VectorFECurlIntegrator);
Problem S is not assemble below command

1. S.Assemble(skip_zero_entries);

The error message is
DenseMatrix::operator() const
Aborted (core dumped)
The detail of error is
#0 0xb7fdd428 in __kernel_vsyscall ()
#1 0xb7cf1687 in __GI_raise (sig=sig@entry=6)

at ../nptl/sysdeps/unix/sysv/linux/raise.c:56

#2 0xb7cf4ab3 in __GI_abort () at abort.c:89
#3 0x08053d36 in mfem::mfem_error (

msg=0x816775b "DenseMatrix::operator() const") at error.cpp:34

#4 0x08064fe8 in mfem::DenseMatrix::operator() (this=0xbfffd32c, i=0, j=0)

at densemat.hpp:631

#5 0x08079d0a in mfem::SparseMatrix::AddSubMatrix (this=0x81f5f20, rows=...,

cols=..., subm=..., skip_zeros=0) at sparsemat.cpp:1754

#6 0x080e417c in mfem::BilinearForm::Assemble (this=0xbfffd704, skip_zeros=0)

at bilinearform.cpp:295

#7 0x0804cb59 in MaxwellOperator::MaxwellOperator (this=0xbfffd65c, f=...,

ess_bdr=...) at ex17.cpp:660

#8 0x0804ba3c in main (argc=1, argv=0xbffff054) at ex17.cpp:389

Please help me to fix the error
Thanks in advance

@v-dobrev
Copy link
Member

Hi,

The VectorFECurlIntegrator is only meant to be used with different trial and test spaces: the trial space should use Nedelec elements and the test space should use Raviart-Thomas elements. In particular, this means that instead of BilinearForm (which uses that same trial and test spaces) you need to use MixedBilinearForm where the trail and the test spaces are different.

Regards,
Veselin

@Asadanees
Copy link
Member Author

Dear Dobrev,
Thanks for your cooperation.
Best wishes.
Sincerely yours,
Asad Anees

@tzanio tzanio added the fem label Feb 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants