"maps_is_running" is problematic for mpimmaps

Hi. When I started a calculation using mpimmaps, I noticed that there were always error messages like "Maps is already running in this directory. To override this error, type rm maps_is_running" in the log file. The strange thing is that even I run the same calculation again, the number of lines of these warning messages is different.

After looking at the source codes, it is found that although only the root process creates the map_is_running file, every process checks out if there exists this file. The error messages are printed out if the file exists and this depend on how fast the file is created.

My question is: Can I just remove the above check in the mmaps.cc (mmaps.c++) to solve this problem as follows?

 if (MyMPIobj.file_exists(MAPS_IS_RUNNING)) {
ERRORQUIT("Maps is already running in this directory. To override this error, type rm " MAPS_IS_RUNNING);

}

–>

 if (MyMPIobj.file_exists(MAPS_IS_RUNNING)) {

}

Slved by changing the compiler option. MPICXX=mpicxx -qopenmp has to be changed to MPICXX=mpicxx -DATAT_MPI.

Correct: The -DATAT_MPI turns on the mpi-specific portions of the code.