Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions star/private/eps_mdot.f90
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@ subroutine leak_control(nz, mass_flux, dm, mesh_intersects, ranges,&
end if
end do

! Deallocate arrays
deallocate(i_min, i_max, pf)
deallocate(j_min, j_max)

end subroutine leak_control


Expand Down Expand Up @@ -467,6 +471,9 @@ subroutine leak(nz, i_start, i_end, i_min, i_max, j_min, j_max, pf,&
i = i + direction
end do

! Deallocate array
deallocate(excess)

end subroutine leak

subroutine calculate_eps_mdot(s, dt, ierr)
Expand Down Expand Up @@ -700,6 +707,22 @@ subroutine calculate_eps_mdot(s, dt, ierr)
write(*,*) 'Err:', err, err / abs_err, err / delta_m, delta_m / s%m(1), abs_err, s%mdot_acoustic_surface*dt
end if

! Deallocate arrays
deallocate(prev_mesh_dm, dm, change_in_dm)
deallocate(mass_flux)
deallocate(mesh_intersects)
deallocate(ranges)
deallocate(density_weighted_flux)
deallocate(total_mass_through_cell)
deallocate(te)
deallocate(p_bar)
deallocate(rho_bar)
deallocate(te_bar)
deallocate(grad_r_sub_grad_a)
deallocate(thermal_energy)
deallocate(eps_mdot_per_total_mass)
deallocate(leak_frac)
deallocate(accumulated)

end subroutine calculate_eps_mdot

Expand Down
1 change: 1 addition & 0 deletions star/private/pulse_fgong.f90
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ subroutine get_fgong_data (id, &
deallocate(s%atm_structure)
end if

deallocate(k_a, k_b)
deallocate(dres_dxa)
deallocate(xa)

Expand Down
2 changes: 2 additions & 0 deletions star/private/pulse_gyre.f90
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ subroutine get_gyre_data (id, &
deallocate(s%atm_structure)
end if

deallocate(k_a, k_b)

return

contains
Expand Down
2 changes: 2 additions & 0 deletions star/private/pulse_osc.f90
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ subroutine get_osc_data (id, &
deallocate(s%atm_structure)
end if

deallocate(k_a, k_b)

return

contains
Expand Down
2 changes: 2 additions & 0 deletions star/private/pulse_saio.f90
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ subroutine get_saio_data (id, &
deallocate(s%atm_structure)
end if

deallocate(k_a, k_b)

return

contains
Expand Down