Skip to content
Snippets Groups Projects
Select Git revision
  • a04286a83e3320caf90701cd71190248f3aa82f6
  • 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

ModuleRepository.cpp

Blame
    • Stéphane Del Pino's avatar
      a04286a8
      Add the CoreModule · a04286a8
      Stéphane Del Pino authored
      This is a special module that is *always* imported
      
      For this first version of the module we have three functions:
      
      getAvailableModules() -> string
      which returns the list of available pugs modules
      
      getPugsVersion() -> string
      getPugsBuildInfo() -> string
      which are moved from the 'utils' module
      
      There is no need to use `import core` in the preamble of a pugs script
      file.
      a04286a8
      History
      Add the CoreModule
      Stéphane Del Pino authored
      This is a special module that is *always* imported
      
      For this first version of the module we have three functions:
      
      getAvailableModules() -> string
      which returns the list of available pugs modules
      
      getPugsVersion() -> string
      getPugsBuildInfo() -> string
      which are moved from the 'utils' module
      
      There is no need to use `import core` in the preamble of a pugs script
      file.
    RevisionInfo.cpp 347 B
    #include <RevisionInfo.hpp>
    #include <pastis_git_revision.hpp>
    
    std::string RevisionInfo::version()
    {
      return PASTIS_VERSION;
    }
    
    std::string RevisionInfo::head()
    {
      return PASTIS_HEAD;
    }
    
    std::string RevisionInfo::hash()
    {
      return PASTIS_HASH;
    }
    
    bool RevisionInfo::isClean()
    {
    #if PASTIS_IS_CLEAN
      return true;
    #else
      return false;
    #endif
    }