Hello,
After a libMesh update, I have to adjust my code to the
explicit/implicit separation in RBEIMConstruction. Now, in my overridden
function of RBEIMConstruction::truth_solve I get an error at the
following line:
rhs->add_vector(context.get_elem_residual(),
context.get_dof_indices());
The crash happens at the line:
if (!v.empty())
in the function add_vector (see debugger below).
If I convert context.get_elem_residual() from a DenseVector to a
std::vector, I do not have any error. If I run RB-example4 (EIM), there
is also no error.
Can anybody see what is going wrong with my DenseVector?
Thanks!
Lorenzo
(gdb)
libMesh::NumericVector<double>::add_vector (this=0x9d6620, v=...,
dof_indices=std::vector of length 4, capacity 4 = {...})
at
/home/lz474069/Desktop/libmesh_2016/libmesh/installed/include/libmesh/numeric_vector.h:826
826 libmesh_assert(v.size() == dof_indices.size());
(gdb) n
827 if (!v.empty())
(gdb) p v
$52 = (const libMesh::DenseVector<libMesh::Real> &) @0x1173ed8: warning:
RTTI symbol not found for class 'libMesh::DenseVector<double>'
{<libMesh::DenseVectorBase<libMesh::Real>> = {
_vptr.DenseVectorBase<libMesh::Real> = 0x88f3f0 <vtable for
libMesh::DenseVector<double>+16>},
_val = std::vector of length 4, capacity 4 = {5.5039549257349402e-08,
5.4786278204434453e-08, 4.7220611747188543e-08,
4.7391718572551386e-08}}
(gdb) n
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7dbead0 in vtable for __cxxabiv1::__si_class_type_info ()
from /lib64/libstdc++.so.6
(gdb)
Single stepping until exit from function
_ZTVN10__cxxabiv120__si_class_type_infoE,
which has no line number information.
PetscSignalHandler_Private (sig=0) at
/rwthfs/rz/cluster/home/lz474069/Desktop/libmesh_2016/petsc/src/sys/error/signal.c:42
42 {
(gdb)
--
============================
Lorenzo Zanon
Graduate School AICES
RWTH Aachen University
Schinkelstr. 2a
52062 Aachen
Deutschland
[email protected]
+49 (0)241 80 99 746
+49 (0)1577 2790439
============================
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users