un commit pour montrer aux gens
This commit is contained in:
@@ -27,11 +27,12 @@ function compute_gravity(fx, fy, body)
|
||||
rx = fx - body%posx
|
||||
ry = fy - body%posy
|
||||
dist = sqrt( (rx*rx) + (ry*ry) )
|
||||
if (dist .LT. 4.50) then
|
||||
write (0, *) "dist too small ", dist
|
||||
if (dist .LT. 0.11) then
|
||||
! write (0, *) "dist too small ", dist
|
||||
compute_gravity = 0e0
|
||||
else
|
||||
compute_gravity = body%mass / (dist ** 2)
|
||||
endif
|
||||
compute_gravity = body%mass / (dist ** 2)
|
||||
|
||||
end function
|
||||
|
||||
@@ -63,7 +64,6 @@ subroutine compute_a_field(field, moon)
|
||||
|
||||
end subroutine
|
||||
!-----------------------------------------------------------------------
|
||||
|
||||
!-----------------------------------------------------------------------
|
||||
|
||||
end module
|
||||
|
||||
Reference in New Issue
Block a user