Go to the source code of this file.
|  | 
| module | mod_multigrid_coupling | 
|  | Module to couple the octree-mg library to AMRVAC. This file uses the VACPP preprocessor, but its use is kept to a minimum. 
 | 
|  | 
|  | 
| subroutine | mod_multigrid_coupling::mg_setup_multigrid () | 
|  | Setup multigrid for usage. 
 | 
|  | 
| subroutine | mod_multigrid_coupling::mg_copy_boundary_conditions (mg, iw) | 
|  | Set multigrid boundary conditions for the solution according to variable iw. 
 | 
|  | 
| subroutine | mod_multigrid_coupling::mg_update_refinement (n_coarsen, n_refine) | 
|  | If the grid has changed, rebuild the full multigrid tree. 
 | 
|  | 
| subroutine | mod_multigrid_coupling::mg_copy_to_tree (iw_from, iw_to, restrict, restrict_gc, factor, state_from) | 
|  | Copy a variable to the multigrid tree, including a layer of ghost cells. 
 | 
|  | 
| subroutine | mod_multigrid_coupling::mg_copy_from_tree (iw_from, iw_to, state_to) | 
|  | Copy a variable from the multigrid tree. 
 | 
|  | 
| subroutine | mod_multigrid_coupling::mg_copy_from_tree_gc (iw_from, iw_to, state_to) | 
|  | Copy from multigrid tree with one layer of ghost cells. Corner ghost cells are not used/set. 
 | 
|  | 
| subroutine | mod_multigrid_coupling::mg_tree_from_amrvac (mg) | 
|  | Generate a multigrid tree that includes the amrvac tree, but also contains coarser grid levels. A number of checks has already been performed in mg_setup_multigrid, so we don't repeat these checks here. 
 | 
|  |