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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
40900594
Commit
40900594
authored
2 years ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
Ensure correct elements for terminal oxygens when using AMBER forcefield
parent
92b26574
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/mol/mm/src/topology_creator.cc
+15
-0
15 additions, 0 deletions
modules/mol/mm/src/topology_creator.cc
with
15 additions
and
0 deletions
modules/mol/mm/src/topology_creator.cc
+
15
−
0
View file @
40900594
...
...
@@ -164,6 +164,21 @@ TopologyPtr TopologyCreator::Create(ost::mol::EntityHandle& ent,
if
(
hc
){
hc
->
ApplyOnBuildingBlock
(
block
);
hc
->
ApplyOnResidue
(
*
i
,
ed
);
// hack for AMBER forcefield
// GROMACS hijacks the hydrogen constructor to construct terminal oxygens
// in the case of the AMBER forcefield, their elements are thus set to H.
// Forcefields in general don't care about elements, they just care for
// atom types and their respective masses. There is no easy way to tell
// the hydrogen constructor that the element is not H. I just hardcode the
// AMBER case here. Please forgive me...
ost
::
mol
::
AtomHandle
at
=
i
->
FindAtom
(
"OC1"
);
if
(
at
.
IsValid
())
{
at
.
SetElement
(
"O"
);
}
at
=
i
->
FindAtom
(
"OC2"
);
if
(
at
.
IsValid
())
{
at
.
SetElement
(
"O"
);
}
}
//check for n terminus
if
(
i
->
HasProp
(
"n_ter"
)){
...
...
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