/**********
Copyright © 1996 Norlinvest Ltd. All rights reserved.
Visual Code Model Generator, EDSpice, EDWin, EE Designer, CompCAD,
CAD 1000, CAD ABC and Visionics are trade marks of Norlinvest Ltd.
Copyright © 1983 - 1996.
*
*
Copyright 1990 Regents of the University of California.  All rights reserved.
**********/

#ifndef SENSTRUCTS
#define SENSTRUCTS


#include "smpdefs.h"
#include "jobdefs.h"

typedef struct {
    int JOBtype;
    JOB *JOBnextJob;    
    char *JOBname;      

    int SENnumVal;         
    char **SENdevices;  
    char **SENparmNames;

    unsigned int SENinitflag :1 ;  
                                   
    unsigned int SENicflag :1 ; 

    unsigned int SENstatus :1;     
    unsigned int SENacpertflag :1; 
    int SENmode;     
    int SENparms;   
    double SENpertfac; 
    double  **SEN_Sap;  
    double  **SEN_RHS;  
    double  **SEN_iRHS;
    int SENsize;     
    SMPmatrix  *SEN_Jacmat; 
    double  *SEN_parmVal;   
    char    **SEN_parmName; 

} SENstruct;

#define DCSEN  0x1
#define TRANSEN  0x2
#define ACSEN  0x4

#define NORMAL 0
#define PERTURBATION  1
#define OFF 0
#define ON 1


#define SEN_AC 1
#define SEN_DC 2
#define SEN_TRAN 3
#define SEN_DEV 4
#define SEN_PARM 5

#endif /* SENSTRUCTS */
