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
bf545b08
Commit
bf545b08
authored
2 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
Added Ydayarith.cc and Ydayarith.cc
parent
17571707
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/Makefile.am
+2
-0
2 additions, 0 deletions
src/Makefile.am
src/Ydayarith.cc
+2
-1
2 additions, 1 deletion
src/Ydayarith.cc
src/Yearmonstat.cc
+6
-5
6 additions, 5 deletions
src/Yearmonstat.cc
src/module_list.h
+2
-2
2 additions, 2 deletions
src/module_list.h
with
12 additions
and
8 deletions
src/Makefile.am
+
2
−
0
View file @
bf545b08
...
...
@@ -315,6 +315,8 @@ cdo_SOURCES += Adisit.cc \
Showinfo.cc
\
Showattribute.cc
\
Vargen.cc
\
Yearmonstat.cc
\
Ydayarith.cc
\
Ymonarith.cc
\
Yseaspctl.cc
\
Yseasstat.cc
\
...
...
This diff is collapsed.
Click to expand it.
src/Ydayarith.cc
+
2
−
1
View file @
bf545b08
...
...
@@ -20,6 +20,7 @@
#include
"datetime.h"
#include
"process_int.h"
#include
"printinfo.h"
#include
"field_functions.h"
static
void
add_operators
(
void
)
...
...
@@ -111,7 +112,7 @@ Ydayarith(void *process)
{
int
varID
,
levelID
;
cdo_inq_record
(
streamID1
,
&
varID
,
&
levelID
);
field
=
FieldFactory
::
i
nit
(
varList1
[
varID
]);
field
=
FieldFactory
::
reI
nit
(
field
,
varList1
[
varID
]);
cdo_read_record
(
streamID1
,
field
);
field2_function
(
field
,
vars2
[
dayOfYear
][
varID
][
levelID
],
operfunc
);
...
...
This diff is collapsed.
Click to expand it.
src/Yearmonstat.cc
+
6
−
5
View file @
bf545b08
...
...
@@ -20,6 +20,7 @@
#include
"process_int.h"
#include
"datetime.h"
#include
"printinfo.h"
#include
"field_functions.h"
void
*
...
...
@@ -128,22 +129,22 @@ Yearmonstat(void *process)
fieldc_mul
(
rvars1
,
dpm
);
if
(
rvars1
.
nm
iss
||
!
rsamp1
.
empty
())
if
(
rvars1
.
getNumM
iss
()
||
!
rsamp1
.
empty
())
{
if
(
rsamp1
.
empty
())
rsamp1
.
resize
(
rvars1
.
s
ize
);
if
(
rsamp1
.
empty
())
rsamp1
.
resize
(
rvars1
.
getS
ize
()
);
field2_vinit
(
rsamp1
,
rvars1
,
dpm
);
}
}
else
{
field
=
FieldFactory
::
i
nit
(
varList
[
varID
]);
field
=
FieldFactory
::
reI
nit
(
field
,
varList
[
varID
]);
cdo_read_record
(
streamID1
,
field
);
fieldc_mul
(
field
,
dpm
);
if
(
field
.
nm
iss
||
!
rsamp1
.
empty
())
if
(
field
.
getNumM
iss
()
||
!
rsamp1
.
empty
())
{
if
(
rsamp1
.
empty
())
rsamp1
.
resize
(
rvars1
.
s
ize
,
dsets
);
if
(
rsamp1
.
empty
())
rsamp1
.
resize
(
rvars1
.
getS
ize
()
,
dsets
);
field2_vincr
(
rsamp1
,
field
,
dpm
);
}
...
...
This diff is collapsed.
Click to expand it.
src/module_list.h
+
2
−
2
View file @
bf545b08
...
...
@@ -239,8 +239,8 @@ static const module_t module_Vargen = {"Vargen" ,Vargen
// static const module_t module_Writegrid = {"Writegrid" ,Writegrid , {} , WritegridOperators , EXPOSED , CDI_REAL , 1 , 1 , NoRestriction };
// static const module_t module_Writerandom = {"Writerandom" ,Writerandom , {} , WriterandomOperators , EXPOSED , CDI_REAL , 1 , 1 , NoRestriction };
// static const module_t module_Yeararith = {"Yeararith" ,Yeararith , YeararithHelp , YeararithOperators , EXPOSED , CDI_REAL , 2 , 1 , NoRestriction };
//
static const module_t module_Yearmonstat = {"Yearmonstat" ,Yearmonstat , YearmonstatHelp , YearmonstatOperators , EXPOSED , CDI_REAL , 1 , 1 , NoRestriction };
//
static const module_t module_Ydayarith = {"Ydayarith" ,Ydayarith , YdayarithHelp , YdayarithOperators , EXPOSED , CDI_REAL , 2 , 1 , NoRestriction };
static
const
module_t
module_Yearmonstat
=
{
"Yearmonstat"
,
Yearmonstat
,
YearmonstatHelp
,
YearmonstatOperators
,
EXPOSED
,
CDI_REAL
,
1
,
1
,
NoRestriction
};
static
const
module_t
module_Ydayarith
=
{
"Ydayarith"
,
Ydayarith
,
YdayarithHelp
,
YdayarithOperators
,
EXPOSED
,
CDI_REAL
,
2
,
1
,
NoRestriction
};
// static const module_t module_Ydaypctl = {"Ydaypctl" ,Ydaypctl , YdaypctlHelp , YdaypctlOperators , EXPOSED , CDI_REAL , 3 , 1 , NoRestriction };
// static const module_t module_Ydaystat = {"Ydaystat" ,Ydaystat , YdaystatHelp , YdaystatOperators , EXPOSED , CDI_REAL , 1 , 1 , NoRestriction };
// static const module_t module_Ydrunpctl = {"Ydrunpctl" ,Ydrunpctl , YdrunpctlHelp , YdrunpctlOperators , EXPOSED , CDI_REAL , 3 , 1 , NoRestriction };
...
...
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