X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/18bbef07996d903b23d1d769ca16d412cee1d5b2..3c072dea92bbf0e4df46b1d8d56cd62e68883b33:/src/surf/maxmin_private.h diff --git a/src/surf/maxmin_private.h b/src/surf/maxmin_private.h index dc2edc55a6..7d02bd7da3 100644 --- a/src/surf/maxmin_private.h +++ b/src/surf/maxmin_private.h @@ -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);