From e5622435585748cceab386148d817550ab00ff8c Mon Sep 17 00:00:00 2001 From: dwarning Date: Thu, 29 May 2014 22:41:17 +0200 Subject: [PATCH] hsm2ld.c, when multithreading, always print the debuging header lines --- src/spicelib/devices/hisim2/hsm2ld.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/spicelib/devices/hisim2/hsm2ld.c b/src/spicelib/devices/hisim2/hsm2ld.c index a8d07c749..aeef1fdc8 100644 --- a/src/spicelib/devices/hisim2/hsm2ld.c +++ b/src/spicelib/devices/hisim2/hsm2ld.c @@ -766,7 +766,9 @@ tm0 = gtodsecld() ; static int isFirst = 1; if (isFirst) { printf("# vbs vds vgs cggb cgdb cgsb cbgb cbdb cbsb cdgb cddb cdsb\n"); +#ifndef USE_OMP isFirst = 0; +#endif } printf("%12.5e %12.5e %12.5e %12.5e %12.5e %12.5e %12.5e %12.5e %12.5e %12.5e %12.5e %12.5e\n", vbs, vds, vgs , @@ -835,7 +837,9 @@ tm0 = gtodsecld() ; ShowPhysVals(here, model, isFirst, vds_pre, vgs, vbs, vgd, vbd, vgb); else ShowPhysVals(here, model, isFirst, vds, vgs, vbs, vgd, vbd, vgb); +#ifndef USE_OMP if (isFirst) isFirst = 0; +#endif } /* bulk and channel charge plus overlaps */