Skip to content
Snippets Groups Projects
Commit d63a9575 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Merge branch 'v2.3' into v2.4

parents 433a90dd 92f48f5d
No related branches found
No related tags found
No related merge requests found
......@@ -234,6 +234,7 @@ For users:
- Fixed a problem leading to NaN derivatives of \ref switchingfunction `Q` when distance between two atoms is large.
- GROMACS patch updated to gromacs-2016.5.
- `./configure` crashes if prefix is set to present working directory (notice that this choice was already leading to issues).
- \ref DUMPATOMS reports an error when trying to write xtc/xdr files without the xdrfile library installed.
For developers:
- Fixed small issue in debug options of \ref driver (see \issue{245}).
......
......@@ -178,11 +178,7 @@ DumpAtoms::DumpAtoms(const ActionOptions&ao):
if(file.length()==0) error("name out output file was not specified");
type=Tools::extension(file);
log<<" file name "<<file<<"\n";
if(type=="gro" || type=="xyz"
#ifdef __PLUMED_HAS_XDRFILE
|| type=="xtc" || type=="trr"
#endif
) {
if(type=="gro" || type=="xyz" || type=="xtc" || type=="trr") {
log<<" file extension indicates a "<<type<<" file\n";
} else {
log<<" file extension not detected, assuming xyz\n";
......@@ -191,14 +187,14 @@ DumpAtoms::DumpAtoms(const ActionOptions&ao):
string ntype;
parse("TYPE",ntype);
if(ntype.length()>0) {
if(ntype!="xyz" && ntype!="gro"
#ifdef __PLUMED_HAS_XDRFILE
&& ntype!="xtc" && ntype!="trr"
#endif
if(ntype!="xyz" && ntype!="gro" && ntype!="xtc" && ntype!="trr"
) error("TYPE cannot be understood");
log<<" file type enforced to be "<<ntype<<"\n";
type=ntype;
}
#ifndef __PLUMED_HAS_XDRFILE
if(type=="xtc" || type=="trr") error("types xtc and trr require PLUMED to be linked with the xdrfile library. Please install it and recompile PLUMED.");
#endif
fmt_gro_pos="%8.3f";
fmt_gro_box="%12.7f";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment