Write a namelist based on current values
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | unit |
subroutine wnml_ballstab(unit)
implicit none
integer, intent(in) :: unit
!Header
write(unit,'()')
write(unit,'("&",A)') trim(adjustl(namelist_name))
!Values
write(unit,'(" make_salpha = ",L1)') make_salpha
write(unit,'(" n_shat = ",I0)') n_shat
if(n_shat.gt.1) then
write(unit,'(" shat_min = ",F12.5)') shat_min
write(unit,'(" shat_max = ",F12.5)') shat_max
endif
write(unit,'(" n_beta = ",I0)') n_beta
!Footer
write(unit,'("/")')
end subroutine wnml_ballstab