mod_source_ffhd Module

Module for handling split source terms (split from the fluxes)


Uses

  • module~~mod_source_ffhd~~UsesGraph module~mod_source_ffhd mod_source_ffhd mod_physics_vars mod_physics_vars module~mod_source_ffhd->mod_physics_vars module~mod_global_parameters mod_global_parameters module~mod_source_ffhd->module~mod_global_parameters module~mod_variables mod_variables module~mod_source_ffhd->module~mod_variables module~mod_global_parameters->module~mod_variables module~mod_basic_types mod_basic_types module~mod_global_parameters->module~mod_basic_types module~mod_connectivity mod_connectivity module~mod_global_parameters->module~mod_connectivity module~mod_constants mod_constants module~mod_global_parameters->module~mod_constants module~mod_physicaldata mod_physicaldata module~mod_global_parameters->module~mod_physicaldata mpi mpi module~mod_global_parameters->mpi module~mod_variables->module~mod_basic_types

Variables

Type Visibility Attributes Name Initial
integer, public :: sourcesplit = 0

How to apply dimensional splitting to the source terms, see defaulting to sfs

integer, public, parameter :: sourcesplit_sf = 1
integer, public, parameter :: sourcesplit_sfs = 0
integer, public, parameter :: sourcesplit_ssf = 2
integer, public, parameter :: sourcesplit_ssfss = 3

Subroutines

public subroutine add_split_source(prior)

Arguments

Type IntentOptional Attributes Name
logical, intent(in) :: prior

public subroutine addsource_compact(qdt, dtfactor, qtC, wCTprim1, wCTprim2, wCTprim3, qt, wnew, x, dx, qsourcesplit)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: qdt
real(kind=dp), intent(in) :: dtfactor
real(kind=dp), intent(in) :: qtC
real(kind=dp), intent(in) :: wCTprim1(nw_phys,3)
real(kind=dp), intent(in) :: wCTprim2(nw_phys,3)
real(kind=dp), intent(in) :: wCTprim3(nw_phys,3)
real(kind=dp), intent(in) :: qt
real(kind=dp), intent(inout) :: wnew(nw_phys)
real(kind=dp), intent(in) :: x(1:ndim)
real(kind=dp), intent(in) :: dx(1:ndim)
logical, intent(in) :: qsourcesplit

public subroutine addsource_local(qdt, dtfactor, qtC, wCT, wCTprim, qt, wnew, x, dr, qsourcesplit)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: qdt
real(kind=dp), intent(in) :: dtfactor
real(kind=dp), intent(in) :: qtC
real(kind=dp), intent(in) :: wCT(nw_phys)
real(kind=dp), intent(in) :: wCTprim(nw_phys)
real(kind=dp), intent(in) :: qt
real(kind=dp), intent(inout) :: wnew(nw_phys)
real(kind=dp), intent(in) :: x(1:ndim)
real(kind=dp), intent(in) :: dr(ndim)
logical, intent(in) :: qsourcesplit

public subroutine addsource_nonlocal(qdt, dtfactor, qtC, wCTprim, qt, wnew, x, dx, idir, qsourcesplit)

gradient of temperature:

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: qdt
real(kind=dp), intent(in) :: dtfactor
real(kind=dp), intent(in) :: qtC
real(kind=dp), intent(in) :: wCTprim(nw_phys,5)
real(kind=dp), intent(in) :: qt
real(kind=dp), intent(inout) :: wnew(nw_phys)
real(kind=dp), intent(in) :: x(1:ndim)
real(kind=dp), intent(in) :: dx(1:ndim)
integer, intent(in) :: idir
logical, intent(in) :: qsourcesplit

public pure subroutine to_primitive(u)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(inout) :: u(nw_phys)