Commit a264ba34 authored by Martin Drohmann's avatar Martin Drohmann

make headercheck passes this module now

[[Imported from SVN: r289]]
parent 4a1a0589
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef __DUNE_GRID_HOWTO_ELEMENT_DATA_HH
#define __DUNE_GRID_HOWTO_ELEMENT_DATA_HH
#include <dune/grid/common/mcmgmapper.hh>
#include <dune/grid/io/file/vtk/vtkwriter.hh>
#if HAVE_GRAPE
......@@ -75,3 +78,5 @@ void elementdata (const G& grid, const F& f)
}
#endif /*@\label{edh:grape1}@*/
}
#endif //__DUNE_GRID_HOWTO_ELEMENT_DATA_HH
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef __DUNE_GRID_HOWTO_EVOLVE_HH__
#define __DUNE_GRID_HOWTO_EVOLVE_HH__
#include <dune/common/fvector.hh>
template<class G, class M, class V>
void evolve (const G& grid, const M& mapper, V& c, double t, double& dt)
......@@ -134,3 +138,5 @@ void evolve (const G& grid, const M& mapper, V& c, double t, double& dt)
return;
}
#endif //__DUNE_GRID_HOWTO_EVOLVE_HH__
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef __DUNE_GRID_HOWTO_FINITEVOLUMEADAPT_HH__
#define __DUNE_GRID_HOWTO_FINITEVOLUMEADAPT_HH__
#include <map>
struct RestrictedValue
......@@ -207,3 +209,5 @@ bool finitevolumeadapt (G& grid, M& mapper, V& c, int lmin, int lmax, int k)
return rv;
}
#endif //__DUNE_GRID_HOWTO_FINITEVOLUMEADAPT_HH__
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef __DUNE_GRID_HOWTO_FUNCTORS_HH__
#define __DUNE_GRID_HOWTO_FUNCTORS_HH__
#include <dune/common/fvector.hh>
// a smooth function
template<typename ct, int dim>
class Exp {
......@@ -33,3 +37,5 @@ public:
private:
Dune::FieldVector<ct,dim> midpoint;
};
#endif // __DUNE_GRID_HOWTO_FUNCTORS_HH__
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef __DUNE_GRID_HOWTO_INITIALIZE_HH__
#define __DUNE_GRID_HOWTO_INITIALIZE_HH__
#include <dune/common/fvector.hh>
//! initialize the vector of unknowns with initial value
template<class G, class M, class V>
......@@ -38,3 +42,5 @@ void initialize (const G& grid, const M& mapper, V& c)
c[mapper.map(*it)] = c0(global);
}
}
#endif // __DUNE_GRID_HOWTO_INITIALIZE_HH__
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef __DUNE_GRID_HOWTO_PAREVOLVE_HH__
#define __DUNE_GRID_HOWTO_PAREVOLVE_HH__
#include "parfvdatahandle.hh"
#include <dune/grid/common/gridenums.hh>
#include <dune/common/fvector.hh>
template<class G, class M, class V>
void parevolve (const G& grid, const M& mapper, V& c, double t, double& dt)
......@@ -154,3 +161,5 @@ void parevolve (const G& grid, const M& mapper, V& c, double t, double& dt)
return;
}
#endif //__DUNE_GRID_HOWTO_PAREVOLVE_HH__
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef __DUNE_GRID_HOWTO_PARFVDATAHANDLE_HH__
#define __DUNE_GRID_HOWTO_PARFVDATAHANDLE_HH__
#include <dune/grid/common/datahandleif.hh>
// A DataHandle class to exchange entries of a vector
template<class M, class V> // mapper type and vector type
class VectorExchange
......@@ -60,3 +65,5 @@ private:
const M& mapper;
V& c;
};
#endif // __DUNE_GRID_HOWTO_PARFVDATAHANDLE_HH__
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef __DUNE_GRID_HOWTO_TRANSPORTPROBLEM_HH__
#define __DUNE_GRID_HOWTO_TRANSPORTPROBLEM_HH__
#include <dune/common/fvector.hh>
// the initial condition c0
template<int dimworld, class ct>
double c0 (const Dune::FieldVector<ct,dimworld>& x)
......@@ -27,3 +31,4 @@ Dune::FieldVector<double,dimworld> u (const Dune::FieldVector<ct,dimworld>& x, d
r[0] = 1.0;
return r;
}
#endif // __DUNE_GRID_HOWTO_TRANSPORTPROBLEM2_HH__
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef __DUNE_GRID_HOWTO_TRANSPORTPROBLEM2_HH__
#define __DUNE_GRID_HOWTO_TRANSPORTPROBLEM2_HH__
#include <dune/common/fvector.hh>
//===============================================================
// We want to solve the PDE
//
......@@ -38,3 +42,4 @@ Dune::FieldVector<double,dimworld> u (const Dune::FieldVector<ct,dimworld>& x, d
Dune::FieldVector<double,dimworld> r(1.0);
return r;
}
#endif // __DUNE_GRID_HOWTO_TRANSPORTPROBLEM2_HH__
......@@ -3,6 +3,8 @@
#ifndef UNITCUBE_ALBERTAGRID_HH
#define UNITCUBE_ALBERTAGRID_HH
#include "unitcube.hh"
#if HAVE_ALBERTA
#include <dune/grid/albertagrid.hh>
#include <dune/grid/albertagrid/gridfactory.hh>
......
......@@ -3,6 +3,8 @@
#ifndef UNITCUBE_ALU3DGRID_HH
#define UNITCUBE_ALU3DGRID_HH
#include "unitcube.hh"
#if HAVE_ALUGRID
#include <dune/grid/alugrid.hh>
#include <dune/grid/alugrid/3d/alu3dgridfactory.hh>
......
......@@ -3,6 +3,8 @@
#ifndef UNITCUBE_ONEDGRID_HH
#define UNITCUBE_ONEDGRID_HH
#include "unitcube.hh"
#include <dune/grid/onedgrid.hh>
// OneDGrid specialization
......
......@@ -3,6 +3,8 @@
#ifndef UNITCUBE_SGRID_HH
#define UNITCUBE_SGRID_HH
#include "unitcube.hh"
#include <dune/grid/sgrid.hh>
// SGrid specialization
......
......@@ -3,6 +3,8 @@
#ifndef UNITCUBE_UGGRID_HH
#define UNITCUBE_UGGRID_HH
#include "unitcube.hh"
#if HAVE_UG
#include <dune/grid/uggrid.hh>
......
......@@ -3,6 +3,8 @@
#ifndef UNITCUBE_YASPGRID_HH
#define UNITCUBE_YASPGRID_HH
#include "unitcube.hh"
#include <dune/grid/yaspgrid.hh>
// YaspGrid specialization
......
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef __DUNE_GRID_HOWTO_VERTEXDATA_HH__
#define __DUNE_GRID_HOWTO_VERTEXDATA_HH__
#include <dune/grid/common/mcmgmapper.hh>
#include <dune/grid/io/file/vtk/vtkwriter.hh>
#if HAVE_GRAPE
......@@ -68,3 +71,4 @@ void vertexdata (const G& grid, const F& f)
}
#endif
}
#endif // __DUNE_GRID_HOWTO_VERTEXDATA_HH__
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef __DUNE_GRID_HOWTO_VTKOUT_HH__
#define __DUNE_GRID_HOWTO_VTKOUT_HH__
#include <dune/grid/io/file/vtk/vtkwriter.hh>
#include <stdio.h>
......@@ -21,3 +24,5 @@ void vtkout (const G& grid, const V& c, const char* name, int k, double time=0.0
serstream.close();
}
}
#endif // __DUNE_GRID_HOWTO_VTKOUT_HH__
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment