Skip to content
GitLab
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
b860c45f
Commit
b860c45f
authored
Sep 30, 2017
by
Uwe Schulzweida
Browse files
sinfo: Added time type.
parent
48deace1
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
b860c45f
...
...
@@ -3,6 +3,10 @@
* Using CDI library version 1.9.1
* Version 1.9.1 release
2017-09-30 Uwe Schulzweida
* sinfo: Added time type
2017-09-28 Uwe Schulzweida
* Changed NFFT from 64 to 8
...
...
src/Sinfo.cc
View file @
b860c45f
...
...
@@ -123,11 +123,11 @@ void *Sinfo(void *argument)
set_text_color
(
stdout
,
BRIGHT
,
BLACK
);
if
(
lensemble
)
fprintf
(
stdout
,
"%6d : Institut Source Steptype Einfo Levels Num Points Num Dtype : "
,
-
(
indf
+
1
));
fprintf
(
stdout
,
"%6d : Institut Source
T
Steptype Einfo Levels Num Points Num Dtype : "
,
-
(
indf
+
1
));
else
if
(
nsubtypes
>
1
)
fprintf
(
stdout
,
"%6d : Institut Source Steptype Subtypes Levels Num Points Num Dtype : "
,
-
(
indf
+
1
));
fprintf
(
stdout
,
"%6d : Institut Source
T
Steptype Subtypes Levels Num Points Num Dtype : "
,
-
(
indf
+
1
));
else
fprintf
(
stdout
,
"%6d : Institut Source Steptype Levels Num Points Num Dtype : "
,
-
(
indf
+
1
));
fprintf
(
stdout
,
"%6d : Institut Source
T
Steptype Levels Num Points Num Dtype : "
,
-
(
indf
+
1
));
if
(
operfunc
==
func_name
)
fprintf
(
stdout
,
"Parameter name"
);
else
if
(
operfunc
==
func_code
)
fprintf
(
stdout
,
"Table Code"
);
...
...
@@ -153,21 +153,25 @@ void *Sinfo(void *argument)
reset_text_color
(
stdout
);
set_text_color
(
stdout
,
RESET
,
BLUE
);
/
*
institute info
*/
/
/
institute info
const
char
*
instptr
=
institutInqNamePtr
(
vlistInqVarInstitut
(
vlistID
,
varID
));
strcpy
(
tmpname
,
"unknown"
);
if
(
instptr
)
strncpy
(
tmpname
,
instptr
,
CDI_MAX_NAME
);
limit_string_length
(
tmpname
,
CDI_MAX_NAME
);
fprintf
(
stdout
,
"%-8s "
,
tmpname
);
/
*
source info
*/
/
/
source info
const
char
*
modelptr
=
modelInqNamePtr
(
vlistInqVarModel
(
vlistID
,
varID
));
strcpy
(
tmpname
,
"unknown"
);
if
(
modelptr
)
strncpy
(
tmpname
,
modelptr
,
CDI_MAX_NAME
);
limit_string_length
(
tmpname
,
CDI_MAX_NAME
);
fprintf
(
stdout
,
"%-8s "
,
tmpname
);
/* tsteptype */
// timetype
int
timetype
=
vlistInqVarTimetype
(
vlistID
,
varID
);
fprintf
(
stdout
,
"%c "
,
timetype
==
TIME_CONSTANT
?
'c'
:
'v'
);
// tsteptype
int
tsteptype
=
vlistInqVarTsteptype
(
vlistID
,
varID
);
// clang-format off
if
(
tsteptype
==
TSTEP_INSTANT
)
fprintf
(
stdout
,
"%-8s "
,
"instant"
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment