"When a run input file is supplied you can also select on atom type.",
"You can use NOT, AND and OR, you can split groups",
"into chains, residues or atoms. You can delete and rename groups.[PAR]",
- "The atom numbering in the editor and the index file starts at 1."
+ "The atom numbering in the editor and the index file starts at 1.[PAR]",
+ "The [TT]-twin[tt] switch duplicates all index groups with an offset of",
+ "[TT]-natoms[tt], which is useful for Computational Electrophysiology",
+ "double-layer membrane setups."
};
- static int natoms = 0;
- static gmx_bool bVerbose = FALSE;
- t_pargs pa[] = {
+ static int natoms = 0;
+ static gmx_bool bVerbose = FALSE;
+ static gmx_bool bDuplicate = FALSE;
+ t_pargs pa[] = {
{ "-natoms", FALSE, etINT, {&natoms},
"set number of atoms (default: read from coordinate or index file)" },
+ { "-twin", FALSE, etBOOL, {&bDuplicate},
+ "Duplicate all index groups with an offset of -natoms" },
{ "-verbose", FALSE, etBOOL, {&bVerbose},
"HIDDENVerbose output" }
};
edit_index(natoms, atoms, x, block, &gnames, bVerbose);
- write_index(ndxoutfile, block, gnames);
+ write_index(ndxoutfile, block, gnames, bDuplicate, natoms);
return 0;
}