GNUPlotWriter.h 1.64 KB
Newer Older
1
2
3
4
// ============================================================================
// ==                                                                        ==
// == AMDiS - Adaptive multidimensional simulations                          ==
// ==                                                                        ==
5
// ==  http://www.amdis-fem.org                                              ==
6
7
// ==                                                                        ==
// ============================================================================
8
9
10
11
12
13
14
15
16
17
18
19
//
// Software License for AMDiS
//
// Copyright (c) 2010 Dresden University of Technology 
// All rights reserved.
// Authors: Simon Vey, Thomas Witkowski et al.
//
// This file is part of AMDiS
//
// See also license.opensource.txt in the distribution.


20
21
22
23
24
25
26
27

/** \file GNUPlotWriter.h */

#ifndef AMDIS_GNUPLOTWRITER_H
#define AMDIS_GNUPLOTWRITER_H

#include <vector>
#include <string>
Thomas Witkowski's avatar
Thomas Witkowski committed
28
#include "FileWriter.h"
29
#include "AMDiS_fwd.h"
30
31
32

namespace AMDiS {

33
  ///
34
35
36
  class GNUPlotWriter : public FileWriterInterface
  {
  public:
37
    ///
38
    GNUPlotWriter(std::string filename,
39
		  FiniteElemSpace *feSpace,
40
		  std::vector<DOFVector<double>*> &dofVectors);
41

42
43
    ///
    virtual ~GNUPlotWriter() {}
44

45
    ///
46
47
48
49
    virtual void writeFiles(AdaptInfo *adaptInfo, bool force,
			    int level = -1,
			    Flag traverseFlag = Mesh::CALL_LEAF_EL,
			    bool (*writeElem)(ElInfo*) = NULL);
50
51

  protected:
52
    /// Contains the mesh
53
54
    FiniteElemSpace *feSpace_;

55
    /// vector of dof vectors to write
56
    std::vector<DOFVector<double>*> dofVectors_;
57

58
    /// file name
59
    std::string filename_;
60
61
62
63
64
  };

}

#endif // AMDIS_VALUEWRITER_H