Skip to content

Commit 5ee1649

Browse files
authored
Merge pull request #3 from fverdugo/additional_api_methods
Added VecZeroEntries
2 parents 813c5a1 + 428d7c7 commit 5ee1649

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ macro wrapper(fn,rt,argts,args,url)
5959
push!(PRELOADS,($hn,$fn))
6060
@doc $str
6161
@inline function $(fn.value)($(args.args...))
62-
@boundscheck @assert $(hn)[] != C_NULL "Missing symbol. Re-configure and compile PETSc."
62+
@boundscheck @assert $(hn)[] != C_NULL "Missing symbol. Open a fresh julia session"
6363
ccall($(hn)[],$rt,$argts,$(args.args...))
6464
end
6565
end
@@ -280,6 +280,7 @@ Base.unsafe_convert(::Type{Ptr{Cvoid}},v::Vec) = v.ptr
280280
@wrapper(:VecNorm,PetscErrorCode,(Vec,NormType,Ptr{PetscReal}),(x,typ,val),"https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/VecNorm.html")
281281
@wrapper(:VecGhostGetLocalForm,PetscErrorCode,(Vec,Ptr{Vec}),(g,l),"https://petsc.org/release/docs/manualpages/Vec/VecGhostGetLocalForm.html")
282282
@wrapper(:VecGhostRestoreLocalForm,PetscErrorCode,(Vec,Ptr{Vec}),(g,l),"https://petsc.org/release/docs/manualpages/Vec/VecGhostRestoreLocalForm.html")
283+
@wrapper(:VecZeroEntries,PetscErrorCode,(Vec,),(v,),"https://petsc.org/release/docs/manualpages/Vec/VecZeroEntries.html")
283284

284285
# Matrix related functions
285286

0 commit comments

Comments
 (0)