Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(sujun) | :: | this | ||||
integer, | intent(in) | :: | length_x | |||
integer, | intent(in) | :: | length_y | |||
integer, | intent(in), | optional | :: | length_z |
function calc_nsites_sujun(this, length_x, length_y, length_z) result(n_sites)
class(sujun) :: this
integer, intent(in) :: length_x, length_y
integer, intent(in), optional :: length_z
integer :: n_sites
unused_var(this)
unused_var(length_x)
unused_var(length_y)
if (present(length_z)) then
unused_var(length_z)
end if
n_sites = 10
end function calc_nsites_sujun