typo in b4temp, formatting

This commit is contained in:
dwarning 2009-10-04 07:32:06 +00:00
parent 59665ba2e9
commit e9d829409f
2 changed files with 50 additions and 44 deletions

View File

@ -1,5 +1,5 @@
/**** BSIM4.6.2 Released by Wenwei Yang 07/31/2008****/
/**** BSIM4.6.4 Update ngspice 08/22/2009 ****/
/**** BSIM4.6.5 Update ngspice 09/22/2009 ****/
/**********
* Copyright 2006 Regents of the University of California. All rights reserved.
* File: b4ld.c of BSIM4.6.2.

View File

@ -1,5 +1,5 @@
/**** BSIM4.6.2 Released by Wenwei Yang 07/31/2008 ****/
/**** BSIM4.6.4 Update ngspice 08/22/2009 ****/
/**** BSIM4.6.5 Update ngspice 09/22/2009 ****/
/**********
* Copyright 2006 Regents of the University of California. All rights reserved.
* File: b4temp.c of BSIM4.6.3.
@ -1729,13 +1729,17 @@ int Size_Not_Found, i;
DMDGeff = model->BSIM4dmdg - model->BSIM4dmcgt;
if (here->BSIM4sourcePerimeterGiven)
{ if(here->BSIM4sourcePerimeter == 0.0)
{
if(here->BSIM4sourcePerimeter == 0.0)
here->BSIM4Pseff = 0.0;
else if (here->BSIM4sourcePerimeter < 0.0)
{ printf("Warning: Source Perimeter is specified as negative, it is set to zero.\n");
here->BSIM4Pseff = 0.0;}
{
printf("Warning: Source Perimeter is specified as negative, it is set to zero.\n");
here->BSIM4Pseff = 0.0;
}
else
{ if (model->BSIM4perMod == 0)
{
if (model->BSIM4perMod == 0)
here->BSIM4Pseff = here->BSIM4sourcePerimeter;
else
here->BSIM4Pseff = here->BSIM4sourcePerimeter
@ -1749,16 +1753,18 @@ int Size_Not_Found, i;
if (here->BSIM4Pseff < 0.0) /*4.6.2*/
here->BSIM4Pseff = 0.0;
if (here->BSIM4drainPerimeterGiven)
{ if(here->BSIM4drainPerimeter = 0.0)
{
if(here->BSIM4drainPerimeter == 0.0)
here->BSIM4Pdeff = 0.0;
else if (here->BSIM4drainPerimeter < 0.0)
{ printf("Warning: Drain Perimeter is specified as negative, it is set to zero\n");
here->BSIM4Pdeff = 0.0;}
{
printf("Warning: Drain Perimeter is specified as negative, it is set to zero\n");
here->BSIM4Pdeff = 0.0;
}
else
{ if (model->BSIM4perMod == 0)
{
if (model->BSIM4perMod == 0)
here->BSIM4Pdeff = here->BSIM4drainPerimeter;
else
here->BSIM4Pdeff = here->BSIM4drainPerimeter