Many thanks to Mark. When "--enable-threads" is omited,the compilation seems to be fine but "mdrun" can not run in parallel,e.g. trying to run on 6 nodes: grompp -np 6 ..... mpirun -np 6 .... Fatal error: run input file md.tpr was made for 6 nodes,while mdrun_d expected it to be for 1 nodes