Skip to content
GitLab
Menu
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
6b681eed
Commit
6b681eed
authored
Jan 11, 2009
by
Uwe Schulzweida
Browse files
No commit message
No commit message
parent
ec69a454
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cdo.c
View file @
6b681eed
...
...
@@ -179,6 +179,9 @@ static void usage(void)
*/
/* fprintf(stderr, " -l <level> Level file\n"); */
fprintf
(
stderr
,
" -m <missval> Set the default missing value (default: %g)
\n
"
,
cdiInqMissval
());
#if defined (_OPENMP)
fprintf
(
stderr
,
" -P <nthreads> Set number of OpenMP threads
\n
"
);
#endif
/*
fprintf(stderr, " -p <prec> Set the precision of the output data in bytes\n");
fprintf(stderr, " (4/8 for nc, nc2, nc4, srv, ext, ieg; 1/2/3 for grb)\n");
...
...
@@ -874,6 +877,8 @@ int main(int argc, char *argv[])
#if defined (_OPENMP)
if
(
numThreads
>
0
)
omp_set_num_threads
(
numThreads
);
ompNumThreads
=
omp_get_max_threads
();
if
(
omp_get_max_threads
()
>
omp_get_num_procs
()
)
fprintf
(
stderr
,
" Number of threads greater than number of CPUs=%d!
\n
"
,
omp_get_num_procs
());
if
(
cdoVerbose
)
fprintf
(
stderr
,
" OpenMP: num_procs = %d max_threads = %d
\n
"
,
omp_get_num_procs
(),
omp_get_max_threads
());
...
...
src/remaplib.c
View file @
6b681eed
...
...
@@ -42,6 +42,9 @@
http://climate.lanl.gov/Software/SCRIP/SCRIPusers.pdf
*/
/*
2009-01-11 Uwe Schulzweida: remap_conserv with OpenMP
*/
/* #define REMAPTEST 1 */
...
...
Write
Preview
Supports
Markdown
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