Hi All,
I had problem with model compiling after latest update (revision 394) (ifort and openMP)
makefile:231: INCLUDING FILE Build/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
cd Build; ifort -c -O3 -IPF_fma -ip -openmp -fpp -ip -O3 -xW nf_fread2d_bry.f90
fortcom: Error: nf_fread2d_bry.f90, line 164: Function name may not be used in this context. Should use result-name [NF_FREAD2D_BRY]
nf_fread2d_bry = ioerror
--------^
fortcom: Error: nf_fread2d_bry.f90, line 234: Function name may not be used in this context. Should use result-name [NF_FREAD2D_BRY]
nf_fread2d_bry=status
------^
compilation aborted for nf_fread2d_bry.f90 (code 1)
make: *** [Build/nf_fread2d_bry.o] Error 1
How can i solve it?
Thanks a lot.
Compiling problem
- arango
- Site Admin
- Posts: 1367
- Joined: Wed Feb 26, 2003 4:41 pm
- Location: DMCS, Rutgers University
- Contact:
Re: Compiling problem
Yes, I forgot about that these routines have a different logic. They use the RESULT clause to pass the error flag. Thank you for reporting this problem. This bug was corrected. Please update.
Re: Compiling problem
Hi
Sorry, but last update don't help.
nf_fread2d.f90(280): (col. 20) remark: LOOP WAS VECTORIZED.
/usr/bin/cpp -P -traditional -D_OPENMP -DLINUX -DX86_64 -DIFORT -D'ROOT_DIR="/usr/local"' -DESHKOL -D'HEADER="eshkol.h"' -D'ROMS_HEADER="eshkol.h"' -DNestedGrids=1 -D'ANALYTICAL_DIR="/usr/local/ROMS/Functionals"' -D'SVN_REV="395M"' -IROMS/Include -IROMS/Nonlinear -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/usr/local/ROMS/Include"' ROMS/Utility/nf_fread2d_bry.F > Build/nf_fread2d_bry.f90
ROMS/Bin/cpp_clean Build/nf_fread2d_bry.f90
cd Build; ifort -c -O3 -IPF_fma -ip -openmp -fpp -ip -O3 -xW nf_fread2d_bry.f90
fortcom: Error: nf_fread2d_bry.f90, line 164: Function name may not be used in this context. Should use result-name [NF_FREAD2D_BRY]
nf_fread2d_bry = ioerror
--------^
compilation aborted for nf_fread2d_bry.f90 (code 1)
make: *** [Build/nf_fread2d_bry.o] Error 1
may it be the ifort problem?
thanks in advance
Sorry, but last update don't help.
nf_fread2d.f90(280): (col. 20) remark: LOOP WAS VECTORIZED.
/usr/bin/cpp -P -traditional -D_OPENMP -DLINUX -DX86_64 -DIFORT -D'ROOT_DIR="/usr/local"' -DESHKOL -D'HEADER="eshkol.h"' -D'ROMS_HEADER="eshkol.h"' -DNestedGrids=1 -D'ANALYTICAL_DIR="/usr/local/ROMS/Functionals"' -D'SVN_REV="395M"' -IROMS/Include -IROMS/Nonlinear -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/usr/local/ROMS/Include"' ROMS/Utility/nf_fread2d_bry.F > Build/nf_fread2d_bry.f90
ROMS/Bin/cpp_clean Build/nf_fread2d_bry.f90
cd Build; ifort -c -O3 -IPF_fma -ip -openmp -fpp -ip -O3 -xW nf_fread2d_bry.f90
fortcom: Error: nf_fread2d_bry.f90, line 164: Function name may not be used in this context. Should use result-name [NF_FREAD2D_BRY]
nf_fread2d_bry = ioerror
--------^
compilation aborted for nf_fread2d_bry.f90 (code 1)
make: *** [Build/nf_fread2d_bry.o] Error 1
may it be the ifort problem?
thanks in advance
- arango
- Site Admin
- Posts: 1367
- Joined: Wed Feb 26, 2003 4:41 pm
- Location: DMCS, Rutgers University
- Contact:
Re: Compiling problem
It works for me, I compiled and ran an application using these routines before I closed the svn ticket. It tried both pgf90 and ifort compilers.
but
Make sure that you clean your directory and compile from scratch.
This error indicates to me that you are still using the old version. Did you updated the code? If you check the new updated routine, we not longer have the statement:DTokarev wrote:cd Build; ifort -c -O3 -IPF_fma -ip -openmp -fpp -ip -O3 -xW nf_fread2d_bry.f90
fortcom: Error: nf_fread2d_bry.f90, line 164: Function name may not be used in this context. Should use result-name [NF_FREAD2D_BRY]
nf_fread2d_bry = ioerror
--------^
Code: Select all
nf_fread2d=ioerror
Code: Select all
status=ioerror