@@ -111,6 +111,7 @@ module function init_raffle_generator( &
111111 host , width , sigma , cutoff_min , cutoff_max ) &
112112 result(generator)
113113 ! ! Initialise an instance of the raffle generator.
114+ ! !
114115 ! ! Set up run-independent parameters.
115116 implicit none
116117
@@ -153,6 +154,8 @@ end function init_raffle_generator
153154! ###############################################################################
154155 subroutine set_host (this , host )
155156 ! ! Set the host structure.
157+ ! !
158+ ! ! This procedure sets the host structure for the raffle generator.
156159 implicit none
157160
158161 ! Arguments
@@ -180,6 +183,10 @@ end subroutine set_host
180183! ###############################################################################
181184 subroutine set_grid (this , grid , grid_spacing , grid_offset )
182185 ! ! Set the grid for the raffle generator.
186+ ! !
187+ ! ! This procedure sets the grid for the raffle generator. The grid is used
188+ ! ! to divide the host structure into bins along each axis on which
189+ ! ! atom placement viability will be evaluated
183190 implicit none
184191
185192 ! Arguments
@@ -240,6 +247,11 @@ end subroutine reset_grid
240247 subroutine generate (this , num_structures , &
241248 stoichiometry , method_probab , seed , verbose )
242249 ! ! Generate random structures.
250+ ! !
251+ ! ! This procedure generates random structures from the contained host
252+ ! ! structure and the stoichiometry argument. The number of structures to
253+ ! ! generate is specified by the num_structures argument.
254+ ! ! The ratio of placement methods to be sampled is defined by method_probab.
243255 implicit none
244256
245257 ! Arguments
0 commit comments