FIXME : Add documentation
subroutine finish_theta_grid
use theta_grid_gridgen, only: finish_theta_grid_gridgen
use theta_grid_salpha, only: finish_theta_grid_salpha
use theta_grid_eik, only: finish_theta_grid_eik
use theta_grid_file, only: finish_theta_grid_file
use theta_grid_params, only: finish_theta_grid_params
implicit none
initialized = .false.
call finish_theta_grid_gridgen
call finish_theta_grid_salpha
call finish_theta_grid_eik
call finish_theta_grid_file
! This is now handled separately by gs2_init
!call finish_theta_grid_params
call deallocate_arrays
call theta_grid_config%reset()
end subroutine finish_theta_grid