ISLocalToGlobalMappingApply(mapping,m,input,output); and alike "functions"

Mads Hoel mfhoel at
Thu Oct 11 07:37:38 CDT 2007

Hi all,

I been having trouble with this function today. I called it from a  
function returning a void. Later found out it was actually
a macro with a "return  
statement in it. Which makes it
not possible to call ISLocalToGlobalMappingApply from a function returning  
a void, when compiling with g++ compiler.
Or perhaps it may lead to difficult to find error in functions returning  
another type than an int, for example an object with
a constructor accepting an int.


Mads Hoel

More information about the petsc-users mailing list