Skip to content

Commit

Permalink
Merge pull request #614 from cgannonucm/dynamicalTimeUpdate
Browse files Browse the repository at this point in the history
fix: floating point exception in nodePropertyExtractorSatelliteDynamicalTime
  • Loading branch information
abensonca authored May 19, 2024
2 parents 1e63a6f + d75b746 commit 382632c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/nodes.property_extractor.satellite.dynamical_time.F90
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,11 @@ double precision function dynamicalTimeExtract(self,node,instance)
type (multiCounter ), intent(inout), optional :: instance
double precision :: radiusTidal, massTidal
!$GLC attributes unused :: instance

dynamicalTimeExtract =-1.0d0
radiusTidal =self%satelliteTidalStrippingRadius_%radius (node )
massTidal =self%galacticStructure_ %massEnclosed(node,radiusTidal)
if (radiusTidal <= 0.0d0) return
massTidal =self%galacticStructure_ %massEnclosed(node,radiusTidal)
if (massTidal <= 0.0d0) return
dynamicalTimeExtract =+sqrt( &
& +Pi **2 &
& /4.0d0 &
Expand Down

0 comments on commit 382632c

Please sign in to comment.