Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bugfix: Initialize variable and remove from heap when action is suspended.
[simgrid.git] / src / surf / maxmin_private.h
index dc2edc5..07428e1 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 */