Skip to content

Commit

Permalink
fix and disable old Julia version testing on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tknopp committed Feb 12, 2024
1 parent b2708be commit d219aec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
fail-fast: false
matrix:
version:
- '1.6' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
# - 'nightly'
os:
Expand Down
13 changes: 6 additions & 7 deletions src/equilibriumAnis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ function simulationMNP(B::g, tVec, ::EquilibriumAnisModel;
epsilon = 1e-10, # Value that defines when fields and kAnis are defined as "small"
kargs...
) where g


y = zeros(Float64, length(tVec), 3)

Expand Down Expand Up @@ -42,7 +41,7 @@ function simulationMNP(B::g, tVec, ::EquilibriumAnisModel;
y[ti, :] = R * vec(m_[ti,:])
end
else
dt = step(tVec)/10
dt = step(tVec)/10000

B_ = zeros(Float64, length(tVec), 3, 2)
for ti=1:length(tVec)
Expand All @@ -55,7 +54,7 @@ function simulationMNP(B::g, tVec, ::EquilibriumAnisModel;

# the field is rotated into the original coordinate system
for ti=1:length(tVec)
y[ti, :] = R * (vec(m1_[ti,:]) .- vec(m2_[ti,:])) ./ dt
y[ti, :] = R * (vec(m2_[ti,:]) .- vec(m1_[ti,:])) ./ dt
end
end

Expand Down Expand Up @@ -149,7 +148,7 @@ function eqAnisoMeanMagneticMomentAlongZAxis(H, DCore, MS, temp, kAnis::Abstract
for k = 0:order+1
besselFuncTerm[:,k+1] = log.(besseli.(1/2+k,beta_normH_12)) # I_{1/2+l}(\beta|H|_{12}) in log-scale
#v[:,k+1] = log(besseli(1/2+k,beta_normH_12,1))+beta_normH_12; %use of rescaled besseli
#with mulitplication of exp(-beta_normH_12) possible to reduce overflow
#with multiplication of exp(-beta_normH_12) possible to reduce overflow
#if beta_normH_12 is large (not used)
besselFuncTerm[is_H_12_nearly_zero,k+1] .= 0 # if \beta|H|_{12} is approximately zero use limits
factor = (-1/2+k)*log_2+log_pi_sqrt # 2^{-1/2+k}*sqrt(pi) in log-scale
Expand All @@ -159,7 +158,7 @@ function eqAnisoMeanMagneticMomentAlongZAxis(H, DCore, MS, temp, kAnis::Abstract
# no anisotropy present -> should correspond to the equilibrium model
# without anisotropy (Langevin function)
if k==0
#initizalize
#initizalize
polyLimit = zeros(size(log_squared_beta_H3))
else
polyLimit = k*log_squared_beta_H3 # (\beta H_3)^{2k} in log-scale
Expand Down Expand Up @@ -208,10 +207,10 @@ function eqAnisoMeanMagneticMomentAlongZAxis(H, DCore, MS, temp, kAnis::Abstract
# order \alpha = 1/2 Laguerre polynomials
# Note : L^{(-1/2)}_{n+1}(x)=L^{(1/2)}_{n+1}(x)- L^{(1/2)}_{n}(x)
log_laguerrePolyMinus12[is_alpha_k_larger_zero,2:end] = log.(laguerrePoly12[:,2:end]-laguerrePoly12[:,1:end-1])
# calculate the "unnormalized" magenetization in z-direction
# calculate the "unnormalized" magnetization in z-direction
z3[is_alpha_k_larger_zero] .= betaH3[is_alpha_k_larger_zero].*sum(exp.(besselFuncTerm[is_alpha_k_larger_zero,2:end]+powerTerms32[is_alpha_k_larger_zero,1:end-1]+log.(laguerrePoly12[:,1:end-1])),dims=2)
#else
# calculate the magenetization in z-direction if approximately zero is nearly zero
# calculate the magnetization in z-direction if approximately zero is nearly zero
z3[is_alpha_k_zero] .= betaH3[is_alpha_k_zero].*sum(exp.(besselFuncTerm[is_alpha_k_zero,2:end]+powerTerms32[is_alpha_k_zero,1:end-1]+log_laguerrePoly12[:,1:end-1]),dims=2)

# In Limit \alpha_K->0 limit the order of \alpha plays no role
Expand Down

2 comments on commit d219aec

@tknopp
Copy link
Member Author

@tknopp tknopp commented on d219aec Feb 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/100682

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.0 -m "<description of version>" d219aec3cf80dce62e0dd5cf55cf96d5b4e8165c
git push origin v0.1.0

Please sign in to comment.