| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mg_t), | intent(inout) | :: | mg | |||
| integer, | intent(in) | :: | lvl | |||
| integer, | intent(in) | :: | n_cycle |
Number of cycles to perform |
subroutine smooth_boxes(mg, lvl, n_cycle) type(mg_t), intent(inout) :: mg integer, intent(in) :: lvl integer, intent(in) :: n_cycle !< Number of cycles to perform integer :: n, i, id, nc nc = mg%box_size_lvl(lvl) do n = 1, n_cycle * mg%n_smoother_substeps call mg_timer_start(mg%timers(timer_smoother)) do i = 1, size(mg%lvls(lvl)%my_ids) id = mg%lvls(lvl)%my_ids(i) call mg%box_smoother(mg, id, nc, n) end do call mg_timer_end(mg%timers(timer_smoother)) call mg_timer_start(mg%timers(timer_smoother_gc)) call mg_fill_ghost_cells_lvl(mg, lvl, mg_iphi) call mg_timer_end(mg%timers(timer_smoother_gc)) end do end subroutine smooth_boxes