add some defaults values
This commit is contained in:
		
							parent
							
								
									f16d6e6163
								
							
						
					
					
						commit
						0c43b4231c
					
				@ -9,12 +9,13 @@ module realfield
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
type massbody
 | 
					type massbody
 | 
				
			||||||
  real                  :: posx, posy
 | 
					  real                  :: posx, posy
 | 
				
			||||||
  real                  :: mass
 | 
					  real                  :: mass          = 1.0
 | 
				
			||||||
  integer               :: serial
 | 
					  integer               :: serial        = 666
 | 
				
			||||||
end type
 | 
					end type
 | 
				
			||||||
 | 
					
 | 
				
			||||||
!-----------------------------------------------------------------------
 | 
					!-----------------------------------------------------------------------
 | 
				
			||||||
contains
 | 
					contains
 | 
				
			||||||
 | 
					!-----------------------------------------------------------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function compute_gravity(ix, iy, body)
 | 
					function compute_gravity(ix, iy, body)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user