ROMS
Loading...
Searching...
No Matches
tl_post_initial_mod Module Reference

Functions/Subroutines

subroutine, public tl_post_initial (ng, model)
 

Function/Subroutine Documentation

◆ tl_post_initial()

subroutine, public tl_post_initial_mod::tl_post_initial ( integer, intent(in) ng,
integer, intent(in) model )

Definition at line 43 of file tl_post_initial.F.

44!***********************************************************************
45!
46! Imported variable declarations.
47!
48 integer, intent(in) :: ng, model
49!
50! Local variable declarations.
51!
52 integer :: tile
53!
54!-----------------------------------------------------------------------
55! Initialize free-surface and compute initial level thicknesses and
56! depths. Here we need nonlinear 'Zt_avg1' and 'Hz' to compute initial
57! 'tl_ubar' and 'tl_vbar'.
58!-----------------------------------------------------------------------
59!
60 DO tile=first_tile(ng),last_tile(ng),+1
61 CALL set_zeta_timeavg (ng, tile, inlm)
62 CALL set_depth (ng, tile, inlm)
63 CALL tl_ini_zeta (ng, tile, model)
64 CALL tl_set_depth (ng, tile, model)
65 END DO
66!$OMP BARRIER
67!
68!-----------------------------------------------------------------------
69! Initialize other state variables.
70!-----------------------------------------------------------------------
71!
72 DO tile=last_tile(ng),first_tile(ng),-1
73 CALL tl_ini_fields (ng, tile, model)
74 END DO
75!$OMP BARRIER
76
77# ifdef NESTING
78!
79!-----------------------------------------------------------------------
80! Extract donor grid initial data at contact points and store it in
81! REFINED structure so it can be used for the space-time interpolation.
82!-----------------------------------------------------------------------
83!
84 IF (refinedgrid(ng)) THEN
85 CALL tl_nesting (ng, model, ngetd)
86 END IF
87# endif
88!
89 RETURN

References mod_parallel::first_tile, mod_param::inlm, mod_parallel::last_tile, mod_scalars::refinedgrid, set_depth_mod::set_depth(), ini_fields_mod::set_zeta_timeavg(), tl_ini_fields_mod::tl_ini_fields(), tl_ini_fields_mod::tl_ini_zeta(), and tl_set_depth_mod::tl_set_depth().

Referenced by tl_main3d(), and roms_kernel_mod::tlm_initial().

Here is the call graph for this function:
Here is the caller graph for this function: