create_binary_matrix Function

public function create_binary_matrix(p, L) result(binary_matrix)

Create a random, binary (logical) matrix, which can be used in percolation experiments.

Arguments

Type IntentOptional AttributesName
real(kind=dp), intent(in) :: p

Probability for each matrix element to be .true..

integer, intent(in) :: L

Return Value logical, dimension(:,:),allocatable

Randomly created matrix, where each element is .true. or .false. if a randomly generated number is smaller or greater than p.


Called by

proc~~create_binary_matrix~~CalledByGraph proc~create_binary_matrix create_binary_matrix proc~probability_distribution probability_distribution proc~probability_distribution->proc~create_binary_matrix proc~random_walkers random_walkers proc~random_walkers->proc~create_binary_matrix proc~cluster_number_density cluster_number_density proc~cluster_number_density->proc~create_binary_matrix

Contents

None