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
useless cosmetics hinted by qtcreator
[simgrid.git]
/
src
/
surf
/
HostImpl.cpp
diff --git
a/src/surf/HostImpl.cpp
b/src/surf/HostImpl.cpp
index
ff6f193
..
012ad13
100644
(file)
--- a/
src/surf/HostImpl.cpp
+++ b/
src/surf/HostImpl.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2013-201
8
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2013-201
9
. 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. */
/* 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. */
@@
-24,7
+24,7
@@
namespace surf {
*********/
/* Helper function for executeParallelTask */
*********/
/* Helper function for executeParallelTask */
-static inline double has_cost(double* array,
in
t pos)
+static inline double has_cost(double* array,
size_
t pos)
{
if (array)
return array[pos];
{
if (array)
return array[pos];
@@
-32,7
+32,7
@@
static inline double has_cost(double* array, int pos)
return -1.0;
}
return -1.0;
}
-kernel::resource::Action* HostModel::execute_parallel(
in
t host_nb, s4u::Host** host_list, double* flops_amount,
+kernel::resource::Action* HostModel::execute_parallel(
size_
t host_nb, s4u::Host** host_list, double* flops_amount,
double* bytes_amount, double rate)
{
kernel::resource::Action* action = nullptr;
double* bytes_amount, double rate)
{
kernel::resource::Action* action = nullptr;
@@
-44,7
+44,7
@@
kernel::resource::Action* HostModel::execute_parallel(int host_nb, s4u::Host** h
int nb = 0;
double value = 0.0;
int nb = 0;
double value = 0.0;
- for (
in
t i = 0; i < host_nb * host_nb; i++) {
+ for (
size_
t i = 0; i < host_nb * host_nb; i++) {
if (has_cost(bytes_amount, i) > 0.0) {
nb++;
value = has_cost(bytes_amount, i);
if (has_cost(bytes_amount, i) > 0.0) {
nb++;
value = has_cost(bytes_amount, i);
@@
-97,7
+97,7
@@
HostImpl::~HostImpl()
/** Re-starts all the actors that are marked as restartable.
*
/** Re-starts all the actors that are marked as restartable.
*
- * Weird things will happen if you turn on a
n
host that is already on. S4U is fool-proof, not this.
+ * Weird things will happen if you turn on a host that is already on. S4U is fool-proof, not this.
*/
void HostImpl::turn_on()
{
*/
void HostImpl::turn_on()
{
@@
-142,7
+142,7
@@
std::vector<s4u::ActorPtr> HostImpl::get_all_actors()
res.push_back(actor.ciface());
return res;
}
res.push_back(actor.ciface());
return res;
}
-
in
t HostImpl::get_actor_count()
+
size_
t HostImpl::get_actor_count()
{
return process_list_.size();
}
{
return process_list_.size();
}