write_theta_grid_config Subroutine

private subroutine write_theta_grid_config(self, unit)

Writes out a namelist representing the current state of the config object

Type Bound

theta_grid_config_type

Arguments

Type IntentOptional Attributes Name
class(theta_grid_config_type), intent(in) :: self
integer, intent(in), optional :: unit

Contents


Source Code

  subroutine write_theta_grid_config(self, unit)
    implicit none
    class(theta_grid_config_type), intent(in) :: self
    integer, intent(in) , optional:: unit
    integer :: unit_internal

    unit_internal = 6 ! @todo -- get stdout from file_utils
    if (present(unit)) then
       unit_internal = unit
    endif

    call self%write_namelist_header(unit_internal)
    call self%write_key_val("cvdriftknob", self%cvdriftknob, unit_internal)
    call self%write_key_val("equilibrium_option", self%equilibrium_option, unit_internal)
    call self%write_key_val("gb_to_cv", self%gb_to_cv, unit_internal)
    call self%write_key_val("gbdriftknob", self%gbdriftknob, unit_internal)
    call self%write_namelist_footer(unit_internal)
  end subroutine write_theta_grid_config