Liebe Gitlab-Nutzerin, lieber Gitlab-Nutzer,
es ist nun möglich sich mittels des ZIH-Logins/LDAP an unserem Dienst anzumelden. Die Konten der externen Nutzer:innen sind über den Reiter "Standard" erreichbar.
Die Administratoren


Dear Gitlab user,
it is now possible to log in to our service using the ZIH login/LDAP. The accounts of external users can be accessed via the "Standard" tab.
The administrators

ValueWriter.h 2.94 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
// ============================================================================
// ==                                                                        ==
// == AMDiS - Adaptive multidimensional simulations                          ==
// ==                                                                        ==
// ============================================================================
// ==                                                                        ==
// ==  crystal growth group                                                  ==
// ==                                                                        ==
// ==  Stiftung caesar                                                       ==
// ==  Ludwig-Erhard-Allee 2                                                 ==
// ==  53175 Bonn                                                            ==
// ==  germany                                                               ==
// ==                                                                        ==
// ============================================================================
// ==                                                                        ==
// ==  http://www.caesar.de/cg/AMDiS                                         ==
// ==                                                                        ==
// ============================================================================

/** \file ValueWriter.h */

#ifndef AMDIS_VALUEWRITER_H
#define AMDIS_VALUEWRITER_H

#include <list>

#include "Global.h"
#include "FixVec.h"
#include "Flag.h"
#include "Mesh.h"
#include "DataCollector.h"
Thomas Witkowski's avatar
Thomas Witkowski committed
32
#include "AMDiS_fwd.h"
33 34 35

namespace AMDiS {

36 37 38 39 40 41 42 43
  /** \ingroup Output
   * \brief
   * ValueWriter is a static class which writes the values of a DOFVector
   * values to an ascii file named values->name.'dat'. This output is done
   * via two leaf-traversals of values->feSpace->mesh. In the first traversal
   * the values at the vertices are printed, in the second these at the
   * interpolation points of each element. For a closer disription of the
   * output format see (...link fehlt noch)
44
   */
45 46 47
  class ValueWriter
  {
  public:
Thomas Witkowski's avatar
Thomas Witkowski committed
48
    /// Writes DOFVector values to values->feSpace->mesh.
49
    static void writeValues(DataCollector *dc,
50
			    const std::string filename,
51 52 53 54 55 56
			    double time = 0.0,
			    int level = -1,
			    Flag traverseFlag = Mesh::CALL_LEAF_EL,
			    bool (*writeElem)(ElInfo*) = NULL);
			   
  protected:
Thomas Witkowski's avatar
Thomas Witkowski committed
57
    /// File to which the values should be written
58 59
    static FILE *valueFile;

Thomas Witkowski's avatar
Thomas Witkowski committed
60
    /// Global interpolation point indexing
61 62
    static DOFVector<int> *interpPointInd;

Thomas Witkowski's avatar
Thomas Witkowski committed
63
    /// list of coords for each dof
64
    static DOFVector< std::list<WorldVector<double> > > *dofCoords;
65

Thomas Witkowski's avatar
Thomas Witkowski committed
66
    /// DOFAdmin of values
67 68
    static const DOFAdmin *admin;

Thomas Witkowski's avatar
Thomas Witkowski committed
69
    /// Pointer to have a global access to values
70 71
    static DOFVector<double> *valueVec;

Thomas Witkowski's avatar
Thomas Witkowski committed
72
    /// Total number of interpolation points.
73 74
    static int ni;
  };
75 76 77 78

}

#endif // AMDIS_VALUEWRITER_H