I recompiled the whole library but the error still occurs.
Here are some lines of code that result in said segfaul:
//========================================================================================
#include <grid/tria.h>
#include <dofs/dof_handler.h>
using namespace dealii;
template<int dim>
class Dynamic
{
public:
Dynamic(
DoFHandler<dim> const & dof_handler_deform
);
private:
DoFHandler<dim> dof_handler_dynamic;
//dof_handler_dyn_def;
DoFHandler<dim> const & dof_handler_deformation;
Triangulation<dim> tria;
};
template< int dim>
Dynamic<dim>::Dynamic(
DoFHandler<dim> const & dof_handler_deform
)
:
//dof_handler_dyn_def(tria),
dof_handler_dynamic(tria),
dof_handler_deformation (dof_handler_deform)
{
}
template<int dim>
class Coupled_Problem
{
public :
Coupled_Problem( double max_time,
double strobe_time);
private :
Dynamic<dim> dynamic;
Triangulation<dim> triangulation;
DoFHandler<dim> dof_handler_deformation;
};
template<int dim>
Coupled_Problem<dim>::Coupled_Problem( double max_time,
double strobe_time)
:
dynamic(
dof_handler_deformation
),
dof_handler_deformation(triangulation)
{
}
int
main()
{
// deallog.depth_console(1);
Coupled_Problem<2> coupled ( 300, 4);
}
//=====================================================================
I am using deal 621 and here is the stuff cat /etc/*-release gives me
LSB_VERSION="core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64"
openSUSE 10.2 (X86-64)
VERSION = 10.2
Thanks in advance,
tariq
Am Dienstag, den 02.03.2010, 08:12 -0600 schrieb Wolfgang Bangerth:
> > Has anybody an idea what might cause this behavior ?
> >
> > The gdb gives me the following stack backtrace:
> >
> > Program received signal SIGSEGV, Segmentation fault.
> > [Switching to Thread 47473474631568 (LWP 13099)]
> > 0x00002b2d46766526 in dealii::Subscriptor::do_subscribe
> > (this=0x7fff668127b8, id=0x2b2d451ff540
> > "N6dealii10DoFHandlerILi2ELi2EEE")
> > at source/subscriptor.cc:146
> > 146 object_info = &typeid(*this);
>
> I have never seen this problem, and without having the code it's hard to tell
> what is going on. The problem only happens in debug mode because this piece
> of code isn't executed in optimized mode.
>
> I've seen similar problems before if I changed parts of the library but
> forgot
> to recompile everything. Would it help if you did
> make clean ; make all
> and also recompile your application?
>
> Also, what platform is this on?
>
> Best
> W.
>
> -------------------------------------------------------------------------
> Wolfgang Bangerth email: [email protected]
> www: http://www.math.tamu.edu/~bangerth/
>
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii