Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GPIAG-Software
IFOS2D
Commits
045f4b01
Commit
045f4b01
authored
Nov 11, 2016
by
niklas.thiel
Browse files
added VERBOSE in rd_sour.c
parent
850d9b1f
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/rd_sour.c
View file @
045f4b01
...
...
@@ -25,6 +25,7 @@
float
*
rd_sour
(
int
*
nts
,
FILE
*
fp_source
){
extern
int
VERBOSE
;
/* local variables */
float
*
psource
;
int
i
,
c
;
...
...
@@ -35,7 +36,7 @@ float *rd_sour(int *nts,FILE* fp_source){
while
((
c
=
fgetc
(
fp_source
))
!=
EOF
)
if
(
c
==
'\n'
)
++
(
*
nts
);
rewind
(
fp_source
);
printf
(
" Number of samples (nts) in source file: %i
\n
"
,
*
nts
);
if
(
VERBOSE
==
1
)
printf
(
" Number of samples (nts) in source file: %i
\n
"
,
*
nts
);
psource
=
vector
(
1
,
*
nts
);
for
(
i
=
1
;
i
<=*
nts
;
i
++
)
fscanf
(
fp_source
,
"%e
\n
"
,
&
psource
[
i
]);
...
...
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