Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cdo
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
cdo
Commits
74261228
Commit
74261228
authored
1 month ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
Input: failed with more than one record (bug fix)
parent
d1757a6c
No related branches found
Branches containing commit
No related tags found
1 merge request
!347
M214003/develop
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+4
-0
4 additions, 0 deletions
ChangeLog
libcdi
+1
-1
1 addition, 1 deletion
libcdi
src/Input.cc
+5
-7
5 additions, 7 deletions
src/Input.cc
with
10 additions
and
8 deletions
ChangeLog
+
4
−
0
View file @
74261228
2025-03-25 Uwe Schulzweida
* Input: failed with more than one record (bug fix)
2025-03-20 Uwe Schulzweida
2025-03-20 Uwe Schulzweida
* gme_grid: check if calculation of coordinates failed
* gme_grid: check if calculation of coordinates failed
...
...
This diff is collapsed.
Click to expand it.
libcdi
@
3b65d721
Compare
6729bee6
...
3b65d721
Subproject commit
6729bee6d0a040c99d0f6aac7d768b1adb5a81ee
Subproject commit
3b65d721f75aed9057376f2b271ebd129a49e909
This diff is collapsed.
Click to expand it.
src/Input.cc
+
5
−
7
View file @
74261228
...
@@ -37,7 +37,7 @@ input_iarray(size_t numVals, int *array)
...
@@ -37,7 +37,7 @@ input_iarray(size_t numVals, int *array)
}
}
static
int
static
int
read_record
(
int
numFields
,
int
numLevels
,
size_t
gridsize0
,
int
&
code
,
int
&
date
,
int
&
time
,
std
::
vector
<
double
>
&
array
)
read_record
(
int
numFields
,
int
numLevels
,
size_t
&
gridsize0
,
int
&
code
,
int
&
date
,
int
&
time
,
std
::
vector
<
double
>
&
array
)
{
{
code
=
-
1
;
code
=
-
1
;
date
=
10101
;
date
=
10101
;
...
@@ -59,7 +59,7 @@ read_record(int numFields, int numLevels, size_t gridsize0, int &code, int &date
...
@@ -59,7 +59,7 @@ read_record(int numFields, int numLevels, size_t gridsize0, int &code, int &date
}
}
static
int
static
int
read_record_ext
(
int
numFields
,
size_t
gridsize0
,
int
&
code
,
int
&
date
,
int
&
time
,
std
::
vector
<
double
>
&
array
,
int
&
gridID
,
read_record_ext
(
int
numFields
,
size_t
&
gridsize0
,
int
&
code
,
int
&
date
,
int
&
time
,
std
::
vector
<
double
>
&
array
,
int
&
gridID
,
double
&
dlevel
)
double
&
dlevel
)
{
{
cdo_print
(
"Enter header (date,code,level,gridsize) of record %d (or EOF(=^D))!"
,
numFields
+
1
);
cdo_print
(
"Enter header (date,code,level,gridsize) of record %d (or EOF(=^D))!"
,
numFields
+
1
);
...
@@ -98,7 +98,7 @@ read_record_ext(int numFields, size_t gridsize0, int &code, int &date, int &time
...
@@ -98,7 +98,7 @@ read_record_ext(int numFields, size_t gridsize0, int &code, int &date, int &time
}
}
static
int
static
int
read_record_srv
(
int
numFields
,
size_t
gridsize0
,
int
&
code
,
int
&
date
,
int
&
time
,
std
::
vector
<
double
>
&
array
,
int
&
gridID
,
read_record_srv
(
int
numFields
,
size_t
&
gridsize0
,
int
&
code
,
int
&
date
,
int
&
time
,
std
::
vector
<
double
>
&
array
,
int
&
gridID
,
double
&
dlevel
)
double
&
dlevel
)
{
{
cdo_print
(
"Enter header (code,level,date,time,nlon,nlat,dispo1,dispo2) of record %d (or EOF(=^D))!"
,
numFields
+
1
);
cdo_print
(
"Enter header (code,level,date,time,nlon,nlat,dispo1,dispo2) of record %d (or EOF(=^D))!"
,
numFields
+
1
);
...
@@ -192,13 +192,11 @@ public:
...
@@ -192,13 +192,11 @@ public:
if
(
operatorID
==
INPUT
)
{
outputFiletype
=
cdo_filetype
();
}
if
(
operatorID
==
INPUT
)
{
outputFiletype
=
cdo_filetype
();
}
else
if
(
operatorID
==
INPUTEXT
)
else
if
(
operatorID
==
INPUTEXT
)
{
{
outputFiletype
=
CdoDefault
::
FileType
;
outputFiletype
=
(
CdoDefault
::
FileType
==
CDI_UNDEFID
)
?
CDI_FILETYPE_EXT
:
CdoDefault
::
FileType
;
if
(
outputFiletype
==
CDI_UNDEFID
)
outputFiletype
=
CDI_FILETYPE_EXT
;
}
}
else
if
(
operatorID
==
INPUTSRV
)
else
if
(
operatorID
==
INPUTSRV
)
{
{
outputFiletype
=
CdoDefault
::
FileType
;
outputFiletype
=
(
CdoDefault
::
FileType
==
CDI_UNDEFID
)
?
CDI_FILETYPE_SRV
:
CdoDefault
::
FileType
;
if
(
outputFiletype
==
CDI_UNDEFID
)
outputFiletype
=
CDI_FILETYPE_SRV
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment