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
743983a7
There was an error fetching the commit references. Please try again later.
Commit
743983a7
authored
9 years ago
by
Carlo Camilloni
Browse files
Options
Downloads
Patches
Plain Diff
PBMetad: mw barrier and removed some warnings
parent
51c09f9e
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/bias/PBMetaD.cpp
+17
-6
17 additions, 6 deletions
src/bias/PBMetaD.cpp
with
17 additions
and
6 deletions
src/bias/PBMetaD.cpp
+
17
−
6
View file @
743983a7
...
...
@@ -253,8 +253,8 @@ void PBMetaD::registerKeywords(Keywords& keys){
}
PBMetaD
::~
PBMetaD
(){
for
(
int
i
=
0
;
i
<
BiasGrids_
.
size
();
++
i
)
delete
BiasGrids_
[
i
];
for
(
int
i
=
0
;
i
<
hillsOfiles_
.
size
();
++
i
){
for
(
unsigned
i
=
0
;
i
<
BiasGrids_
.
size
();
++
i
)
delete
BiasGrids_
[
i
];
for
(
unsigned
i
=
0
;
i
<
hillsOfiles_
.
size
();
++
i
){
hillsOfiles_
[
i
]
->
close
();
delete
hillsOfiles_
[
i
];
}
...
...
@@ -262,8 +262,8 @@ PBMetaD::~PBMetaD(){
PBMetaD
::
PBMetaD
(
const
ActionOptions
&
ao
)
:
PLUMED_BIAS_INIT
(
ao
),
height0_
(
std
::
numeric_limits
<
double
>::
max
()),
biasf_
(
1.0
),
kbt_
(
0.0
),
grid_
(
false
),
stride_
(
0
),
welltemp_
(
false
),
grid_
(
false
),
height0_
(
std
::
numeric_limits
<
double
>::
max
()),
biasf_
(
1.0
),
kbt_
(
0.0
),
stride_
(
0
),
welltemp_
(
false
),
multiple_w
(
false
),
doInt_
(
false
),
isFirstStep
(
true
)
{
...
...
@@ -428,7 +428,7 @@ multiple_w(false), doInt_(false), isFirstStep(true)
}
// read Gaussians if restarting
for
(
int
i
=
0
;
i
<
hillsfname
.
size
();
++
i
){
for
(
unsigned
i
=
0
;
i
<
hillsfname
.
size
();
++
i
){
IFile
*
ifile
=
new
IFile
();
ifile
->
link
(
*
this
);
if
(
ifile
->
FileExist
(
hillsfname
[
i
])){
...
...
@@ -443,8 +443,19 @@ multiple_w(false), doInt_(false), isFirstStep(true)
}
}
comm
.
Barrier
();
// this barrier is needed when using walkers_mpi
// to be sure that all files have been read before
// backing them up
// it should not be used when walkers_mpi is false otherwise
// it would introduce troubles when using replicas without METAD
// (e.g. in bias exchange with a neutral replica)
// see issue #168 on github
if
(
comm
.
Get_rank
()
==
0
&&
multiple_w
)
multi_sim_comm
.
Barrier
();
// open hills files for writing
for
(
int
i
=
0
;
i
<
hillsfname
.
size
();
++
i
){
for
(
unsigned
i
=
0
;
i
<
hillsfname
.
size
();
++
i
){
OFile
*
ofile
=
new
OFile
();
ofile
->
link
(
*
this
);
string
hillsfname_tmp
=
hillsfname
[
i
];
...
...
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