00001 subroutine IO_output_solution_3D_WL
00002 use phys_constant, only : long
00003 use def_metric_hij, only : hxxd, hxyd, hxzd, hyyd, hyzd, hzzd
00004 use coordinate_grav_r, only : rg
00005 use coordinate_grav_theta, only : thg
00006 use coordinate_grav_phi, only : phig
00007 use grid_parameter, only : nrg, ntg, npg
00008 implicit none
00009 integer :: irg, itg, ipg
00010
00011
00012 open(13,file='rnsgra_hij_3D.las',status='unknown')
00013 write(13,'(5i5)') nrg, ntg, npg
00014 do ipg = 0, npg
00015 do itg = 0, ntg
00016 do irg = 0, nrg
00017 write(13,'(1p,6e20.12)') hxxd(irg,itg,ipg), &
00018 & hxyd(irg,itg,ipg), &
00019 & hxzd(irg,itg,ipg), &
00020 & hyyd(irg,itg,ipg), &
00021 & hyzd(irg,itg,ipg), &
00022 & hzzd(irg,itg,ipg)
00023 end do
00024 end do
00025 end do
00026 close(13)
00027
00028 end subroutine IO_output_solution_3D_WL