Giter Site home page Giter Site logo

federicomarulli / cosmobolognalib Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 10.0 731.57 MB

free software C++ libraries for cosmological calculations

License: GNU General Public License v3.0

C++ 96.84% C 0.12% Fortran 0.17% Makefile 2.14% Python 0.14% SWIG 0.59%

cosmobolognalib's People

Contributors

alfonso-veropalumbo avatar federicomarulli avatar tommasoronconi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cosmobolognalib's Issues

Lack of installation / separate write directories

It looks like CBL is designed to be run in the same directory where it's compiled, and that read/write access is needed to the compile/run tree at runtime. Is this correct?

If so, this makes some ways of using CBL very difficult. In particular, I'm trying to use it inside a Docker container, with container managers on HPC systems and elsewhere that mount the Docker container's filesystem as read-only.

The first issue is the lack of installation options -- I have coped by just copying the whole compile tree into the container. It would be nice if there was a "make install" equivalent that allowed a runtime to be copied to something under (say) /usr/local.

The bigger problem is that CBL seems to need to read and write within its own tree, rather than having user files written to something (say) underneath a user's home directory. This means that it's not possible to have a "system" install of CBL, but that the only practical way to use it is for the user to compile it and run it in their own directory. And, this doesn't work if you build CBL in a container where the filesystem built into the container is not supposed to be writeable.

How hard would it be to separate this out? The first errors I hit were with a call to sed, and a quick grep suggests that there are a lot of these calls in the code.

Is it possible to find out which directories need to be written to? Then a hackaround might be possible where those directories are copied to a writeable volume inside the container.

EisensteinHu - with or without BAOs?

It is no clear to me whether the implemented EisensteinHu transfer function includes the BAO wiggles or not. From the reference in the class documentation, it seems that this is the no wiggle TF. It would be great if this could be clarified.

Compilation Error at read_pk2.f

Hi, I can't compile the code.
after verifying that all required dependencies (listed in documentation) were installed, I do a fresh checkout and make don't compile the code:

$ make
(......) tons of warnings that seems unimportant...
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 30 at (1)
read_pk2.f:428:17:

428 | call qromo(var, kmin, ks, s1, midpnt)
| 1
Error: Interface mismatch in dummy procedure ‘func’ at (1): 'var' is not a function
read_pk2.f:429:17:

429 | call qromo(var, ks, kmax, s2, midinf)
| 1
Error: Interface mismatch in dummy procedure ‘func’ at (1): 'var' is not a function
make[2]: *** [makefile:69: read_pk2.o] Error 1
make[2]: Leaving directory '/mnt/storage2/dpaz/WorkDir/CosmoBolognaLib/External/CPT_Library'
make[1]: *** [Makefile:505: CPT_Library] Error 2
make[1]: Leaving directory '/mnt/storage2/dpaz/WorkDir/CosmoBolognaLib'
make: *** [Makefile:355: ALL] Error 2

$ gcc --version
gcc (GCC) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ gsl-config --version
2.6
$ pacman -Ss fftw
extra/fftw 3.3.9-1 [installed]
A library for computing the discrete Fourier transform (DFT)
$ pacman -Ss cfitsio
extra/cfitsio 1:3.49-1 [installed]
A library of C and Fortran subroutines for reading and writing data files in FITS (Flexible Image Transport System) data format
pacman -Ss Boost
extra/boost 1.75.0-3 [installed]
Free peer-reviewed portable C++ source libraries - development headers

Any help will be very appreciated,
All the best,
Dante

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.