6#ifndef graphDataGnuplot_hh
7#define graphDataGnuplot_hh
18#include "function/vector.hh"
26 template<
class F,
class G>
67 std::ofstream*
write() {
return ofs_; }
88 std::unique_ptr<const concepts::Formula<Real> > frm_;
106 template<
typename T,
typename S>
109 std::ofstream ofs(filename.c_str());
DataGnuplotCell(std::ofstream *ofs, const concepts::Vector< Real > &solution, const concepts::ElementFunction< Real > *fun=0)
DataGnuplotCell(std::ofstream *ofs, const concepts::Formula< Real > &frm, const concepts::ElementFunction< Real > *fun=0)
virtual void operator()(const concepts::Element< F > &elm)
const concepts::Array< Real > & coeff() const
Returns the coefficients of the elements shape functions.
DataGnuplotCell(std::ofstream *ofs, const concepts::ElementFormula< F > &frm, const concepts::ElementFunction< Real > *fun=0)
const concepts::ElementFunction< F > * elementFunction() const
Returns the function of the solution.
const concepts::ElementFormula< F > * elementFormula() const
Returns the formula to plot (given elementwise)
std::ofstream * write()
Returns the stream to write the data to.
const concepts::Formula< Real > * formula() const
Returns the formula to plot.
void drawDataGnuplot(T &msh_spc, std::string filename, const S &sol, const concepts::ElementFunction< Real > *fun=0)