X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ae9cb1a80506c00479fa84f8a56cdce227704628..d2463b9dd8b903446a52afa4b6928b0e4b036504:/src/include/surf/maxmin.h diff --git a/src/include/surf/maxmin.h b/src/include/surf/maxmin.h index bf6f577de1..b81cefc5ba 100644 --- a/src/include/surf/maxmin.h +++ b/src/include/surf/maxmin.h @@ -1,6 +1,5 @@ -/* $Id$ */ - -/* Copyright (c) 2004 Arnaud Legrand. All rights reserved. */ +/* Copyright (c) 2004, 2005, 2006, 2007, 2008, 2009, 2010. The SimGrid Team. + * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -13,7 +12,7 @@ #include "xbt/misc.h" #include "surf/datatypes.h" -#define MAXMIN_PRECISION 0.00001 +#define MAXMIN_PRECISION 1e-9 static XBT_INLINE void double_update(double *variable, double value) { *variable -= value; @@ -69,6 +68,8 @@ XBT_PUBLIC(void) lmm_expand(lmm_system_t sys, lmm_constraint_t cnst, lmm_constraint_t lmm_get_next_active_constraint(lmm_system_t sys, lmm_constraint_t cnst); + XBT_PUBLIC(int) lmm_is_variable_limited_by_latency(lmm_variable_t var); + void *lmm_constraint_id(lmm_constraint_t cnst); void *lmm_variable_id(lmm_variable_t var);