federicomarulli / cosmobolognalib Goto Github PK
View Code? Open in Web Editor NEWfree software C++ libraries for cosmological calculations
License: GNU General Public License v3.0
free software C++ libraries for cosmological calculations
License: GNU General Public License v3.0
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.