7 use json_module,
only: json_file
8 use utils,
only: neko_error
9 use json_utils_ext,
only: json_read_file
11 use mpi_f08,
only: mpi_init
16 type(json_file) :: parameters
17 character(len=256) :: parameter_file
23 type(simulation_t) :: sim
25 class(design_t),
allocatable :: des
27 type(problem_t) :: prob
29 class(optimizer_t),
allocatable :: opt
39 argc = command_argument_count()
40 if (argc .lt. 1)
call neko_error(
'Missing parameter file')
41 call get_command_argument(1, parameter_file)
44 parameters = json_read_file(trim(parameter_file))
49 call sim%init(parameters)
51 call prob%init(parameters, des, sim)
57 call opt%run(prob, des, sim)
67 if (
allocated(des))
deallocate(des)
68 if (
allocated(opt))
deallocate(opt)
Factory function for the design object.
Factory function for the optimizer.
Module for handling the optimization problem.
Implements the steady_problem_t type.
Abstract optimizer class.
The abstract problem type.