| 188 |
|
hydroTensor *= PhysicalConstants::viscoConvert; |
| 189 |
|
Mat3x3d S; |
| 190 |
|
CholeskyDecomposition(hydroTensor, S); |
| 191 |
< |
|
| 191 |
> |
|
| 192 |
|
Vector3d extPressure = -unitNormal * (targetPressure_ * thisArea) / |
| 193 |
|
PhysicalConstants::energyConvert; |
| 194 |
|
|
| 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 |
|
} |