| 1087 | } // setInterpolatedVelocityVector |
| 1088 | |
| 1089 | void |
| 1090 | CIBMethod::getInterpolatedVelocity(Vec V, const double data_time, const double scale) |
| 1091 | { |
| 1092 | #if !defined(NDEBUG) |
| 1093 | TBOX_ASSERT(IBTK::rel_equal_eps(data_time, d_half_time)); |
| 1094 | #else |
| 1095 | NULL_USE(data_time); |
| 1096 | #endif |
| 1097 | |
| 1098 | const int struct_ln = getStructuresLevelNumber(); |
| 1099 | std::vector<Pointer<LData>>* U_half_data; |
| 1100 | getVelocityData(&U_half_data, d_half_time); |
| 1101 | VecCopy((*U_half_data)[struct_ln]->getVec(), V); |
| 1102 | VecScale(V, scale); |
| 1103 | |
| 1104 | return; |
| 1105 | } // getInterpolatedVelocity |
| 1106 | |
| 1107 | void |
| 1108 | CIBMethod::computeMobilityRegularization(Vec D, Vec L, const double scale) |
no test coverage detected