Skip to content

Commit

Permalink
modified initializer list
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshv24 committed Nov 1, 2024
1 parent 8ada41a commit b888afb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/hydrodynamics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,17 @@ Coriolis::Coriolis(
double Ndr)
: mass(mass),
moments(Eigen::Vector3d(Ixx, Iyy, Izz).asDiagonal().toDenseMatrix()),
added_mass_coeff(Eigen::Vector6d(Xdu, Ydv, Zdw, Kdp, Mdq, Ndr))
added_mass_coeff(Eigen::Vector6d(Xdu, Ydv, Zdw, Kdp, Mdq, Ndr)),
center_of_gravity(Eigen::Vector3d::Zero())
{
}

Coriolis::Coriolis(double mass, const Eigen::Vector3d & moments, Eigen::Vector6d added_mass)
: mass(mass),
moments(moments.asDiagonal().toDenseMatrix()),
added_mass_coeff(std::move(added_mass))
added_mass_coeff(std::move(added_mass)),
center_of_gravity(Eigen::Vector3d::Zero())
{
center_of_gravity = Eigen::Vector3d::Zero();
}

Coriolis::Coriolis(
Expand Down

0 comments on commit b888afb

Please sign in to comment.