Commit 045f4b01 authored by niklas.thiel's avatar niklas.thiel

added VERBOSE in rd_sour.c

parent 850d9b1f
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
float *rd_sour(int *nts,FILE* fp_source){ float *rd_sour(int *nts,FILE* fp_source){
extern int VERBOSE;
/* local variables */ /* local variables */
float *psource; float *psource;
int i, c; int i, c;
...@@ -35,7 +36,7 @@ float *rd_sour(int *nts,FILE* fp_source){ ...@@ -35,7 +36,7 @@ float *rd_sour(int *nts,FILE* fp_source){
while ((c=fgetc(fp_source)) != EOF) while ((c=fgetc(fp_source)) != EOF)
if (c=='\n') ++(*nts); if (c=='\n') ++(*nts);
rewind(fp_source); 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); psource=vector(1,*nts);
for (i=1;i<=*nts;i++) fscanf(fp_source,"%e\n",&psource[i]); for (i=1;i<=*nts;i++) fscanf(fp_source,"%e\n",&psource[i]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment