Yes, that seems logical. But what is the efficient way to enable and disable the debug print statements? Preprocessor directives?
But I still don’t understand how writing to /dev/null can be slower than an actual file. Is it because of the absence of output buffering for non-regular files? Or are you saying in general irrespective of gfortran.