mod_initialize Module

This module handles the initialization of various components of amrvac


Uses

  • module~~mod_initialize~~UsesGraph module~mod_initialize mod_initialize module~mod_comm_lib mod_comm_lib module~mod_initialize->module~mod_comm_lib

Used by

  • module~~mod_initialize~~UsedByGraph module~mod_initialize mod_initialize proc~main main proc~main->module~mod_initialize

Variables

Type Visibility Attributes Name Initial
logical, private :: initialized_already = .false.

Subroutines

public subroutine initialize_amrvac()

Initialize amrvac: read par files and initialize variables

Arguments

None

private subroutine alloc_geometry(geo, ixGmin1, ixGmin2, ixGmin3, ixGmax1, ixGmax2, ixGmax3, ixGextmin1, ixGextmin2, ixGextmin3, ixGextmax1, ixGextmax2, ixGextmax3)

Allocate the cell metrics of all max_blocks blocks in one go. The ixGext range is the one over which dvolume and ds are known, the face areas start one cell lower than ixG in every direction.

Arguments

Type IntentOptional Attributes Name
type(geo_t), intent(inout) :: geo
integer, intent(in) :: ixGmin1
integer, intent(in) :: ixGmin2
integer, intent(in) :: ixGmin3
integer, intent(in) :: ixGmax1
integer, intent(in) :: ixGmax2
integer, intent(in) :: ixGmax3
integer, intent(in) :: ixGextmin1
integer, intent(in) :: ixGextmin2
integer, intent(in) :: ixGextmin3
integer, intent(in) :: ixGextmax1
integer, intent(in) :: ixGextmax2
integer, intent(in) :: ixGextmax3

private subroutine initialize_vars()

Initialize (and allocate) simulation and grid variables

Arguments

None

private subroutine set_geometry_index_ranges()

Set the index range over which the cell metrics are known. With an even number of ghost cells this is just the ghosted block; with an odd number (or a staggered grid) ghost-cell prolongation needs one extra layer.

Arguments

None