1 /**********
2 Copyright 1991 Regents of the University of California.  All rights reserved.
3 Author: 1987 Kartikeya Mayaram, U. C. Berkeley CAD Group
4 **********/
5 
6 /*
7  * This routine deletes a NUMOS instance from the circuit and frees the
8  * storage it was using.
9  */
10 
11 #include "ngspice/ngspice.h"
12 #include "numosdef.h"
13 #include "../../../ciderlib/twod/twoddefs.h"
14 #include "../../../ciderlib/twod/twodext.h"
15 #include "ngspice/sperror.h"
16 #include "ngspice/suffix.h"
17 
18 
19 int
NUMOSdelete(GENinstance * gen_inst)20 NUMOSdelete(GENinstance *gen_inst)
21 {
22     NUMOSinstance *inst = (NUMOSinstance *) gen_inst;
23 
24     TWOdestroy(inst->NUMOSpDevice);
25 
26     return OK;
27 }
28