Skip to content

Repository files navigation

BUILDING NDI

Prerequisite

  • Git
  • A C compiler
  • A Fortran compiler
  • CMake 3.9

Instructions

  1. Acquire the source code On LANL systems, those with access to the XCP bitbucket server can acquire the NDI source code using the Git version control system.

    git clone ssh://git@xcp-stash.lanl.gov:7999/ndt/ndi.git
    
  2. Establish your environment

    On LANL platforms, this can be accomplished using the environment module system.

    module load cmake
    module load <your preferred compiler vendor>
    
  3. Configure your build

    cd ndi
    mkdir build
    cd build
    cmake [options] ..
    

    Optionally, the configuration can be customized by calling to the ccmake text-based interface or cmake-gui graphical user interface. Notably, when building with a static configuration build tool---such as GNU Make or Google Ninja---it's advisable to set the CMAKE_BUILD_TYPE variable to either Release or Debug, according to your use case. In addition, for those intending to install NDI, the installation directory can be specified by setting the CMAKE_INSTALLATION_PREFIX variable. See the CMake documentation for advanced usage.

  4. Build the source

    cmake --build .
    

    See the CMake build tool documentation for advanced usage.

  5. Run the tests

    ctest
    

    See the CMake testing tool documentation for advanced usage.

  6. (Optional) Install the NDI library.

    cmake --build . --target install
    

COPYRIGHT INFORMATION

O# (O5071)

About

Nuclear Data Interface

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages