00001 // -*- C++ -*- 00002 /*************************************************************************** 00003 * 00004 * The IPPL Framework 00005 * 00006 * This program was prepared by PSI. 00007 * All rights in the program are reserved by PSI. 00008 * Neither PSI nor the author(s) 00009 * makes any warranty, express or implied, or assumes any liability or 00010 * responsibility for the use of this software 00011 * 00012 * Visit http://www.acl.lanl.gov/POOMS for more details 00013 * 00014 ***************************************************************************/ 00015 00016 // -*- C++ -*- 00017 /*************************************************************************** 00018 * 00019 * The IPPL Framework 00020 * 00021 * 00022 * Visit http://people.web.psi.ch/adelmann/ for more details 00023 * 00024 ***************************************************************************/ 00025 00026 // include files 00027 #include "Profile/Profiler.h" 00028 00029 // forward class declarations 00030 class Inform; 00031 00032 //---------------------------------------------------------------------- 00033 // Set up the I/O "stream" (IPPL Inform object) format where the output goes. 00034 // This "sticks around" once set until re-set. 00035 //---------------------------------------------------------------------- 00036 Inform* FldDbgInform; // Pointer to active Inform object 00037 bool FldDbgInformIsSet = false; // Flags whether pointer is set 00038 void setInform(Inform& inform) { 00039 TAU_PROFILE("setInform", "void (Inform&)", TAU_UTILITY); 00040 FldDbgInform = &inform; 00041 FldDbgInformIsSet = true; 00042 } 00043 //---------------------------------------------------------------------- 00044 // Variables to store print-formatting parameters. These "stick 00045 // around" once set (set-functions provided) until re-set. Needed esp. 00046 // in debugger (main intent of all these print functions) because of 00047 // limitations with default arguments--fcns with extra format-parameter 00048 // arguments there. 00049 //---------------------------------------------------------------------- 00050 int elementsPerLine = 7; 00051 int digitsPastDecimal = 3; 00052 int widthOfElements = 0; 00053 void setFormat(int ElementsPerLine, int DigitsPastDecimal, 00054 int WidthOfElements=0) { 00055 TAU_PROFILE("setFormat", "void (int, int)", TAU_UTILITY); 00056 elementsPerLine = ElementsPerLine; 00057 digitsPastDecimal = DigitsPastDecimal; 00058 widthOfElements = WidthOfElements; 00059 } 00060 00061 /*************************************************************************** 00062 * $RCSfile: FieldDebugFunctions.cpp,v $ $Author: adelmann $ 00063 * $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:33 $ 00064 * IPPL_VERSION_ID: $Id: FieldDebugFunctions.cpp,v 1.1.1.1 2003/01/23 07:40:33 adelmann Exp $ 00065 ***************************************************************************/