title: Difference between write(*,*) and write(6,*) in Fortran
body: <p>I know this may sound like a stupid question: is there any difference between </p>
  
  <pre><code>write(*,*)
  </code></pre>
  
  <p>and </p>
  
  <pre><code>write(6,*)
  </code></pre>
  
  <p>?
  I am running a complicated code on the supercomputer in my institute which outputs a data file via a unit number different than 6, and apparently the Fortran code compiled with the ONLY difference being the above code gives me a different data file (i.e., data do not match).</p>
  
  <p>I know the <code>(*,*)</code> format goes to standard output, while the <code>(6,*)</code> renders on screen, however I am really confused by why this has any effect on my actual data. Any ideas about how this works would be appreciated!</p>