00001 subroutine IO_input_potential_test_3D
00002 use phys_constant, only : long, nnrg, nntg, nnpg
00003 use def_metric, only : alph, psi, bvxd, bvyd, bvzd
00004 use def_matter, only : emd, rs
00005 use def_matter_parameter, only : ome, ber, radi
00006 use coordinate_grav_r, only : rg
00007 use coordinate_grav_theta, only : thg
00008 use coordinate_grav_phi, only : phig
00009 implicit none
00010 integer :: ir, it, ip, nrtmp, nttmp, nptmp
00011 real(long) :: rgtmp(0:nnrg), thgtmp(0:nntg), phigtmp(0:nnpg)
00012
00013
00014
00015 open(13,file='rnsgra_3D.las',status='old')
00016 read(13,'(5i5)') nrtmp, nttmp, nptmp
00017 do ip = 0, nptmp
00018 do it = 0, nttmp
00019 do ir = 0, nrtmp
00020 read(13,'(1p,6e20.12)') psi(ir,it,ip), &
00021 & alph(ir,it,ip)
00022 end do
00023 end do
00024 end do
00025 read(13,'(1p,6e20.12)') ome, ber, radi
00026 close(13)
00027
00028
00029 open(14,file='rnsgrids_3D.las',status='old')
00030 read(14,'(5i5)') nrtmp, nttmp, nptmp
00031 do ir = 0, nrtmp
00032 read(14,'(1p,6e20.12)') rgtmp(ir)
00033 end do
00034 do it = 0, nttmp
00035 read(14,'(1p,6e20.12)') thgtmp(it)
00036 end do
00037 do ip = 0, nptmp
00038 read(14,'(1p,6e20.12)') phigtmp(ip)
00039 end do
00040 close(14)
00041
00042 end subroutine IO_input_potential_test_3D