61 character(len=20) :: AX_HELM_KNOWN_TYPES(7) = [character(len=20) :: &
65 "full_one_sided_svv", &
67 "full_factorized_svv", &
76 module subroutine ax_helm_allocator(object, type_name)
77 class(ax_t),
allocatable,
intent(inout) :: object
78 character(len=*),
intent(in) :: type_name
81 if (
allocated(object))
then
86 select case (trim(type_name))
97 case (
"standard_compr")
111 call neko_error(
"Full stress formulation is only available " // &
112 "on the CPU and device")
118 case (
"one_sided_svv",
"factorized_svv")
120 call neko_error(
"SVV is not available with the SX or " // &
124 call neko_error(
"SVV is only available on CPU, " // &
125 "CUDA, and HIP backends")
127 if (trim(type_name) .eq.
"factorized_svv")
then
133 if (trim(type_name) .eq.
"factorized_svv")
then
139 case (
"full_one_sided_svv",
"full_factorized_svv")
141 call neko_error(
"Full stress formulation is only available &
142 &on the CPU and device")
145 call neko_error(
"Full-stress SVV is only " // &
146 "available on CPU, CUDA, and HIP backends")
148 if (trim(type_name) .eq.
"full_factorized_svv")
then
154 if (trim(type_name) .eq.
"full_factorized_svv")
then
161 do i = 1, ax_helm_registry_size
162 if (trim(type_name) .eq. &
163 trim(ax_helm_registry(i)%type_name))
then
164 call ax_helm_registry(i)%allocator(object)
173 end subroutine ax_helm_allocator
180 module subroutine register_ax_helm(type_name, allocator)
181 character(len=*),
intent(in) :: type_name
182 procedure(ax_helm_allocate),
pointer,
intent(in) :: allocator
183 type(ax_helm_allocator_entry),
allocatable :: temp(:)
186 do i = 1,
size(ax_helm_known_types)
187 if (trim(type_name) .eq. trim(ax_helm_known_types(i)))
then
193 do i = 1, ax_helm_registry_size
194 if (trim(type_name) .eq. trim(ax_helm_registry(i)%type_name))
then
200 if (ax_helm_registry_size .eq. 0)
then
201 allocate(ax_helm_registry(1))
203 allocate(temp(ax_helm_registry_size + 1))
204 temp(1:ax_helm_registry_size) = ax_helm_registry
205 call move_alloc(temp, ax_helm_registry)
208 ax_helm_registry_size = ax_helm_registry_size + 1
209 ax_helm_registry(ax_helm_registry_size)%type_name = type_name
210 ax_helm_registry(ax_helm_registry_size)%allocator => allocator
211 end subroutine register_ax_helm
213end submodule ax_helm_fctry
CPU Helmholtz matrix-vector product on compressed geometric factors.
Device Helmholtz matrix-vector product on compressed geometric factors.
SX Helmholtz matrix-vector product on compressed geometric factors.
CPU implementation of the factorized SVV Helmholtz operator.
Device implementation of the factorized SVV Helmholtz operator.
CPU implementation of the factorized full-stress SVV Helmholtz operator.
Device implementation of the factorized full-stress SVV Helmholtz operator.
CPU implementation of the one-sided SVV Helmholtz operator.
CPU implementation of the full-stress one-sided SVV Helmholtz operator.
Device implementation of the full-stress one-sided SVV operator.
Defines a Matrix-vector product.
integer, parameter neko_bcknd_sx
integer, parameter neko_bcknd_hip
integer, parameter neko_bcknd_device
integer, parameter neko_bcknd_cuda
integer, parameter neko_bcknd_xsmm
Data and filter construction for spectral vanishing viscosity.
subroutine, public neko_type_registration_error(base_type, wrong_type, known)
subroutine, public neko_type_error(base_type, wrong_type, known_types)
Reports an error allocating a type for a particular base pointer class.
Matrix-vector product for a Helmholtz problem.
CPU matrix-vector product for a Helmholtz problem, reading the geometric factors from their compress...
Device matrix-vector product for a Helmholtz problem, reading the geometric factors from their compr...
SX matrix-vector product for a Helmholtz problem, reading the geometric factors from their compresse...
CPU matrix-vector product for a Helmholtz problem.
CPU matrix-vector product for a Helmholtz problem with full stress tensor.
CPU matrix-vector product for a factorized SVV Helmholtz problem.
Device matrix-vector product for a factorized SVV Helmholtz problem.
CPU matrix-vector product for a factorized full-stress SVV Helmholtz problem.
Device factorized full-stress SVV Helmholtz operator.
CPU one-sided SVV Helmholtz operator.
Device matrix-vector product for an SVV Helmholtz problem.
CPU matrix-vector product for a Helmholtz problem.
Device one-sided full-stress SVV Helmholtz operator.
Spectral vanishing viscosity configuration and coefficients.