A very quick post... I have just found out the Fortran 90 syntax for the equivalent of the switch command in C or case in Bash.
selectcase(var)
case(a)
print*, 'var=', a
case(b)
print*, 'var=', b
end select
A very quick post... I have just found out the Fortran 90 syntax for the equivalent of the switch command in C or case in Bash.
selectcase(var)
case(a)
print*, 'var=', a
case(b)
print*, 'var=', b
end select
Posted by Ontureño at 09:32 0 comments
Labels: Fortran