Loading...
Searching...
No Matches
PersistentContainer.hpp
#ifndef DUNE_CPGRID_PERSISTENTCONTAINER_HH
#define DUNE_CPGRID_PERSISTENTCONTAINER_HH
#include <dune/common/version.hh>
#include <dune/grid/utility/persistentcontainer.hh>
#include <opm/grid/CpGrid.hpp>
#include <dune/grid/utility/persistentcontainervector.hh>
namespace Dune
{
// PersistentContainer for CpGrid
// -------------------------------
template< class Data >
class PersistentContainer< CpGrid, Data >
: public PersistentContainerVector< CpGrid,
typename CpGrid::Traits::LeafIndexSet,
std::vector<Data> >
{
public:
typedef CpGrid GridType;
typedef typename std::vector<Data>::allocator_type Allocator;
private:
typedef PersistentContainerVector< GridType, typename GridType::Traits::LeafIndexSet, std::vector<Data> > BaseType;
public:
PersistentContainer ( const GridType &grid, const int codim, const Data& data = Data(), const Allocator &allocator = Allocator() )
: BaseType( grid.leafIndexSet(), codim, data, allocator )
{}
};
} // end namespace Dune
#endif // end DUNE_CPGRID_PERSISTENTCONTAINER_HH
Dune::CpGrid
[ provides Dune::Grid ]
Definition CpGrid.hpp:203
Dune::PersistentContainer< CpGrid, Data >::PersistentContainer
PersistentContainer(const GridType &grid, const int codim, const Data &data=Data(), const Allocator &allocator=Allocator())
Constructor filling the container with values using the default constructor Depending on the implemen...
Definition PersistentContainer.hpp:31
Dune
The namespace Dune is the main namespace for all Dune code.
Definition CartesianIndexMapper.hpp:10