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

Possible error on 1.1 #44

Closed
jtravs opened this issue Aug 10, 2019 · 0 comments · Fixed by #45
Closed

Possible error on 1.1 #44

jtravs opened this issue Aug 10, 2019 · 0 comments · Fixed by #45

Comments

@jtravs
Copy link
Contributor

jtravs commented Aug 10, 2019

Hi,
I have the following error in my code on Julia 1.1.1 with Cubature 1.4.0. The error is likely from my code, and I am going to try and extract a MWE. However, the stack trace suggests the error could be from Cubature. Is it possible?

ERROR: LoadError: setfield! immutable struct of type IntegrandData cannot be changed
Stacktrace:
 [1] setproperty! at .\sysimg.jl:19 [inlined]
 [2] qintegrand_v(::UInt32, ::UInt64, ::Ptr{Float64}, ::Cubature.IntegrandData{getfield(Luna.Modes, Symbol("##2#3")){Luna.Modes.TransModalRadial{Array{Any,1},FFTW.rFFTWPlan{Float64,-1,false,2},Tuple{getfield(Luna.Nonlinear, Symbol("#Kerr#1")){Float64}},Luna.Grid.RealGrid,typeof(densityfun)}}}, ::UInt32, ::Ptr{Float64}) at C:\Users\John\.julia\packages\Cubature\Iqftj\src\Cubature.jl:96
 [3] #17 at C:\Users\John\.julia\packages\Cubature\Iqftj\src\Cubature.jl:181 [inlined]
 [4] disable_sigint(::getfield(Cubature, Symbol("##17#18")){Bool,Bool,Int64,Float64,Float64,Int64,Int32,Int64,Array{Float64,1},Array{Float64,1},Array{Float64,1},Array{Float64,1},Cubature.IntegrandData{getfield(Luna.Modes, Symbol("##2#3")){Luna.Modes.TransModalRadial{Array{Any,1},FFTW.rFFTWPlan{Float64,-1,false,2},Tuple{getfield(Luna.Nonlinear, Symbol("#Kerr#1")){Float64}},Luna.Grid.RealGrid,typeof(densityfun)}}},Ptr{Nothing}}) at .\c.jl:446
 [5] cubature at C:\Users\John\.julia\packages\Cubature\Iqftj\src\Cubature.jl:178 [inlined]
 [6] #pquadrature_v#31 at C:\Users\John\.julia\packages\Cubature\Iqftj\src\Cubature.jl:236 [inlined]
 [7] #pquadrature_v at .\none:0 [inlined]
 [8] (::Luna.Modes.TransModalRadial{Array{Any,1},FFTW.rFFTWPlan{Float64,-1,false,2},Tuple{getfield(Luna.Nonlinear, Symbol("#Kerr#1")){Float64}},Luna.Grid.RealGrid,typeof(densityfun)})(::Array{Complex{Float64},2}, ::Array{Complex{Float64},2}, ::Int64) at C:\Users\John\Documents\GitHub\Luna\src\Modes.jl:164
....
jtravs added a commit to jtravs/Cubature.jl that referenced this issue Aug 11, 2019
This was referenced Aug 11, 2019
stevengj pushed a commit that referenced this issue Aug 13, 2019
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 a pull request may close this issue.

1 participant