modify initial condition
subroutine modify_IC use mod_usr_methods, only: usr_init_one_grid use mod_global_parameters use mod_geometry, only: sync_positions_host use mod_comm_lib, only: mpistop integer :: iigrid, igrid ! usr_init_one_grid reads ps(igrid)%x on the host call sync_positions_host() do iigrid=1,igridstail; igrid=igrids(iigrid); block=>ps(igrid) dxlevel(1)=rnode(rpdx1_,igrid);dxlevel(2)=rnode(rpdx2_,igrid) dxlevel(3)=rnode(rpdx3_,igrid); if (.not. associated(usr_init_one_grid)) then call mpistop("usr_init_one_grid not defined") else call usr_init_one_grid(ixGlo1,ixGlo2,ixGlo3,ixGhi1,ixGhi2,ixGhi3,& ixMlo1,ixMlo2,ixMlo3,ixMhi1,ixMhi2,ixMhi3,ps(igrid)%w,& ps(igrid)%x) end if ! 1:nwgc only - analytic extras past nwgc stay as read_snapshot and ! alloc_node left them (see initial_condition) end do end subroutine modify_IC