Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
0d0b861c
Commit
0d0b861c
authored
9 years ago
by
Roman Tolchenov
Browse files
Options
Downloads
Patches
Plain Diff
Re #11032. Fix boost compatibility issue on rhel6.
parent
2c1d048e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Mantid/Framework/CurveFitting/src/FABADAMinimizer.cpp
+4
-3
4 additions, 3 deletions
Code/Mantid/Framework/CurveFitting/src/FABADAMinimizer.cpp
with
4 additions
and
3 deletions
Code/Mantid/Framework/CurveFitting/src/FABADAMinimizer.cpp
+
4
−
3
View file @
0d0b861c
...
@@ -193,9 +193,10 @@ bool FABADAMinimizer::iterate(size_t) {
...
@@ -193,9 +193,10 @@ bool FABADAMinimizer::iterate(size_t) {
boost
::
mt19937
mt
;
boost
::
mt19937
mt
;
mt
.
seed
(
123
*
(
int
(
m_counter
)
+
mt
.
seed
(
123
*
(
int
(
m_counter
)
+
45
*
int
(
i
)));
// Numeros inventados para la seed
45
*
int
(
i
)));
// Numeros inventados para la seed
boost
::
random
::
normal_distribution
<>
distr
(
0
,
std
::
abs
(
m_jump
[
i
]));
boost
::
normal_distribution
<
double
>
distr
(
0.0
,
std
::
abs
(
m_jump
[
i
]));
step
=
distr
(
mt
);
boost
::
variate_generator
<
boost
::
mt19937
,
boost
::
normal_distribution
<
double
>>
gen
(
mt
,
distr
);
step
=
gen
();
}
else
{
}
else
{
step
=
m_jump
[
i
];
step
=
m_jump
[
i
];
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment