00001 subroutine reset_fluid_BNS
00002 use def_matter, only : emd, rs
00003 use def_matter_parameter, only : emdc
00004 use grid_parameter, only : nrf, ntf, npf, &
00005 & ntfeq, ntfxy, npfyzp, npfxzp, npfxzm, &
00006 & ratio, NS_shape, EQ_point, r_surf
00007 implicit none
00008 integer :: it, ip
00009
00010 rs(ntfeq,npfxzp) = 1.0d0
00011
00012
00013
00014
00015
00016
00017
00018 emd(0,0:ntf,0:npf) = emdc
00019
00020
00021
00022
00023
00024 emd(0:nrf,0:ntf,npf) = emd(0:nrf,0:ntf,0)
00025 rs(0:ntf,npf) = rs(0:ntf,0)
00026
00027
00028 do it = 0, ntf
00029 do ip = 0, npf
00030 if (rs(it,ip).gt.1.0d0) then
00031 rs(it,ip) = 1.0d0
00032 end if
00033 end do
00034 end do
00035
00036 end subroutine reset_fluid_BNS