MacroWriter.h 1.67 KB
 Praetorius, Simon committed Aug 02, 2013 1 2 3 4 5 6 7 /****************************************************************************** * * AMDiS - Adaptive multidimensional simulations * * Copyright (C) 2013 Dresden University of Technology. All Rights Reserved. * Web: https://fusionforge.zih.tu-dresden.de/projects/amdis *  Praetorius, Simon committed Oct 14, 2016 8  * Authors:  Praetorius, Simon committed Aug 02, 2013 9 10 11 12 13 14 15 16 17  * Simon Vey, Thomas Witkowski, Andreas Naumann, Simon Praetorius, et al. * * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * * * This file is part of AMDiS * * See also license.opensource.txt in the distribution.  Praetorius, Simon committed Oct 14, 2016 18  *  Praetorius, Simon committed Aug 02, 2013 19  ******************************************************************************/  Thomas Witkowski committed Dec 16, 2010 20 21   Peter Gottschling committed Feb 15, 2008 22 23 24 25 26 27 28 29  /** \file MacroWriter.h */ #ifndef AMDIS_MACROWRITER_H #define AMDIS_MACROWRITER_H #include #include  Thomas Witkowski committed May 12, 2009 30 #include "AMDiS_fwd.h"  Peter Gottschling committed Feb 15, 2008 31 32 33 34 35 36 37 38 39 #include "VertexInfo.h" #include "ElementInfo.h" #include "DataCollector.h" #include "FixVec.h" #include "Boundary.h" #include "Projection.h" #include "Flag.h" #include "Mesh.h"  40 namespace AMDiS { namespace io {  Peter Gottschling committed Feb 15, 2008 41   Praetorius, Simon committed Oct 14, 2016 42  /**  Thomas Witkowski committed Apr 15, 2008 43 44 45 46 47 48  * \ingroup Output * * \brief * Writes the current leaf elements of a mesh as macro triangulation to * a text file. Pure static class. */  49  struct MacroWriter  Thomas Witkowski committed Apr 15, 2008 50  {  Thomas Witkowski committed Jun 12, 2009 51  /// Writes the leaf elements of a Mesh as a macro triangulation to a file.  Praetorius, Simon committed Jan 16, 2012 52  static int writeMacro(DataCollector<> *dc,  Praetorius, Simon committed Oct 14, 2016 53  std::string name,  Thomas Witkowski committed Apr 15, 2008 54 55 56  double time = 0.0, int level = -1, Flag traverseFlag = Mesh::CALL_LEAF_EL,  Praetorius, Simon committed Nov 04, 2014 57  bool (*writeElem)(ElInfo*) = NULL);  Thomas Witkowski committed Apr 15, 2008 58   Thomas Witkowski committed Jun 12, 2009 59  /// Init \ref periodicFile for the next macro to be written.  Praetorius, Simon committed Jan 16, 2012 60  static void writePeriodicFile(DataCollector<> *dc, std::string filename);  Thomas Witkowski committed Apr 15, 2008 61  };  Peter Gottschling committed Feb 15, 2008 62   63 } } // end namespace io, AMDiS  Peter Gottschling committed Feb 15, 2008 64 65  #endif