/[ascend]/trunk/base/generic/solver/var.h
ViewVC logotype

Diff of /trunk/base/generic/solver/var.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1067 by johnpye, Sun Jan 7 10:02:41 2007 UTC revision 1068 by johnpye, Mon Jan 8 04:45:47 2007 UTC
# Line 92  Line 92 
92  */  */
93  #define VAR_DERIV     0x80  #define VAR_DERIV     0x80
94  /**< var is a derivative of some other var present in the system */  /**< var is a derivative of some other var present in the system */
 #define VAR_DIFF      0x100  
 /**< var is differential; it has a derivative somewhere explicitly written in the system of equations */  
95    
96  /*  /*
97      The remaining flagbit definitions are those flags to be      The remaining flagbit definitions are those flags to be
# Line 510  extern void var_set_interface(struct var Line 508  extern void var_set_interface(struct var
508    /**<  Returns the incident flag of var as a uint32. */    /**<  Returns the incident flag of var as a uint32. */
509  # define var_deriv(var) ((var)->flags & VAR_DERIV)  # define var_deriv(var) ((var)->flags & VAR_DERIV)
510    /**<  Returns the deriv flag of var as a uint32. */    /**<  Returns the deriv flag of var as a uint32. */
 # define var_diff(var) ((var)->flags & VAR_DERIV)  
   /**<  Returns the diff flag of var as a uint32. */  
511  # define var_active(var)   ((var)->flags & VAR_ACTIVE)  # define var_active(var)   ((var)->flags & VAR_ACTIVE)
512    /**<  Returns the active flag of var as a uint32. */    /**<  Returns the active flag of var as a uint32. */
513  # define var_nonbasic(var) ((var)->flags & VAR_NONBASIC)  # define var_nonbasic(var) ((var)->flags & VAR_NONBASIC)
# Line 534  extern void var_set_interface(struct var Line 530  extern void var_set_interface(struct var
530    /**<  Returns the incident flag of var as a uint32. */    /**<  Returns the incident flag of var as a uint32. */
531  # define var_deriv(var)         var_flagbit((var),VAR_DERIV)  # define var_deriv(var)         var_flagbit((var),VAR_DERIV)
532    /**<  Returns the deriv flag of var as a uint32. */    /**<  Returns the deriv flag of var as a uint32. */
 # define var_diff(var)         var_flagbit((var),VAR_DIFF)  
   /**<  Returns the diff flag of var as a uint32. */  
533  # define var_active(var)        var_flagbit((var),VAR_ACTIVE)  # define var_active(var)        var_flagbit((var),VAR_ACTIVE)
534    /**<  Returns the active flag of var as a uint32. */    /**<  Returns the active flag of var as a uint32. */
535  # define var_nonbasic(var)      var_flagbit((var),VAR_NONBASIC)  # define var_nonbasic(var)      var_flagbit((var),VAR_NONBASIC)
# Line 561  extern void var_set_interface(struct var Line 555  extern void var_set_interface(struct var
555  #define var_set_deriv(var,oneorzero)      \  #define var_set_deriv(var,oneorzero)      \
556          var_set_flagbit((var),VAR_DERIV,(oneorzero))          var_set_flagbit((var),VAR_DERIV,(oneorzero))
557  /**<  Sets the deriv flag of var on (1) or off (0). */  /**<  Sets the deriv flag of var on (1) or off (0). */
 #define var_set_diff(var,oneorzero)      \  
         var_set_flagbit((var),VAR_DIFF,(oneorzero))  
 /**<  Sets the deriv flag of var on (1) or off (0). */  
558  #define var_set_interface(var,oneorzero)     \  #define var_set_interface(var,oneorzero)     \
559          var_set_flagbit((var),VAR_INTERFACE,(oneorzero))          var_set_flagbit((var),VAR_INTERFACE,(oneorzero))
560  /**<  Sets the interface flag of var on (1) or off (0). */  /**<  Sets the interface flag of var on (1) or off (0). */

Legend:
Removed from v.1067  
changed lines
  Added in v.1068

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22