Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | version |
subroutine print_splash(version)
use utilities, only: colourise
character(len=*), intent(in) :: version
integer :: nlsp, nrsp
character(len=12) :: l1
character(len=14) :: l2, l4
character(len=16) :: l3
l1 = colourise("~~~", 'yellow')
l2 = colourise("~~~~~", 'green')
l3 = colourise("~~~~~~~", 'cyan')
l4 = colourise("~~~~~", 'blue')
nlsp = floor((49 - len(version)) / 2.)
nrsp = ceiling((49 - len(version)) / 2.)
write(*, "(A)") "", &
" + . . . . . . . . . . . . . . . . . . . . . . . . . . +", &
" . .", &
" . . //////// \\ \\ // || || || .", &
" . / \ \\ \\ \\ // || ||\\//|| .", &
" . /"//l1//"\ \\\\\\\ \\ //\\ // || || \/ || .", &
" . /"//l2//"\ // \\// \\// || || || .", &
" . (" //l3// ") /////// \\ \\ || || || .", &
" . \"//l4//"/ -------------------------------------- .", &
" . ----- Soil and Water Integrated Model .", &
" . .", &
" ."//repeat(" ", nlsp)//"* "//version//" *"//repeat(" ", nrsp)//".", &
" + . . . . . . . . . . . . . . . . . . . . . . . . . . +", ""
end subroutine print_splash