Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Iker Martín Álvarez
Proteo
Commits
afdf5f69
Commit
afdf5f69
authored
Aug 27, 2024
by
iker_martin
Browse files
Null checking when extracting data from MaM storage
parent
00759da4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Codes/MaM/MAM_Manager.c
View file @
afdf5f69
...
@@ -431,8 +431,8 @@ void MAM_Data_get_pointer(void **data, size_t index, size_t *total_qty, MPI_Data
...
@@ -431,8 +431,8 @@ void MAM_Data_get_pointer(void **data, size_t index, size_t *total_qty, MPI_Data
}
}
*
data
=
data_struct
->
arrays
[
index
];
*
data
=
data_struct
->
arrays
[
index
];
*
total_qty
=
data_struct
->
qty
[
index
];
if
(
total_qty
!=
NULL
)
*
total_qty
=
data_struct
->
qty
[
index
];
*
type
=
data_struct
->
types
[
index
];
if
(
type
!=
NULL
)
*
type
=
data_struct
->
types
[
index
];
//get_block_dist(qty, mall->myId, mall->numP, &dist_data); //FIXME Asegurar que numP es correcto
//get_block_dist(qty, mall->myId, mall->numP, &dist_data); //FIXME Asegurar que numP es correcto
}
}
...
...
Write
Preview
Supports
Markdown
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