To be more precise, my code looks something like this

implicit none
#include <petsc/finclude/petsc.h90>
double precision time

time = MPI_Wtime()

I get the warning of conversion from REAL(16) to REAL(8) and the value of
time is always zero.

Thanks
praveen

On Thu, Jan 26, 2017 at 5:59 PM, Praveen C <[email protected]> wrote:

> Dear all
>
> In my petsc fortran code, I am using MPI_Wtime to measure times. I include
>
> #include <petsc/finclude/petsc.h90>
>
> When compiling, I get warning for MPI_Wtime
>
> *Warning:* Possible change of value in conversion from REAL(16) to
> REAL(8) at (1) [*-Wconversion*]
>
>
> But MPI_Wtime is supposed to return double precision. The values I get
> from this function also seem to be wrong, always zero.
>
> Thanks
> praveen
>

Reply via email to