No printing of "reference value" into log-file (Windows)
This commit is contained in:
parent
5159eac292
commit
b7015cb5f3
|
|
@ -1,3 +1,7 @@
|
||||||
|
2008-05-06 Holger Vogt
|
||||||
|
* src/frontend/outitf.c: suppress printing of "Reference value" into log-file
|
||||||
|
under Windows
|
||||||
|
|
||||||
2008-05-03 Dietmar Warning
|
2008-05-03 Dietmar Warning
|
||||||
* src/include/ngspice.h, src/main.c: srandom has a macro in ngspice.h as a
|
* src/include/ngspice.h, src/main.c: srandom has a macro in ngspice.h as a
|
||||||
central place - should be sufficient also under windows
|
central place - should be sufficient also under windows
|
||||||
|
|
|
||||||
|
|
@ -448,23 +448,26 @@ OUTpData(void *plotPtr, IFvalue *refValue, IFvalue *valuePtr)
|
||||||
/* While we're looking at the reference value, print it to the screen
|
/* While we're looking at the reference value, print it to the screen
|
||||||
every quarter of a second, to give some feedback without using
|
every quarter of a second, to give some feedback without using
|
||||||
too much CPU time */
|
too much CPU time */
|
||||||
|
#ifndef HAS_WINDOWS
|
||||||
currclock = clock();
|
currclock = clock();
|
||||||
if ((currclock-lastclock)>(0.25*CLOCKS_PER_SEC)) {
|
if ((currclock-lastclock)>(0.25*CLOCKS_PER_SEC)) {
|
||||||
fprintf(stderr, " Reference value : % 12.5e\r",
|
fprintf(stderr, " Reference value : % 12.5e\r",
|
||||||
refValue->cValue.real);
|
refValue->cValue.real);
|
||||||
lastclock = currclock;
|
lastclock = currclock;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
/* And the same for a non-complex value */
|
/* And the same for a non-complex value */
|
||||||
|
|
||||||
fileAddRealValue(run->fp, run->binary, refValue->rValue);
|
fileAddRealValue(run->fp, run->binary, refValue->rValue);
|
||||||
|
#ifndef HAS_WINDOWS
|
||||||
currclock = clock();
|
currclock = clock();
|
||||||
if ((currclock-lastclock)>(0.25*CLOCKS_PER_SEC)) {
|
if ((currclock-lastclock)>(0.25*CLOCKS_PER_SEC)) {
|
||||||
fprintf(stderr, " Reference value : % 12.5e\r", refValue->rValue);
|
fprintf(stderr, " Reference value : % 12.5e\r", refValue->rValue);
|
||||||
lastclock = currclock;
|
lastclock = currclock;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (i = 0; i < run->numData; i++) {
|
for (i = 0; i < run->numData; i++) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue