const char* matrix ordering

Satish Balay balay at mcs.anl.gov
Thu Aug 28 11:09:27 CDT 2008


On Thu, 28 Aug 2008, zhifeng sheng wrote:

> Dear Petsc-developer
> 
> I found MatOrderingType is defined as
> 
> #define MatOrderingType char*
> 
> therefore, g++ complains with a warning when I do something like
> 
> MatOrderingType x = MATORDERING_ND
> 
> ....So, I don't know whether it should be defined as
> 
> #define MatOrderingType const char*

Due to other issues - the definition of we have to use the above
definition ofr MatOrderingType. So the user coude should be:

const MatOrderingType x = MATORDERING_ND

Satish




More information about the petsc-users mailing list