Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
Takin
mag-core
Commits
67d76d15
Verified
Commit
67d76d15
authored
Jun 21, 2022
by
Tobias WEBER
Browse files
magdyn: sorted Q
parent
92681fb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/magdyn/magdyn_plot.cpp
View file @
67d76d15
...
...
@@ -65,14 +65,14 @@ void MagDynDlg::CalcDispersion()
return
;
}
const
t_real
Q_start
[]
t_real
Q_start
[]
{
m_q_start
[
0
]
->
value
(),
m_q_start
[
1
]
->
value
(),
m_q_start
[
2
]
->
value
(),
};
const
t_real
Q_end
[]
t_real
Q_end
[]
{
m_q_end
[
0
]
->
value
(),
m_q_end
[
1
]
->
value
(),
...
...
@@ -124,6 +124,14 @@ void MagDynDlg::CalcDispersion()
std
::
vector
<
t_taskptr
>
tasks
;
tasks
.
reserve
(
num_pts
);
// keep the scanned Q component in ascending order
if
(
Q_start
[
Q_idx
]
>
Q_end
[
Q_idx
])
{
std
::
swap
(
Q_start
[
0
],
Q_end
[
0
]);
std
::
swap
(
Q_start
[
1
],
Q_end
[
1
]);
std
::
swap
(
Q_start
[
2
],
Q_end
[
2
]);
}
for
(
t_size
i
=
0
;
i
<
num_pts
;
++
i
)
{
auto
task
=
[
this
,
&
mtx
,
&
qs_data
,
&
Es_data
,
&
ws_data
,
...
...
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