Newer
Older
// ============================================================================
// == ==
// == AMDiS - Adaptive multidimensional simulations ==
// == ==

Thomas Witkowski
committed
// == http://www.amdis-fem.org ==
// == ==
// ============================================================================

Thomas Witkowski
committed
//
// 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.
/** \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