11 #include <fei_sstream.hpp> 
   13 #include <test_utils/FEData.hpp> 
   16 #define fei_file "FEData.cpp" 
   18 #include <fei_ErrMacros.hpp> 
   22   const char* param = snl_fei::getParamValue(
"debugOutput",
 
   25     setDebugLog(1, param);
 
   28   dbgOut() << 
"parameters" << FEI_ENDL
 
   29      << 
"   numParams: " << numParams << FEI_ENDL;
 
   30   for(
int i=0; i<numParams; i++) {
 
   31     dbgOut() << 
"      param "<<i<<
": '" << params[i] << 
"'" << FEI_ENDL;
 
   37 int FEData::setDebugLog(
int debugOutputLevel, 
const char* path)
 
   42   if (dbgFileOpened_ == 
true) 
return(0);
 
   45     dbgPath_ = 
new char[strlen(path)+1];
 
   46     std::strcpy(dbgPath_, path);
 
   49     dbgPath_ = 
new char[2];
 
   50     std::strcpy(dbgPath_, 
".");
 
   53   debugOutputLevel_ = debugOutputLevel;
 
   55   if (debugOutputLevel_ <= 0) {
 
   56     dbgOStreamPtr_ = NULL;
 
   59     if (dbgOStreamPtr_ != NULL) 
delete dbgOStreamPtr_;
 
   60     dbgOStreamPtr_ = NULL;
 
   62     FEI_OSTRINGSTREAM fname;
 
   63     fname << dbgPath_<<
"/FEData."<<numProcs_<<
"."<<localProc_;
 
   64     dbgFStreamPtr_ = 
new FEI_OFSTREAM(fname.str().c_str());
 
   65     dbgFileOpened_ = 
true;
 
   66     dbgOStreamPtr_ = dbgFStreamPtr_;
 
int parameters(int numParams, char **params)