Skip to content

Commit 1a84ccb

Browse files
committed
Fix NoWave constructor and remove unused variable
Update NoWave() calls to match refactored wave class API; remove unused variable in SS fitter.
1 parent 7b5775d commit 1a84ccb

4 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/hydro/radiation/radiation_ss_fitter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ Eigen::VectorXd RadiationStateSpaceFitter::ReconstructKernel(
244244
return Eigen::VectorXd::Zero(num_samples);
245245
}
246246

247-
const int O = result.order;
248247
Eigen::VectorXd K(num_samples);
249248

250249
// K[k] = C * expm(A * dt * k) * B

src/hydro/runner/run_from_yaml.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,10 +671,9 @@ int RunHydroChronoFromYAML(int argc, char* argv[]) {
671671
system_info_lines.push_back(hydroc::cli::CreateAlignedLine("⚙️", "Constraints", std::to_string(system->GetLinks().size())));
672672
system_info_lines.push_back(hydroc::cli::CreateAlignedLine("⏱️", "Time Step", hydroc::FormatNumber(loop_dt, 4) + " s"));
673673

674-
// Calculate approximate DOF (6 * num_bodies - constraint equations)
674+
// Calculate approximate DOF (6 * num_bodies)
675675
int num_bodies = system->GetBodies().size();
676-
int num_constraints = system->GetLinks().size();
677-
int approx_dof = num_bodies * 6; // Rough estimate
676+
int approx_dof = num_bodies * 6;
678677
system_info_lines.push_back(hydroc::cli::CreateAlignedLine("🎯", "Est. Degrees of Freedom", std::to_string(approx_dof)));
679678

680679
hydroc::cli::ShowSectionBox("System Configuration", system_info_lines);

tests/regression/oswec/test_oswec_decay_ss.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ int main(int argc, char* argv[]) {
118118
revolute->Initialize(base_body, flap_body, ChFramed(ChVector3d(0.0, 0.0, -8.9), revoluteRot));
119119
system.AddLink(revolute);
120120

121-
auto default_dont_add_waves = std::make_shared<NoWave>(2);
121+
auto default_dont_add_waves = std::make_shared<NoWave>();
122122

123123
std::vector<std::shared_ptr<ChBody>> bodies;
124124
bodies.push_back(flap_body);

tests/regression/sphere/test_sphere_decay_ss.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ int main(int argc, char* argv[]) {
4646
sphereBody->SetMass(261.8e3);
4747
system.Add(sphereBody);
4848

49-
auto default_dont_add_waves = std::make_shared<NoWave>(1);
49+
auto default_dont_add_waves = std::make_shared<NoWave>();
5050

5151
std::vector<std::shared_ptr<ChBody>> bodies;
5252
bodies.push_back(sphereBody);

0 commit comments

Comments
 (0)