Skip to content

Commit

Permalink
added transfer function animations to example notebook;fix for rare r…
Browse files Browse the repository at this point in the history
…ange bug; comment for exporting time evolution
  • Loading branch information
cmbant committed May 15, 2023
1 parent 52ed676 commit c5b3f6a
Show file tree
Hide file tree
Showing 9 changed files with 897 additions and 105 deletions.
2 changes: 1 addition & 1 deletion camb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
__author__ = "Antony Lewis"
__contact__ = "antony at cosmologist dot info"
__url__ = "https://camb.readthedocs.io"
__version__ = "1.4.0"
__version__ = "1.4.1"

from . import baseconfig

Expand Down
Binary file modified camb/cambdll.dll
Binary file not shown.
4 changes: 4 additions & 0 deletions camb/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,10 @@ def get_time_evolution(self, q, eta, vars=model.evolve_names, lAccuracyBoost=4,
"""
Get the mode evolution as a function of conformal time for some k values.
Note that gravitational potentials (e.g. Weyl) are not integrated in the code and are
calculated as derived parameters; they may be numerically unstable far outside the horizon.
(use the series expansion result if needed far outside the horizon)
:param q: wavenumber values to calculate (or array of k values)
:param eta: array of requested conformal times to output
:param vars: list of variable names or sympy symbolic expressions to output (using camb.symbolic)
Expand Down
542 changes: 493 additions & 49 deletions docs/CAMBdemo.html

Large diffs are not rendered by default.

442 changes: 393 additions & 49 deletions docs/CAMBdemo.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/ScalEqs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2127,7 +2127,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -2141,9 +2141,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
"version": "3.11.0"
}
},
"nbformat": 4,
"nbformat_minor": 1
"nbformat_minor": 4
}
2 changes: 1 addition & 1 deletion fortran/camb_python.f90
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ function CAMB_TimeEvolution(this,nq, q, ntimes, times, noutputs, outputs, &

global_error_flag = 0
outputs = 0
taustart = GetTauStart(maxval(q))
taustart = min(times(1),GetTauStart(maxval(q)))
if (.not. this%ThermoData%HasTHermoData .or. taustart < this%ThermoData%tauminn) call this%ThermoData%Init(this,taustart)
!$OMP PARALLEL DO DEFAUlT(SHARED),SCHEDUlE(DYNAMIC), PRIVATE(EV, q_ix)
do q_ix= 1, nq
Expand Down
2 changes: 1 addition & 1 deletion fortran/config.f90
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module config
use constants, only: const_twopi
implicit none

character(LEN=*), parameter :: version = '1.4.0'
character(LEN=*), parameter :: version = '1.4.1'

integer :: FeedbackLevel = 0 !if >0 print out useful information about the model

Expand Down
2 changes: 1 addition & 1 deletion forutils
Submodule forutils updated 1 files
+2 −2 RangeUtils.f90

0 comments on commit c5b3f6a

Please sign in to comment.