ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/integrators/LangevinHullForceManager.cpp
(Generate patch)

Comparing branches/development/src/integrators/LangevinHullForceManager.cpp (file contents):
Revision 1665 by gezelter, Tue Nov 22 20:38:56 2011 UTC vs.
Revision 1760 by gezelter, Thu Jun 21 19:26:46 2012 UTC

# Line 188 | Line 188 | namespace OpenMD {
188        hydroTensor *= PhysicalConstants::viscoConvert;
189        Mat3x3d S;
190        CholeskyDecomposition(hydroTensor, S);
191 <      
191 >
192        Vector3d extPressure = -unitNormal * (targetPressure_ * thisArea) /
193          PhysicalConstants::energyConvert;
194  
# Line 200 | Line 200 | namespace OpenMD {
200        // Apply triangle force to stuntdouble vertices
201        for (vertex = vertexSDs.begin(); vertex != vertexSDs.end(); ++vertex){
202          if ((*vertex) != NULL){
203 <          Vector3d vertexForce = langevinForce / 3.0;
203 >          Vector3d vertexForce = langevinForce / RealType(3.0);
204            (*vertex)->addFrc(vertexForce);          
205          }  
206        }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines