33submodule(
filter) filter_fctry
40 character(len=20) :: FILTER_KNOWN_TYPES(2) = [character(len=20) :: &
50 module subroutine filter_factory(object, type_name, json, coef)
51 class(filter_t),
allocatable,
intent(inout) :: object
52 character(len=*),
intent(in) :: type_name
53 type(coef_t),
intent(in) :: coef
54 type(json_file),
intent(inout) :: json
55 character(len=:),
allocatable :: type_string
57 if (
allocated(object))
then
59 else if (trim(type_name) .eq.
'elementwise')
then
61 else if (trim(type_name) .eq.
'PDE')
then
68 call object%init(json, coef)
69 end subroutine filter_factory
71end submodule filter_fctry
Implements elementwise_filter_t.
Filter to be applied to a scalar field.
character(:) function, allocatable, public concat_string_array(array, sep, prepend)
Concatenate an array of strings into one string with array items separated by spaces.
subroutine, public neko_type_error(base_type, wrong_type, known_types)
Reports an error allocating a type for a particular base pointer class.
Implements the elementwise filter for SEM.
A PDE based filter mapping $\rho \mapsto \tilde{\rho}$, see Lazarov & O. Sigmund 2010,...