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
47d1e717
There was an error fetching the commit references. Please try again later.
Commit
47d1e717
authored
10 years ago
by
Giovanni Bussi
Browse files
Options
Downloads
Patches
Plain Diff
Added notes on file backup/restart/suffix
parent
3c324325
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
user-doc/Files.txt
+61
-0
61 additions, 0 deletions
user-doc/Files.txt
user-doc/Misc.txt
+5
-0
5 additions, 0 deletions
user-doc/Misc.txt
user-doc/extract
+3
-1
3 additions, 1 deletion
user-doc/extract
user-doc/go-doxygen
+1
-1
1 addition, 1 deletion
user-doc/go-doxygen
with
70 additions
and
2 deletions
user-doc/Files.txt
0 → 100644
+
61
−
0
View file @
47d1e717
/**
\page Files Files
We tried to design PLUMED in such a manner that input/output is done consistently
irrespectively of the file type. Most of the files written or read by PLUMED thus follow
the very same conventions discussed below.
\section Restart
Whenever the \ref RESTART option is used, all the files written by PLUMED are appended.
This makes it easy to analyze results of simulations performed as a chain of several sub-runs.
Notice that most of the PLUMED textual files have a header. The header is repeated at every
restart. Additionally, several files have time in the first column. PLUMED just takes the value
of the physical time from the MD engine. As such, you could have that time starts again from zero
upon restart or not.
An exception from this behavior is given by files which are not growing as the simulation proceeds.
For example, grids written with \ref METAD with GRID_WFILE are overwritten by default during the simulation.
As such, when restarting, there is no point in appending the file. Internally, PLUMED opens the file in append
mode but then rewinds it every time a new grid is dumped.
\section Backup
Whenever the \ref RESTART option is not used, PLUMED tries to write new files. If an old file
is found in the way, PLUMED takes a backup named "bck.X.filename" where X is a progressive number.
Notice that by default PLUMED only allows a maximum of 100 backup copies for a file.
This behavior can be changed by setting the environment variable PLUMED_MAXBACKUP to the desired number
of copies. E.g. export PLUMED_MAXBACKUP=10 will fail after 10 copies. PLUMED_MAXBACKUP=-1 will never fail - be careful
since your disk might fill up quickly with this setting.
\section Replica-Suffix Replica suffix
When running with multiple replicas (e.g., with GROMACS, -multi option) PLUMED adds the replica index as a suffix to
all the files. The following command
will thus print files named COLVAR.0, COLVAR.1, etc for the different replicas.
\verbatim
d: DISTANCE ATOMS=1,2
PRINT ARG=d FILE=COLVAR
\endverbatim
(see also \ref DISTANCE and \ref PRINT).
When reading a file, PLUMED will try to add the suffix. If the file is not found, it will fall back to
the name without suffix. The most important case is the reading of the plumed input file.
If you provide a file for each replica (e.g. plumed.dat.0, plumed.dat.1, etc) you will be able to
setup plumed differently on each replica.
On the other hand, using a single plumed.dat will make all the replicas read the same file.
\subsection Suffixes-and-file-extension Suffixes and file extension
When PLUMED adds the replica suffix, it recognizes some file extension and add the suffix _before_ the
extension. The only suffix recognized by PLUMED 2.1 is ".gz". This means that using
\verbatim
d: DISTANCE ATOMS=1,2
PRINT ARG=d FILE=COLVAR.gz
\endverbatim
will write files named COLVAR.0.gz, COLVAR.1.gz, etc. This is useful since the preserved extension makes it easy
to process the files later. In future PLUMED versions this behavior might change and more extensions
could be recognized.
*/
This diff is collapsed.
Click to expand it.
user-doc/Misc.txt
+
5
−
0
View file @
47d1e717
...
...
@@ -124,6 +124,11 @@ chosen replicas. This is useful e.g. for bias exchange metadynamics \cite{piana}
\subpage Regex </TD><TD> </TD><TD> POSIX regular expressions can be used to select multiple actions when using ARG (i.e. \ref PRINT).
</TD>
</TR>
<TR>
<TD WIDTH="5%">
\subpage Files </TD><TD> </TD><TD> Dealing with Input/Outpt
</TD>
</TR>
</TABLE>
*/
This diff is collapsed.
Click to expand it.
user-doc/extract
+
3
−
1
View file @
47d1e717
...
...
@@ -216,9 +216,11 @@ do
done
for
f
ile
in
Bias Syntax Colvar Functions Group Installation Intro Analysis Glossary Tutorials Modules Regex Misc Tools
for
f
in
*
.txt
do
file
=
${
f
%.txt
}
# first replace with the content of the files
# then grep out the special strings
...
...
This diff is collapsed.
Click to expand it.
user-doc/go-doxygen
+
1
−
1
View file @
47d1e717
...
...
@@ -17,7 +17,7 @@ fi
LIST
=
"
IntroPP.txt ../CHANGES InstallationPP.txt SyntaxPP.txt ColvarPP.txt GroupPP.txt FunctionsPP.txt AnalysisPP.txt
BiasPP.txt ToolsPP.txt MiscPP.txt RegexPP.txt ModulesPP.txt TutorialsPP.txt GlossaryPP.txt automatic tutorials"
BiasPP.txt ToolsPP.txt MiscPP.txt RegexPP.txt
FilesPP.txt
ModulesPP.txt TutorialsPP.txt GlossaryPP.txt automatic tutorials"
{
cat
Doxyfile
...
...
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