Ah,
yes sometimes looking at the basics is important, I guess I didn't see
that because it only occurs in db-mode.
Thanks to NAM-Göttingen ( from mpi-Göttingen)
Am Mittwoch, den 03.03.2010, 16:09 +0100 schrieb Timo Heister:
> 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