| 152 | } |
| 153 | |
| 154 | void |
| 155 | Pressure_Constraint::setPdot(double pdot) |
| 156 | { |
| 157 | if (pval != 0) { |
| 158 | pval[1] = pdot; |
| 159 | return; |
| 160 | } |
| 161 | |
| 162 | Node* pnode = this->getPressureNode(); |
| 163 | if (pnode == 0) return; |
| 164 | const Vector& accel = pnode->getAccel(); |
| 165 | Vector newaccel(accel); |
| 166 | newaccel.Zero(); |
| 167 | newaccel(0) = pdot; |
| 168 | pnode->setTrialAccel(newaccel); |
| 169 | pnode->commitState(); |
| 170 | } |
| 171 | |
| 172 | double |
| 173 | Pressure_Constraint::getPressure(int last) |
nothing calls this directly
no test coverage detected