Skip to content
Snippets Groups Projects
Select Git revision
  • da523f3d6fb1784863693f1a678839df16f5084f
  • develop default protected
  • origin/stage/bouguettaia
  • feature/kinetic-schemes
  • feature/reconstruction
  • feature/local-dt-fsi
  • feature/composite-scheme-sources
  • feature/composite-scheme-other-fluxes
  • feature/serraille
  • feature/variational-hydro
  • feature/composite-scheme
  • hyperplastic
  • feature/polynomials
  • feature/gks
  • feature/implicit-solver-o2
  • feature/coupling_module
  • feature/implicit-solver
  • feature/merge-local-dt-fsi
  • master protected
  • feature/escobar-smoother
  • feature/hypoelasticity-clean
  • v0.5.0 protected
  • v0.4.1 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • v0.2.0 protected
  • v0.1.0 protected
  • Kidder
  • v0.0.4 protected
  • v0.0.3 protected
  • v0.0.2 protected
  • v0 protected
  • v0.0.1 protected
33 results

positional_validation.cpp

Blame
    • Stéphane Del Pino's avatar
      da523f3d
      git subrepo commit packages/CLI11 · da523f3d
      Stéphane Del Pino authored
      subrepo:
        subdir:   "packages/CLI11"
        merged:   "76d2cde65"
      upstream:
        origin:   "git@github.com:CLIUtils/CLI11.git"
        branch:   "master"
        commit:   "76d2cde65"
      git-subrepo:
        version:  "0.4.0"
        origin:   "git@github.com:ingydotnet/git-subrepo.git"
        commit:   "5d6aba9"
      da523f3d
      History
      git subrepo commit packages/CLI11
      Stéphane Del Pino authored
      subrepo:
        subdir:   "packages/CLI11"
        merged:   "76d2cde65"
      upstream:
        origin:   "git@github.com:CLIUtils/CLI11.git"
        branch:   "master"
        commit:   "76d2cde65"
      git-subrepo:
        version:  "0.4.0"
        origin:   "git@github.com:ingydotnet/git-subrepo.git"
        commit:   "5d6aba9"
    BuildInfo.cpp 3.30 KiB
    #include <utils/BuildInfo.hpp>
    #include <utils/Stringify.hpp>
    #include <utils/pugs_build_info.hpp>
    #include <utils/pugs_config.hpp>
    
    #include <sstream>
    
    #ifdef PUGS_HAS_MPI
    #include <mpi.h>
    #endif   //  PUGS_HAS_MPI
    
    #ifdef PUGS_HAS_PARMETIS
    #include <parmetis.h>
    #endif   //  PUGS_HAS_PARMETIS
    
    #ifdef PUGS_HAS_PTSCOTCH
    #include <ptscotch.h>
    #endif   //  PUGS_HAS_PTSCOTCH
    
    #ifdef PUGS_HAS_PETSC
    #include <petsc.h>
    #endif   // PUGS_HAS_PETSC
    
    #ifdef PUGS_HAS_SLEPC
    #include <slepc.h>
    #endif   // PUGS_HAS_PETSC
    
    #ifdef PUGS_HAS_EIGEN3
    #include <eigen3/Eigen/Eigen>
    #endif   // PUGS_HAS_EIGEN3
    
    #ifdef PUGS_HAS_HDF5
    #include <highfive/highfive.hpp>
    #endif   // PUGS_HAS_HDF5
    
    #ifdef PUGS_HAS_SLURM
    #include <slurm/slurm.h>
    #endif   // PUGS_HAS_SLURM
    
    std::string
    BuildInfo::type()
    {
      return PUGS_BUILD_TYPE;
    }
    
    std::string
    BuildInfo::compiler()
    {
      std::stringstream compiler_info;
      compiler_info << PUGS_BUILD_COMPILER << " (" << PUGS_BUILD_COMPILER_VERSION << ")";
      return compiler_info.str();
    }
    
    std::string
    BuildInfo::kokkosDevices()
    {
      return PUGS_BUILD_KOKKOS_DEVICES;
    }
    
    std::string
    BuildInfo::mpiLibrary()
    {
    #ifdef PUGS_HAS_MPI
      return []() {
        int length;
        char mpi_version[MPI_MAX_LIBRARY_VERSION_STRING];
        MPI_Get_library_version(mpi_version, &length);
        return std::string(mpi_version);
      }();
    #else    // PUGS_HAS_MPI
      return "none";
    #endif   // PUGS_HAS_MPI
    }
    
    std::string
    BuildInfo::parmetisLibrary()
    {
    #ifdef PUGS_HAS_PARMETIS
      return stringify(PARMETIS_MAJOR_VERSION) + "." + stringify(PARMETIS_MINOR_VERSION) + "." +
             stringify(PARMETIS_SUBMINOR_VERSION);
    #else    // PUGS_HAS_PARMETIS
      return "none";
    #endif   // PUGS_HAS_PARMETIS
    }
    
    std::string
    BuildInfo::ptscotchLibrary()
    {
    #ifdef PUGS_HAS_PTSCOTCH
      return stringify(SCOTCH_VERSION) + "." + stringify(SCOTCH_RELEASE) + "." + stringify(SCOTCH_PATCHLEVEL);
    #else    // PUGS_HAS_PTSCOTCH
      return "none";
    #endif   // PUGS_HAS_PTSCOTCH
    }
    
    std::string
    BuildInfo::petscLibrary()
    {
    #ifdef PUGS_HAS_PETSC
      return stringify(PETSC_VERSION_MAJOR) + "." + stringify(PETSC_VERSION_MINOR) + "." +
             stringify(PETSC_VERSION_SUBMINOR);
    #else    // PUGS_HAS_PETSC
      return "none";
    #endif   // PUGS_HAS_PETSC
    }
    
    std::string
    BuildInfo::slepcLibrary()
    {
    #ifdef PUGS_HAS_SLEPC
      return stringify(SLEPC_VERSION_MAJOR) + "." + stringify(SLEPC_VERSION_MINOR) + "." +
             stringify(SLEPC_VERSION_SUBMINOR);
    #else    // PUGS_HAS_SLEPC
      return "none";
    #endif   // PUGS_HAS_SLEPC
    }
    
    std::string
    BuildInfo::eigen3Library()
    {
    #ifdef PUGS_HAS_EIGEN3
      return stringify(EIGEN_WORLD_VERSION) + "." + stringify(EIGEN_MAJOR_VERSION) + "." + stringify(EIGEN_MINOR_VERSION);
    #else    // PUGS_HAS_EIGEN3
      return "none";
    #endif   // PUGS_HAS_EIGEN3
    }
    
    std::string
    BuildInfo::hdf5Library()
    {
    #ifdef PUGS_HAS_HDF5
    
    #ifdef H5_HAVE_PARALLEL
      return stringify(H5_VERSION) + " [parallel]";
    #else    // H5_HAVE_PARALLEL
      return stringify(H5_VERSION) + " [sequential]";
    #endif   // H5_HAVE_PARALLEL
    
    #else    // PUGS_HAS_HDF5
      return "none";
    #endif   // PUGS_HAS_HDF5
    }
    
    std::string
    BuildInfo::slurmLibrary()
    {
    #ifdef PUGS_HAS_SLURM
    
      return stringify(SLURM_VERSION_MAJOR(SLURM_VERSION_NUMBER)) + "." +
             stringify(SLURM_VERSION_MINOR(SLURM_VERSION_NUMBER)) + "." +
             stringify(SLURM_VERSION_MICRO(SLURM_VERSION_NUMBER));
    
    #else    // PUGS_HAS_SLURM
      return "none";
    #endif   // PUGS_HAS_SLURM
    }