Before any run of SURFEX, you should set
export OMP_NUM_THREADS=1
preferentially in the file $HOME/.bash_profile (not to have to do it each time you open a new terminal) At installation, before to do ./configure: verify ARCH, VER_MPI, VER_OMP, OPTLEVEL, VER_CDF, VER_DRHOOK, VER_GRIBAPI, (...)