title: NetCDF NF90_PUT_VAR returns error status -51 and the file is empty
body: <p>I want to write the data of a 3D variable calculated by Fortran routines into a NetCDF file.
  I have written the code to write the variable data but it is creating an empty NetCDF file after the execution.</p>
  
  <pre><code>stat = NF90_CREATE( '/home/sachin/output.nc', NF90_CLOBBER, ncid_user)
  
  stat = NF90_DEF_DIM( ncid_user, i, NF90_UNLIMITED, i_id )
  stat = NF90_DEF_DIM( ncid_user, j, NF90_UNLIMITED, j_id )
  stat = NF90_DEF_DIM( ncid_user, k, NF90_UNLIMITED, k_id )
  
      e_id=(/i_id,j_id,k_id/)     
  
  stat = NF90_DEF_VAR( ncid_user, ene, NF90_INT, e_id, ev_id )
  
  
  stat1 = NF90_OPEN('/home/sachin/output.nc', NF90_WRITE, ncid_user)
  
  stat1 = NF90_PUT_VAR(ncid_user, ev_id, start = (/ 1,1,1 /), count = (/ 10,10,0 /), stride = (/ 10,10,0 /) )
  </code></pre>
  
  <p>When I am printing <code>stat1</code> variable, it is printing <code>-51</code> as the return value of the <code>NF90_PUT_VAR</code> function.</p>