Giter VIP home page Giter VIP logo

aspic's Introduction

ASPIC: Accurate Slow-roll Prediction for Inflationary Cosmology


Summary

This package compiles and install the shared scientific library libaspic, a collection of fast modern fortran routines for computing various observable quantities used in Cosmology from definite single field inflationary models.

It aims at providing an efficient, extendable and accurate way of comparing theoretical inflationary predictions with cosmological data. As the list of inflationary models is always increasing, you are encouraged to add support for any model that would not yet be implemented.


Installation

The code is therefore released as GNU software, you are free and welcome to expand this code and distribute the source code along the rules specified in COPYING.

Compilation and installation of the ASPIC library

./configure
  make
  make install

See INSTALL for more options.

Checking each models individually (slower)

  ./configure
  make check

In each model subdirectory (located under src/), a test program print and generate some slow-roll predictions for various values of the reheating energy density.

Testing the whole library (much slower)

  ./configure
  make test

This is the equivalent of 'make check' followed by the execution of all the test programs. The testsuite returns an error if one of them fails to terminate properly.


Documentation

Checkout the MAN pages for a complete documentation man libaspic


Troubleshooting

Some calls to the "atan()" intrinsic functions use FORTRAN08 support for complex numbers. This is supported with recent versions of open source compilers such as gfortran. If you ever encounter an error with these function calls try to define:

   export FCFLAGS="-DNOF08"

Then run the standard

   ./configure"
   make
   make install

Some models may require quite extreme fine-tunings according to the parameter values used. If you get error messages due to numerical precision limitation, these may be overcome by compiling the library in quadruple precision (much slower) with

  ./configure --enable-quad-precision
  make
  make install

The new modules are located in $PREFIX/include/aspicq and the library name is accordingly changed to "libaspicq".

Parallel processing is switched by default using the "-fopenmp" flag. It is compatible with both gcc, gfortran and other proprietary compilers. In case of incompatibility with your compiler, parallel processing can be deactivated with:

  ./configure --disable-openmp

In case you want to specify your own OpenMP compilation flag, you can do:

  export FCFLAGS=" -myopenmpflag"
  ./configure --disable-openmp

aspic's People

Contributors

juanfisicobr 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.