Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
qbox-public
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
qbox
qbox-public
Commits
51217eee
Commit
51217eee
authored
Jul 09, 2020
by
Francois Gygi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix BasisMapping single-task map for np0!=np1
parent
712c6f87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
BasisMapping.cpp
src/BasisMapping.cpp
+3
-3
No files found.
src/BasisMapping.cpp
View file @
51217eee
...
@@ -208,8 +208,8 @@ BasisMapping::BasisMapping (const Basis &basis, int np0, int np1, int np2) :
...
@@ -208,8 +208,8 @@ BasisMapping::BasisMapping (const Basis &basis, int np0, int np1, int np2) :
if
(
hm
<
0
)
hm
+=
np0_
;
if
(
hm
<
0
)
hm
+=
np0_
;
if
(
km
<
0
)
km
+=
np1_
;
if
(
km
<
0
)
km
+=
np1_
;
zvec_to_val_
.
push_back
(
hp
+
np
1
_
*
kp
);
zvec_to_val_
.
push_back
(
hp
+
np
0
_
*
kp
);
zvec_to_val_
.
push_back
(
hm
+
np
1
_
*
km
);
zvec_to_val_
.
push_back
(
hm
+
np
0
_
*
km
);
}
}
}
}
else
else
...
@@ -222,7 +222,7 @@ BasisMapping::BasisMapping (const Basis &basis, int np0, int np1, int np2) :
...
@@ -222,7 +222,7 @@ BasisMapping::BasisMapping (const Basis &basis, int np0, int np1, int np2) :
k
=
basis_
.
rod_k
(
0
,
irod
);
k
=
basis_
.
rod_k
(
0
,
irod
);
if
(
h
<
0
)
h
+=
np0_
;
if
(
h
<
0
)
h
+=
np0_
;
if
(
k
<
0
)
k
+=
np1_
;
if
(
k
<
0
)
k
+=
np1_
;
zvec_to_val_
.
push_back
(
h
+
np
1
_
*
k
);
zvec_to_val_
.
push_back
(
h
+
np
0
_
*
k
);
}
}
}
}
}
}
...
...
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