Deallocate all energy arrays.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(energy_fields_t), | intent(inout) | :: | energy |
subroutine finalize_energy(energy) type(energy_fields_t), intent(inout) :: energy if (allocated(energy%T)) deallocate(energy%T) if (allocated(energy%T_old)) deallocate(energy%T_old) if (allocated(energy%h)) deallocate(energy%h) if (allocated(energy%h_old)) deallocate(energy%h_old) if (allocated(energy%qrad)) deallocate(energy%qrad) if (allocated(energy%cp)) deallocate(energy%cp) if (allocated(energy%lambda)) deallocate(energy%lambda) if (allocated(energy%rho_thermo)) deallocate(energy%rho_thermo) energy%initialized = .false. end subroutine finalize_energy