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
097bbca4
Commit
097bbca4
authored
Jan 01, 2018
by
Uwe Schulzweida
Browse files
Changed ;; to ;.
parent
e4b30005
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/CMOR.cc
View file @
097bbca4
...
...
@@ -1791,7 +1791,7 @@ static void removeDataset()
char
cwd
[
1024
];
char
*
dummy
=
getcwd
(
cwd
,
sizeof
(
cwd
));
int
procID
=
getpid
();
char
*
dataset_path
=
(
char
*
)
Malloc
(
(
strlen
(
cwd
)
+
1
+
strlen
(
"dataset.json"
)
+
7
)
*
sizeof
(
char
));
;
char
*
dataset_path
=
(
char
*
)
Malloc
(
(
strlen
(
cwd
)
+
1
+
strlen
(
"dataset.json"
)
+
7
)
*
sizeof
(
char
));
sprintf
(
dataset_path
,
"%s/dataset%d.json"
,
cwd
,
procID
);
remove
(
dataset_path
);
}
...
...
@@ -1919,7 +1919,7 @@ static void setup_dataset(list_t *kvl, int streamID, int *calendar)
char
cwd
[
1024
];
char
*
dummy
=
getcwd
(
cwd
,
sizeof
(
cwd
));
char
*
dataset_path
=
(
char
*
)
Malloc
(
(
strlen
(
cwd
)
+
1
+
strlen
(
"dataset.json"
)
+
7
)
*
sizeof
(
char
));
;
char
*
dataset_path
=
(
char
*
)
Malloc
(
(
strlen
(
cwd
)
+
1
+
strlen
(
"dataset.json"
)
+
7
)
*
sizeof
(
char
));
FILE
*
dataset_json
;
int
procID
=
getpid
();
...
...
src/Setattribute.cc
View file @
097bbca4
...
...
@@ -207,7 +207,7 @@ void *Setattribute(void *argument)
if
(
pmlist
==
NULL
)
cdoAbort
(
"Parse error!"
);
list_destroy
(
kvlist
);
kvlist
=
*
(
list_t
**
)
pmlist
->
head
->
data
;
if
(
kvlist
==
NULL
)
cdoAbort
(
"Parse error!"
);
;
if
(
kvlist
==
NULL
)
cdoAbort
(
"Parse error!"
);
fclose
(
fp
);
if
(
cdoVerbose
)
kvlist_print
(
kvlist
);
}
...
...
src/percentiles.cc
View file @
097bbca4
...
...
@@ -31,7 +31,7 @@ double percentile_nist(double *array, size_t len, double pn)
else
{
double
vk1
=
nth_element
(
array
,
len
,
k
);
double
vk
=
nth_element
(
array
,
len
,
k
-
1
);
;
double
vk
=
nth_element
(
array
,
len
,
k
-
1
);
percentil
=
vk
+
d
*
(
vk1
-
vk
);
}
...
...
@@ -52,7 +52,7 @@ double percentile_numpy(double *array, size_t len, double pn)
if
(
interpolation_method
==
LINEAR
)
{
double
vk1
=
nth_element
(
array
,
len
,
k
);
double
vk
=
nth_element
(
array
,
len
,
k
-
1
);
;
double
vk
=
nth_element
(
array
,
len
,
k
-
1
);
percentil
=
vk
+
d
*
(
vk1
-
vk
);
}
else
...
...
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