[petsc-users] __FUNCT__ does not agree with __FUNCTION__
Satish Balay
balay at mcs.anl.gov
Tue Jul 8 10:07:33 CDT 2014
On Tue, 8 Jul 2014, Dominik Szczerba wrote:
> Suddenly (with no apparent change in the code) I am bombarded with messages
> like:
>
> ScalarSolver\ScalarSolver.x\ScalarSolver.cpp:660:
> __FUNCT__="SetupStiffnessMatrix" does not agree with
> __FUNCTION__="ScalarSolver::SetupStiffnessMatrix"
> "unknowndirectory/"..\..\..\Source\ScalarSolver\ScalarSolver.x\ScalarSolver.cpp:660:
Use __FUNCT__="ScalarSolver::SetupStiffnessMatrix" ?
__FUNCTION__ is automatically generated by some compilers - but we are
still keeping __FUNCT__ arround - just to support compilers that dont
do this automatically.
And with compilers that do generate __FUNCTION__ string automatically - we are able
to do this check and print a warning..
Satish
> __FUNCT__="SetupStiffnessMatrix" does not agree with
> __FUNCTION__="ScalarSolver::SetupStiffnessMatrix"
> "unknowndirectory/"..\..\..\Source\ScalarSolver\ScalarSolver.x\ScalarSolver.cpp:660:
> __FUNCT__="SetupStiffnessMatrix" does not agree with
> __FUNCTION__="ScalarSolver::SetupStiffnessMatrix"
> "unknowndirectory/"..\..\..\Source\ScalarSolver\ScalarSolver.x\ScalarSolver.cpp:660:
> __FUNCT__="SetupStiffnessMatrix" does not agree with
> __FUNCTION__="ScalarSolver::SetupStiffnessMatrix"
>
>
> Can you please advise how to fix it?
>
> Many thanks
> Dominik
>
More information about the petsc-users
mailing list