Fix a bug in Wrf_model in serial build mode