00001 subroutine IO_output_poisson_test_3D
00002 use phys_constant, only : long
00003 use def_metric, only : alph, psi
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 use grid_parameter, only : nrg, ntg, npg, nrf, ntf, npf
00011 implicit none
00012 integer :: ir, it, ip
00013
00014
00015 open(12,file='rnsflu_3D.las',status='unknown')
00016 write(12,'(5i5)') nrf, ntf, npf
00017 do ip = 0, npf
00018 do it = 0, ntf
00019 do ir = 0, nrf
00020 write(12,'(1p,6e20.12)') emd(ir,it,ip), rs(it,ip)
00021 end do
00022 end do
00023 end do
00024 write(12,'(1p,6e20.12)') ome, ber, radi, dis
00025 close(12)
00026
00027
00028 open(13,file='rnsgra_3D.las',status='unknown')
00029 write(13,'(5i5)') nrg, ntg, npg
00030 do ip = 0, npg
00031 do it = 0, ntg
00032 do ir = 0, nrg
00033 write(13,'(1p,6e20.12)') psi(ir,it,ip), &
00034 & alph(ir,it,ip)
00035 end do
00036 end do
00037 end do
00038 write(13,'(1p,6e20.12)') ome, ber, radi, dis
00039 close(13)
00040
00041
00042 open(14,file='rnsgrids_3D.las',status='unknown')
00043 write(14,'(5i5)') nrg, ntg, npg
00044 do ir = 0, nrg
00045 write(14,'(1p,6e20.12)') rg(ir)
00046 end do
00047 do it = 0, ntg
00048 write(14,'(1p,6e20.12)') thg(it)
00049 end do
00050 do ip = 0, npg
00051 write(14,'(1p,6e20.12)') phig(ip)
00052 end do
00053 close(14)
00054
00055 end subroutine IO_output_poisson_test_3D