biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor for testing interactive selection input
[alexxy/gromacs.git]
/
src
/
gromacs
/
selection
/
selection.cpp
diff --git
a/src/gromacs/selection/selection.cpp
b/src/gromacs/selection/selection.cpp
index 7b77d5c5ac4845a31d286e680517d69395f48180..8c81ca51ac6feba05cfc00d6d9d67b2b14f6f969 100644
(file)
--- a/
src/gromacs/selection/selection.cpp
+++ b/
src/gromacs/selection/selection.cpp
@@
-51,6
+51,7
@@
#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/gmxassert.h"
#include "gromacs/utility/stringutil.h"
#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/gmxassert.h"
#include "gromacs/utility/stringutil.h"
+#include "gromacs/utility/textwriter.h"
#include "selelem.h"
#include "selvalue.h"
#include "selelem.h"
#include "selvalue.h"
@@
-320,7
+321,8
@@
Selection::printDebugInfo(FILE *fp, int nmaxind) const
fprintf(fp, " Group ");
gmx_ana_index_t g;
gmx_ana_index_set(&g, p.m.mapb.nra, p.m.mapb.a, 0);
fprintf(fp, " Group ");
gmx_ana_index_t g;
gmx_ana_index_set(&g, p.m.mapb.nra, p.m.mapb.a, 0);
- gmx_ana_index_dump(fp, &g, nmaxind);
+ TextWriter writer(fp);
+ gmx_ana_index_dump(&writer, &g, nmaxind);
fprintf(fp, " Block (size=%d):", p.m.mapb.nr);
if (!p.m.mapb.index)
fprintf(fp, " Block (size=%d):", p.m.mapb.nr);
if (!p.m.mapb.index)