OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
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 
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 //----------------------------------------------------------------------
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  ***************************************************************************/
void setInform(Inform &inform)
int digitsPastDecimal
int elementsPerLine
Inform * FldDbgInform
int widthOfElements
void setFormat(int ElementsPerLine, int DigitsPastDecimal, int WidthOfElements)
Definition: Inform.h:41
bool FldDbgInformIsSet