add some defaults values
This commit is contained in:
父節點
f16d6e6163
當前提交
0c43b4231c
@ -9,12 +9,13 @@ module realfield
|
||||
|
||||
type massbody
|
||||
real :: posx, posy
|
||||
real :: mass
|
||||
integer :: serial
|
||||
real :: mass = 1.0
|
||||
integer :: serial = 666
|
||||
end type
|
||||
|
||||
!-----------------------------------------------------------------------
|
||||
contains
|
||||
!-----------------------------------------------------------------------
|
||||
|
||||
function compute_gravity(ix, iy, body)
|
||||
|
||||
|
載入中…
新增問題並參考
Block a user