anchor.diff:      enddo
   elseif (string.eq.'append') then
       ! Write locked/unlocked, fault slip, old model results to log file
  -    write(29,*) 'Iteration ',it,' Temperature ',temp,' Objective ',obj
  +    write(29,*) 'Iteration ',it,' Temperature ',temp,' Objective ',obj,' isAccepted ',isAccepted
       do i = 1,n
           write(29,*) model_current(i),model_proposed(i)
       enddo
  
positive.code:     enddo
  elseif (string.eq.'append') then
      ! Write locked/unlocked, fault slip, old model results to log file
      write(29,*) 'Iteration ',it,' Temperature ',temp,' Objective ',obj
      do i = 1,n
          write(29,*) model_current(i),model_proposed(i)
      enddo
  
negative.code:     enddo
  elseif (string.eq.'append') then
      ! Write locked/unlocked, fault slip, old model results to log file
      write(29,*) 'Iteration ',it,' Temperature ',temp,' Objective ',obj,' isAccepted ',isAccepted
      do i = 1,n
          write(29,*) model_current(i),model_proposed(i)
      enddo
  