Giter Site home page Giter Site logo

hdintegrator's People

Contributors

iljah avatar

Watchers

 avatar

Forkers

marksantcroos

hdintegrator's Issues

local library / include path location

Can you possibly change the Makefile and/or document how to pick up the installed GSL files?

I had to set these environment variables to get passed:

export CPATH=/opt/local/include
export LIBRARY_PATH=/opt/local/lib

ld: library not found for -lboost_program_options

Which dependency is missing here?

$ make
g++ -std=c++14 -O3 -march=native -W -Wall -Wextra -Wpedantic integrands/burgers.cpp -o integrands/burgers_plain integrands/gsl/plain2.c -DMETHOD=1 -I integrands/gsl -lgsl -lgslcblas -lboost_program_options
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
ld: library not found for -lboost_program_options
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [integrands/burgers_plain] Error 1

split out python vs non-python

Given the complexity of installing the non-python bits, I would suggest splitting the two up.

The first part of the documentation would then be roughly:

  • setup the virtual env
  • pip install hidintegrator
  • the python usage examples, e.g. mpiexec -n 4 hdintegrator.py --integrand integrands/N-sphere.py --dimensions 2 (pointing out that need those files obviously)

And then continue, "for increased performance, one can install C++ versions of the integrands ..."

That at least gets your users with something attainable.

N-sphere integrand fails

$ mpiexec -n 2 ./hdintegrator.py --integrand integrands/N-sphere --dimensions 15 --prerefine 200
Traceback (most recent call last):
  File "./hdintegrator.py", line 356, in <module>
    split(choice(grid.get_cells()), 1, [randint(0, len(dimensions) - 1)], grid)
  File "/Users/mark/Desktop/review/ve/lib/python3.6/random.py", line 258, in choice
    return seq[i]
  File "/Users/mark/Desktop/review/ve/lib/python3.6/site-packages/networkx/classes/reportviews.py", line 178, in __getitem__
    return self._nodes[n]
KeyError: 0
^C(ve) netbook:hdintegrator mark$ 

It hangs after the error and I had to ctrl-c it.

pypi package

Is there a reason not to provide a pypi package?
I generally consider that a good practice.

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.