patched this useless (when called from SPECFEM) routine to avoid compilation problems on MAC OS