65 type(
field_t),
pointer,
intent(in) :: f
66 type(
coef_t),
target,
intent(in) :: coef
67 type(
user_t),
target,
intent(in) :: user
68 character(len=*),
intent(in) :: scheme_name
72 call rhs_fields%init(1)
73 call rhs_fields%assign(1, f)
75 call this%init_base(rhs_fields, coef,
user, scheme_name)
87 class(
source_term_t),
allocatable,
intent(inout) :: source_term
89 type(
coef_t),
intent(in) :: coef
90 type(
user_t),
intent(in) :: user
91 character(len=*),
intent(in) :: scheme_name
97 call source_term%init_from_components(rhs_fields, coef, &
98 user%source_term, scheme_name)
Implements the scalar_source_term_t type.
subroutine scalar_init_user_source(source_term, rhs_fields, coef, user, scheme_name)
Initialize the user source term.
subroutine scalar_source_term_init(this, f, coef, user, scheme_name)
Constructor.
Implements the source_term_handler_t type.
Implements the source_term_t type and a wrapper source_term_wrapper_t.
Interfaces for user interaction with NEKO.
Implements the user_source_term_t type.
Coefficients defined on a given (mesh, ) tuple. Arrays use indices (i,j,k,e): element e,...
field_list_t, To be able to group fields together
Wrapper contaning and executing the scalar source terms.
Base abstract type for source terms.
Abstract class for handling source terms.
A type collecting all the overridable user routines and flag to suppress type injection from custom m...
A source term wrapping the user source term routine. Stores fields that are passed to the user routin...