mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 01:46:15 +01:00
24ea24ff24
Also build a main program that uses the parent module.
19 lines
289 B
Fortran
19 lines
289 B
Fortran
program submain
|
|
use parent
|
|
|
|
implicit none
|
|
|
|
type(parent_type) :: a,b
|
|
real :: dist, weight
|
|
|
|
call init(a, 1.0, 2.0)
|
|
call init(b, 10.0, 12.0)
|
|
|
|
call harmonize(a)
|
|
weight = parent_weight(b)
|
|
write(*,*) weight
|
|
dist = parent_distance(a, b)
|
|
write(*,*) dist
|
|
|
|
end program submain
|