ROMS
Loading...
Searching...
No Matches
ana_sss.h
Go to the documentation of this file.
1!!
2 SUBROUTINE ana_sss (ng, tile, model)
3!
4!! git $Id$
5!!======================================================================
6!! Copyright (c) 2002-2025 The ROMS Group !
7!! Licensed under a MIT/X style license !
8!! See License_ROMS.md !
9!=======================================================================
10! !
11! This subroutine sets sea surface salinity SST (PSU) which is !
12! used for surface water flux correction. !
13! !
14!=======================================================================
15!
16 USE mod_param
17 USE mod_forces
18 USE mod_ncparam
19!
20! Imported variable declarations.
21!
22 integer, intent(in) :: ng, tile, model
23!
24! Local variable declarations.
25!
26 character (len=*), parameter :: MyFile = &
27 & __FILE__
28!
29#include "tile.h"
30!
31 CALL ana_sss_tile (ng, tile, model, &
32 & lbi, ubi, lbj, ubj, &
33 & imins, imaxs, jmins, jmaxs, &
34 & forces(ng) % sss)
35!
36! Set analytical header file name used.
37!
38#ifdef DISTRIBUTE
39 IF (lanafile) THEN
40#else
41 IF (lanafile.and.(tile.eq.0)) THEN
42#endif
43 ananame(29)=myfile
44 END IF
45!
46 RETURN
47 END SUBROUTINE ana_sss
48!
49!***********************************************************************
50 SUBROUTINE ana_sss_tile (ng, tile, model, &
51 & LBi, UBi, LBj, UBj, &
52 & IminS, ImaxS, JminS, JmaxS, &
53 & sss)
54!***********************************************************************
55!
56 USE mod_param
57 USE mod_scalars
58!
60#ifdef DISTRIBUTE
62#endif
63!
64! Imported variable declarations.
65!
66 integer, intent(in) :: ng, tile, model
67 integer, intent(in) :: LBi, UBi, LBj, UBj
68 integer, intent(in) :: IminS, ImaxS, JminS, JmaxS
69!
70#ifdef ASSUMED_SHAPE
71 real(r8), intent(out) :: sss(LBi:,LBj:)
72#else
73 real(r8), intent(out) :: sss(LBi:UBi,LBj:UBj)
74#endif
75!
76! Local variable declarations.
77!
78 integer :: i, j
79
80#include "set_bounds.h"
81!
82!-----------------------------------------------------------------------
83! Set sea surface salinity (PSU).
84!-----------------------------------------------------------------------
85!
86 DO j=jstrt,jendt
87 DO i=istrt,iendt
88 sss(i,j)=???
89 END DO
90 END DO
91!
92! Exchange boundary data.
93!
94 IF (ewperiodic(ng).or.nsperiodic(ng)) THEN
95 CALL exchange_r2d_tile (ng, tile, &
96 & lbi, ubi, lbj, ubj, &
97 & sss)
98 END IF
99
100#ifdef DISTRIBUTE
101 CALL mp_exchange2d (ng, tile, model, 1, &
102 & lbi, ubi, lbj, ubj, &
103 & nghostpoints, &
104 & ewperiodic(ng), nsperiodic(ng), &
105 & sss)
106#endif
107!
108 RETURN
109 END SUBROUTINE ana_sss_tile
subroutine ana_sss_tile(ng, tile, model, lbi, ubi, lbj, ubj, imins, imaxs, jmins, jmaxs, sss)
Definition ana_sss.h:54
subroutine ana_sss(ng, tile, model)
Definition ana_sss.h:3
subroutine exchange_r2d_tile(ng, tile, lbi, ubi, lbj, ubj, a)
type(t_forces), dimension(:), allocatable forces
Definition mod_forces.F:554
logical lanafile
character(len=256), dimension(39) ananame
integer nghostpoints
Definition mod_param.F:710
logical, dimension(:), allocatable ewperiodic
logical, dimension(:), allocatable nsperiodic
subroutine mp_exchange2d(ng, tile, model, nvar, lbi, ubi, lbj, ubj, nghost, ew_periodic, ns_periodic, a, b, c, d)