Skip to content
Snippets Groups Projects
Commit 78cf43ab authored by carlocamilloni's avatar carlocamilloni
Browse files

Merge branch 'v2.3' into v2.4

parents 51d5f6e6 26dab507
No related branches found
No related tags found
No related merge requests found
...@@ -126,14 +126,14 @@ Units::Units(const ActionOptions&ao): ...@@ -126,14 +126,14 @@ Units::Units(const ActionOptions&ao):
s=""; s="";
parse("CHARGE",s); parse("CHARGE",s);
if(s.length()>0) u.setCharge(s); if(s.length()>0) u.setCharge(s);
if(u.getChargeString().length()>0) log.printf(" time: %s\n",u.getChargeString().c_str()); if(u.getChargeString().length()>0) log.printf(" charge: %s\n",u.getChargeString().c_str());
else log.printf(" time: %f e\n",u.getCharge()); else log.printf(" charge: %f e\n",u.getCharge());
s=""; s="";
parse("MASS",s); parse("MASS",s);
if(s.length()>0) u.setMass(s); if(s.length()>0) u.setMass(s);
if(u.getMassString().length()>0) log.printf(" time: %s\n",u.getMassString().c_str()); if(u.getMassString().length()>0) log.printf(" mass: %s\n",u.getMassString().c_str());
else log.printf(" time: %f amu\n",u.getMass()); else log.printf(" mass: %f amu\n",u.getMass());
bool natural=false; bool natural=false;
parseFlag("NATURAL",natural); 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