5 use json_module,
only : json_file
26 type(json_file),
intent(inout) :: json
28 type(
coef_t),
target,
intent(in) :: coef
29 character(len=*),
intent(in) :: variable_name
33 call this%init_base(fields, coef, 0.0_rp, huge(0.0_rp))
51 call register_source_term(
'source_term_template', allocator)
Source term factory. Both constructs and initializes the object.
integer, parameter, public rp
Global precision used in computations.
Template for a user-defined source term.
subroutine source_term_template_init(this, json, fields, coef, variable_name)
subroutine, public source_term_template_register_types()
subroutine source_term_template_compute(this, time)
subroutine source_term_template_free(this)
subroutine source_term_template_allocate(obj)
Implements the source_term_t type and a wrapper source_term_wrapper_t.
Module with things related to the simulation time.
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
Base abstract type for source terms.
A struct that contains all info about the time, expand as needed.