Skip to content

Commit

Permalink
Merge pull request #11 from simone-silvestri/ss/bugfix
Browse files Browse the repository at this point in the history
Bugfix in APE calculation
  • Loading branch information
simone-silvestri authored Jan 26, 2024
2 parents 1373935 + 0818cfd commit 2428226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Diagnostics/integrated_diagnostics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ function integral_kinetic_energy(u::FieldTimeSeries, v::FieldTimeSeries; stride
return energy
end

function integral_available_potential_energy(b::FieldTimeSeries; stride = 1, start_time = 1, end_time = length(u.times))
function integral_available_potential_energy(b::FieldTimeSeries; stride = 1, start_time = 1, end_time = length(b.times))
energy = Float64[]
vol = VolumeField(u.grid)
vol = VolumeField(b.grid)

for i in start_time:stride:end_time
@info "integrating index $i of $end_time"
Expand Down

0 comments on commit 2428226

Please sign in to comment.