Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
eca30b68
Commit
eca30b68
authored
Mar 2, 2015
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
do not expect atom to be at the right position if its already there
parent
39a4a717
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/mol/mm/src/gromacs_block_modifiers.cc
+3
-3
3 additions, 3 deletions
modules/mol/mm/src/gromacs_block_modifiers.cc
with
3 additions
and
3 deletions
modules/mol/mm/src/gromacs_block_modifiers.cc
+
3
−
3
View file @
eca30b68
...
...
@@ -260,9 +260,8 @@ void GromacsHydrogenConstructor::ApplyOnResidue(ost::mol::ResidueHandle& res, os
for
(
int
b
=
0
;
b
<
number
;
++
b
){
//only add hydrogen if not already present!
atom
=
res
.
FindAtom
(
hydrogen_names
[
b
]);
if
(
!
atom
.
IsValid
()){
atom
=
ed
.
InsertAtom
(
res
,
hydrogen_names
[
b
],
hydrogen_positions
[
b
],
"H"
);
}
if
(
!
atom
.
IsValid
())
atom
=
ed
.
InsertAtom
(
res
,
hydrogen_names
[
b
],
hydrogen_positions
[
b
],
"H"
);
else
ed
.
SetAtomPos
(
atom
,
hydrogen_positions
[
b
]);
}
}
}
...
...
@@ -416,6 +415,7 @@ void GromacsBlockModifier::ApplyOnResidue(ost::mol::ResidueHandle& res, ost::mol
for
(
int
j
=
0
;
j
<
number
;
++
j
){
ost
::
mol
::
AtomHandle
at
=
res
.
FindAtom
(
names
[
j
]);
if
(
!
at
.
IsValid
())
at
=
ed
.
InsertAtom
(
res
,
names
[
j
],
positions
[
j
],
ele
);
else
ed
.
SetAtomPos
(
at
,
positions
[
j
]);
ed
.
Connect
(
at
,
anchor_atoms
[
0
]);
}
}
...
...
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
sign in
to comment