+ if (dsspVersion == 4)
+ {
+ std::string mkdsspCommandLine = dsspStrings.dptr;
+ mkdsspCommandLine += " --output-format dssp ";
+ mkdsspCommandLine += dsspStrings.pdbfile;
+
+#if not HAVE_PIPES && not GMX_NATIVE_WINDOWS
+ // Without pipe/popen, rely on temporary file for output
+ mkdsspCommandLine += " " + dsspStrings.tmpfile;
+#endif
+
+ GMX_RELEASE_ASSERT(mkdsspCommandLine.size() < 255, "DSSP v4 command line too long");
+ strcpy(dssp, mkdsspCommandLine.c_str());
+ }
+ else if (dsspVersion == 2)
+ {
+ printDsspResult(dssp, dsspStrings, redirectionString);
+ }
+ else