Peano
Loading...
Searching...
No Matches
tarch.plotter Namespace Reference

Namespaces

namespace  api
namespace  griddata
namespace  pointdata

Data Structures

class  PVDTimeSeriesWriter
 Writes time series in vtk/vtu format. More...
struct  VectorCompare1e_14
struct  VectorCompare1e_12
struct  VectorCompare1e_8
struct  VectorCompare1e_4

Functions

template<class InType>
InType byteSwap (const InType inVal)
 Transform inVal vom little-endian into big-endian.
template<class InType>
InType byteSwapForParaviewBinaryFiles (const InType inVal)
 Conditional swap.

Function Documentation

◆ byteSwap()

template<class InType>
InType tarch::plotter::byteSwap ( const InType inVal)

Transform inVal vom little-endian into big-endian.

Paraview always requires all data to be stored as big-endian. However, many architectures used by Peano, e.g., are little-endian ones. Intel x86 architecture for example always is little-endian.

◆ byteSwapForParaviewBinaryFiles()

template<class InType>
InType tarch::plotter::byteSwapForParaviewBinaryFiles ( const InType inVal)

Conditional swap.

This operation forwards to byteSwap if the system is a little-endian one. Otherwise, it reduces to identity.