Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plumed AlphaFold
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Martin Kurečka
Plumed AlphaFold
Commits
551d6f78
There was an error fetching the commit references. Please try again later.
Commit
551d6f78
authored
12 years ago
by
Gareth Tribello
Browse files
Options
Downloads
Patches
Plain Diff
A further little trick to optimize multicolvars
parent
b9ae04dd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/vesselbase/ActionWithVessel.cpp
+2
-2
2 additions, 2 deletions
src/vesselbase/ActionWithVessel.cpp
with
2 additions
and
2 deletions
src/vesselbase/ActionWithVessel.cpp
+
2
−
2
View file @
551d6f78
...
@@ -168,11 +168,11 @@ void ActionWithVessel::calculateAllVessels( const int& stepn ){
...
@@ -168,11 +168,11 @@ void ActionWithVessel::calculateAllVessels( const int& stepn ){
// quantity is contributing more than the tolerance
// quantity is contributing more than the tolerance
if
(
functions
[
j
]
->
calculate
(
kk
,
tolerance
)
)
keep
=
true
;
if
(
functions
[
j
]
->
calculate
(
kk
,
tolerance
)
)
keep
=
true
;
}
}
// Clear the derivatives from this step
for
(
unsigned
j
=
0
;
j
<
getNumberOfDerivatives
(
kk
);
++
j
)
derivatives
[
j
]
=
0.0
;
// If the contribution of this quantity is very small at neighbour list time ignore it
// If the contribution of this quantity is very small at neighbour list time ignore it
// untill next neighbour list time
// untill next neighbour list time
if
(
reduceAtNextStep
&&
!
keep
)
deactivate
(
kk
);
if
(
reduceAtNextStep
&&
!
keep
)
deactivate
(
kk
);
// Clear the derivatives from this step
for
(
unsigned
j
=
0
;
j
<
getNumberOfDerivatives
(
kk
);
++
j
)
derivatives
[
j
]
=
0.0
;
}
}
// Update the dynamic list
// Update the dynamic list
if
(
reduceAtNextStep
){
members
.
mpi_gatherActiveMembers
(
comm
);
}
if
(
reduceAtNextStep
){
members
.
mpi_gatherActiveMembers
(
comm
);
}
...
...
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