This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ngsolve as ng | |
import numpy as np | |
from ngsolve import Integrate, InnerProduct, SymbolicBFI, CoefficientFunction | |
from ngsolve import grad, sqrt | |
from cavitygeometry import region_outside_cavity | |
ng.ngsglobals.msg_level = 1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ngsolve as ng | |
import numpy as np | |
from ngsolve import Integrate, InnerProduct, SymbolicBFI, CoefficientFunction | |
from ngsolve import grad, sqrt | |
from cavitygeometry import region_outside_cavity | |
ng.ngsglobals.msg_level = 1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR: Can't differentiate foreigncall expression | |
Stacktrace: | |
[1] error(::String) at ./error.jl:33 | |
[2] get at ./abstractdict.jl:598 [inlined] | |
[3] (::typeof(∂(get)))(::Nothing) at /home/cody/.julia/packages/Zygote/YeCEW/src/compiler/interface2.jl:0 | |
[4] accum_global at /home/cody/.julia/packages/Zygote/YeCEW/src/lib/lib.jl:59 [inlined] | |
[5] (::typeof(∂(accum_global)))(::Nothing) at /home/cody/.julia/packages/Zygote/YeCEW/src/compiler/interface2.jl:0 | |
[6] #118 at /home/cody/.julia/packages/Zygote/YeCEW/src/lib/lib.jl:70 [inlined] | |
[7] (::typeof(∂(λ)))(::Nothing) at /home/cody/.julia/packages/Zygote/YeCEW/src/compiler/interface2.jl:0 | |
[8] #216#back at /home/cody/.julia/packages/ZygoteRules/6nssF/src/adjoint.jl:49 [inlined] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR: LoadError: Can't differentiate foreigncall expression | |
Stacktrace: | |
[1] error(::String) at ./error.jl:33 | |
[2] get at ./abstractdict.jl:598 [inlined] | |
[3] (::typeof(∂(get)))(::Nothing) at /home/cody/.julia/packages/Zygote/YeCEW/src/compiler/interface2.jl:0 | |
[4] accum_global at /home/cody/.julia/packages/Zygote/YeCEW/src/lib/lib.jl:59 [inlined] | |
[5] (::typeof(∂(accum_global)))(::Nothing) at /home/cody/.julia/packages/Zygote/YeCEW/src/compiler/interface2.jl:0 | |
[6] #118 at /home/cody/.julia/packages/Zygote/YeCEW/src/lib/lib.jl:70 [inlined] | |
[7] (::typeof(∂(λ)))(::Nothing) at /home/cody/.julia/packages/Zygote/YeCEW/src/compiler/interface2.jl:0 | |
[8] #216#back at /home/cody/.julia/packages/ZygoteRules/6nssF/src/adjoint.jl:49 [inlined] |