If you don't build Open MPI and your application with the same compiler flags, 
weird things like this are bound to happen.  Make sure Open MPI is built the 
same way.

Also, note that the formal signature for MPI_Wtime is to return a DOUBLE 
PRECISION.  REAL(KIND=8) is common, but it is not technically a correct Fortran 
data type.


> On Dec 16, 2016, at 1:38 PM, 🐋 Jan Hegewald <jan.hegew...@awi.de> wrote:
> 
> I found the problem. It is in the build process which passes -fdefault-real-8 
> (among other flags) to the compiler:
> 
> mpif90 -fdefault-real-8 foo.F90                        
> ➜  mpirun -n 1 ./a.out            
>   0.0000000000000000        0.0000000000000000  
> 
> Cheers,
> Jan
> _______________________________________________
> devel mailing list
> devel@lists.open-mpi.org
> https://rfd.newmexicoconsortium.org/mailman/listinfo/devel


-- 
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to: 
http://www.cisco.com/web/about/doing_business/legal/cri/

_______________________________________________
devel mailing list
devel@lists.open-mpi.org
https://rfd.newmexicoconsortium.org/mailman/listinfo/devel

Reply via email to