anchor.diff:      end function lua_dealloc_qmc_state
   
       subroutine read_logging_in_t(lua_state, opts, logging_in)
  +
           ! Read in options associated with the logging table (only for debug builds).
   
           ! logging = {
  
positive.code:                            qmc_state_out)
          end if
  
          call end_output_unit(io_unit)
  
          ! Return qmc_state to the user.
          call push_qmc_state(lua_state, qmc_state_out)
  
negative.code: 
      end subroutine init_output_unit
  
      subroutine end_output_unit(filename, io_unit)
  
          ! Close calculation output file with the date and time.
  
          ! In:
          !   filename: filename calculation is writing to.
          !   io_unit: io unit to be closed.
  
          use report, only: write_date_time_close
          use calc, only: calc_type, get_calculation_string
  
          character(255), intent(in) :: filename
          integer, intent(in) :: io_unit
          integer :: date_values(8)
  
          if (filename /= 'stdout') then
              call date_and_time(VALUES=date_values)
  
              call write_date_time_close(io_unit, date_values)
  
              write (6,'(1X,"Finished writing ",a," calculation output to",1X,a)') trim(get_calculation_string(calc_type)), &
                                  trim(filename)
              write (6,'(1x)')
          end if
  
      end subroutine end_output_unit
  
  