Truong,
I am trying to compile the code using the PGI 18.7 compilers and I'm running into an error. I use pgfortran as the compiler and get the following output:
make
pgfortran -c mod_vector_algebra.f90
pgfortran -c mod_read_gmsh.f90
pgfortran -c mod_point_util.f90
pgfortran -c mod_cell_2D.f90
pgfortran -c mod_detect_nearest_neighbor.f90
PGF90-S-0155-detect_neighbor is use associated and cannot be redeclared (mod_detect_nearest_neighbor.f90: 7)
0 inform, 0 warnings, 1 severes, 0 fatal for detect_neighbor
make: *** [mod_detect_nearest_neighbor.o] Error 2
It looks like mod_cell_2D.f90 and mod_detect_nearest_neighbor.f90 both have subroutines "detect_neighbor":
grep detect_neighbor *.f90
mod_cell_2D.f90: procedure :: find_neighbor => detect_neighbor
mod_cell_2D.f90: subroutine detect_neighbor(this)
mod_detect_nearest_neighbor.f90: subroutine detect_neighbor
Is this a bug in the code?
Thank you!
Jeff Layton