00001 subroutine modify_r0_excurve
00002 use phys_constant, only : long
00003 use grid_parameter, only : nrg, ntg, npg
00004 use def_metric, only : tfkij
00005 use def_metric_excurve_grid, only : tfkij_grid
00006 use coordinate_grav_r, only : rg
00007 implicit none
00008 real(long), external :: lagint_2nd
00009 real(long) :: x(2),y(2), v
00010 integer :: irg, itg, ipg, ia, ib
00011
00012 do ia = 1,3
00013 do ib = 1,3
00014 do ipg = 0,npg
00015 do itg = 0,ntg
00016 x(1) = rg(1)
00017 x(2) = rg(2)
00018 y(1) = tfkij_grid(1,itg,ipg,ia,ib)
00019 y(2) = tfkij_grid(2,itg,ipg,ia,ib)
00020 v = rg(0)
00021 tfkij_grid(0,itg,ipg,ia,ib) = lagint_2nd(x,y,v)
00022 end do
00023 end do
00024 end do
00025 end do
00026
00027 end subroutine modify_r0_excurve
00028