Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_pdata
Commits
3be95e76
Commit
3be95e76
authored
Nov 20, 2014
by
incardon
Browse files
Added missing file
parent
e2680297
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/util.hpp
0 → 100644
View file @
3be95e76
/*
* util.hpp
*
* Created on: Nov 20, 2014
* Author: Pietro Incardona
*/
/*! \brief check that two array match
*
* check that two array match
*
* \param ptr1 Point to array 1
* \param ptr2 Pointer to array 2
* \param sz Size of the array
*
*/
template
<
typename
T
>
void
boost_check_array
(
const
T
*
ptr1
,
const
T
*
ptr2
,
size_t
sz
)
{
// Check the array
for
(
int
i
=
0
;
i
<
sz
;
i
++
)
{
BOOST_REQUIRE_EQUAL
(
ptr1
[
i
],
ptr2
[
i
]);
}
}
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