Skip to content

Commit

Permalink
Fix order of operations
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiannucci committed Mar 18, 2024
1 parent 919b3bd commit a8039fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/waves.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ pub fn pt_mean(
}
}

let energy = spectral_density * (peak_period.powf(2.0) / 2.0 * PI);
let energy = spectral_density * (peak_period.powf(2.0) / (2.0 * PI));

// let wind_sea_fraction = sumew[ip] / sume[ip];

Expand Down

0 comments on commit a8039fd

Please sign in to comment.