Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102237883
dumper.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Feb 18, 15:09
Size
3 KB
Mime Type
text/x-c++
Expires
Thu, Feb 20, 15:09 (2 d)
Engine
blob
Format
Raw Data
Handle
24313515
Attached To
rAKA akantu
dumper.hh
View Options
/**
* @file dumper.hh
*
* @author Nicolas Richart
*
* @date creation Mon Oct 02 2017
*
* @brief Dumper interface
*
* @section LICENSE
*
* Copyright (©) 2010-2011 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* Akantu is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* Akantu is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Akantu. If not, see <http://www.gnu.org/licenses/>.
*
*/
/* -------------------------------------------------------------------------- */
#include "aka_array.hh"
#include "element_type_map.hh"
#include "support.hh"
/* -------------------------------------------------------------------------- */
#include <map>
#include <memory>
#include <string>
/* -------------------------------------------------------------------------- */
#ifndef __AKANTU_DUMPER_HH__
#define __AKANTU_DUMPER_HH__
namespace
akantu
{
class
Dumper
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
explicit
Dumper
(
dumper
::
SupportBase
&
support
);
virtual
~
Dumper
();
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
/// request dump: this calls IOHelper dump routine
void
dump
();
// virtual void dump(Real current_time, UInt step);
/// set the directory where to generate the dumped files
virtual
void
setDirectory
(
const
std
::
string
&
directory
);
/// set the base name (needed by most IOHelper dumpers)
virtual
void
setBaseName
(
const
std
::
string
&
basename
);
protected
:
virtual
void
dumpInternal
()
=
0
;
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public
:
/// set the timestep of the iohelper::Dumper
void
setTimeStep
(
Real
time_step
);
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
protected
:
dumper
::
SupportBase
&
support
;
/// directory name
std
::
string
directory
{
"./"
};
/// filename prefix
std
::
string
filename
{
"dump"
};
/// dump counter
UInt
count
{
0
};
/// is time tracking activated in the dumper
bool
time_activated
{
true
};
};
}
// namespace akantu
#endif
/* __AKANTU_DUMPER_HH__ */
Event Timeline
Log In to Comment