IO_input_initial_3D.f90

Go to the documentation of this file.
00001 subroutine IO_input_initial_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 ! --- Matter
00014   open(12,file='rnsflu_3D.ini',status='old')
00015   read(12,'(5i5)') nrtmp, nttmp, nptmp
00016   do ip = 0, nptmp
00017     do it = 0, nttmp
00018       do ir = 0, nrtmp
00019         read(12,'(1p,6e20.12)') emd(ir,it,ip), rs(it,ip)
00020       end do
00021     end do
00022   end do
00023   read(12,'(1p,6e20.12)') ome, ber, radi
00024   close(12)
00025 !
00026 ! --- Metric potentials.
00027   open(13,file='rnsgra_3D.ini',status='old')
00028   read(13,'(5i5)') nrtmp, nttmp, nptmp
00029   do ip = 0, nptmp
00030     do it = 0, nttmp
00031       do ir = 0, nrtmp
00032         read(13,'(1p,6e20.12)')  psi(ir,it,ip), &
00033     &                           alph(ir,it,ip), &
00034     &                           bvxd(ir,it,ip), &
00035     &                           bvyd(ir,it,ip), &
00036     &                           bvzd(ir,it,ip)
00037       end do
00038     end do
00039   end do
00040   read(13,'(1p,6e20.12)') ome, ber, radi
00041   close(13)
00042 !
00043 ! --- Coordinate grids.
00044   open(14,file='rnsgrids_3D.ini',status='old')
00045   read(14,'(5i5)') nrtmp, nttmp, nptmp
00046   do ir = 0, nrtmp
00047     read(14,'(1p,6e20.12)') rgtmp(ir)
00048   end do
00049   do it = 0, nttmp
00050     read(14,'(1p,6e20.12)') thgtmp(it)
00051   end do
00052   do ip = 0, nptmp
00053     read(14,'(1p,6e20.12)') phigtmp(ip)
00054   end do
00055   close(14)
00056 !
00057 end subroutine IO_input_initial_3D

Generated on 27 Oct 2011 for Cocal by  doxygen 1.6.1