setupMod Module

This file sets up some simulations variables and assigns the geometry for the simulation.


Uses


Subroutines

private subroutine alloc_array(nxg, nyg, nzg)

subroutine allocates allocatable arrays

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: nxg

grid size

integer, intent(in) :: nyg

grid size

integer, intent(in) :: nzg

grid size

private subroutine create_directory(name, flag, appendname, newline)

create directories if they don't exist

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: name
logical, intent(in) :: flag
character(len=*), intent(in) :: appendname
logical, intent(in), optional :: newline

public subroutine dealloc_array()

deallocate data arrays

Arguments

None

public subroutine directory()

subroutine defines vars to hold paths to various folders

Arguments

None

public subroutine setup_simulation(sdfarray, dict)

Read in parameters Setup up various simulation parameters and routines

Arguments

Type IntentOptional Attributes Name
type(sdf), intent(out), allocatable :: sdfarray(:)

output array of geometry

type(toml_table), intent(inout), optional :: dict

dictionary used to store metadata

private subroutine zarray()

zero data arrays

Arguments

None