biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
462e5c1
)
Small fix to improve xpm2ps output
author
Justin Lemkul
<jalemkul@vt.edu>
Tue, 15 Feb 2011 19:07:38 +0000
(14:07 -0500)
committer
Justin Lemkul
<jalemkul@vt.edu>
Tue, 15 Feb 2011 19:07:38 +0000
(14:07 -0500)
src/tools/gmx_xpm2ps.c
patch
|
blob
|
history
diff --git
a/src/tools/gmx_xpm2ps.c
b/src/tools/gmx_xpm2ps.c
index 97125eec9086d4e5aebee3113462c4e55b550277..89d803ff691cbe3209ab1bb9aa38057826bafb4e 100644
(file)
--- a/
src/tools/gmx_xpm2ps.c
+++ b/
src/tools/gmx_xpm2ps.c
@@
-1229,11
+1229,11
@@
int gmx_xpm2ps(int argc,char *argv[])
fn=opt2fn("-f",NFILE,fnm);
nmat=read_xpm_matrix(fn,&mat);
fn=opt2fn("-f",NFILE,fnm);
nmat=read_xpm_matrix(fn,&mat);
- fprintf(stderr,"There
are %d matrices in %s\n",nmat
,fn);
+ fprintf(stderr,"There
%s %d matri%s in %s\n",(nmat>1)?"are":"is",nmat,(nmat>1)?"ces":"x"
,fn);
fn=opt2fn_null("-f2",NFILE,fnm);
if (fn) {
nmat2=read_xpm_matrix(fn,&mat2);
fn=opt2fn_null("-f2",NFILE,fnm);
if (fn) {
nmat2=read_xpm_matrix(fn,&mat2);
- fprintf(stderr,"There
are %d matrices in %s\n",nmat2
,fn);
+ fprintf(stderr,"There
%s %d matri%s in %s\n",(nmat2>1)?"are":"is",nmat2,(nmat2>1)?"ces":"x"
,fn);
if (nmat != nmat2) {
fprintf(stderr,"Different number of matrices, using the smallest number.\n");
nmat=nmat2=min(nmat,nmat2);
if (nmat != nmat2) {
fprintf(stderr,"Different number of matrices, using the smallest number.\n");
nmat=nmat2=min(nmat,nmat2);