| 55 |  | namespace oopse { | 
| 56 |  | /** | 
| 57 |  | * @class ForceManager ForceManager.hpp "brains/ForceManager.hpp" | 
| 58 | < | * ForceManager is responsible for calculating the short range interactions (c++) and | 
| 59 | < | * long range interactions(fortran). If fortran side is not setup before the force calculation, | 
| 60 | < | * call SimInfo's update function to settle it down. | 
| 61 | < | * @note the reason we delay fortran side's setup is that some applications (Dump2XYZ etc.) | 
| 62 | < | * may not need force calculation, why bother? | 
| 58 | > | * ForceManager is responsible for calculating the short range | 
| 59 | > | * interactions (C++) and long range interactions (Fortran). If the | 
| 60 | > | * Fortran side is not set up before the force calculation, call | 
| 61 | > | * SimInfo's update function to settle it down. | 
| 62 | > | * | 
| 63 | > | * @note the reason we delay fortran side's setup is that some | 
| 64 | > | * applications (Dump2XYZ etc.) may not need force calculation, so why | 
| 65 | > | * bother? | 
| 66 |  | */ | 
| 67 |  | class ForceManager { | 
| 68 |  |  | 
| 71 |  |  | 
| 72 |  | virtual ~ForceManager() {} | 
| 73 |  |  | 
| 74 | < | //public virtual function should be avoided | 
| 75 | < | /**@todo need refactory */ | 
| 74 | > | // public virtual functions should be avoided | 
| 75 | > | /**@todo needs refactoring */ | 
| 76 |  | virtual void calcForces(bool needPotential, bool needStress); | 
| 77 |  |  | 
| 78 |  | virtual void init() {} | 
| 84 |  |  | 
| 85 |  | virtual void calcLongRangeInteraction(bool needPotential, bool needStress); | 
| 86 |  |  | 
| 87 | < | virtual void postCalculation(); | 
| 87 | > | virtual void postCalculation(bool needStress); | 
| 88 |  |  | 
| 89 |  | SimInfo * info_; | 
| 90 |  |  | 
| 91 |  | std::map<Bend*, BendDataSet> bendDataSets; | 
| 92 |  | std::map<Torsion*, TorsionDataSet> torsionDataSets; | 
| 93 | + | Mat3x3d tau; | 
| 94 |  |  | 
| 95 |  | }; | 
| 96 |  |  |