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
solverstack
ScalFMM
Commits
5001d256
Commit
5001d256
authored
May 05, 2014
by
Olivier Coulaud
Browse files
remove warnings
parent
606c12b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Examples/generateDistributions.cpp
View file @
5001d256
...
...
@@ -280,7 +280,7 @@ int main(int argc, char ** argv){
std
::
cout
<<
"Cannot open file."
<<
std
::
endl
;
return
1
;
}
outfile
.
write
((
char
*
)(
&
NbPoints
),
sizeof
(
NbPoints
));
outfile
.
write
((
char
*
)
const_cast
<
int
*>
(
&
NbPoints
),
sizeof
(
NbPoints
));
outfile
.
write
((
char
*
)
&
BoxWith
,
sizeof
(
BoxWith
));
outfile
.
write
((
char
*
)
Centre
.
getDataValue
(),
sizeof
(
FReal
)
*
3
);
//
...
...
Src/Utils/FGenerateDistribution.hpp
View file @
5001d256
...
...
@@ -17,7 +17,7 @@
// return drand48();
//} ;
void
initRandom
()
{
srand48
(
static_cast
<
unsigned
int
>
(
time
(
0
)))
;
srand48
(
static_cast
<
long
int
>
(
time
(
0
)))
;
}
;
FReal
getRandom
()
{
return
static_cast
<
FReal
>
(
drand48
());
...
...
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