Public repository of the Cosmic Linear Anisotropy Solving System (master for the most recent version of the standard code; GW_CLASS to include Cosmic Gravitational Wave Background anisotropies; classnet branch for acceleration with neutral networks; ExoCLASS branch for exotic energy injection; class_matter branch for FFTlog)
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
added sign_der = +1 or -1 for case phi
replaced while (sign_dtau(quantity - stop) < 0.) with while (sign_dersign_dtau*(quantity - stop) < 0.)
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
Modified primordial_inflation_check_potential
Modified primordial_inflation_find_phi_pivot