Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
807525a6
Commit
807525a6
authored
Sep 28, 2017
by
Uwe Schulzweida
Browse files
fc2gp: cleanup first loop.
parent
7e29ea40
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/after_fctrans.cc
View file @
807525a6
...
...
@@ -2016,10 +2016,10 @@ void fc2gp(double *restrict trig, long *restrict ifax, double *restrict fc, doub
#endif
for
(
long
lat
=
0
;
lat
<
nlat
;
++
lat
)
{
long
wix
=
jump
*
(
lat
+
lev
*
nlat
);
long
rix
=
lat
+
lev
*
nlat
*
nfc
;
for
(
long
fou
=
0
;
fou
<
nfc
;
++
fou
)
wfc
[
wix
+
fou
]
=
fc
[
rix
+
fou
*
nlat
];
for
(
long
fou
=
nfc
;
fou
<
jump
;
++
fou
)
wfc
[
wix
+
fou
]
=
0.0
;
double
*
restrict
wfcx
=
wfc
+
jump
*
(
lat
+
lev
*
nlat
);
double
*
restrict
fcx
=
fc
+
(
lat
+
lev
*
nlat
*
nfc
)
;
for
(
long
fou
=
0
;
fou
<
nfc
;
++
fou
)
wfc
x
[
fou
]
=
fc
x
[
fou
*
nlat
];
for
(
long
fou
=
nfc
;
fou
<
jump
;
++
fou
)
wfc
x
[
fou
]
=
0.0
;
/* wfc[wix + 1] = 0.5 * wfc[wix]; */
}
}
...
...
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