git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@963
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
void MSG_global_init_args(int *argc, char **argv);
void MSG_set_verbosity(MSG_outputmode_t mode);
MSG_error_t MSG_set_channel_number(int number);
void MSG_global_init_args(int *argc, char **argv);
void MSG_set_verbosity(MSG_outputmode_t mode);
MSG_error_t MSG_set_channel_number(int number);
-MSG_error_t MSG_set_sharing_policy(MSG_sharing_t mode, long double param);
+MSG_error_t MSG_set_sharing_policy(MSG_sharing_t mode, double param);
int MSG_get_channel_number(void);
MSG_error_t MSG_main(void);
MSG_error_t MSG_clean(void);
int MSG_get_channel_number(void);
MSG_error_t MSG_main(void);
MSG_error_t MSG_clean(void);
void MSG_launch_application(const char *file);
void MSG_paje_output(const char *filename);
void MSG_launch_application(const char *file);
void MSG_paje_output(const char *filename);
-long double MSG_getClock(void);
+double MSG_getClock(void);
/************************** Host handling ***********************************/
MSG_error_t MSG_host_set_data(m_host_t host, void *data);
/************************** Host handling ***********************************/
MSG_error_t MSG_host_set_data(m_host_t host, void *data);
/************************** Task handling ************************************/
/************************** Task handling ************************************/
-m_task_t MSG_task_create(const char *name, long double compute_duration,
- long double message_size, void *data);
+m_task_t MSG_task_create(const char *name, double compute_duration,
+ double message_size, void *data);
void *MSG_task_get_data(m_task_t task);
m_process_t MSG_task_get_sender(m_task_t task);
MSG_error_t MSG_task_destroy(m_task_t task);
void *MSG_task_get_data(m_task_t task);
m_process_t MSG_task_get_sender(m_task_t task);
MSG_error_t MSG_task_destroy(m_task_t task);
m_channel_t channel);
MSG_error_t MSG_task_put_bounded(m_task_t task,
m_host_t dest, m_channel_t channel,
m_channel_t channel);
MSG_error_t MSG_task_put_bounded(m_task_t task,
m_host_t dest, m_channel_t channel,
MSG_error_t MSG_task_execute(m_task_t task);
int MSG_task_Iprobe(m_channel_t channel);
int MSG_task_probe_from(m_channel_t channel);
MSG_error_t MSG_task_execute(m_task_t task);
int MSG_task_Iprobe(m_channel_t channel);
int MSG_task_probe_from(m_channel_t channel);
-MSG_error_t MSG_process_sleep(long double nb_sec);
+MSG_error_t MSG_process_sleep(double nb_sec);
MSG_error_t MSG_get_errno(void);
/************************** Deprecated ***************************************/
MSG_error_t MSG_get_errno(void);
/************************** Deprecated ***************************************/
MSG_Global_t msg_global = NULL;
/* static void MarkAsFailed(m_task_t t, TBX_HashTable_t failedProcessList); */
MSG_Global_t msg_global = NULL;
/* static void MarkAsFailed(m_task_t t, TBX_HashTable_t failedProcessList); */
-/* static xbt_fifo_t MSG_buildFailedHostList(long double a, long double b); */
+/* static xbt_fifo_t MSG_buildFailedHostList(double a, double b); */
/** \defgroup msg_simulation MSG simulation Functions
* \brief This section describes the functions you need to know to
/** \defgroup msg_simulation MSG simulation Functions
* \brief This section describes the functions you need to know to
currently used only for the MSG_STORE_AND_FORWARD flavor and represents the
granularity of the communications (i.e. the packet size).
*/
currently used only for the MSG_STORE_AND_FORWARD flavor and represents the
granularity of the communications (i.e. the packet size).
*/
-MSG_error_t MSG_set_sharing_policy(MSG_sharing_t mode, long double param)
+MSG_error_t MSG_set_sharing_policy(MSG_sharing_t mode, double param)
{
CRITICAL0("MSG_set_sharing_policy: this function is now deprecated and useless. Store and forward does not exist anymore. Please stop using it.");
{
CRITICAL0("MSG_set_sharing_policy: this function is now deprecated and useless. Store and forward does not exist anymore. Please stop using it.");
xbt_context_schedule(process->simdata->context);
msg_global->current_process = NULL;
}
xbt_context_schedule(process->simdata->context);
msg_global->current_process = NULL;
}
- DEBUG1("%Lg : Calling surf_solve",MSG_getClock());
+ DEBUG1("%lg : Calling surf_solve",MSG_getClock());
elapsed_time = surf_solve();
DEBUG1("Elapsed_time %lg",elapsed_time);
elapsed_time = surf_solve();
DEBUG1("Elapsed_time %lg",elapsed_time);
-/* fprintf(stderr, "====== %Lg =====\n",Now); */
+/* fprintf(stderr, "====== %lg =====\n",Now); */
/* if (elapsed_time==0.0) { */
/* fprintf(stderr, "No change in time\n"); */
/* } */
/* if (elapsed_time==0.0) { */
/* fprintf(stderr, "No change in time\n"); */
/* } */
-/* static xbt_fifo_t MSG_buildFailedHostList(long double begin, long double end) */
+/* static xbt_fifo_t MSG_buildFailedHostList(double begin, double end) */
/* { */
/* xbt_fifo_t failedHostList = xbt_fifo_new(); */
/* m_host_t host = NULL; */
/* { */
/* xbt_fifo_t failedHostList = xbt_fifo_new(); */
/* m_host_t host = NULL; */
/** \ingroup msg_easier_life
* \brief A clock (in second).
*/
/** \ingroup msg_easier_life
* \brief A clock (in second).
*/
-long double MSG_getClock(void) {
+double MSG_getClock(void) {
return surf_get_clock();
}
return surf_get_clock();
}
*/
MSG_error_t MSG_task_put_bounded(m_task_t task,
m_host_t dest, m_channel_t channel,
*/
MSG_error_t MSG_task_put_bounded(m_task_t task,
m_host_t dest, m_channel_t channel,
{
task->simdata->rate=max_rate;
return(MSG_task_put(task, dest, channel));
{
task->simdata->rate=max_rate;
return(MSG_task_put(task, dest, channel));
*
* \param nb_sec a number of second
*/
*
* \param nb_sec a number of second
*/
-MSG_error_t MSG_process_sleep(long double nb_sec)
+MSG_error_t MSG_process_sleep(double nb_sec)
{
e_surf_action_state_t state = SURF_ACTION_NOT_IN_THE_SYSTEM;
m_process_t process = MSG_process_self();
{
e_surf_action_state_t state = SURF_ACTION_NOT_IN_THE_SYSTEM;
m_process_t process = MSG_process_self();
* \see m_task_t
* \return The new corresponding object.
*/
* \see m_task_t
* \return The new corresponding object.
*/
-m_task_t MSG_task_create(const char *name, long double compute_duration,
- long double message_size, void *data)
+m_task_t MSG_task_create(const char *name, double compute_duration,
+ double message_size, void *data)
{
simdata_task_t simdata = xbt_new0(s_simdata_task_t,1);
m_task_t task = xbt_new0(s_m_task_t,1);
{
simdata_task_t simdata = xbt_new0(s_simdata_task_t,1);
m_task_t task = xbt_new0(s_m_task_t,1);