Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Positive potential derivative #518

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Jobilthomas
Copy link

Hey, I was working with a hybrid inflation model with a positive derivative of potential (dV/dphi). Since CLASS is written exclusively for negative potential I had to find and modify for my positive derivative model.
Here in this pull request I have generalized the code so that the code will work for both positive and negative potential derivative. Also it is done on top of the "primordial-bug-fix" pull request that I did recently.
Changes

  • Added a new parameter, "potential_derivative", so that users can specify whether derivative is positive or negative (default = negative)

  • Modified primordial_inflation_evolve_background

    1. added sign_der = +1 or -1 for case phi
    2. replaced while (sign_dtau*(quantity - stop) < 0.) with while (sign_dersign_dtau(quantity - stop) < 0.)
  • Modified primordial_inflation_check_potential

  • Modified primordial_inflation_find_phi_pivot

Jobilthomas and others added 4 commits April 21, 2023 20:55
bug fix. changed ppm->potential to ppm->potential_derivative in line 4209 of input.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant