ExaDG
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
dealspectrum::Setup Class Reference

#include <setup.h>

Public Member Functions

 Setup (MPI_Comm const &comm)
 
void init (int dim, int cells, int points_src, int points_dst)
 
int readHeader (char *&filename)
 
void writeHeader (char const *filename)
 

Public Attributes

MPI_Comm const comm
 
bool initialized
 
int type
 
int dim
 
int cells
 
int points_src
 
int points_dst
 
int rank
 
int size
 
int bins
 
double time = 0.0
 

Static Public Attributes

static int const HEADER_LENGTH = 8
 

Detailed Description

Class containing all settings of DEAL.SPECTRUM

Aim of this class: (1) capsule the configuration of all modules (2) interface to IO: settings are included in header of files

The header of the (binary) file consists of 8 integers: (0) type: sfc vs. lexi (1) dimension (2) cells in each direction (3) degree of cells (4-7) currently not used The header is followed by the payload which is created by the specialized classes.

Constructor & Destructor Documentation

◆ Setup()

dealspectrum::Setup::Setup ( MPI_Comm const & comm)
inline

Constructor

Member Function Documentation

◆ init()

void dealspectrum::Setup::init ( int dim,
int cells,
int points_src,
int points_dst )
inline

Configure DEAL.SPECTRUM manually

Parameters
dimdimension
cellsnumber of cells in each direction
points_srcpoints in each direction in cell (i.e.: degree+1)
points_dstpoints in each direction for evaluation in cell

◆ readHeader()

int dealspectrum::Setup::readHeader ( char *& filename)
inline

Read header of file

Parameters
filenamename of file

◆ writeHeader()

void dealspectrum::Setup::writeHeader ( char const * filename)
inline

Write header of file

Parameters
filenamename of file

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