Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
624842ca
Commit
624842ca
authored
Nov 28, 2013
by
Uwe Schulzweida
Browse files
extra_Z: use constant ztlim = 290.5
parent
693f637c
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
624842ca
...
...
@@ -2,6 +2,10 @@
* remapbil: optimization for regular 2D source grids
2013-11-25 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* remapbil: skip explicitly call to sort_add() (weights are sorted implicitly)
2013-11-18 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* remaplib: cleanup and preparation for opt. reg2d grids
...
...
src/vinterp.c
View file @
624842ca
...
...
@@ -253,6 +253,7 @@ double extra_Z(double pres, double halfp, double fullp, double geop, double temp
double
alpha
,
tstar
,
tmsl
,
zalp
,
zalpal
;
double
zrg
;
double
zlapse
=
0
.
0065
;
double
ztlim
=
290
.
5
;
zrg
=
1
.
0
/
Grav
;
alpha
=
RD
*
zlapse
*
zrg
;
...
...
@@ -262,13 +263,13 @@ double extra_Z(double pres, double halfp, double fullp, double geop, double temp
tmsl
=
tstar
+
zlapse
*
zrg
*
geop
;
if
(
tmsl
>
290
.
5
&&
tstar
>
290
.
5
)
if
(
tmsl
>
ztlim
&&
tstar
>
ztlim
)
{
tstar
=
0
.
5
*
(
290
.
5
+
tstar
);
tstar
=
0
.
5
*
(
ztlim
+
tstar
);
tmsl
=
tstar
;
}
if
(
tmsl
>
290
.
5
&&
tstar
<=
290
.
5
)
tmsl
=
290
.
5
;
if
(
tmsl
>
ztlim
&&
tstar
<=
ztlim
)
tmsl
=
ztlim
;
if
(
tmsl
-
tstar
<
0
.
000001
&&
tstar
-
tmsl
<
0
.
000001
)
alpha
=
0
.
0
;
...
...
@@ -279,7 +280,6 @@ double extra_Z(double pres, double halfp, double fullp, double geop, double temp
zalpal
=
zalp
*
alpha
;
return
((
geop
-
RD
*
tstar
*
zalp
*
(
1
.
0
+
zalpal
*
(
0
.
5
+
zalpal
/
6
.
0
)))
*
zrg
);
}
/* extra_Z */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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