title: assigning values to an integer array within a Fortran module
body: <p>I have a module in Fortran called QFoo. It defines a type QFooType. </p>
  
  <p>I want to initialize all the elements of integer array 'is_n' to 0 and want to do it within the module. Could someone help? Thank you! </p>
  
  <pre><code>  module QFoo
        type QFooType              
            integer::i              
            integer, dimension(50) :: is_n                         
        end type QFooType
  
       !-----------
       ! I know the following code is wrong
       ! but I want to initialize all the is_n elements to 0
       !-----------
       ! do i = 1, 50
       !    is_n(i) = 0
       ! enddo
       !-----------
    end module QFoo
  </code></pre>