Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Added flag for printing more debug info
[simgrid.git] / src / surf / maxmin_private.h
index dc2edc5..7d02bd7 100644 (file)
@@ -28,6 +28,7 @@ typedef struct lmm_constraint {
   /* hookup to system */
   s_xbt_swag_hookup_t constraint_set_hookup;
   s_xbt_swag_hookup_t active_constraint_set_hookup;
+  s_xbt_swag_hookup_t modified_constraint_set_hookup;
   s_xbt_swag_hookup_t saturated_constraint_set_hookup;
 
   s_xbt_swag_t element_set;     /* a list of lmm_mat_element_t */
@@ -39,6 +40,7 @@ typedef struct lmm_constraint {
   int shared;
   double usage;
   void *id;
+  int id_int;
 } s_lmm_constraint_t;
 
 typedef struct lmm_variable {
@@ -53,6 +55,7 @@ typedef struct lmm_variable {
   double bound;
   double value;
   void *id;
+  int id_int;
   /* \begin{For Lagrange only} */
   double mu;
   double new_mu;
@@ -64,10 +67,13 @@ typedef struct lmm_variable {
 
 typedef struct lmm_system {
   int modified;
+  int selective_update_active;  /* flag to update partially the system only selecting changed portions */
+
   s_xbt_swag_t variable_set;    /* a list of lmm_variable_t */
   s_xbt_swag_t constraint_set;  /* a list of lmm_constraint_t */
 
   s_xbt_swag_t active_constraint_set;   /* a list of lmm_constraint_t */
+  s_xbt_swag_t modified_constraint_set; /* a list of modified lmm_constraint_t */
 
   s_xbt_swag_t saturated_variable_set;  /* a list of lmm_variable_t */
   s_xbt_swag_t saturated_constraint_set;        /* a list of lmm_constraint_t_t */
@@ -87,7 +93,7 @@ typedef struct lmm_system {
 #define make_constraint_inactive(sys,cnst) remove_active_constraint(sys,cnst)
 
 static void lmm_var_free(lmm_system_t sys, lmm_variable_t var);
-static void lmm_cnst_free(lmm_system_t sys, lmm_constraint_t cnst);
+static XBT_INLINE void lmm_cnst_free(lmm_system_t sys, lmm_constraint_t cnst);
 
 void lmm_print(lmm_system_t sys);