Commit cc7f4d5f authored by Francois Gygi's avatar Francois Gygi
Browse files

Fix alignment of timing information

git-svn-id: http://qboxcode.org/svn/qb/trunk@1899 cba15fb0-1239-40c8-b417-11db7ca47a34
Showing with 22 additions and 20 deletions
+22 -20
......@@ -60,8 +60,8 @@ BOSampleStepper::~BOSampleStepper()
s_.ctxt_.dmax(1,1,&tmax,1);
if ( s_.ctxt_.myproc()==0 )
{
cout << "<timing name=\""
<< (*i).first << "\""
string s = "name=\"" + (*i).first + "\"";
cout << "<timing " << left << setw(22) << s
<< " min=\"" << setprecision(3) << tmin << "\""
<< " max=\"" << setprecision(3) << tmax << "\"/>"
<< endl;
......@@ -1191,7 +1191,8 @@ void BOSampleStepper::step(int niter)
s_.ctxt_.dmax(1,1,&tmax,1);
if ( onpe0 )
{
cout << " <timing name=\"iteration\""
string s = "name=\"iteration\"";
cout << "<timing " << left << setw(22) << s
<< " min=\"" << setprecision(3) << tmin << "\""
<< " max=\"" << setprecision(3) << tmax << "\"/>"
<< endl;
......
......@@ -434,8 +434,8 @@ void Bisection::compute_transform(const SlaterDet& sd, int maxsweep, double tol)
ctxt_.dmax(1,1,&tmax,1);
if ( ctxt_.myproc()==0 )
{
cout << "<timing name=\""
<< (*i).first << "\""
string s = "name=\"" + (*i).first + "\"";
cout << "<timing " << left << setw(22) << s
<< " min=\"" << setprecision(3) << tmin << "\""
<< " max=\"" << setprecision(3) << tmax << "\"/>"
<< endl;
......
......@@ -69,8 +69,8 @@ CPSampleStepper::~CPSampleStepper(void)
s_.ctxt_.dmax(1,1,&tmax,1);
if ( s_.ctxt_.myproc()==0 )
{
cout << "<timing name=\""
<< (*i).first << "\""
string s = "name=\"" + (*i).first + "\"";
cout << "<timing " << left << setw(22) << s
<< " min=\"" << setprecision(3) << tmin << "\""
<< " max=\"" << setprecision(3) << tmax << "\"/>"
<< endl;
......@@ -268,7 +268,8 @@ void CPSampleStepper::step(int niter)
s_.ctxt_.dmax(1,1,&tmax,1);
if ( s_.ctxt_.myproc()==0 )
{
cout << " <timing name=\"iteration\""
string s = "name=\"iteration\"";
cout << "<timing " << left << setw(22) << s
<< " min=\"" << setprecision(3) << tmin << "\""
<< " max=\"" << setprecision(3) << tmax << "\"/>"
<< endl;
......
......@@ -109,8 +109,8 @@ ChargeDensity::~ChargeDensity(void)
ctxt_.dmax(1,1,&tmax,1);
if ( ctxt_.myproc()==0 )
{
cout << "<timing name=\""
<< (*i).first << "\""
string s = "name=\"" + (*i).first + "\"";
cout << "<timing " << left << setw(22) << s
<< " min=\"" << setprecision(3) << tmin << "\""
<< " max=\"" << setprecision(3) << tmax << "\"/>"
<< endl;
......
......@@ -162,8 +162,8 @@ ElectricEnthalpy::~ElectricEnthalpy(void)
s_.ctxt_.dmax(1,1,&tmax,1);
if ( pol_type_ != off && s_.ctxt_.myproc()==0 )
{
cout << "<timing name=\""
<< (*i).first << "\""
string s = "name=\"" + (*i).first + "\"";
cout << "<timing " << left << setw(22) << s
<< " min=\"" << setprecision(3) << tmin << "\""
<< " max=\"" << setprecision(3) << tmax << "\"/>"
<< endl;
......
......@@ -209,8 +209,8 @@ EnergyFunctional::~EnergyFunctional(void)
s_.ctxt_.dmax(1,1,&tmax,1);
if ( s_.ctxt_.myproc()==0 )
{
cout << "<timing name=\""
<< (*i).first << "\""
string s = "name=\"" + (*i).first + "\"";
cout << "<timing " << left << setw(22) << s
<< " min=\"" << setprecision(3) << tmin << "\""
<< " max=\"" << setprecision(3) << tmax << "\"/>"
<< endl;
......
......@@ -40,8 +40,8 @@ NonLocalPotential::~NonLocalPotential(void)
ctxt_.dmax(1,1,&tmax,1);
if ( ctxt_.myproc()==0 )
{
cout << "<timing name=\""
<< (*i).first << "\""
string s = "name=\"" + (*i).first + "\"";
cout << "<timing " << left << setw(22) << s
<< " min=\"" << setprecision(3) << tmin << "\""
<< " max=\"" << setprecision(3) << tmax << "\"/>"
<< endl;
......
......@@ -54,8 +54,8 @@ SampleStepper::~SampleStepper(void)
s_.ctxt_.dmax(1,1,&tmax,1);
if ( s_.ctxt_.myproc()==0 )
{
cout << "<timing name=\""
<< (*i).first << "\""
string s = "name=\"" + (*i).first + "\"";
cout << "<timing " << left << setw(22) << s
<< " min=\"" << setprecision(3) << tmin << "\""
<< " max=\"" << setprecision(3) << tmax << "\"/>"
<< endl;
......
......@@ -95,8 +95,8 @@ SlaterDet::~SlaterDet()
ctxt_.dmax(1,1,&tmax,1);
if ( ctxt_.myproc()==0 )
{
cout << "<timing name=\""
<< (*i).first << "\""
string s = "name=\"" + (*i).first + "\"";
cout << "<timing " << left << setw(22) << s
<< " min=\"" << setprecision(3) << tmin << "\""
<< " max=\"" << setprecision(3) << tmax << "\"/>"
<< endl;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment