Turbine set-up and tear-down shared by the cases that carry turbines
(wind_turbine and abl). This is the only place the iturbine switch
appears (at allocation time); downstream a case calls the polymorphic
turbine object with no branching.
Allocate the turbine model wind_turbine_nml selects, initialise it and register it for checkpointing
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(turbine_model_t), | intent(inout), | pointer | :: | turbine | ||
| type(wind_turbine_config_t), | intent(in) | :: | cfg | |||
| class(solver_t), | intent(in) | :: | solver | |||
| type(io_manager_t), | intent(inout) | :: | io_mgr |
Release a turbine model set up by init_turbine_model; a no-op when the case has none
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(turbine_model_t), | intent(inout), | pointer | :: | turbine | ||
| type(io_manager_t), | intent(inout) | :: | io_mgr |