89 |
*/ |
*/ |
90 |
#define VAR_DERIV 0x80 |
#define VAR_DERIV 0x80 |
91 |
/**< var is a derivative of some other var present in the system */ |
/**< var is a derivative of some other var present in the system */ |
92 |
|
#define VAR_DIFF 0x100 |
93 |
|
/**< |
94 |
|
var is differential if is posesses a derivative explicitly stated in the |
95 |
|
system of equations. Can't have both alg&deriv flags set (unless higher |
96 |
|
order derivatives have been implemented?) |
97 |
|
*/ |
98 |
|
|
99 |
/* |
/* |
100 |
The remaining flagbit definitions are those flags to be |
The remaining flagbit definitions are those flags to be |
513 |
/**< Returns the incident flag of var as a uint32. */ |
/**< Returns the incident flag of var as a uint32. */ |
514 |
# define var_deriv(var) ((var)->flags & VAR_DERIV) |
# define var_deriv(var) ((var)->flags & VAR_DERIV) |
515 |
/**< Returns the deriv flag of var as a uint32. */ |
/**< Returns the deriv flag of var as a uint32. */ |
516 |
|
# define var_diff(var) ((var)->flags & VAR_DIFF) |
517 |
|
/**< Returns the deriv flag of var as a uint32. */ |
518 |
# define var_active(var) ((var)->flags & VAR_ACTIVE) |
# define var_active(var) ((var)->flags & VAR_ACTIVE) |
519 |
/**< Returns the active flag of var as a uint32. */ |
/**< Returns the active flag of var as a uint32. */ |
520 |
# define var_nonbasic(var) ((var)->flags & VAR_NONBASIC) |
# define var_nonbasic(var) ((var)->flags & VAR_NONBASIC) |
537 |
/**< Returns the incident flag of var as a uint32. */ |
/**< Returns the incident flag of var as a uint32. */ |
538 |
# define var_deriv(var) var_flagbit((var),VAR_DERIV) |
# define var_deriv(var) var_flagbit((var),VAR_DERIV) |
539 |
/**< Returns the deriv flag of var as a uint32. */ |
/**< Returns the deriv flag of var as a uint32. */ |
540 |
|
# define var_diff(var) var_flagbit((var),VAR_DIFF) |
541 |
|
/**< Returns the deriv flag of var as a uint32. */ |
542 |
# define var_active(var) var_flagbit((var),VAR_ACTIVE) |
# define var_active(var) var_flagbit((var),VAR_ACTIVE) |
543 |
/**< Returns the active flag of var as a uint32. */ |
/**< Returns the active flag of var as a uint32. */ |
544 |
# define var_nonbasic(var) var_flagbit((var),VAR_NONBASIC) |
# define var_nonbasic(var) var_flagbit((var),VAR_NONBASIC) |
564 |
#define var_set_deriv(var,oneorzero) \ |
#define var_set_deriv(var,oneorzero) \ |
565 |
var_set_flagbit((var),VAR_DERIV,(oneorzero)) |
var_set_flagbit((var),VAR_DERIV,(oneorzero)) |
566 |
/**< Sets the deriv flag of var on (1) or off (0). */ |
/**< Sets the deriv flag of var on (1) or off (0). */ |
567 |
|
#define var_set_diff(var,oneorzero) \ |
568 |
|
var_set_flagbit((var),VAR_DIFF,(oneorzero)) |
569 |
|
/**< Sets the algeb flag of var on (1) or off (0). */ |
570 |
#define var_set_interface(var,oneorzero) \ |
#define var_set_interface(var,oneorzero) \ |
571 |
var_set_flagbit((var),VAR_INTERFACE,(oneorzero)) |
var_set_flagbit((var),VAR_INTERFACE,(oneorzero)) |
572 |
/**< Sets the interface flag of var on (1) or off (0). */ |
/**< Sets the interface flag of var on (1) or off (0). */ |