Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
6ad222a7
Commit
6ad222a7
authored
Aug 27, 2017
by
Nikhil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation error
Change-Id: I358b5aa7f666a9294900e2e48b50d979fddb6856
parent
d1dad464
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/networks/model-net/express-mesh.C
src/networks/model-net/express-mesh.C
+4
-4
src/networks/model-net/net-template.C
src/networks/model-net/net-template.C
+1
-1
No files found.
src/networks/model-net/express-mesh.C
View file @
6ad222a7
...
@@ -303,7 +303,7 @@ static void local_read_config(const char * anno, local_param *params){
...
@@ -303,7 +303,7 @@ static void local_read_config(const char * anno, local_param *params){
local_param
*
p
=
params
;
local_param
*
p
=
params
;
// general params - do not change unless you intent to modify them
// general params - do not change unless you intent to modify them
rc
=
configuration_get_value_double
(
&
config
,
"PARAMS"
,
"link_bandwidth"
,
int
rc
=
configuration_get_value_double
(
&
config
,
"PARAMS"
,
"link_bandwidth"
,
anno
,
&
p
->
link_bandwidth
);
anno
,
&
p
->
link_bandwidth
);
if
(
rc
)
{
if
(
rc
)
{
p
->
link_bandwidth
=
5
.
25
;
p
->
link_bandwidth
=
5
.
25
;
...
@@ -365,7 +365,7 @@ static void local_read_config(const char * anno, local_param *params){
...
@@ -365,7 +365,7 @@ static void local_read_config(const char * anno, local_param *params){
local_rtr_sample_file
,
MAX_NAME_LENGTH
);
local_rtr_sample_file
,
MAX_NAME_LENGTH
);
//CHANGE: add network specific parameters here
//CHANGE: add network specific parameters here
int
rc
=
configuration_get_value_int
(
&
config
,
"PARAMS"
,
"n_dims"
,
anno
,
rc
=
configuration_get_value_int
(
&
config
,
"PARAMS"
,
"n_dims"
,
anno
,
&
p
->
n_dims
);
&
p
->
n_dims
);
if
(
rc
)
{
if
(
rc
)
{
tw_error
(
TW_LOC
,
"Number of dimensions not specified
\n
"
);
tw_error
(
TW_LOC
,
"Number of dimensions not specified
\n
"
);
...
@@ -2530,7 +2530,7 @@ static void router_register(tw_lptype *base_type) {
...
@@ -2530,7 +2530,7 @@ static void router_register(tw_lptype *base_type) {
extern
"C"
{
extern
"C"
{
//CHANGE: use network specific struct names
//CHANGE: use network specific struct names
struct
model_net_method
NETWORK
_method
=
struct
model_net_method
express_mesh
_method
=
{
{
0
,
0
,
local_configure
,
local_configure
,
...
@@ -2550,7 +2550,7 @@ struct model_net_method NETWORK_method =
...
@@ -2550,7 +2550,7 @@ struct model_net_method NETWORK_method =
NULL
//(final_f)local_sample_fin,
NULL
//(final_f)local_sample_fin,
};
};
struct
model_net_method
NETWORK
_router_method
=
struct
model_net_method
express_mesh
_router_method
=
{
{
0
,
0
,
NULL
,
NULL
,
...
...
src/networks/model-net/net-template.C
View file @
6ad222a7
...
@@ -296,7 +296,7 @@ static void local_read_config(const char * anno, local_param *params){
...
@@ -296,7 +296,7 @@ static void local_read_config(const char * anno, local_param *params){
local_param
*
p
=
params
;
local_param
*
p
=
params
;
// general params - do not change unless you intent to modify them
// general params - do not change unless you intent to modify them
rc
=
configuration_get_value_double
(
&
config
,
"PARAMS"
,
"link_bandwidth"
,
int
rc
=
configuration_get_value_double
(
&
config
,
"PARAMS"
,
"link_bandwidth"
,
anno
,
&
p
->
link_bandwidth
);
anno
,
&
p
->
link_bandwidth
);
if
(
rc
)
{
if
(
rc
)
{
p
->
link_bandwidth
=
5
.
25
;
p
->
link_bandwidth
=
5
.
25
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment