moving a subroutine
This commit is contained in:
parent
c45658e181
commit
15cb51c6bc
@ -60,20 +60,5 @@ program evolvopick
|
|||||||
enddo
|
enddo
|
||||||
|
|
||||||
!-----------------------------------------------------
|
!-----------------------------------------------------
|
||||||
contains
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
subroutine interp4dp (ina, inb, out, dpk)
|
|
||||||
double precision, dimension(4), intent(in) :: ina, inb
|
|
||||||
double precision, dimension(4), intent(out) :: out
|
|
||||||
double precision, intent(in) :: dpk
|
|
||||||
integer :: foo
|
|
||||||
|
|
||||||
do foo=1, 4
|
|
||||||
out(foo) = (ina(foo) * (1.0-dpk)) + (inb(foo) * (dpk))
|
|
||||||
enddo
|
|
||||||
|
|
||||||
end subroutine
|
|
||||||
|
|
||||||
end program evolvopick
|
end program evolvopick
|
||||||
|
@ -151,7 +151,18 @@ end subroutine lorentz_0
|
|||||||
!-----------------------------------------------------------
|
!-----------------------------------------------------------
|
||||||
! -- some support functions --
|
! -- some support functions --
|
||||||
!-----------------------------------------------------------
|
!-----------------------------------------------------------
|
||||||
|
! usage : evolvopick
|
||||||
|
subroutine interp4dp (ina, inb, out, dpk)
|
||||||
|
double precision, dimension(4), intent(in) :: ina, inb
|
||||||
|
double precision, dimension(4), intent(out) :: out
|
||||||
|
double precision, intent(in) :: dpk
|
||||||
|
integer :: foo
|
||||||
|
|
||||||
|
do foo=1, 4
|
||||||
|
out(foo) = (ina(foo) * (1.0-dpk)) + (inb(foo) * (dpk))
|
||||||
|
enddo
|
||||||
|
|
||||||
|
end subroutine
|
||||||
!-----------------------------------------------------------
|
!-----------------------------------------------------------
|
||||||
|
|
||||||
function dist0 (x, y)
|
function dist0 (x, y)
|
||||||
|
Loading…
Reference in New Issue
Block a user