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
....
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?