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
Laurell, Pontus Bengt Johan
dmrgpp
Commits
556a2d44
Commit
556a2d44
authored
Mar 02, 2021
by
Alvarez, Gonzalo
Browse files
compilation fix for call to div(3)
parent
1c791cc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Models/SpinOrbital/SpinOrbitalModel.h
View file @
556a2d44
...
...
@@ -747,7 +747,7 @@ private:
// ket = sz' + lz'*(2s + 1)
SizeType
mPlusJ
(
SizeType
ket
,
SizeType
orbital
)
const
{
div_t
q
=
div
(
ket
,
modelParams_
.
twiceS
+
1
);
div_t
q
=
div
(
static_cast
<
int
>
(
ket
)
,
static_cast
<
int
>
(
modelParams_
.
twiceS
+
1
)
)
;
assert
(
static_cast
<
SizeType
>
(
q
.
rem
)
<=
modelParams_
.
twiceS
);
assert
(
static_cast
<
SizeType
>
(
q
.
quot
)
<=
modelParams_
.
twiceL
);
return
(
orbital
==
0
)
?
q
.
rem
:
q
.
quot
;
...
...
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