Skip to content

Commit 48fcb96

Browse files
committed
Fix typo for eta interpolation
1 parent 234fcc7 commit 48fcb96

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wave_types.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ double IrregularWaves::ExcitationConvolution(int body, int dof, double time) {
582582
auto w1 = (t2 - t_tau) / (t2 - t1);
583583
auto w2 = 1.0 - w1;
584584
// weighted value
585-
auto eta_val = w1 * eta1 + w2 * eta2;
585+
eta_val = w1 * eta1 + w2 * eta2;
586586
} else {
587587
throw std::runtime_error("Excitation convolution: wrong tau value " + std::to_string(tau) +
588588
" not between " + std::to_string(t1) + " and " + std::to_string(t2) + ".");
@@ -621,4 +621,4 @@ std::string IrregularWaves::GetMeshFile() {
621621

622622
Eigen::Vector3<double> IrregularWaves::GetWaveMeshVelocity() {
623623
return Eigen::Vector3d(1.0, 0, 0);
624-
}
624+
}

0 commit comments

Comments
 (0)