|
|
@ -25,7 +25,7 @@ CKTmodCrt(CKTcircuit *ckt, int type, GENmodel **modfast, IFuid name) |
|
|
|
|
|
|
|
|
error = CKTfndMod(ckt, &type, &mymodfast, name); |
|
|
error = CKTfndMod(ckt, &type, &mymodfast, name); |
|
|
if(error == E_NOMOD) { |
|
|
if(error == E_NOMOD) { |
|
|
mymodfast = (GENmodel *)MALLOC(*(DEVices[type]->DEVmodSize)); |
|
|
|
|
|
|
|
|
mymodfast = (GENmodel *) tmalloc((size_t) *(DEVices[type]->DEVmodSize)); |
|
|
if(mymodfast == (GENmodel *)NULL) return(E_NOMEM); |
|
|
if(mymodfast == (GENmodel *)NULL) return(E_NOMEM); |
|
|
mymodfast->GENmodType = type; |
|
|
mymodfast->GENmodType = type; |
|
|
mymodfast->GENmodName = name; |
|
|
mymodfast->GENmodName = name; |
|
|
|