Skip to content

Commit

Permalink
Update Particle.f95
Browse files Browse the repository at this point in the history
  • Loading branch information
NLarsen15 committed Aug 9, 2024
1 parent 806b26c commit 09e15d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OTSO/Library/Particle.f95
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ subroutine CreateParticle(StartPosition, Rigidity, Date, Atomic, Anti, mode)

if (model(1) /= 4) then
call CoordinateTransform("GSM", "GEO", year, day, secondTotal, Velocity, VelocityGEO)
ELSE
VelocityGEO = Velocity
end if

call Vector_Geo2Local(VelocityGEO, StartPosition(2), StartPosition(3), LocalVector)
Expand All @@ -98,6 +100,8 @@ subroutine CreateParticle(StartPosition, Rigidity, Date, Atomic, Anti, mode)

if (model(1) /= 4) then
call CoordinateTransform("GEO", "GSM", year, day, secondTotal, GEOVelocity, Velocity)
ELSE
Velocity = GEOVelocity
end if

w = (velocity(1)*velocity(1) + velocity(2)*velocity(2) + velocity(3)*velocity(3))**(0.5)
Expand Down

0 comments on commit 09e15d1

Please sign in to comment.