ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-4/src/io/BendTypesSectionParser.cpp
(Generate patch)

Comparing branches/new_design/OOPSE-4/src/io/BendTypesSectionParser.cpp (file contents):
Revision 1855 by tim, Tue Nov 30 04:43:29 2004 UTC vs.
Revision 1856 by tim, Mon Dec 6 04:49:53 2004 UTC

# Line 30 | Line 30 | namespace oopse {
30   #include "types/QuarticBendType.hpp"
31   #include "types/PolynomialBendType.hpp"
32   #include "UseTheForce/ForceField.hpp"
33 + #include "utils/NumericConstant.hpp"
34   namespace oopse {
35  
36   BendTypesSectionParser::BendTypesSectionParser() {
# Line 58 | Line 59 | void BendTypesSectionParser::parseLine(ForceField& ff,
59      std::string at2 = tokenizer.nextToken();
60      std::string at3 = tokenizer.nextToken();
61      BendTypeEnum bt = getBendTypeEnum(tokenizer.nextToken());
62 <    double theta0 = tokenizer.nextTokenAsDouble();
62 >    double theta0 = tokenizer.nextTokenAsDouble() / 180.0 * NumericConstant::PI; //convert to rad
63      nTokens -= 5;
64  
65      //switch is a maintain nightmare

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines