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

Functions/Subroutines

subroutine, public ad_post_initial (ng, model)
 

Function/Subroutine Documentation

◆ ad_post_initial()

subroutine, public ad_post_initial_mod::ad_post_initial ( integer, intent(in) ng,
integer, intent(in) model )

Definition at line 43 of file ad_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# ifdef NESTING
55!
56!-----------------------------------------------------------------------
57! Extract donor grid initial data at contact points and store it in
58! REFINED structure so it can be used for the space-time interpolation.
59!-----------------------------------------------------------------------
60!
61 IF (refinedgrid(ng)) THEN
62 CALL ad_nesting (ng, model, ngetd)
63 END IF
64# endif
65!
66!-----------------------------------------------------------------------
67! Initialize other state variables.
68!-----------------------------------------------------------------------
69!
70 DO tile=last_tile(ng),first_tile(ng),-1
71 CALL ad_ini_fields (ng, tile, model)
72 END DO
73!$OMP BARRIER
74!
75!-----------------------------------------------------------------------
76! Initialize free-surface and compute initial level thicknesses and
77! depths. Here we need nonlinear 'Zt_avg1' and 'Hz' to compute initial
78! 'ad_ubar' and 'ad_vbar'.
79!-----------------------------------------------------------------------
80!
81 DO tile=first_tile(ng),last_tile(ng),+1
82 CALL set_zeta_timeavg (ng, tile, inlm)
83 CALL set_depth (ng, tile, inlm)
84 CALL ad_set_depth (ng, tile, model)
85 CALL ad_ini_zeta (ng, tile, model)
86 END DO
87!$OMP BARRIER
88!
89 RETURN

References ad_ini_fields_mod::ad_ini_fields(), ad_ini_fields_mod::ad_ini_zeta(), ad_set_depth_mod::ad_set_depth(), mod_parallel::first_tile, mod_param::inlm, mod_parallel::last_tile, mod_scalars::refinedgrid, set_depth_mod::set_depth(), and ini_fields_mod::set_zeta_timeavg().

Referenced by ad_main3d().

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