OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
FieldDebugPrint< T, Dim > Class Template Reference

#include <FieldDebugPrint.h>

Collaboration diagram for FieldDebugPrint< T, Dim >:

Public Member Functions

 FieldDebugPrint (bool printbc=false, unsigned int dataWidth=0, unsigned int dataPrecision=0, unsigned int carReturn=0, bool scientific=true)
 ~FieldDebugPrint ()
void print (BareField< T, Dim > &, const NDIndex< Dim > &, Inform &, bool=true)
void print (BareField< T, Dim > &, Inform &, bool=true)
void print (BareField< T, Dim > &, const NDIndex< Dim > &, bool=true)
void print (BareField< T, Dim > &, bool=true)
void set_DataWidth (unsigned int in)
void set_DataPrecision (unsigned int in)
void set_CarReturn (unsigned int in)
void set_Scientific (bool in)
void set_PrintBC (bool in)
unsigned int get_DataWidth () const
unsigned int get_DataPrecision () const
unsigned int get_CarReturn () const
bool get_Scientific () const
bool get_PrintBC () const

Private Member Functions

void printelem (bool, T &, unsigned int, Inform &)

Private Attributes

unsigned int DataWidth
unsigned int DataPrecision
unsigned int CarReturn
bool Scientific
bool PrintBC

Detailed Description

template<class T, unsigned Dim>
class FieldDebugPrint< T, Dim >

Definition at line 21 of file FieldDebugPrint.h.

Constructor & Destructor Documentation

◆ FieldDebugPrint()

template<class T, unsigned Dim>
FieldDebugPrint< T, Dim >::FieldDebugPrint ( bool printbc = false,
unsigned int dataWidth = 0,
unsigned int dataPrecision = 0,
unsigned int carReturn = 0,
bool scientific = true )
inline

Definition at line 27 of file FieldDebugPrint.h.

References CarReturn, DataPrecision, DataWidth, PrintBC, and Scientific.

◆ ~FieldDebugPrint()

template<class T, unsigned Dim>
FieldDebugPrint< T, Dim >::~FieldDebugPrint ( )
inline

Definition at line 34 of file FieldDebugPrint.h.

Member Function Documentation

◆ get_CarReturn()

template<class T, unsigned Dim>
unsigned int FieldDebugPrint< T, Dim >::get_CarReturn ( ) const
inline

Definition at line 55 of file FieldDebugPrint.h.

References CarReturn.

◆ get_DataPrecision()

template<class T, unsigned Dim>
unsigned int FieldDebugPrint< T, Dim >::get_DataPrecision ( ) const
inline

Definition at line 54 of file FieldDebugPrint.h.

References DataPrecision.

◆ get_DataWidth()

template<class T, unsigned Dim>
unsigned int FieldDebugPrint< T, Dim >::get_DataWidth ( ) const
inline

Definition at line 53 of file FieldDebugPrint.h.

References DataWidth.

◆ get_PrintBC()

template<class T, unsigned Dim>
bool FieldDebugPrint< T, Dim >::get_PrintBC ( ) const
inline

Definition at line 57 of file FieldDebugPrint.h.

References PrintBC.

◆ get_Scientific()

template<class T, unsigned Dim>
bool FieldDebugPrint< T, Dim >::get_Scientific ( ) const
inline

Definition at line 56 of file FieldDebugPrint.h.

References Scientific.

◆ print() [1/4]

template<class T, unsigned Dim>
void FieldDebugPrint< T, Dim >::print ( BareField< T, Dim > & F,
bool allnodes = true )

Definition at line 52 of file FieldDebugPrint.hpp.

References AddGuardCells(), BareField< T, Dim >::getDomain(), BareField< T, Dim >::getGuardCellSizes(), print(), and PrintBC.

Here is the call graph for this function:

◆ print() [2/4]

template<class T, unsigned Dim>
void FieldDebugPrint< T, Dim >::print ( BareField< T, Dim > & F,
const NDIndex< Dim > & view,
bool allnodes = true )

Definition at line 65 of file FieldDebugPrint.hpp.

References print().

Here is the call graph for this function:

◆ print() [3/4]

◆ print() [4/4]

template<class T, unsigned Dim>
void FieldDebugPrint< T, Dim >::print ( BareField< T, Dim > & F,
Inform & out,
bool allnodes = true )

Definition at line 39 of file FieldDebugPrint.hpp.

References AddGuardCells(), BareField< T, Dim >::getDomain(), BareField< T, Dim >::getGuardCellSizes(), print(), and PrintBC.

Here is the call graph for this function:

◆ printelem()

template<class T, unsigned Dim>
void FieldDebugPrint< T, Dim >::printelem ( bool isavail,
T & val,
unsigned int i0,
Inform & out )
private

Definition at line 309 of file FieldDebugPrint.hpp.

References CarReturn, DataPrecision, DataWidth, endl(), Scientific, and Inform::setf().

Referenced by print().

Here is the call graph for this function:

◆ set_CarReturn()

template<class T, unsigned Dim>
void FieldDebugPrint< T, Dim >::set_CarReturn ( unsigned int in)
inline

Definition at line 48 of file FieldDebugPrint.h.

References CarReturn.

◆ set_DataPrecision()

template<class T, unsigned Dim>
void FieldDebugPrint< T, Dim >::set_DataPrecision ( unsigned int in)
inline

Definition at line 47 of file FieldDebugPrint.h.

References DataPrecision.

◆ set_DataWidth()

template<class T, unsigned Dim>
void FieldDebugPrint< T, Dim >::set_DataWidth ( unsigned int in)
inline

Definition at line 46 of file FieldDebugPrint.h.

References DataWidth.

◆ set_PrintBC()

template<class T, unsigned Dim>
void FieldDebugPrint< T, Dim >::set_PrintBC ( bool in)
inline

Definition at line 50 of file FieldDebugPrint.h.

References PrintBC.

◆ set_Scientific()

template<class T, unsigned Dim>
void FieldDebugPrint< T, Dim >::set_Scientific ( bool in)
inline

Definition at line 49 of file FieldDebugPrint.h.

References Scientific.

Member Data Documentation

◆ CarReturn

template<class T, unsigned Dim>
unsigned int FieldDebugPrint< T, Dim >::CarReturn
private

Definition at line 63 of file FieldDebugPrint.h.

Referenced by FieldDebugPrint(), get_CarReturn(), printelem(), and set_CarReturn().

◆ DataPrecision

template<class T, unsigned Dim>
unsigned int FieldDebugPrint< T, Dim >::DataPrecision
private

Definition at line 62 of file FieldDebugPrint.h.

Referenced by FieldDebugPrint(), get_DataPrecision(), printelem(), and set_DataPrecision().

◆ DataWidth

template<class T, unsigned Dim>
unsigned int FieldDebugPrint< T, Dim >::DataWidth
private

Definition at line 61 of file FieldDebugPrint.h.

Referenced by FieldDebugPrint(), get_DataWidth(), printelem(), and set_DataWidth().

◆ PrintBC

template<class T, unsigned Dim>
bool FieldDebugPrint< T, Dim >::PrintBC
private

Definition at line 65 of file FieldDebugPrint.h.

Referenced by FieldDebugPrint(), get_PrintBC(), print(), print(), print(), and set_PrintBC().

◆ Scientific

template<class T, unsigned Dim>
bool FieldDebugPrint< T, Dim >::Scientific
private

Definition at line 64 of file FieldDebugPrint.h.

Referenced by FieldDebugPrint(), get_Scientific(), print(), printelem(), and set_Scientific().


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