Commit 34e0c05b authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

allow -suffix and -package command line flags to be use independently

parent 5508438b
Loading
Loading
Loading
Loading
+21 −20
Original line number Diff line number Diff line
@@ -761,7 +761,7 @@ void LAMMPS::post_create()
  // check that KOKKOS package classes were instantiated
  // check that GPU, INTEL, USER-OMP fixes were compiled with LAMMPS

  if (!suffix_enable) return;
  if (suffix_enable) {

    if (strcmp(suffix,"gpu") == 0 && !modify->check_package("GPU"))
      error->all(FLERR,"Using suffix gpu without GPU package installed");
@@ -782,6 +782,7 @@ void LAMMPS::post_create()
      if (strcmp(suffix2,"intel") == 0) input->one("package intel 1");
      if (strcmp(suffix2,"omp") == 0) input->one("package omp 0");
    }
  }

  // invoke any command-line package commands