Commit b5117a6
committed
Update FermiDiracOneHalfTeSCA
Replace evaluations of log(1+x) with log1p(x).
In the code this occurs twice.
In the old version, trickery in the first branch catched the case
when 1+x == 1 with a test if w==0.
We had this discussion before, the trick came from
JuliaDiff/ForwardDiff.jl#481
This does not work anymore with
JuliaDiff/ForwardDiff.jl#481
This PR (unfortunately) is now in v0.10.33 of ForwardDiff.jl.
There is a discussion going on that this should have been 0.11, i.e. marked
as a breaking change.
It did break Example 103, the PR fixes this.1 parent bb6e49e commit b5117a6
1 file changed
+7
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
| 67 | + | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 72 | + | |
75 | 73 | | |
76 | 74 | | |
77 | | - | |
78 | | - | |
| 75 | + | |
| 76 | + | |
79 | 77 | | |
80 | 78 | | |
81 | | - | |
| 79 | + | |
82 | 80 | | |
83 | | - | |
84 | 81 | | |
85 | 82 | | |
| 83 | + | |
86 | 84 | | |
87 | 85 | | |
88 | 86 | | |
| |||
0 commit comments