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
7b92919c
There was an error fetching the commit references. Please try again later.
Commit
7b92919c
authored
11 years ago
by
Giovanni Bussi
Browse files
Options
Downloads
Plain Diff
Merge branch 'v2.0'
parents
6dfa27af
2ff611f3
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGES/v2.0.txt
+3
-1
3 additions, 1 deletion
CHANGES/v2.0.txt
src/cltools/SimpleMD.cpp
+8
-0
8 additions, 0 deletions
src/cltools/SimpleMD.cpp
src/core/CLTool.cpp
+7
-1
7 additions, 1 deletion
src/core/CLTool.cpp
with
18 additions
and
2 deletions
CHANGES/v2.0.txt
+
3
−
1
View file @
7b92919c
...
...
@@ -17,6 +17,8 @@ In addition, it is now much easier to contribute new functionality to the code b
- A modular structure
- Developer and user documentation
After release, we will document here fixes and additions on the 2.0.x series.
Version 2.0.1:
- Several small fixes in documentation and log file
- Added message when "plumed simpled" is used on a non-existing file
*/
This diff is collapsed.
Click to expand it.
src/cltools/SimpleMD.cpp
+
8
−
0
View file @
7b92919c
...
...
@@ -190,6 +190,10 @@ read_input(double& temperature,
void
read_natoms
(
const
string
&
inputfile
,
int
&
natoms
){
// read the number of atoms in file "input.xyz"
FILE
*
fp
=
fopen
(
inputfile
.
c_str
(),
"r"
);
if
(
!
fp
){
fprintf
(
stderr
,
"ERROR: file %s not found
\n
"
,
inputfile
.
c_str
());
exit
(
1
);
}
fscanf
(
fp
,
"%1000d"
,
&
natoms
);
fclose
(
fp
);
}
...
...
@@ -198,6 +202,10 @@ void read_positions(const string& inputfile,int natoms,vector<Vector>& positions
// read positions and cell from a file called inputfile
// natoms (input variable) and number of atoms in the file should be consistent
FILE
*
fp
=
fopen
(
inputfile
.
c_str
(),
"r"
);
if
(
!
fp
){
fprintf
(
stderr
,
"ERROR: file %s not found
\n
"
,
inputfile
.
c_str
());
exit
(
1
);
}
char
buffer
[
256
];
char
atomname
[
256
];
fgets
(
buffer
,
256
,
fp
);
...
...
This diff is collapsed.
Click to expand it.
src/core/CLTool.cpp
+
7
−
1
View file @
7b92919c
...
...
@@ -157,7 +157,13 @@ bool CLTool::readInputFile( int argc, char**argv, FILE* in, FILE*out ){
}
FILE
*
mystdin
=
in
;
if
(
argc
==
2
)
mystdin
=
fopen
(
argv
[
1
],
"r"
);
if
(
argc
==
2
){
mystdin
=
fopen
(
argv
[
1
],
"r"
);
if
(
!
mystdin
){
fprintf
(
stderr
,
"ERROR: cannot open file %s
\n
"
,
argv
[
1
]);
return
false
;
}
}
char
buffer
[
256
];
std
::
string
line
;
line
.
resize
(
256
);
while
(
fgets
(
buffer
,
256
,
mystdin
)){
...
...
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