Giter VIP home page Giter VIP logo

nusquids_lv's Introduction

nuSQuIDS

A user manual can be generated by: make docs;

Prerequisites

The following packages are required to build and use the client library, and can probably be had from your favorite package manager:

PythonToolBox

Run online jupyter notebook example Binder

Additionally for compiling and using the python bindings:

Required:

Recommended:

Documentation

The LaTeX and pdf files are included in nuSQuIDS/doc/ folder.

Configuration

The path for the GSL libraries can be specified by running:

./configure --with-gsl-incdir=GSL_include_path --with-gsl-libdir-=GSL_library_path

or, assuming a standard installation into 'include' and 'lib' subdirectories within a common prefix:

./configure --with-gsl=GSL_prefix

The path for the HDF5 libraries can be specified by running:

./configure --with-hdf5-incdir=HDF5_include_path --with-hdf5-libdir=HDF5_library_path

or more simply

./configure --with-hdf5=HDF5_prefix

Finally, the path for SQuIDS can be specified by:

./configure --with-squids-incdir=SQuIDS_include_path --with-squids-libdir=SQuIDS_library_path

or commonly just

./configure --with-squids=SQuIDS_prefix

To compile the python interface it is additionally necessary to pass the --with-python-bindings option to configure. Also, the boost python library, a working python installation, and numpy must be available. The location of the boost library can be specified using:

./configure --with-boost-incdir=boost_include_path --with-boost-libdir-=boost_library_path

or in simple cases

./configure --with-boost=boost_prefix

The python executable (which will also be used to locate numpy) can be specified with:

./configure --python-bin=PYTHON_EXECUTABLE

Once configuration is complete the library can be compiled by running:

make

Unit tests to verify correct behavior can be run using:

make test

A set of example programs demonstrating usage and functionality can be compiled with the command:

make examples

The resulting example executables can then be found in the various subdirectories of examples

Finally the library can be installed using:

make install

By default this will attempt to install the library within /usr/local; this can be changed by using the --prefix option when running configure:

./configure --prefix=$HOME

Compiling the Python Interface

If you have activated the python interface by doing --with-python-bindings then proceed according to this instructions Even when configured the python interface is not built with the main library. To compile it do the following:

cd resources/python/src/
make

After successful compilation the bindings will be stored in resources/python/bindings/. To make them available from within python, modify your PYTHONPATH:

export PYTHONPATH=$(PATH_TO_nuSQUIDS)/resources/python/bindings/:$PYTHONPATH

nusquids_lv's People

Contributors

arguelles avatar cnweaver avatar jsalvado avatar austinschneider avatar bskrzypek avatar atrettin avatar jcarpiod avatar mmkekic avatar jvansanten avatar kotoyo avatar fkallen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.