Neko-TOP
A portable framework for high-order spectral element flow toplogy optimization.
Loading...
Searching...
No Matches
adjoint_fluid_fctry.f90
Go to the documentation of this file.
1
34
!
36
module
adjoint_fluid_fctry
37
use
adjoint_fluid_scheme,
only
:
adjoint_fluid_scheme_t
38
use
adjoint_fluid_pnpn
,
only
:
adjoint_fluid_pnpn_t
39
use
utils,
only
: neko_type_error
40
implicit none
41
private
42
43
public
::
adjoint_fluid_scheme_factory
44
45
! List of all possible types created by the factory routine
46
character(len=20)
:: KNOWN_TYPES(1) = [character(len=20) :: &
47
"pnpn"
]
48
49
contains
50
52
subroutine
adjoint_fluid_scheme_factory
(object, type_name)
53
class
(
adjoint_fluid_scheme_t
),
intent(inout)
,
allocatable
:: object
54
character(len=*)
,
intent(in)
:: type_name
55
56
select case
(trim(type_name))
57
case
(
'pnpn'
)
58
allocate
(
adjoint_fluid_pnpn_t
::object)
59
case default
60
call
neko_type_error(
"adjoint fluid scheme"
, type_name, known_types)
61
end select
62
63
end subroutine
adjoint_fluid_scheme_factory
64
65
end module
adjoint_fluid_fctry
adjoint_fluid_fctry
Factory for all adjoint fluid schemes.
Definition
adjoint_fluid_fctry.f90:36
adjoint_fluid_fctry::adjoint_fluid_scheme_factory
subroutine, public adjoint_fluid_scheme_factory(object, type_name)
Initialise a adjoint fluid scheme.
Definition
adjoint_fluid_fctry.f90:53
adjoint_fluid_pnpn
Adjoint Pn/Pn formulation.
Definition
adjoint_fluid_pnpn.f90:36
adjoint_fluid_pnpn::adjoint_fluid_pnpn_t
Definition
adjoint_fluid_pnpn.f90:105
adjoint_fluid_scheme::adjoint_fluid_scheme_t
Base type of all fluid formulations.
Definition
adjoint_fluid_scheme.f90:64
sources
adjoint
adjoint_fluid_fctry.f90
Generated by
1.9.8