Remove Catamount cmake
authorRoland Schulz <roland@utk.edu>
Sun, 19 Oct 2014 16:23:53 +0000 (12:23 -0400)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 22 Oct 2014 11:15:00 +0000 (13:15 +0200)
Was superseeded in 2006. No Cray XT3 should be around anymore.
Also gets rid of GMX_NO_SYSTEM which was only set by Catamount

Change-Id: Ib3c0450995e395ccdd2935b629da7930d9da5a4a

cmake/gmxManageMPI.cmake
cmake/gmxTestCatamount.cmake [deleted file]
src/config.h.cmakein
src/gromacs/gmxana/gmx_do_dssp.c
src/gromacs/gmxana/gmx_trjconv.c
src/gromacs/gmxana/gmx_tune_pme.c
src/gromacs/gmxlib/viewit.c
src/gromacs/mdlib/qm_gaussian.c
src/programs/view/dialogs.cpp

index 5b35e0d644c5a3f6ab7b831b57c4385095861c14..50bbe80034253131b6c1484e2d19d077c4f71e4e 100644 (file)
@@ -153,13 +153,5 @@ if(GMX_MPI)
         "or set the variables reported missing for MPI_C above.")
   endif()
 
-  include(gmxTestCatamount)
-  gmx_test_catamount(GMX_CRAY_CATAMOUNT)
-  if(GMX_CRAY_CATAMOUNT)
-    set(GMX_NO_SYSTEM 1)
-    set(GMX_NO_NICE 1)
-    set(HAVE_PWD_H 0)
-  endif()
-
   set(GMX_LIB_MPI 1)
 endif()
diff --git a/cmake/gmxTestCatamount.cmake b/cmake/gmxTestCatamount.cmake
deleted file mode 100644 (file)
index 6b1dbd5..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-#
-# This file is part of the GROMACS molecular simulation package.
-#
-# Copyright (c) 2009,2013, by the GROMACS development team, led by
-# Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
-# and including many others, as listed in the AUTHORS file in the
-# top-level source directory and at http://www.gromacs.org.
-#
-# GROMACS is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public License
-# as published by the Free Software Foundation; either version 2.1
-# of the License, or (at your option) any later version.
-#
-# GROMACS is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with GROMACS; if not, see
-# http://www.gnu.org/licenses, or write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
-#
-# If you want to redistribute modifications to GROMACS, please
-# consider that scientific software is very special. Version
-# control is crucial - bugs must be traceable. We will be happy to
-# consider code for inclusion in the official distribution, but
-# derived work must not be called official GROMACS. Details are found
-# in the README & COPYING files - if they are missing, get the
-# official version at http://www.gromacs.org.
-#
-# To help us fund GROMACS development, we humbly ask that you cite
-# the research papers on the package. Check out http://www.gromacs.org.
-
-# - Define function to check we are compiling for CRAY XT catamount
-#
-#  GMX_TEST_CATAMOUNT(VARIABLE)
-#
-#  VARIABLE will be set to true if we are compiling for catamount
-#
-
-function(GMX_TEST_CATAMOUNT VARIABLE)
-    include(CheckCSourceCompiles)
-    check_c_source_compiles(
-        "int
-main()
-{
-#if defined __QK_USER__
-  return 0;
-#else
-#  error not catamount
-#endif
-}" CATAMOUNT_COMPILE_OK)
-    set(${VARIABLE} ${CATAMOUNT_COMPILE_OK} PARENT_SCOPE)
-endfunction()
index 69e3400264ba71d9b9b5a1edeb2d2f8f8183e080..f79823c61cd70fb254f8f8174e3ffe6ea07b10aa 100644 (file)
 /* Use if can't rename checkpoints */
 #cmakedefine GMX_NO_RENAME
 
-/* Ignore calls to system(3) */
-#cmakedefine GMX_NO_SYSTEM
-
 /* Use (modified) Gamess-UK for QM-MM calculations */
 #cmakedefine GMX_QMMM_GAMESS
 
index 610f52a10e9642de15147dba777f50f5168226f2..729348d20891552ed43e610f655165e9f373f407 100644 (file)
@@ -36,8 +36,6 @@
  */
 #include "gmxpre.h"
 
-#include "config.h"
-
 #include <stdlib.h>
 
 #include "gromacs/commandline/pargs.h"
@@ -659,17 +657,11 @@ int gmx_do_dssp(int argc, char *argv[])
         write_pdbfile_indexed(tapein, NULL, atoms, x, ePBC, box, ' ', -1, gnx, index, NULL, TRUE);
         gmx_ffclose(tapein);
 
-#ifdef GMX_NO_SYSTEM
-        printf("Warning-- No calls to system(3) supported on this platform.");
-        printf("Warning-- Skipping execution of 'system(\"%s\")'.", dssp);
-        exit(1);
-#else
         if (0 != system(dssp))
         {
             gmx_fatal(FARGS, "Failed to execute command: %s\n",
                       "Try specifying your dssp version with the -ver option.", dssp);
         }
-#endif
 
         /* strip_dssp returns the number of lines found in the dssp file, i.e.
          * the number of residues plus the separator lines */
index b687c07220f416257e73a780d5ae5c2c8424a199..9e4833c783f4aa4d92636c50a12ffb396273e485 100644 (file)
@@ -1870,15 +1870,10 @@ int gmx_trjconv(int argc, char *argv[])
                             char c[255];
                             sprintf(c, "%s  %d", exec_command, file_nr-1);
                             /*fprintf(stderr,"Executing '%s'\n",c);*/
-#ifdef GMX_NO_SYSTEM
-                            printf("Warning-- No calls to system(3) supported on this platform.");
-                            printf("Warning-- Skipping execution of 'system(\"%s\")'.", c);
-#else
                             if (0 != system(c))
                             {
                                 gmx_fatal(FARGS, "Error executing command: %s", c);
                             }
-#endif
                         }
                         outframe++;
                     }
