Browse Source

use the type SMPmatrix instead of char *

remove some redundant forward function declarations
remove some redundant nested function declarations
pre-master-46
rlar 16 years ago
parent
commit
9da90f5329
  1. 11
      ChangeLog
  2. 7
      src/ciderlib/oned/onecont.c
  3. 5
      src/ciderlib/oned/onepoiss.c
  4. 9
      src/ciderlib/twod/twocont.c
  5. 2
      src/ciderlib/twod/twoncont.c
  6. 2
      src/ciderlib/twod/twopcont.c
  7. 2
      src/ciderlib/twod/twopoiss.c

11
ChangeLog

@ -1,3 +1,14 @@
2010-07-23 Robert Larice
* src/ciderlib/oned/onecont.c ,
* src/ciderlib/oned/onepoiss.c ,
* src/ciderlib/twod/twocont.c ,
* src/ciderlib/twod/twoncont.c ,
* src/ciderlib/twod/twopcont.c ,
* src/ciderlib/twod/twopoiss.c :
use the type SMPmatrix instead of char *
remove some redundant forward function declarations
remove some redundant nested function declarations
2010-07-23 Robert Larice 2010-07-23 Robert Larice
* src/ngmultidec.c , * src/ngmultidec.c ,
* src/include/onedev.h , * src/include/onedev.h ,

7
src/ciderlib/oned/onecont.c

@ -17,11 +17,6 @@ $Id$
#include "../../maths/misc/bernoull.h" #include "../../maths/misc/bernoull.h"
/* Forward Declarations */
void ONE_commonTerms( ONEdevice *, BOOLEAN, BOOLEAN, ONEtranInfo *);
/* functions to setup and solve the continuity equations */ /* functions to setup and solve the continuity equations */
/* Both continuity equations are solved */ /* Both continuity equations are solved */
@ -29,7 +24,7 @@ void ONE_commonTerms( ONEdevice *, BOOLEAN, BOOLEAN, ONEtranInfo *);
void void
ONE_jacBuild(ONEdevice *pDevice) ONE_jacBuild(ONEdevice *pDevice)
{ {
char *matrix = pDevice->matrix;
SMPmatrix *matrix = pDevice->matrix;
ONEelem *pElem; ONEelem *pElem;
ONEnode *pNode; ONEnode *pNode;
int index, eIndex; int index, eIndex;

5
src/ciderlib/oned/onepoiss.c

@ -16,13 +16,10 @@ $Id$
/* Functions to setup and solve the 1D poisson equation. */ /* Functions to setup and solve the 1D poisson equation. */
/* Forward Declarations */
void ONEQcommonTerms(ONEdevice *pDevice);
void void
ONEQjacBuild(ONEdevice *pDevice) ONEQjacBuild(ONEdevice *pDevice)
{ {
char *matrix = pDevice->matrix;
SMPmatrix *matrix = pDevice->matrix;
ONEelem *pElem; ONEelem *pElem;
ONEnode *pNode, *pNode1; ONEnode *pNode, *pNode1;
int index; int index;

9
src/ciderlib/twod/twocont.c

@ -32,8 +32,7 @@ $Id$
void void
TWO_jacBuild(TWOdevice *pDevice) TWO_jacBuild(TWOdevice *pDevice)
{ {
char *matrix = pDevice->matrix;
double *spGetElement();
SMPmatrix *matrix = pDevice->matrix;
TWOelem *pElem; TWOelem *pElem;
TWOnode *pNode; TWOnode *pNode;
TWOchannel *pCh; TWOchannel *pCh;
@ -304,7 +303,7 @@ void
double ds; double ds;
double dPsiT, dPsiB, dPsiL, dPsiR; double dPsiT, dPsiB, dPsiL, dPsiR;
double rhsN, rhsP; double rhsN, rhsP;
double generation, TWOavalanche();
double generation;
double nConc, pConc; double nConc, pConc;
double perTime = 0.0; double perTime = 0.0;
@ -518,7 +517,6 @@ void
int nextIndex; /* index of node to find next element */ int nextIndex; /* index of node to find next element */
double dx, dy, dxdy, dyOverDx, dxOverDy; double dx, dy, dxdy, dyOverDx, dxOverDy;
double ds; double ds;
void spClear(), TWO_commonTerms();
/* first compute the currents and derivatives */ /* first compute the currents and derivatives */
TWO_commonTerms( pDevice, FALSE, FALSE, NIL(TWOtranInfo) ); TWO_commonTerms( pDevice, FALSE, FALSE, NIL(TWOtranInfo) );
@ -675,10 +673,9 @@ void
double dx, dy, dxdy, dyOverDx, dxOverDy; double dx, dy, dxdy, dyOverDx, dxOverDy;
double dPsiT, dPsiB, dPsiL, dPsiR; double dPsiT, dPsiB, dPsiL, dPsiR;
double rhsN, rhsP; double rhsN, rhsP;
double generation, TWOavalanche();
double generation;
double nConc, pConc; double nConc, pConc;
double perTime; double perTime;
void TWO_commonTerms();
/* first compute the currents */ /* first compute the currents */
TWO_commonTerms( pDevice, TRUE, tranAnalysis, info ); TWO_commonTerms( pDevice, TRUE, tranAnalysis, info );

2
src/ciderlib/twod/twoncont.c

@ -33,7 +33,7 @@ $Id$
void void
TWONjacBuild(TWOdevice *pDevice) TWONjacBuild(TWOdevice *pDevice)
{ {
char *matrix = pDevice->matrix;
SMPmatrix *matrix = pDevice->matrix;
TWOelem *pElem; TWOelem *pElem;
TWOnode *pNode; TWOnode *pNode;
TWOchannel *pCh; TWOchannel *pCh;

2
src/ciderlib/twod/twopcont.c

@ -32,7 +32,7 @@ $Id$
void void
TWOPjacBuild(TWOdevice *pDevice) TWOPjacBuild(TWOdevice *pDevice)
{ {
char *matrix = pDevice->matrix;
SMPmatrix *matrix = pDevice->matrix;
TWOelem *pElem; TWOelem *pElem;
TWOnode *pNode; TWOnode *pNode;
TWOchannel *pCh; TWOchannel *pCh;

2
src/ciderlib/twod/twopoiss.c

@ -20,7 +20,7 @@ $Id$
void void
TWOQjacBuild(TWOdevice *pDevice) TWOQjacBuild(TWOdevice *pDevice)
{ {
char *matrix = pDevice->matrix;
SMPmatrix *matrix = pDevice->matrix;
TWOelem *pElem; TWOelem *pElem;
TWOnode *pNode, *pNode1; TWOnode *pNode, *pNode1;
int eIndex, nIndex; int eIndex, nIndex;

Loading…
Cancel
Save