include/deal.II/numerics/dof_output_operator.h

00001 //---------------------------------------------------------------------------
00002 //    @f$Id: dof_output_operator.h 25345 2012-03-31 08:37:04Z bangerth @f$
00003 //
00004 //    Copyright (C) 2010, 2012 by the deal.II authors
00005 //
00006 //    This file is subject to QPL and may not be  distributed
00007 //    without copyright and license information. Please refer
00008 //    to the file deal.II/doc/license.html for the  text  and
00009 //    further information on this license.
00010 //
00011 //---------------------------------------------------------------------------
00012 
00013 #ifndef __deal2__dof_output_operator_h
00014 #define __deal2__dof_output_operator_h
00015 
00016 #include <deal.II/base/config.h>
00017 #include <deal.II/base/named_data.h>
00018 #include <deal.II/base/event.h>
00019 #include <deal.II/algorithms/operator.h>
00020 #include <deal.II/dofs/dof_handler.h>
00021 
00022 #include <fstream>
00023 
00024 DEAL_II_NAMESPACE_OPEN
00025 
00026 namespace Algorithms
00027 {
00028   template <class VECTOR, int dim, int spacedim=dim>
00029   class DoFOutputOperator : public OutputOperator<VECTOR>
00030   {
00031     public:
00032       void initialize (DoFHandler<dim, spacedim>& dof_handler);
00033 
00034       virtual OutputOperator<VECTOR>&
00035         operator<<(const NamedData<VECTOR*>& vectors);
00036 
00037     private:
00038       SmartPointer<DoFHandler<dim, spacedim>,
00039         DoFOutputOperator<VECTOR, dim, spacedim> > dof;
00040   };
00041 
00042   template <class VECTOR, int dim, int spacedim>
00043   void DoFOutputOperator<VECTOR, dim, spacedim>::initialize(
00044       DoFHandler<dim, spacedim>& dof_handler)
00045   {
00046     dof = &dof_handler;
00047   }
00048 }
00049 
00050 
00051 DEAL_II_NAMESPACE_CLOSE
00052 
00053 #endif
00054 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Tue May 22 2012 12:06:17 by doxygen 1.7.3