00001 subroutine IO_output_surface
00002 use phys_constant, only : long
00003 use def_matter, only : rs
00004 use coordinate_grav_theta, only : thg
00005 use coordinate_grav_phi, only : phig
00006 use grid_parameter, only : ntf, npf
00007 implicit none
00008 integer :: it, ip
00009
00010
00011 open(12,file='rnssurface.dat',status='unknown')
00012 do ip = 0, npf
00013 do it = 0, ntf
00014 write(12,'(1p,6e20.12)') thg(it), phig(ip), rs(it,ip)
00015 end do
00016 end do
00017 close(12)
00018
00019 end subroutine IO_output_surface