Skip to content

judiTopmute says: ERROR: MethodError: Cannot convert an object of type Nothing to an object of type Integer #245

Answered by mloubout
tjk9501 asked this question in Q&A
Discussion options

You must be logged in to vote

Ok that's hwat I thought, if your model is constant then it cannot detect the "bottom" of the first/water layer so it will error because it will not be able to setup correctly.

Your only option in this case is to define the top mute with the indices directly judiTopmute(n::NTuple{N, Integer}, wb::Array{T, Nw}, taperwidth::Integer)
https://github.com/slimgroup/JUDI.jl/blob/395793c9fd98f48922926f82cc2ab1d2a3bc3ff0/src/TimeModeling/Preconditioners/ModelPreconditioners.jl#L58C1-L58C74

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@mloubout
Comment options

@mloubout
Comment options

@tjk9501
Comment options

@mloubout
Comment options

Answer selected by tjk9501
@tjk9501
Comment options

@mloubout
Comment options

@tjk9501
Comment options

@mloubout
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants