22
NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

Embed Size (px)

Citation preview

Page 1: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

NCEP ESMF GFS Global Spectral Forecast Model

Weiyu Yang, Mike Young

and Joe Sela

ESMF Community Meeting

MIT, Cambridge, MA

July 21, 2005

Page 2: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

• The NCEP ESMF GFS global spectral forecast system is the ESMF version of the current NCEP operational GFS system which started its operational run on May 31, 2005.

• The detailed GFS documentation is at: http://www.emc.ncep.noaa.gov/modelinfo/index.html

The Version of the NCEP ESMF GFS System

Page 3: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

• Use the latest ESMF software version, ESMF - 2.1.1.

• The outputs of the ESMF GFS system is identical to the results of the original GFS system.

Page 4: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

Structure of the NCEP ESMF GFS System

• This system uses the ESMF superstructure for its top levels. It uses the ESMF Virtual Machine (VM), Grid Component, Set Service, Grid, DELayout, ESMF interface States and Internal State.

• It uses three ESMF Infrastructure utilities, Config, Time Manager and Log Error.

Page 5: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

Superstructure of the NCEP ESMF GFS System

• Use ESMF VM with default 1-1 DELayout.• ESMF internal state contains all necessary

information to control the model running and to restart the run.

• Whole ESMF interface package which contains every possible GFS import and export fields as well as the diagnostic fields to link different applications.

Page 6: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

• Every single ESMF import and export variable field has its own switch flag, which can turn on or turn off, to flexible link to different applications. If just run the stand alone GFS, all flags may be turned off to save computational cost and storage.

Page 7: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

• Since ESMF has no standard interface state yet for the spectral coefficient fields, I use the regular FORTRAN array ESMF interface to present the spectral coefficient array to create the spectral interface state. All ESMF interface states are just used for linking out side applications. The internal parallel decomposition design is not changed to keep its original performance.

Page 8: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

• There are four different types of ESMF grid in the NCEP ESMF GFS system. They are for the single level spectral fields (such as Ps, Zs), the multiple level spectral fields(such as wind, T, q etc.), the Gaussian grid (such as all surface process data) and the date, time information. All ESMF interfaces use the default 1-D DELayout distribution.

Page 9: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

Three ESMF Infrastructure Utilities

• There are three ESMF Infrastructure Utilities in the NCEP ESMF GFS system:

1) ESMF Config;

2) ESMF Time Manager;

3) ESMF LogError.

Page 10: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

ESMF Config

• Use a single ESMF config file to input all three namelists of the original GFS model.

• Config file also contains all switch flags of the ESMF interface states.

• Every single Config parameter read-in is checked by the ESMF LogError to make sure all the config processes to be successful.

Page 11: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

ESMF Time Manager

• Use the ESMF Time Manager to manage the GFS model time related variables.

• Use ESMF Time and ESMF Time Interval variables to define the start time, end time, running duration length to control the GFS integrating. No explicit run do loop appears in the top level superstructure routines.

Page 12: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

ESMF LogError

• Use the default ESMF LogError.

• Multiple output files for each processor.

• Log output info set up at every important running point to help debug processes.

• Log Error check points are set up when calling every ESMF routine and many other subroutines.

Page 13: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

Steps to Create the NCEP ESMF GFS System

• Restructure the original GFS model to create a GFS ESMF – ready version.

• Develop the ESMF superstructure of the ESMF GFS system.

• One by one put in the ESMF infrastructure utilities.

Page 14: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

Restructure the Original GFS Model

• The first step to create the ESMF version of GFS model is restructuring of the original GFS to make it to be a component - subroutine level callable.

• Initialize, run and finalize are separated and define the internal state which contains all necessary information to restart the model run.

Page 15: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

• Move the I/O of the import state out of the Run routine, to prepare the ESMF interface states.

• Use a single main drive routine to control the model run.

• Use single executable for different resolution running. Original GFS needs to re-compile.

Page 16: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

• Removed the common blocks and use module for the future run concurrency requirement.

Page 17: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

After Restructuring

GFS_Applic

GFS_Init

GFS_Run

GFS_Finalize

Page 18: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

GFS_Init

Read Namelists

Allocate state fields

Define MPI decomposition

Read Initial Conditions

Compute constant fields

Page 19: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

GFS_Run

Digital Filter

Timestep loop

Page 20: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

GFS_Finalize

Deallocation MPI finalize

Page 21: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

Some ESMF Systems Required to Develop in NCEP

• ESMF version of the NCEP Data Analysis System.

• Create the coupler to link to NCEP data analysis system to make the operational cycling run.

• Create the coupler to link the ESMF GFS model with GFDL MOM-4 Ocean Model.

• Create the concurrent run version of the NCEP ESMF GFS system for NCEP Ensemble operational forecasting.

Page 22: NCEP ESMF GFS Global Spectral Forecast Model Weiyu Yang, Mike Young and Joe Sela ESMF Community Meeting MIT, Cambridge, MA July 21, 2005

Final Goal of the ESMF in NCEP

• Make every single model, such as the surface process model, ocean model, regional forecast model, etc. to be the ESMF version.

• Combine all single NCEP ESMF model to create a whole concurrency run package for the NCEP operational run purpose.