Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Another variable that needed to be set to integer due to ifx rules on…
Browse files Browse the repository at this point in the history
… do concurrent
  • Loading branch information
daminton committed May 18, 2023
1 parent 9d78839 commit 862888f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/collision/collision_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ module subroutine collision_util_get_energy_and_momentum(self, nbody_system, par
class(base_parameters), intent(inout) :: param !! Current Swiftest run configuration parameters
character(len=*), intent(in) :: phase !! One of "before" or "after", indicating which phase of the calculation this needs to be done
! Internals
integer(I4B) :: i, phase_val
integer(I4B) :: i, phase_val, nfrag

select case(phase)
case("before")
Expand All @@ -166,7 +166,8 @@ module subroutine collision_util_get_energy_and_momentum(self, nbody_system, par
class is (swiftest_nbody_system)
select type(param)
class is (swiftest_parameters)
associate(fragments => self%fragments, impactors => self%impactors, nfrag => self%fragments%nbody, pl => nbody_system%pl, cb => nbody_system%cb)
associate(fragments => self%fragments, impactors => self%impactors, pl => nbody_system%pl, cb => nbody_system%cb)
nfrag = self%fragments%nbody
if (phase_val == 1) then
do concurrent(i = 1:2)
impactors%ke_orbit(i) = 0.5_DP * impactors%mass(i) * dot_product(impactors%vc(:,i), impactors%vc(:,i))
Expand Down

0 comments on commit 862888f

Please sign in to comment.