Hello,

I have declare a variable in my petsc code like the following:

PetscInt mg_level = 2, finest;

but i get warning. The warning is,

(line185) warning: 'variable 'finest' set but not used
[-Wunused-but-set-variable] PetscInt mg_level=2, finest;

 But actually it is used in line 200 as:
(line 200) finest     = mg_level - 1;

Can you help me what should I do?
-- 
Best regards,

Ivan Luthfi Ihwani

Reply via email to