Hey tariq,

the order of the instances in your classes plays a role. You are
constructing a DofHandler with a Triangulation that isn't constructed
yet, etc.
You can fix it like this:

template<int dim>
class Dynamic
{
public:
 Dynamic(
         DoFHandler<dim> const & dof_handler_deform
          );
 private:
 Triangulation<dim> tria;

 DoFHandler<dim> dof_handler_dynamic;
 //dof_handler_dyn_def;

 DoFHandler<dim>  const   & dof_handler_deformation;
};

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 :
 Triangulation<dim> triangulation;

 DoFHandler<dim> dof_handler_deformation;

 Dynamic<dim> dynamic;


};

template<int dim>
Coupled_Problem<dim>::Coupled_Problem( double max_time,
                                 double strobe_time)
 :
                dof_handler_deformation(triangulation),
                dynamic(
                  dof_handler_deformation
                )

{
}


Best,
Timo

--
http://www.num.math.uni-goettingen.de/~heister
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to