-
Notifications
You must be signed in to change notification settings - Fork 38
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
Weird method overwritten warning on 0.5 #87
Comments
Not sure... |
I narrowed it down to this example: module C
global const PETSC_DECIDE = -1
typealias PetscInt Int64
MATMPIAIJ = "matmpiaij"
MatType = Symbol
end # end module C
module MPI
typealias Comm Cint
COMM_WORLD = Cint(42)
end
module PETSc
using MPI
using C
function Mat{T}(::Type{T}, mtype::C.MatType=C.MATSEQAIJ; comm::MPI.Comm=MPI.COMM_WORLD)
println("I found the other half of the problem")
end
function Mat{T}(::Type{T}, m::Integer=C.PETSC_DECIDE, n::Integer=C.PETSC_DECIDE;
mlocal::Integer=C.PETSC_DECIDE, nlocal::Integer=C.PETSC_DECIDE,
bs=1, nz::Integer=0, nnz::AbstractVector=PetscInt[],
onz::Integer=0, onnz::AbstractVector=PetscInt[],
comm::MPI.Comm=MPI.COMM_WORLD,
mtype::Symbol=C.MATMPIAIJ)
println("I finally found the problem")
return nothing
end
end # end module PETSc
using PETSc producing output:
For the invocation |
code replaced in #99. |
I get a weird warning when using julia 0.5 (on the
0.5update
branch of PETSc.jl)I don't know quite what is going on, because line 75 is not defining a new method, it is calling the one on line 57.
cc @stevengj
The text was updated successfully, but these errors were encountered: