Skip to content

Commit

Permalink
Adjust energy values
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiannucci committed Mar 18, 2024
1 parent a8039fd commit 900c265
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 = sume[ip] * (peak_period.powf(2.0) / (2.0 * PI));

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

Expand Down

0 comments on commit 900c265

Please sign in to comment.