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