Commit 55b1c566 by maarten

phenix

git-svn-id: svn+ssh://gitlab/srv/svn-repos/pdb-redo/trunk@434 a1961a4f-ab94-4bcc-80e8-33b5a54de466
parent 1c009d48
......@@ -716,7 +716,17 @@ class Ff : public FBase
os << string(os.width() - 4, ' ');
}
else
os << stod(s);
{
try
{
os << stod(s);
}
catch (const exception& ex)
{
cerr << "Failed to write '" << s << "' as a double, this indicates an error in the code for writing PDB files" << endl;
os << s;
}
}
}
};
......@@ -1593,7 +1603,7 @@ void WriteRemark3Phenix(ostream& pdbFile, Datablock& db)
<< RM3("") << endl
<< RM3(" B VALUES.") << endl
<< RM3(" B VALUE TYPE : ", 7, 4) << Ff(refine, "pdbx_TLS_residual_ADP_flag") << endl
<< RM3(" B VALUE TYPE : ") << Fs(refine, "pdbx_TLS_residual_ADP_flag") << endl
<< RM3(" FROM WILSON PLOT (A**2) : ", 7, 4) << Ff(reflns, "B_iso_Wilson_estimate") << endl
<< RM3(" MEAN B VALUE (OVERALL, A**2) : ", 7, 4) << Ff(refine, "B_iso_mean") << endl
<< RM3(" OVERALL ANISOTROPIC B VALUE.") << 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