OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ippl
src
Utility
FieldDebugFunctions.cpp
Go to the documentation of this file.
1
// -*- C++ -*-
2
/***************************************************************************
3
*
4
* The IPPL Framework
5
*
6
* This program was prepared by PSI.
7
* All rights in the program are reserved by PSI.
8
* Neither PSI nor the author(s)
9
* makes any warranty, express or implied, or assumes any liability or
10
* responsibility for the use of this software
11
*
12
* Visit www.amas.web.psi for more details
13
*
14
***************************************************************************/
15
16
// -*- C++ -*-
17
/***************************************************************************
18
*
19
* The IPPL Framework
20
*
21
*
22
* Visit http://people.web.psi.ch/adelmann/ for more details
23
*
24
***************************************************************************/
25
26
// include files
27
28
#include "
Utility/FieldDebugFunctions.h
"
29
30
// forward class declarations
31
class
Inform
;
32
33
//----------------------------------------------------------------------
34
// Set up the I/O "stream" (IPPL Inform object) format where the output goes.
35
// This "sticks around" once set until re-set.
36
//----------------------------------------------------------------------
37
Inform
*
FldDbgInform
;
// Pointer to active Inform object
38
bool
FldDbgInformIsSet
=
false
;
// Flags whether pointer is set
39
void
40
setInform
(
Inform
& inform) {
41
42
FldDbgInform = &inform;
43
FldDbgInformIsSet
=
true
;
44
}
45
//----------------------------------------------------------------------
46
// Variables to store print-formatting parameters. These "stick
47
// around" once set (set-functions provided) until re-set. Needed esp.
48
// in debugger (main intent of all these print functions) because of
49
// limitations with default arguments--fcns with extra format-parameter
50
// arguments there.
51
//----------------------------------------------------------------------
52
int
elementsPerLine
= 7;
53
int
digitsPastDecimal
= 3;
54
int
widthOfElements
= 0;
55
void
56
setFormat
(
int
ElementsPerLine,
int
DigitsPastDecimal,
57
int
WidthOfElements) {
58
59
elementsPerLine
= ElementsPerLine;
60
digitsPastDecimal
= DigitsPastDecimal;
61
widthOfElements
= WidthOfElements;
62
}
63
64
/***************************************************************************
65
* $RCSfile: FieldDebugFunctions.cpp,v $ $Author: adelmann $
66
* $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:33 $
67
* IPPL_VERSION_ID: $Id: FieldDebugFunctions.cpp,v 1.1.1.1 2003/01/23 07:40:33 adelmann Exp $
68
***************************************************************************/
setInform
void setInform(Inform &inform)
Definition:
FieldDebugFunctions.cpp:40
digitsPastDecimal
int digitsPastDecimal
Definition:
FieldDebugFunctions.cpp:53
FieldDebugFunctions.h
elementsPerLine
int elementsPerLine
Definition:
FieldDebugFunctions.cpp:52
FldDbgInform
Inform * FldDbgInform
Definition:
FieldDebugFunctions.cpp:31
widthOfElements
int widthOfElements
Definition:
FieldDebugFunctions.cpp:54
setFormat
void setFormat(int ElementsPerLine, int DigitsPastDecimal, int WidthOfElements)
Definition:
FieldDebugFunctions.cpp:56
Inform
Definition:
Inform.h:41
FldDbgInformIsSet
bool FldDbgInformIsSet
Definition:
FieldDebugFunctions.cpp:38
Generated on Sat Jan 4 2020 14:47:39 for OPAL (Object Oriented Parallel Accelerator Library) by
1.8.5