<div dir="ltr">Dear all,<div><br></div><div>I am trying to compile the Wien2k v.14.2 package with gfortran (v.4.4.6) and mpif90 . The compiling options are as follows:</div><div>------------------------------------------------</div><div><div>current:FOPT:-ffree-form -O2 -ffree-line-length-none</div><div>current:FPOPT:-ffree-form -O2 -m64 -ffree-line-length-none</div><div>current:FFTW_OPT:-DFFTW3 -I/usr/local/include</div><div>current:FFTW_LIBS:-lfftw3_mpi -lfftw3 -L/usr/local/lib</div><div>current:LDFLAGS:$(FOPT) -L/usr/local/lib</div><div>current:DPARALLEL:'-DParallel'</div><div>current:R_LIBS:-llapack -lblas</div><div>current:RP_LIBS:-lscalapack -lmkl_solver_lp64 -lmkl_blacs_lp64 $(R_LIBS)</div><div>current:MPIRUN:mpirun -np _NP_ -machinefile _HOSTS_ _EXEC_</div><div>current:MKL_TARGET_ARCH:</div><div>--------------------------------------------------</div><div><br></div><div>The following error occurs:</div><div><br></div><div><div>Compile time errors (if any) were:</div><div>SRC_IRelast/compile.msg:Error: Old-style type declaration REAL*16 not supported at (1)</div><div>SRC_IRelast/compile.msg:make: *** [TWS.o] Error 1</div><div>SRC_lapwso/compile.msg:Error: IF clause at (1) requires a scalar LOGICAL expression</div><div>SRC_lapwso/compile.msg:make[1]: *** [modules.o] Error 1</div><div>SRC_lapwso/compile.msg:make: *** [para] Error 2</div></div><div><br></div><div>-----------------------------------------------------------------------</div><div>For IRelast, the compile.msg reads:</div><div>-------------------------------------------------------------------------</div><div>....</div><div><div>Warning: C_fitdivELC.f:52: Illegal preprocessor directive</div><div>Warning: C_fitdivELC.f:57: Illegal preprocessor directive</div></div><div>.....</div><div><div>gfortran -ffree-form -O2 -ffree-line-length-none -DFFTW3 -I/usr/local/include -c TWS.f   </div><div>TWS.f:26.13:</div><div><br></div><div>      real*16 Vm</div><div>             1</div><div>Error: Old-style type declaration REAL*16 not supported at (1)</div><div>make: *** [TWS.o] Error 1</div></div><div>-------------------------------------------------------------------------</div><div>1. I searched on the web saying that this may arise from the fact that gfortran does not support real kind 16. If I changed it to real*8, the error goes out. However, is it save to do so? Will the calculation result in a severe loss in precision? Are there any alternative way to overcome the problem without switching to another compiler?</div><div>2. The warning on "Illegal preprocessor directive" has not been reported in the end error msg when running ./siteconfig. Does it matters? (I saw quite a number of different kinds of "warning"s on the screen output, but they goes away so fast that I was not able to capture them)  </div><div><br></div><div>------------------------------------------------------------------------</div><div>For lapwso, the compile.msg</div><div><br></div><div><div>mpif90 -ffree-form -O2 -m64 -ffree-line-length-none -DFFTW3 -I/usr/local/include  -DParallel -c modules.F</div><div>modules.F:566.20:</div><div><br></div><div>           rc_index=.FALSE.</div><div>                    1</div><div>Warning: Extension: Conversion from LOGICAL(4) to INTEGER(4) at (1)</div><div>modules.F:567.23:</div><div><br></div><div>           rc_index_up=.FALSE.</div><div>                       1</div><div>Warning: Extension: Conversion from LOGICAL(4) to INTEGER(4) at (1)</div><div>modules.F:568.23:</div><div><br></div><div>           rc_index_dn=.FALSE.</div><div>                       1</div><div>Warning: Extension: Conversion from LOGICAL(4) to INTEGER(4) at (1)</div><div>modules.F:576.47:</div><div><br></div><div>                 rc_index(ipl_row,ipl_col,iei)=.TRUE.</div><div>                                               1</div><div>Warning: Extension: Conversion from LOGICAL(4) to INTEGER(4) at (1)</div><div>modules.F:577.47:</div><div><br></div><div>                 rc_index(ipl_row,ipl_col,ief)=.TRUE.</div><div>                                               1</div><div>Warning: Extension: Conversion from LOGICAL(4) to INTEGER(4) at (1)</div><div>modules.F:590.24:</div><div><br></div><div>                    if (rc_index(i,j,iei)) then</div><div>                        1</div><div>Error: IF clause at (1) requires a scalar LOGICAL expression</div><div>make[1]: *** [modules.o] Error 1</div><div>make: *** [para] Error 2<br></div></div></div><div>----------------------------------------------------------------------------------------</div><div>I have searched on the mailing archive but still can't find a solution. Any suggestions on this issues would be appreciated.</div><div><br></div><div>Thanks in advance.</div><div><br></div><div>Fermin</div></div>