boundary condtion such as ZOU/HE or Guo's right position at program code with fortran

I write a code of LBM with Fortran language, but placed position of boudary condition in code influnce the results. I wanted to question what position of boundary condition was proper such as zou/he or Guo’s or haly-way bounce back.