Skip to content
Snippets Groups Projects
Commit 26dab507 authored by carlocamilloni's avatar carlocamilloni
Browse files

Fix logging of UNITS thanks to Omar

close #263
parent 88b7637b
No related branches found
No related tags found
No related merge requests found
......@@ -108,14 +108,14 @@ Units::Units(const ActionOptions&ao):
s="";
parse("CHARGE",s);
if(s.length()>0) u.setCharge(s);
if(u.getChargeString().length()>0) log.printf(" time: %s\n",u.getChargeString().c_str());
else log.printf(" time: %f e\n",u.getCharge());
if(u.getChargeString().length()>0) log.printf(" charge: %s\n",u.getChargeString().c_str());
else log.printf(" charge: %f e\n",u.getCharge());
s="";
parse("MASS",s);
if(s.length()>0) u.setMass(s);
if(u.getMassString().length()>0) log.printf(" time: %s\n",u.getMassString().c_str());
else log.printf(" time: %f amu\n",u.getMass());
if(u.getMassString().length()>0) log.printf(" mass: %s\n",u.getMassString().c_str());
else log.printf(" mass: %f amu\n",u.getMass());
bool natural=false;
parseFlag("NATURAL",natural);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment