lib/grid/p0_vector_vtk_function.hpp
P0VectorVTKFunction(const GV &gv, const V &v_, const std::string &s_,
                        int ncomps = 1)
        : v(v_), s(s_), ncomps_(ncomps), mapper(gv)
    {
        if (v.size() != (unsigned int)(mapper.size() * ncomps_))
            DUNE_THROW(Dune::IOError, "VectorP0VTKFunction: size mismatch");
    }
/**
     * \brief Construct from a vector and a name.
     *
     * \param gv     GridView to operate on (used to instantiate a
     *               MultipleCodimMultipleGeomeTypeMapper, otherwise no
     *               reference or copy is stored).  Note that this must be the
     *               GridView the vector applies to as well as the GridView
     *               later used by the VTKWriter -- i.e. we do not implicitly
     *               restrict or prolongate the data.
     * \param v_     Reference to the vector holding the data.  The reference
     *               is stored internally and must be valid for as long as
     *               this functions evaluate method is used.
     * \param s_     Name of this function in the VTK file.
     * \param ncomps Number of components of the field represented by the
     *               vector. */
\brief Construct from a vector and a name.
\param gv     GridView to operate on (used to instantiate a
MultipleCodimMultipleGeomeTypeMapper, otherwise no
reference or copy is stored).  Note that this must be the
GridView the vector applies to as well as the GridView
later used by the VTKWriter -- i.e. we do not implicitly
restrict or prolongate the data.
\param v_     Reference to the vector holding the data.  The reference
is stored internally and must be valid for as long as
this functions evaluate method is used.
\param s_     Name of this function in the VTK file.
\param ncomps Number of components of the field represented by the
vector.
\ brief Construct from a vector and a name . \ param gv GridView to operate on ( used to instantiate a MultipleCodimMultipleGeomeTypeMapper otherwise no reference or copy is stored ) . Note that this must be the GridView the vector applies to as well as the GridView later used by the VTKWriter -- i . e . we do not implicitly restrict or prolongate the data . \ param v_ Reference to the vector holding the data . The reference is stored internally and must be valid for as long as this functions evaluate method is used . \ param s_ Name of this function in the VTK file . \ param ncomps Number of components of the field represented by the vector .
P0VectorVTKFunction(const GV &gv, const V &v_, const std::string &s_,
                        int ncomps = 1)
        : v(v_), s(s_), ncomps_(ncomps), mapper(gv)
    {
        if (v.size() != (unsigned int)(mapper.size() * ncomps_))
            DUNE_THROW(Dune::IOError, "VectorP0VTKFunction: size mismatch");
    }
P0VectorVTKFunction ( const GV & gv , const V & v_ , const std :: string & s_ , int ncomps = 1 ) : v ( v_ ) , s ( s_ ) , ncomps_ ( ncomps ) , mapper ( gv ) { if ( v . size ( ) != ( unsigned int ) ( mapper . size ( ) * ncomps_ ) ) DUNE_THROW ( Dune :: IOError , " " ) ; }
\brief Construct from a vector and a name.
\ brief Construct from a vector and a name .