00001 subroutine IO_output_solution_1D
00002 use phys_constant, only : long
00003 use def_metric, only : alph, psi
00004 use def_matter
00005 use def_matter_parameter, only : ber, radi
00006 use coordinate_grav_r, only : rg
00007 use grid_parameter, only : nrg, ntg, npg, nrf, ntf
00008 implicit none
00009 integer :: ir, it
00010
00011
00012 open(12,file='rnsflu_1D.las',status='unknown')
00013 write(12,'(5i5)') nrf
00014 do ir = 0, nrf
00015 write(12,'(1p,6e20.12)') rg(ir), emdg(ir, ntg, 0)
00016 end do
00017 write(12,'(1p,6e20.12)') ber, radi
00018 close(12)
00019 do it = 0, ntf
00020 write(6,*)rs(it,0), emd(nrf,it,0)
00021 end do
00022
00023
00024 open(13,file='rnsgra_1D.las',status='unknown')
00025 write(13,'(5i5)') nrg
00026 do ir = 0, nrg
00027 write(13,'(1p,6e20.12)') rg(ir), psi(ir, ntg, 0), &
00028 & alph(ir, ntg, 0), &
00029 & emdg(ir, ntg, 0)
00030 end do
00031 write(13,'(1p,6e20.12)') ber, radi
00032 close(13)
00033
00034 end subroutine IO_output_solution_1D