Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Knut Klingbeil
getm
Commits
327431ea
Commit
327431ea
authored
Nov 04, 2017
by
Knut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: latu,latv calculation for grid_type=1
parent
600f277a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
21 deletions
+17
-21
src/domain/domain.F90
src/domain/domain.F90
+17
-21
No files found.
src/domain/domain.F90
View file @
327431ea
...
...
@@ -449,42 +449,38 @@
if
(
have_lonlat
)
then
! latu and latv are only needed for active momentum points
do
j
=
jll
,
jhl
-1
do
j
=
jll
,
jhl
do
i
=
ill
,
ihl
-1
latu
(
i
,
j
)
=
_
HALF_
*
(
latc
(
i
,
j
)
+
latc
(
i
+1
,
j
)
)
end
do
end
do
if
(
au
(
i
,
j
)
.eq.
1
.or.
au
(
i
,
j
)
.eq.
2
)
then
latu
(
i
,
j
)
=
(
latc
(
i
,
j
)
+
latc
(
i
+1
,
j
+1
)
&
+
latc
(
i
+1
,
j
)
+
latc
(
i
,
j
+1
)
)
/
4
end
if
if
(
av
(
i
,
j
)
.eq.
1
.or.
av
(
i
,
j
)
.eq.
2
)
then
latv
(
i
,
j
)
=
(
latc
(
i
,
j
)
+
latc
(
i
+1
,
j
+1
)
&
+
latc
(
i
+1
,
j
)
+
latc
(
i
,
j
+1
)
)
/
4
end
if
do
j
=
jll
,
jhl
-1
do
i
=
ill
,
ihl
latv
(
i
,
j
)
=
_
HALF_
*
(
latc
(
i
,
j
)
+
latc
(
i
,
j
+1
)
)
end
do
end
do
! this is just a check and can be deleted if nobody experiences problems
! Note (KK): there should only be problems for periodic domains (mask=1)
! (the mask=2 condition is always wrong)
#if 1
if
(
joff
+
jhl
.eq.
jextr
)
then
if
(
joff
+
jhl
.eq.
jextr
)
then
! most northern subdomain
do
i
=
ill
,
ihl
if
(
a
u
(
i
,
jhl
)
.eq.
1
.or.
a
u
(
i
,
j
)
.eq.
2
)
then
lat
u
(
i
,
jhl
)
=
1000
LEVEL0
'x2uvc() - warning: lat
u
is set to illegal value'
if
(
a
v
(
i
,
jhl
)
.eq.
1
.or.
a
v
(
i
,
j
hl
)
.eq.
2
)
then
lat
v
(
i
,
jhl
)
=
1000
LEVEL0
'x2uvc() - warning: lat
v
is set to illegal value'
LEVEL0
'please report the problem on getm-users'
stop
end
if
end
do
end
if
if
(
ioff
+
ihl
.eq.
iextr
)
then
if
(
ioff
+
ihl
.eq.
iextr
)
then
! most eastern subdomain
do
j
=
jll
,
jhl
if
(
a
v
(
ihl
,
j
)
.eq.
1
.or.
a
v
(
i
,
j
)
.eq.
2
)
then
lat
v
(
i
,
j
hl
)
=
1000
LEVEL0
'x2uvc() - warning: lat
v
is set to illegal value'
if
(
a
u
(
ihl
,
j
)
.eq.
1
.or.
a
u
(
i
hl
,
j
)
.eq.
2
)
then
lat
u
(
ihl
,
j
)
=
1000
LEVEL0
'x2uvc() - warning: lat
u
is set to illegal value'
LEVEL0
'please report the problem on getm-users'
stop
end
if
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment