title: Fortran module procedure outside module
body: <p>I found nothing in Google, so...</p>
  
  <p>I try to use all objected-oriented features of Fortran 90 and create module for some specific work (like class in C++). I have written something like this:</p>
  
  <pre><code>module test
  
  integer, PRIVATE :: dummy
  PUBLIC :: sub
  
  contains 
  
  subroutine sub()
  dummy = 1
  end subroutine sub
  
  end module test
  </code></pre>
  
  <p>But, I have about 10 such subroutines and it's very bad idea to place them all into one file. Is it possible to tell compiler, that <code>sub</code> is module subroutine, but place it in another file? Because, it looks like this code will be compiled only if I define body of <code>sub</code> there.</p>