calc_nsites_tilted Function

private function calc_nsites_tilted(this, length_x, length_y, length_z) result(n_sites)

Type Bound

tilted

Arguments

Type IntentOptional Attributes Name
class(tilted) :: this
integer, intent(in) :: length_x
integer, intent(in) :: length_y
integer, intent(in), optional :: length_z

Return Value integer


Contents

Source Code


Source Code

    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