Commit 0e693aab by Francois Gygi

Fix XML formatting of attributes


git-svn-id: http://qboxcode.org/svn/qb/branches/efield@1709 cba15fb0-1239-40c8-b417-11db7ca47a34
parent c5d99187
......@@ -635,30 +635,30 @@ void ElectricEnthalpy::print(ostream& os) const
for ( int i = 0; i < nst; i++ )
{
os << " <mlwf center=\"" << setprecision(8)
<< setw(12) << mlwfc_[i].x
<< setw(12) << mlwfc_[i].y
<< setw(12) << mlwfc_[i].z
<< " \" spread=\" " << mlwfs_[i] << " \"/>" << endl;
<< setw(12) << mlwfc_[i].x << " "
<< setw(12) << mlwfc_[i].y << " "
<< setw(12) << mlwfc_[i].z << " \"\n"
<< " spread=\" " << mlwfs_[i] << " \"/>" << endl;
if ( pol_type_ == mlwf_ref )
{
os << " <mlwf_ref center=\"" << setprecision(8)
<< setw(12) << mlwfc_[i].x + correction_[i].x
<< setw(12) << mlwfc_[i].y + correction_[i].y
<< setw(12) << mlwfc_[i].x + correction_[i].x << " "
<< setw(12) << mlwfc_[i].y + correction_[i].y << " "
<< setw(12) << mlwfc_[i].z + correction_[i].z << " \"";
if ( compute_quadrupole_ )
{
// add spread attribute
os << " \n\" spread=\" " << sqrt(quad_[i].trace()) << " \"";
os << " \n spread=\" " << sqrt(quad_[i].trace()) << " \"";
}
os << "/>" << endl;
if ( compute_quadrupole_ )
os << " <quad>"
<< setw(12) << quad_[i][0]
<< setw(12) << quad_[i][4]
<< setw(12) << quad_[i][8]
<< setw(12) << quad_[i][1]
<< setw(12) << quad_[i][2]
<< setw(12) << quad_[i][0] << " "
<< setw(12) << quad_[i][4] << " "
<< setw(12) << quad_[i][8] << " "
<< setw(12) << quad_[i][1] << " "
<< setw(12) << quad_[i][2] << " "
<< setw(12) << quad_[i][5]
<< " </quad>" << endl;
}
......
Markdown is supported
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