Reference documentation for deal.II version Git 89df588 2015-05-24 14:21:04 +0200
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
DataOutBase::VtkFlags Struct Reference

#include <deal.II/base/data_out_base.h>

Inheritance diagram for DataOutBase::VtkFlags:
[legend]

Public Member Functions

 VtkFlags (const double time=std::numeric_limits< double >::min(), const unsigned int cycle=std::numeric_limits< unsigned int >::min(), const bool print_date_and_time=true)
 
void parse_parameters (const ParameterHandler &prm) const
 
std::size_t memory_consumption () const
 

Static Public Member Functions

static void declare_parameters (ParameterHandler &prm)
 

Public Attributes

double time
 
unsigned int cycle
 
bool print_date_and_time
 

Detailed Description

Flags controlling the details of output in VTK format.

Definition at line 907 of file data_out_base.h.

Constructor & Destructor Documentation

DataOutBase::VtkFlags::VtkFlags ( const double  time = std::numeric_limits< double >::min(),
const unsigned int  cycle = std::numeric_limits< unsigned int >::min(),
const bool  print_date_and_time = true 
)

Default constructor.

Member Function Documentation

static void DataOutBase::VtkFlags::declare_parameters ( ParameterHandler prm)
static

Declare the flags with name and type as offered by this class, for use in input files.

Unlike the flags in many of the other classes similar to this one, we do not actually declare parameters for the cycle and time member variables of this class. The reason is that there wouldn't appear to be a case where one would want to declare these parameters in an input file. Rather, these are typically values that change during the course of a simulation and can only reasonably be set as part of the execution of a program, rather than a priori by a user who runs this program.

void DataOutBase::VtkFlags::parse_parameters ( const ParameterHandler prm) const

Read the parameters declared in declare_parameters() and set the flags for this output format accordingly.

The flags thus obtained overwrite all previous contents of this object.

std::size_t DataOutBase::VtkFlags::memory_consumption ( ) const

Return an estimate for the memory consumption, in bytes, of this object. This is not exact (but will usually be close) because calculating the memory usage of trees (e.g., std::map) is difficult.

Member Data Documentation

double DataOutBase::VtkFlags::time

The time of the time step if this file is part of a time dependent simulation.

The value of this variable is written into the output file according to the instructions provided in http://www.visitusers.org/index.php?title=Time_and_Cycle_in_VTK_files unless it is at its default value of

std::numeric_limits<unsigned int>::min() 

.

Definition at line 920 of file data_out_base.h.

unsigned int DataOutBase::VtkFlags::cycle

The number of the time step if this file is part of a time dependent simulation, or the cycle within a nonlinear or other iteration.

The value of this variable is written into the output file according to the instructions provided in http://www.visitusers.org/index.php?title=Time_and_Cycle_in_VTK_files unless it is at its default value of

std::numeric_limits<unsigned int>::min() 

.

Definition at line 932 of file data_out_base.h.

bool DataOutBase::VtkFlags::print_date_and_time

Flag to determine whether the current date and time shall be printed as a comment in the file's second line.

Default is true.

Definition at line 940 of file data_out_base.h.


The documentation for this struct was generated from the following file: