r5152 | xinzhang | 2011-09-26 21:04:33 -0700 (Mon, 26 Sep 2011) | 3 lines
[wrffire.git] / wrfv2_fire / main / wrf.F
blob4de4c5ea43330967143a75fc3747eb234773d0d5
1 !WRF:DRIVER_LAYER:MAIN
4 PROGRAM wrf
6    USE module_wrf_top, only : wrf_init, wrf_dfi, wrf_run, wrf_finalize
8 !<DESCRIPTION>
9 ! Main program of WRF model.  Responsible for starting up the model, reading in (and
10 ! broadcasting for distributed memory) configuration data, defining and initializing
11 ! the top-level domain, either from initial or restart data, setting up time-keeping, and
12 ! then calling the <a href=integrate.html>integrate</a> routine to advance the domain
13 ! to the ending time of the simulation. After the integration is completed, the model
14 ! is properly shut down.
16 !</DESCRIPTION>
18    IMPLICIT NONE
20 #ifdef _OPENMP
21   CALL setfeenv()
22 #endif
24   ! Set up WRF model.  
25   CALL wrf_init
27   ! Run digital filter initialization if requested.
28   CALL wrf_dfi
30   ! WRF model time-stepping.  Calls integrate().  
31   CALL wrf_run
33   ! WRF model clean-up.  This calls MPI_FINALIZE() for DM parallel runs.  
34   CALL wrf_finalize
36 END PROGRAM wrf