index c4a7e6e021b4769d6c1e6063fc8d48f38eb8c13f..7ca664ac4dba58df7e1fe8b7cef428f95169a90b 100644 (file)
@@ -119,11 +119,7 @@ static void sep_line(FILE *fp)
 /* Wrapper for system calls */
 static int gmx_system_call(char *command)
 {
-#ifdef GMX_NO_SYSTEM
-    gmx_fatal(FARGS, "No calls to system(3) supported on this platform. Attempted to call:\n'%s'\n", command);
-#else
     return ( system(command) );
-#endif
 }
 
 
index c6a3a690bb47fe76e4111561750b200a6f258615..61f00ae86130c601a17e7e8f44899b0e5e080b2e 100644 (file)
@@ -39,8 +39,6 @@
 
 #include "gromacs/legacyheaders/viewit.h"
 
-#include "config.h"
-
 #include <stdlib.h>
 #include <string.h>
 
@@ -125,15 +123,10 @@ void do_view(const output_env_t oenv, const char *fn, const char *opts)
             {
                 sprintf(buf, "%s %s %s &", cmd, opts ? opts : "", fn);
                 fprintf(stderr, "Executing '%s'\n", buf);
-#ifdef GMX_NO_SYSTEM
-                printf("Warning-- No calls to system(3) supported on this platform.");
-                printf("Warning-- Skipping execution of 'system(\"%s\")'.", buf);
-#else
                 if (0 != system(buf) )
                 {
                     gmx_fatal(FARGS, "Failed executing command: %s", buf);
                 }
-#endif
             }
         }
     }
index 6339b94f8a4b00b4bcf83813d0be7046a5194277..d90232c7e86a55fae13a1b0ca5d9a31f4c1fb51f 100644 (file)
@@ -1017,15 +1017,10 @@ void do_gaussian(int step, char *exe)
                 "input.log");
     }
     fprintf(stderr, "Calling '%s'\n", buf);
-#ifdef GMX_NO_SYSTEM
-    printf("Warning-- No calls to system(3) supported on this platform.");
-    gmx_fatal(FARGS, "Call to '%s' failed\n", buf);
-#else
     if (system(buf) != 0)
     {
         gmx_fatal(FARGS, "Call to '%s' failed\n", buf);
     }
-#endif
 }
 
 real call_gaussian(t_commrec *cr,  t_forcerec *fr,
index c55659785374923adff2e4f32de818db0a879541..6b68d0f64a28936e090ddf52925629bc629361fb 100644 (file)
@@ -106,15 +106,10 @@ static void shell_comm(const char *title, const char *script, int nsleep)
     fprintf(stderr, "command: %s\n", command);
 #endif
 
-#ifdef GMX_NO_SYSTEM
-    printf("Warning-- No calls to system(3) supported on this platform.");
-    printf("Warning-- Skipping execution of 'system(\"%s\")'.", buf);
-#else
     if (0 != system(command))
     {
         gmx_fatal(FARGS, "Failed to execute command: %s", command);
     }
-#endif
 
 #ifdef DEBUG
     unlink(tmp)