/[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 1314 by johnpye, Mon Jan 22 13:37:33 2007 UTC revision 1315 by johnpye, Mon Mar 5 06:04:15 2007 UTC
# Line 89  Line 89 
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
# Line 507  extern void var_set_interface(struct var Line 513  extern void var_set_interface(struct var
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)
# Line 529  extern void var_set_interface(struct var Line 537  extern void var_set_interface(struct var
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)
# Line 554  extern void var_set_interface(struct var Line 564  extern void var_set_interface(struct var
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). */

Legend:
Removed from v.1314  
changed lines
  Added in v.1315

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