+/* Copyright (c) 2013-2014. 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. */
+
#include "network_smpi.hpp"
#include "simgrid/sg_config.h"
}
}
-void NetworkSmpiModel::gapAppend(double size, const NetworkLinkLmmPtr link, NetworkActionLmmPtr action)
+void NetworkSmpiModel::gapAppend(double size, const NetworkLinkPtr link, NetworkActionPtr action)
{
- const char *src = link->m_name;
+ const char *src = link->getName();
xbt_fifo_t fifo;
//surf_action_network_CM02_t last_action;
//double bw;
}
}
-void NetworkSmpiModel::gapRemove(ActionLmmPtr lmm_action)
+void NetworkSmpiModel::gapRemove(ActionPtr lmm_action)
{
xbt_fifo_t fifo;
size_t size;
- NetworkCm02ActionLmmPtr action = (NetworkCm02ActionLmmPtr)(lmm_action);
+ NetworkCm02ActionPtr action = static_cast<NetworkCm02ActionPtr>(lmm_action);
if (sg_sender_gap > 0.0 && action->p_senderLinkName
&& action->p_senderFifoItem) {
return current;
}
+
double NetworkSmpiModel::latencyFactor(double size)
{
if (!smpi_lat_factor)