Skip to content

Commit

Permalink
Update TPM.jl (#90)
Browse files Browse the repository at this point in the history
Change the order of the functions to calculate the energy flux. `mutual_shadowing!`, which changes the solar flux, should be placed between `update_flux_sun!` and `update_flux_scat_single!`.
  • Loading branch information
MasanoriKanamaru authored Oct 14, 2023
1 parent 08b6c92 commit 2f2c511
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/TPM.jl
Original file line number Diff line number Diff line change
Expand Up @@ -641,10 +641,9 @@ function run_TPM!(btpm::BinaryTPM, ephem, time_begin::Real, time_end::Real, face

## Update enegey flux
update_flux_sun!(btpm, r☉₁, r☉₂)
mutual_shadowing!(btpm, r☉₁, rₛ, R₂₁) # Mutual-shadowing (eclipse)
update_flux_scat_single!(btpm)
update_flux_rad_single!(btpm)

mutual_shadowing!(btpm, r☉₁, rₛ, R₂₁) # Mutual-shadowing (eclipse)
mutual_heating!(btpm, rₛ, R₂₁) # Mutual-heating

update_thermal_force!(btpm)
Expand Down

0 comments on commit 2f2c511

Please sign in to comment.