A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Comment unused parameters.
[simgrid.git]
/
src
/
surf
/
cpu_ti.cpp
diff --git
a/src/surf/cpu_ti.cpp
b/src/surf/cpu_ti.cpp
index
922c9c7
..
484d895
100644
(file)
--- a/
src/surf/cpu_ti.cpp
+++ b/
src/surf/cpu_ti.cpp
@@
-409,7
+409,7
@@
void surf_cpu_model_init_ti()
CpuTiModel::CpuTiModel() : CpuModel("cpu_ti")
{
xbt_assert(!surf_cpu_model_pm,"CPU model already initialized. This should not happen.");
CpuTiModel::CpuTiModel() : CpuModel("cpu_ti")
{
xbt_assert(!surf_cpu_model_pm,"CPU model already initialized. This should not happen.");
- ActionPtr action;
+ ActionPtr action
= NULL
;
CpuTi cpu;
cpu_ti_running_action_set_that_does_not_need_being_checked =
CpuTi cpu;
cpu_ti_running_action_set_that_does_not_need_being_checked =
@@
-483,7
+483,7
@@
CpuTiPtr CpuTiModel::createResource(const char *name,
return (CpuTiPtr) xbt_lib_get_elm_or_null(host_lib, name);
}
return (CpuTiPtr) xbt_lib_get_elm_or_null(host_lib, name);
}
-CpuTiActionPtr CpuTiModel::createAction(double
cost, bool failed
)
+CpuTiActionPtr CpuTiModel::createAction(double
/*cost*/, bool /*failed*/
)
{
return NULL;//new CpuTiAction(this, cost, failed);
}
{
return NULL;//new CpuTiAction(this, cost, failed);
}
@@
-506,7
+506,7
@@
double CpuTiModel::shareResources(double now)
return min_action_duration;
}
return min_action_duration;
}
-void CpuTiModel::updateActionsState(double now, double
delta
)
+void CpuTiModel::updateActionsState(double now, double
/*delta*/
)
{
while ((xbt_heap_size(cpu_ti_action_heap) > 0)
&& (xbt_heap_maxkey(cpu_ti_action_heap) <= now)) {
{
while ((xbt_heap_size(cpu_ti_action_heap) > 0)
&& (xbt_heap_maxkey(cpu_ti_action_heap) <= now)) {
@@
-595,7
+595,7
@@
CpuTi::CpuTi(CpuTiModelPtr model, const char *name, xbt_dynar_t powerPeak,
XBT_DEBUG("power scale %lf", powerScale);
p_availTrace = new CpuTiTgmr(powerTrace, powerScale);
XBT_DEBUG("power scale %lf", powerScale);
p_availTrace = new CpuTiTgmr(powerTrace, powerScale);
- CpuTiActionPtr action;
+ CpuTiActionPtr action
= NULL
;
p_actionSet = xbt_swag_new(xbt_swag_offset(*action, p_cpuListHookup));
xbt_dynar_get_cpy(powerPeak, 0, &m_powerPeak);
p_actionSet = xbt_swag_new(xbt_swag_offset(*action, p_cpuListHookup));
xbt_dynar_get_cpy(powerPeak, 0, &m_powerPeak);
@@
-998,9
+998,5
@@
double CpuTiAction::getRemains()
return m_remains;
}
return m_remains;
}
-static void check() {
- CpuTiActionPtr cupAction = new CpuTiAction(NULL, 0, true);
-}
-
#endif /* SURF_MODEL_CPUTI_H_ */
#endif /* SURF_MODEL_CPUTI_H_ */