Ice Sheet System Model  4.18
Code documentation
Verbosity.cpp
Go to the documentation of this file.
1 /*
2 * \file Verbosity.cpp:
3 * \brief: Manage verbosity levels
4 *
5 * WARNING: DO NOT MODIFY THIS FILE
6 * this file has been automatically generated by Synchronize.sh
7 * Please read README for more information
8 */
9 
10 /*include*/
11 /*{{{*/
12 #ifdef HAVE_CONFIG_H
13  #include <config.h>
14 #else
15 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
16 #endif
17 #include "./Verbosity.h"
18 #include "../Exceptions/exceptions.h"
19 /*}}}*/
20 
21 /*Verbosityt levels*/
22 bool VerboseMProcessor(void){return (GetVerbosityLevel() & 1);} /* 2^0*/
23 bool VerboseModule(void){return (GetVerbosityLevel() & 2);} /* 2^1*/
24 bool VerboseSolution(void){return (GetVerbosityLevel() & 4);} /* 2^2*/
25 bool VerboseSolver(void){return (GetVerbosityLevel() & 8);} /* 2^3*/
26 bool VerboseConvergence(void){return (GetVerbosityLevel() & 16);} /* 2^4*/
27 bool VerboseControl(void){return (GetVerbosityLevel() & 32);} /* 2^5*/
28 bool VerboseQmu(void){return (GetVerbosityLevel() & 64);} /* 2^6*/
29 bool VerboseAutodiff(void){return (GetVerbosityLevel() & 128);} /* 2^7*/
30 bool VerboseSmb(void){return (GetVerbosityLevel() & 256);} /* 2^8*/
31 
32 /*Verbosity Setup*/
33 static int verbositylevel=-1;
34 void SetVerbosityLevel(int level){/*{{{*/
35 
36  if(level<0) _error_("vebosity level should be a positive integer (user provided " << level << ")");
37 
38  verbositylevel = level;
39 
40 }/*}}}*/
41 int GetVerbosityLevel(void){/*{{{*/
43  return verbositylevel;
44 }/*}}}*/
_assert_
#define _assert_(ignore)
Definition: exceptions.h:37
VerboseConvergence
bool VerboseConvergence(void)
Definition: Verbosity.cpp:26
VerboseMProcessor
bool VerboseMProcessor(void)
Definition: Verbosity.cpp:22
VerboseModule
bool VerboseModule(void)
Definition: Verbosity.cpp:23
VerboseQmu
bool VerboseQmu(void)
Definition: Verbosity.cpp:28
VerboseAutodiff
bool VerboseAutodiff(void)
Definition: Verbosity.cpp:29
SetVerbosityLevel
void SetVerbosityLevel(int level)
Definition: Verbosity.cpp:34
verbositylevel
static int verbositylevel
Definition: Verbosity.cpp:33
VerboseSmb
bool VerboseSmb(void)
Definition: Verbosity.cpp:30
GetVerbosityLevel
int GetVerbosityLevel(void)
Definition: Verbosity.cpp:41
VerboseSolver
bool VerboseSolver(void)
Definition: Verbosity.cpp:25
_error_
#define _error_(StreamArgs)
Definition: exceptions.h:49
VerboseSolution
bool VerboseSolution(void)
Definition: Verbosity.cpp:24
Verbosity.h
VerboseControl
bool VerboseControl(void)
Definition: Verbosity.cpp:27