!-------------------------------------- LICENCE BEGIN ------------------------------------
!Environment Canada - Atmospheric Science and Technology License/Disclaimer,
! version 3; Last Modified: May 7, 2008.
!This is free but copyrighted software; you can use/redistribute/modify it under the terms
!of the Environment Canada - Atmospheric Science and Technology License/Disclaimer
!version 3 or (at your option) any later version that should be found at:
!http://collaboration.cmc.ec.gc.ca/science/rpn.comm/license.html
!
!This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
!without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
!See the above mentioned License/Disclaimer for more details.
!You should have received a copy of the License/Disclaimer along with this software;
!if not, you can write to: EC-RPN COMM Group, 2121 TransCanada, suite 500, Dorval (Quebec),
!CANADA, H9P 1J3; or send e-mail to service.rpn@ec.gc.ca
!-------------------------------------- LICENCE END --------------------------------------
***s/r set_cn1 - initialization of the commons at level one
*
#include "model_macros_f.h"
*
subroutine set_cn1 1,8
*
implicit none
*
*author
* michel roch - rpn - june 1993
*
*revision
* v2_00 - Desgagne/Lee - initial MPI version (from setcn1 v1_03)
* v2_31 - Desgagne/Lee - introduce tracers, output of sliced tracers
* v3_11 - Gravel S. - modify for theoretical cases
* v3_21 - Lee V. - remove Tr2d
* v3_30 - Desgagne & Winger - call glb_restart
*
*object
* This subroutine initializes the commons containing the
* model variables
*
*arguments
* none
*
*implicits
#include "glb_ld.cdk"
#include "init.cdk"
#include "lun.cdk"
#include "rstr.cdk"
#include "schm.cdk"
*
**
integer i,dim,err
*
*-------------------------------------------------------------------
*
if (Lun_out.gt.0) write(Lun_out,2000)
*
*C Initialize the time-dependent variables comdecks
* -------------------------------------------------
call set_vt
( )
*
if (G_lam) call set_nest
( )
*
*C Initialize right hand sides comdeck
* -----------------------------------
call set_rhs
( )
*
*C Initialize the geophysical field comdeck
* ----------------------------------------
call set_geof
( )
*
*C Initialize digital filter variables comdecks
* --------------------------------------------
if ( Init_balgm_L .and. .not. Rstri_idon_L ) then
call set_vta
( )
endif
*
*C Initialize the comdeck for Crank-Nicholson procedure
* ----------------------------------------------------
call set_crni
( )
*
*C Initialize the global lists of names, keys
*C and pointers
* ------------------------------------------
call set_list
( )
*
*C Read global dynamic binary restart file
* ---------------------------------------
if (Rstri_rstn_L) call glb_restart
('R')
*
2000 format(
+/,'INITIALIZATION OF VIRTUAL MEMORY MANAGER S/R SET_CN1',
+/,'====================================================')
*
* ---------------------------------------------------------------
*
return
end