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!
37 use adjoint_fluid_scheme, only: adjoint_fluid_scheme_t
39 use utils, only: neko_type_error
40 implicit none
41 private
42
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
49contains
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
65end module adjoint_fluid_fctry
Factory for all adjoint fluid schemes.
subroutine, public adjoint_fluid_scheme_factory(object, type_name)
Initialise a adjoint fluid scheme.
Adjoint Pn/Pn formulation.