17#if defined ADJUST_BOUNDARY || defined ADJUST_STFLUX || \
18 defined adjust_wstress
46#if defined SSH_TIDES || defined UV_TIDES
64 integer,
allocatable ::
knew(:)
65 integer,
allocatable ::
krhs(:)
66 integer,
allocatable ::
kstp(:)
69 integer,
allocatable ::
nnew(:)
70 integer,
allocatable ::
nrhs(:)
71 integer,
allocatable ::
nstp(:)
76 integer,
allocatable ::
nf(:)
77 integer,
allocatable ::
nfp1(:)
78 integer,
allocatable ::
nfm3(:)
79 integer,
allocatable ::
nfm2(:)
80 integer,
allocatable ::
nfm1(:)
86 integer,
allocatable :: linew(:)
87 integer,
allocatable :: liold(:)
88 integer,
allocatable :: liunw(:)
89 integer,
allocatable :: liuol(:)
90 integer,
allocatable :: lienw(:)
91 integer,
allocatable :: lieol(:)
96 integer,
allocatable ::
lbinp(:)
97 integer,
allocatable ::
lbout(:)
100#if defined ADJUST_BOUNDARY || defined ADJUST_STFLUX || \
101 defined adjust_wstress
106 integer,
allocatable ::
lnew(:)
107 integer,
allocatable ::
lold(:)
109#if defined SSH_TIDES || defined UV_TIDES
110 integer,
allocatable ::
ntc(:)
126 integer,
intent(in) :: ngrids
133 IF (.not.
allocated(
knew))
THEN
134 allocate (
knew(ngrids) )
138 IF (.not.
allocated(
krhs))
THEN
139 allocate (
krhs(ngrids) )
143 IF (.not.
allocated(
kstp))
THEN
144 allocate (
kstp(ngrids) )
148 IF (.not.
allocated(
nnew))
THEN
149 allocate (
nnew(ngrids) )
153 IF (.not.
allocated(
nrhs))
THEN
154 allocate (
nrhs(ngrids) )
158 IF (.not.
allocated(
nstp))
THEN
159 allocate (
nstp(ngrids) )
165 IF (.not.
allocated(
nf))
THEN
166 allocate (
nf(ngrids) )
170 IF (.not.
allocated(
nfp1))
THEN
171 allocate (
nfp1(ngrids) )
175 IF (.not.
allocated(
nfm3))
THEN
176 allocate (
nfm3(ngrids) )
180 IF (.not.
allocated(
nfm2))
THEN
181 allocate (
nfm2(ngrids) )
185 IF (.not.
allocated(
nfm1))
THEN
186 allocate (
nfm1(ngrids) )
193 IF (.not.
allocated(linew))
THEN
194 allocate ( linew(ngrids) )
198 IF (.not.
allocated(liold))
THEN
199 allocate ( liold(ngrids) )
203 IF (.not.
allocated(liunw))
THEN
204 allocate ( liunw(ngrids) )
208 IF (.not.
allocated(liuol))
THEN
209 allocate ( liuol(ngrids) )
213 IF (.not.
allocated(lienw))
THEN
214 allocate ( lienw(ngrids) )
218 IF (.not.
allocated(lieol))
THEN
219 allocate ( lieol(ngrids) )
225#ifdef ADJUST_BOUNDARY
227 IF (.not.
allocated(
lbinp))
THEN
228 allocate (
lbinp(ngrids) )
232 IF (.not.
allocated(
lbout))
THEN
233 allocate (
lbout(ngrids) )
238#if defined ADJUST_BOUNDARY || defined ADJUST_STFLUX || \
239 defined adjust_wstress
241 IF (.not.
allocated(
lfinp))
THEN
242 allocate (
lfinp(ngrids) )
246 IF (.not.
allocated(
lfout))
THEN
247 allocate (
lfout(ngrids) )
252 IF (.not.
allocated(
lnew))
THEN
253 allocate (
lnew(ngrids) )
257 IF (.not.
allocated(
lold))
THEN
258 allocate (
lold(ngrids) )
262#if defined SSH_TIDES || defined UV_TIDES
263 IF (.not.
allocated(
ntc))
THEN
264 allocate (
ntc(ngrids) )
285 IF (
allocated(
knew))
deallocate (
knew )
287 IF (
allocated(
krhs))
deallocate (
krhs )
289 IF (
allocated(
kstp))
deallocate (
kstp )
291 IF (
allocated(
nnew))
deallocate (
nnew )
293 IF (
allocated(
nrhs))
deallocate (
nrhs )
295 IF (
allocated(
nstp))
deallocate (
nstp )
298 IF (
allocated(
nf))
deallocate (
nf )
300 IF (
allocated(
nfp1))
deallocate (
nfp1 )
302 IF (
allocated(
nfm3))
deallocate (
nfm3 )
304 IF (
allocated(
nfm2))
deallocate (
nfm2 )
306 IF (
allocated(
nfm1))
deallocate (
nfm1 )
310#ifdef ADJUST_BOUNDARY
316#if defined ADJUST_BOUNDARY || defined ADJUST_STFLUX || \
317 defined adjust_wstress
323 IF (
allocated(
lnew))
deallocate (
lnew )
325 IF (
allocated(
lold))
deallocate (
lold )
327#if defined SSH_TIDES || defined UV_TIDES
328 IF (
allocated(
ntc))
deallocate (
ntc )
integer, dimension(:), allocatable lold
integer, dimension(:), allocatable nfm2
integer, dimension(:), allocatable lbout
integer, dimension(:), allocatable kstp
integer, dimension(:), allocatable knew
integer, dimension(:), allocatable nfm1
integer, dimension(:), allocatable nrhs
integer, dimension(:), allocatable lfinp
integer, dimension(:), allocatable lbinp
integer, dimension(:), allocatable nf
subroutine, public deallocate_stepping
integer, dimension(:), allocatable nfm3
integer, dimension(:), allocatable ntc
integer, dimension(:), allocatable nnew
integer, dimension(:), allocatable nfp1
integer, dimension(:), allocatable lnew
subroutine, public allocate_stepping(ngrids)
integer, dimension(:), allocatable krhs
integer, dimension(:), allocatable lfout
integer, dimension(:), allocatable nstp