00001 subroutine reset_bh_boundary(char_bc)
00002   use grid_parameter, only : nrg, ntg, npg
00003   use def_metric, only : psi, bvxd, alph, bvyd
00004   implicit none
00005   character(len=1), intent(in) :: char_bc
00006 
00007 
00008 
00009   if (char_bc.eq.'d') then
00010     psi(0,0:ntg,0:npg) = bvxd(0,0:ntg,0:npg)
00011     alph(0,0:ntg,0:npg) = bvyd(0,0:ntg,0:npg)
00012   endif
00013   psi(nrg,0:ntg,0:npg) = bvxd(nrg,0:ntg,0:npg)  
00014   alph(nrg,0:ntg,0:npg) = bvyd(nrg,0:ntg,0:npg) 
00015 
00016 end subroutine reset_bh_boundary