Actually a lot of code using this WP approach. Many of them choose _ * _ a benign internal function. But I think there is a โsimplerโ way. It should use the default precision without specifying any kind of keyword and use the compiler flag to select the default precision.
Pro - this method is simpler if you do not need accurate precision control for each variable. Con is something that will depend heavily on compiler flags, which differ for each compiler or may even be unavailable.
For gfortran, there are more flags -freal4-real8 or -freal4-real16 to advance each explicitly set lower precision to higher precision.
source share