Skip to content

Commit

Permalink
A few minor stdout/err tweaks for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin D. Weinberg committed Oct 1, 2023
1 parent b6f58cb commit ff11559
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions exputil/EmpCylSL.cc
Original file line number Diff line number Diff line change
Expand Up @@ -866,14 +866,14 @@ int EmpCylSL::cache_grid(int readwrite, string cachename)
if (ReadH5Cache()) return 1;
else {
if (myid==0)
std::cout << "---- EmpCylSL::cache_grid: HDF5 parameter mismatch"
std::cerr << "---- EmpCylSL::cache_grid: HDF5 parameter mismatch"
<< std::endl;
return 0;
}
}
catch (EXPException& error) {
if (myid==0) {
std::cout << "---- EmpCylSL::cache_grid: file <"
std::cerr << "---- EmpCylSL::cache_grid: file <"
<< cachefile + ">, is not HDF5. Checking binary . . ."
<< std::endl;
}
Expand Down Expand Up @@ -7088,7 +7088,7 @@ bool EmpCylSL::ReadH5Cache()
{
int v; HighFive::Attribute vv = file.getAttribute(name); vv.read(v);
if (value == v) return true;
std::cout << "---- EmpCylSL: parameter " << name << ": wanted "
std::cout << "---- EmpCylSL cache parameter " << name << ": wanted "
<< value << " found " << v << std::endl;
return false;
};
Expand All @@ -7097,7 +7097,7 @@ bool EmpCylSL::ReadH5Cache()
{
double v; HighFive::Attribute vv = file.getAttribute(name); vv.read(v);
if (fabs(value - v) < 1.0e-16) return true;
std::cout << "---- EmpCylSL: parameter " << name << ": wanted "
std::cout << "---- EmpCylSL cache parameter " << name << ": wanted "
<< value << " found " << v << std::endl;
return false;
};
Expand All @@ -7106,7 +7106,7 @@ bool EmpCylSL::ReadH5Cache()
{
std::string v; HighFive::Attribute vv = file.getAttribute(name); vv.read(v);
if (value.compare(v)==0) return true;
std::cout << "--- EmpCylSL: parameter " << name << ": wanted "
std::cout << "--- EmpCylSL cache parameter " << name << ": wanted "
<< value << " found " << v << std::endl;
return false;
};
Expand Down
2 changes: 1 addition & 1 deletion exputil/SLGridMP2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2282,7 +2282,7 @@ bool SLGridSph::ReadH5Cache(void)
}

if (myid==0)
std::cerr << "---- SLGridSph::ReadH5Cache: "
std::cout << "---- SLGridSph::ReadH5Cache: "
<< "successfully read basis cache <" << sph_cache_name
<< ">" << std::endl;

Expand Down

0 comments on commit ff11559

Please sign in to comment.