00001 subroutine IO_input_potential_test_3D_mpt(impt)
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 def_binary_parameter, only : dis
00007 use coordinate_grav_r, only : rg
00008 use coordinate_grav_theta, only : thg
00009 use coordinate_grav_phi, only : phig
00010 implicit none
00011 integer :: ir, it, ip, nrtmp, nttmp, nptmp
00012 integer :: impt
00013 real(long) :: rgtmp(0:nnrg), thgtmp(0:nntg), phigtmp(0:nnpg)
00014 character(len=1) :: np(5) = (/'1', '2','3', '4', '5'/)
00015
00016
00017
00018 open(13,file='rnsgra_3D_mpt'//np(impt)//'.las',status='old')
00019 read(13,'(5i5)') nrtmp, nttmp, nptmp
00020 do ip = 0, nptmp
00021 do it = 0, nttmp
00022 do ir = 0, nrtmp
00023 read(13,'(1p,6e20.12)') psi(ir,it,ip), &
00024 & alph(ir,it,ip)
00025 end do
00026 end do
00027 end do
00028 read(13,'(1p,6e20.12)') ome, ber, radi, dis
00029 close(13)
00030
00031
00032 open(14,file='rnsgrids_3D_mpt'//np(impt)//'.las',status='old')
00033 read(14,'(5i5)') nrtmp, nttmp, nptmp
00034 do ir = 0, nrtmp
00035 read(14,'(1p,6e20.12)') rgtmp(ir)
00036 end do
00037 do it = 0, nttmp
00038 read(14,'(1p,6e20.12)') thgtmp(it)
00039 end do
00040 do ip = 0, nptmp
00041 read(14,'(1p,6e20.12)') phigtmp(ip)
00042 end do
00043 close(14)
00044
00045 end subroutine IO_input_potential_test_3D_mpt