We have to live with these warnings. Barry
> On Apr 11, 2018, at 10:17 AM, Vaclav Hapla <vaclav.ha...@erdw.ethz.ch> wrote: > > Hello > > I just compiled current master with > '--with-precision=single', > '--with-scalar-type=complex', > '--with-64-bit-indices', > > configure and make work, but 'make check' throws some warnings regarding > src/snes/examples/tutorials/ex5f.F90, see below. > > mpifort —version > says > GNU Fortran (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 > > I'm not much into Fortran - can you see what's going wrong? > > Vaclav > > > > C/C++ example src/snes/examples/tutorials/ex19 run successfully with 2 MPI > processes > *******************Error detected during compile or link!******************* > See http://www.mcs.anl.gov/petsc/documentation/faq.html > /home/vhapla/petsc/src/snes/examples/tutorials ex5f > ********************************************************* > mpifort -c -fPIC -Wall -ffree-line-length-0 -Wno-unused-dummy-argument -g > -I/home/vhapla/petsc/include > -I/home/vhapla/petsc/arch-linux-gcc-complex-single-64idx/include > -I/home/vhapla/include -o ex5f.o ex5f.F90 > ex5f.F90:289:17: > > temp = (min(j-1,my-j))*hy > 1 > Warning: Possible change of value in conversion from INTEGER(8) to REAL(4) at > (1) [-Wconversion] > ex5f.F90:294:43: > > x(i,j) = temp1 * sqrt(min(min(i-1,mx-i)*hx,(temp))) > 1 > Warning: Possible change of value in conversion from INTEGER(8) to REAL(4) at > (1) [-Wconversion] > ex5f.h:29:21: > > common /params/ lambda,mx,my > 1 > Warning: Padding of 4 bytes required before ‘mx’ in COMMON ‘params’ at (1); > reorder elements or use -fno-align-commons > ex5f.h:29:21: > > common /params/ lambda,mx,my > 1 > Warning: Padding of 4 bytes required before ‘mx’ in COMMON ‘params’ at (1); > reorder elements or use -fno-align-commons > ex5f.h:29:21: > > common /params/ lambda,mx,my > 1 > Warning: Padding of 4 bytes required before ‘mx’ in COMMON ‘params’ at (1); > reorder elements or use -fno-align-commons > ex5f.h:29:21: > > common /params/ lambda,mx,my > 1 > Warning: Padding of 4 bytes required before ‘mx’ in COMMON ‘params’ at (1); > reorder elements or use -fno-align-commons > ex5f.h:29:21: > > common /params/ lambda,mx,my > 1 > Warning: Padding of 4 bytes required before ‘mx’ in COMMON ‘params’ at (1); > reorder elements or use -fno-align-commons >