34submodule(
design) design_factory_mod
35 use json_utils,
only: json_get
36 use utils,
only: neko_type_error
45 character(len=25),
parameter :: KNOWN_TYPES(2) = [ character(len=25) :: &
60 module subroutine design_factory(object, parameters,
simulation)
61 class(design_t),
allocatable,
intent(inout) :: object
62 type(json_file),
intent(inout) :: parameters
63 type(simulation_t),
intent(inout),
optional :: simulation
64 character(len=:),
allocatable :: type
66 if (
allocated(object))
then
71 call json_get(parameters,
"optimization.design.type", type)
72 select case (trim(type))
79 call neko_type_error(
"design",
type, KNOWN_TYPES)
83 call object%init_from_json_sim(parameters,
simulation)
85 call object%init_from_json(parameters)
87 end subroutine design_factory
89end submodule design_factory_mod
Implements the steady_problem_t type.
A topology optimization design variable.
A topology optimization design variable.