Ice Sheet System Model  4.18
Code documentation
Functions | Variables
Verbosity.cpp File Reference
#include "./Verbosity.h"
#include "../Exceptions/exceptions.h"

Go to the source code of this file.

Functions

bool VerboseMProcessor (void)
 
bool VerboseModule (void)
 
bool VerboseSolution (void)
 
bool VerboseSolver (void)
 
bool VerboseConvergence (void)
 
bool VerboseControl (void)
 
bool VerboseQmu (void)
 
bool VerboseAutodiff (void)
 
bool VerboseSmb (void)
 
void SetVerbosityLevel (int level)
 
int GetVerbosityLevel (void)
 

Variables

static int verbositylevel =-1
 

Function Documentation

◆ VerboseMProcessor()

bool VerboseMProcessor ( void  )

Definition at line 22 of file Verbosity.cpp.

22 {return (GetVerbosityLevel() & 1);} /* 2^0*/

◆ VerboseModule()

bool VerboseModule ( void  )

Definition at line 23 of file Verbosity.cpp.

23 {return (GetVerbosityLevel() & 2);} /* 2^1*/

◆ VerboseSolution()

bool VerboseSolution ( void  )

Definition at line 24 of file Verbosity.cpp.

24 {return (GetVerbosityLevel() & 4);} /* 2^2*/

◆ VerboseSolver()

bool VerboseSolver ( void  )

Definition at line 25 of file Verbosity.cpp.

25 {return (GetVerbosityLevel() & 8);} /* 2^3*/

◆ VerboseConvergence()

bool VerboseConvergence ( void  )

Definition at line 26 of file Verbosity.cpp.

26 {return (GetVerbosityLevel() & 16);} /* 2^4*/

◆ VerboseControl()

bool VerboseControl ( void  )

Definition at line 27 of file Verbosity.cpp.

27 {return (GetVerbosityLevel() & 32);} /* 2^5*/

◆ VerboseQmu()

bool VerboseQmu ( void  )

Definition at line 28 of file Verbosity.cpp.

28 {return (GetVerbosityLevel() & 64);} /* 2^6*/

◆ VerboseAutodiff()

bool VerboseAutodiff ( void  )

Definition at line 29 of file Verbosity.cpp.

29 {return (GetVerbosityLevel() & 128);} /* 2^7*/

◆ VerboseSmb()

bool VerboseSmb ( void  )

Definition at line 30 of file Verbosity.cpp.

30 {return (GetVerbosityLevel() & 256);} /* 2^8*/

◆ SetVerbosityLevel()

void SetVerbosityLevel ( int  level)

Definition at line 34 of file Verbosity.cpp.

34  {/*{{{*/
35 
36  if(level<0) _error_("vebosity level should be a positive integer (user provided " << level << ")");
37 
38  verbositylevel = level;
39 
40 }/*}}}*/

◆ GetVerbosityLevel()

int GetVerbosityLevel ( void  )

Definition at line 41 of file Verbosity.cpp.

41  {/*{{{*/
43  return verbositylevel;
44 }/*}}}*/

Variable Documentation

◆ verbositylevel

int verbositylevel =-1
static

Definition at line 33 of file Verbosity.cpp.

_assert_
#define _assert_(ignore)
Definition: exceptions.h:37
verbositylevel
static int verbositylevel
Definition: Verbosity.cpp:33
GetVerbosityLevel
int GetVerbosityLevel(void)
Definition: Verbosity.cpp:41
_error_
#define _error_(StreamArgs)
Definition: exceptions.h:49