Newer
Older
// ============================================================================
// == ==
// == AMDiS - Adaptive multidimensional simulations ==
// == ==
// ============================================================================
// == ==
// == Institut für Wissenschaftliches Rechnen ==
// == Zellescher Weg 12-14 ==
// == 01069 Dresden ==
// == germany ==
// == ==
// ============================================================================
// == ==
// == https://gforge.zih.tu-dresden.de/projects/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"
/** \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)
class ValueWriter
{
public:
static void writeValues(DataCollector *dc,
double time = 0.0,
int level = -1,
Flag traverseFlag = Mesh::CALL_LEAF_EL,
bool (*writeElem)(ElInfo*) = NULL);
protected:
static FILE *valueFile;
static DOFVector<int> *interpPointInd;
static DOFVector< std::list<WorldVector<double> > > *dofCoords;
static const DOFAdmin *admin;
static DOFVector<double> *valueVec;
static int ni;
};
}
#endif // AMDIS_VALUEWRITER_H