extend commit "ptr->Ptr"
from the master branch to the cuda branch
This commit is contained in:
parent
f6887b0663
commit
70cb022962
|
|
@ -57,25 +57,25 @@ CAPtopology (GENmodel *inModel, CKTcircuit *ckt, int *i, int *j)
|
|||
{
|
||||
if ((here->CAPposNode != 0) && (here->CAPposNode != 0))
|
||||
{
|
||||
TopologyMatrixInsert (CAPposPosptr, k, 0, 1, *i) ;
|
||||
TopologyMatrixInsert (CAPposPosPtr, k, 0, 1, *i) ;
|
||||
(*i)++ ;
|
||||
}
|
||||
|
||||
if ((here->CAPnegNode != 0) && (here->CAPnegNode != 0))
|
||||
{
|
||||
TopologyMatrixInsert (CAPnegNegptr, k, 0, 1, *i) ;
|
||||
TopologyMatrixInsert (CAPnegNegPtr, k, 0, 1, *i) ;
|
||||
(*i)++ ;
|
||||
}
|
||||
|
||||
if ((here->CAPposNode != 0) && (here->CAPnegNode != 0))
|
||||
{
|
||||
TopologyMatrixInsert (CAPposNegptr, k, 0, -1, *i) ;
|
||||
TopologyMatrixInsert (CAPposNegPtr, k, 0, -1, *i) ;
|
||||
(*i)++ ;
|
||||
}
|
||||
|
||||
if ((here->CAPnegNode != 0) && (here->CAPposNode != 0))
|
||||
{
|
||||
TopologyMatrixInsert (CAPnegPosptr, k, 0, -1, *i) ;
|
||||
TopologyMatrixInsert (CAPnegPosPtr, k, 0, -1, *i) ;
|
||||
(*i)++ ;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -54,25 +54,25 @@ REStopology (GENmodel *inModel, CKTcircuit *ckt, int *i, int *j)
|
|||
{
|
||||
if ((here->RESposNode != 0) && (here->RESposNode != 0))
|
||||
{
|
||||
TopologyMatrixInsert (RESposPosptr, k, 0, 1, *i) ;
|
||||
TopologyMatrixInsert (RESposPosPtr, k, 0, 1, *i) ;
|
||||
(*i)++ ;
|
||||
}
|
||||
|
||||
if ((here->RESnegNode != 0) && (here->RESnegNode != 0))
|
||||
{
|
||||
TopologyMatrixInsert (RESnegNegptr, k, 0, 1, *i) ;
|
||||
TopologyMatrixInsert (RESnegNegPtr, k, 0, 1, *i) ;
|
||||
(*i)++ ;
|
||||
}
|
||||
|
||||
if ((here->RESposNode != 0) && (here->RESnegNode != 0))
|
||||
{
|
||||
TopologyMatrixInsert (RESposNegptr, k, 0, -1, *i) ;
|
||||
TopologyMatrixInsert (RESposNegPtr, k, 0, -1, *i) ;
|
||||
(*i)++ ;
|
||||
}
|
||||
|
||||
if ((here->RESnegNode != 0) && (here->RESposNode != 0))
|
||||
{
|
||||
TopologyMatrixInsert (RESnegPosptr, k, 0, -1, *i) ;
|
||||
TopologyMatrixInsert (RESnegPosPtr, k, 0, -1, *i) ;
|
||||
(*i)++ ;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -57,25 +57,25 @@ VSRCtopology (GENmodel *inModel, CKTcircuit *ckt, int *i, int *j)
|
|||
{
|
||||
if ((here->VSRCposNode != 0) && (here->VSRCbranch != 0))
|
||||
{
|
||||
TopologyMatrixInsert (VSRCposIbrptr, k, 0, 1, *i) ;
|
||||
TopologyMatrixInsert (VSRCposIbrPtr, k, 0, 1, *i) ;
|
||||
(*i)++ ;
|
||||
}
|
||||
|
||||
if ((here->VSRCnegNode != 0) && (here->VSRCbranch != 0))
|
||||
{
|
||||
TopologyMatrixInsert (VSRCnegIbrptr, k, 0, -1, *i) ;
|
||||
TopologyMatrixInsert (VSRCnegIbrPtr, k, 0, -1, *i) ;
|
||||
(*i)++ ;
|
||||
}
|
||||
|
||||
if ((here->VSRCbranch != 0) && (here->VSRCposNode != 0))
|
||||
{
|
||||
TopologyMatrixInsert (VSRCibrPosptr, k, 0, 1, *i) ;
|
||||
TopologyMatrixInsert (VSRCibrPosPtr, k, 0, 1, *i) ;
|
||||
(*i)++ ;
|
||||
}
|
||||
|
||||
if ((here->VSRCbranch != 0) && (here->VSRCnegNode != 0))
|
||||
{
|
||||
TopologyMatrixInsert (VSRCibrNegptr, k, 0, -1, *i) ;
|
||||
TopologyMatrixInsert (VSRCibrNegPtr, k, 0, -1, *i) ;
|
||||
(*i)++ ;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue