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

Fix in DUMPATOMS

File was open in a manner that do not provide autobck
parent a2a67d00
No related branches found
No related tags found
No related merge requests found
...@@ -103,7 +103,7 @@ DumpAtoms::DumpAtoms(const ActionOptions&ao): ...@@ -103,7 +103,7 @@ DumpAtoms::DumpAtoms(const ActionOptions&ao):
checkRead(); checkRead();
if(file.length()==0) error("name out output file was not specified"); if(file.length()==0) error("name out output file was not specified");
of.link(*this); of.link(*this);
of.open(file.c_str(),"w"); of.open(file.c_str());
log.printf(" printing the following atoms in %s :", unitname.c_str() ); log.printf(" printing the following atoms in %s :", unitname.c_str() );
for(unsigned i=0;i<atoms.size();++i) log.printf(" %d",atoms[i].serial() ); for(unsigned i=0;i<atoms.size();++i) log.printf(" %d",atoms[i].serial() );
log.printf("\n"); log.printf("\n");
......
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