Neko-TOP
A portable framework for high-order spectral element flow toplogy optimization.
Loading...
Searching...
No Matches
neko_top_simcomps.f90
1
34
36submodule(neko_top) neko_top_simcomps
37 use simulation_component, only: simulation_component_t, &
38 simulation_component_allocate, register_simulation_component
39
40 ! Our user-defined simulation components
42
43contains
44
46 module subroutine register_simcomps()
47 procedure(simulation_component_allocate), pointer :: steady
48
49 ! Assign the pointers
50 steady => steady_simcomp_allocate
51
52 ! Register the simulation components
53 call register_simulation_component('steady', steady)
54 end subroutine register_simcomps
55
56 ! ========================================================================== !
57 ! Definitions of the simulation component allocators
58
60 subroutine steady_simcomp_allocate(obj)
61 class(simulation_component_t), allocatable, intent(inout) :: obj
62 allocate(steady_simcomp_t::obj)
63 end subroutine steady_simcomp_allocate
64
65end submodule neko_top_simcomps
Implements the steady_simcomp_t type.
The steady_simcomp_t type is a simulation component that terminates a simulation when the normed diff...