anchor.diff:  
           ! Read in output table (if it exists) and set up.
   
  +        ! output = {
  +        !    filename = filename,
  +        !    reprint_sys = true/false,
  +        ! }
  +
  +        ! In/Out:
  +        !    lua_state: flu/Lua state to which the HANDE API is added.
  +        ! In:
  +        !    opts: handle for the table containing the output table.
  +        ! Out:
  +        !    output_in: output_in_t object contianing the input options
  +        !       describing output files.
  +
           use flu_binding, only: flu_State
           use aot_table_module, only: aot_exists, aot_table_open, aot_table_close, aot_get_val
   
  
positive.code: 
      end subroutine init_output_unit
  
      subroutine end_output_unit(io_unit)
  
          ! Close calculation output file with the date and time.
  
          use report, only: write_date_time_close
  
          integer, intent(in) :: io_unit
          integer :: date_values(8)
  
          call date_and_time(VALUES=date_values)
  
          call write_date_time_close(io_unit, date_values)
  
      end subroutine end_output_unit
  
  
negative.code:                             qmc_state_out)
          end if
  
          call end_output_unit(output_in%out_filename, io_unit)
  
          call push_qmc_state(lua_state, qmc_state_out)
          nresult = 1
  