Error abou NPZD_IRON

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
vivek
Posts: 27
Joined: Tue Oct 20, 2015 1:40 pm
Location: IISc (Indian Institute of Science)

Error abou NPZD_IRON

#1 Unread post by vivek »

Dear all,

i am try to use npzd_iron as a biology model, i am try to compile , it shows following error, please any body help me, if i use Bio_fennel and compile it working fine.


/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DIFORT -D'ROOT_DIR="/home/sreeja/ROMS/models/vivek_model/roms3.6"' -DINDIAN_NPZD_IRON -D'HEADER="indian_npzd_iron.h"' -D'ROMS_HEADER="indian_npzd_iron.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/sreeja/ROMS/models/vivek_model/roms3.6/ROMS/Functionals"' -D'SVN_REV="583M"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/sreeja/ROMS/models/vivek_model/roms3.6/ROMS/Include"' ROMS/Utility/ran1.F > Build/ran1.f90
ROMS/Bin/cpp_clean Build/ran1.f90
cd Build; /apps/mvapich2-gcc/bin/mpif90 -c -heap-arrays -fp-model precise -ip -O2 -msse4.2 -free -free ran1.f90
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DIFORT -D'ROOT_DIR="/home/sreeja/ROMS/models/vivek_model/roms3.6"' -DINDIAN_NPZD_IRON -D'HEADER="indian_npzd_iron.h"' -D'ROMS_HEADER="indian_npzd_iron.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/sreeja/ROMS/models/vivek_model/roms3.6/ROMS/Functionals"' -D'SVN_REV="583M"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/sreeja/ROMS/models/vivek_model/roms3.6/ROMS/Include"' ROMS/Utility/read_asspar.F > Build/read_asspar.f90
ROMS/Bin/cpp_clean Build/read_asspar.f90
cd Build; /apps/mvapich2-gcc/bin/mpif90 -c -heap-arrays -fp-model precise -ip -O2 -msse4.2 -free -free read_asspar.f90
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DIFORT -D'ROOT_DIR="/home/sreeja/ROMS/models/vivek_model/roms3.6"' -DINDIAN_NPZD_IRON -D'HEADER="indian_npzd_iron.h"' -D'ROMS_HEADER="indian_npzd_iron.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/sreeja/ROMS/models/vivek_model/roms3.6/ROMS/Functionals"' -D'SVN_REV="583M"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/sreeja/ROMS/models/vivek_model/roms3.6/ROMS/Include"' ROMS/Utility/read_biopar.F > Build/read_biopar.f90
ROMS/Bin/cpp_clean Build/read_biopar.f90
cd Build; /apps/mvapich2-gcc/bin/mpif90 -c -heap-arrays -fp-model precise -ip -O2 -msse4.2 -free -free read_biopar.f90
read_biopar.f90(47): error #6404: This name does not have a type, and must have an explicit type. [ITRACER]
itracer=0 ! LBC tracer counter
------^
read_biopar.f90(313): error #6607: An END SELECT statement exists without an associated SELECT CASE statement.
END SELECT
----------^
read_biopar.f90(314): error #6099: An ENDDO statement occurred without a corresponding DO or DO WHILE statement.
END DO
^
read_biopar.f90(324): error #8093: A do-variable within a DO body shall not appear in a variable definition context. [NG]
DO ng=1,Ngrids
---------^
read_biopar.f90(324): error #6511: This DO variable has already been used as an outer DO variable in the same nesting structure. [NG]
DO ng=1,Ngrids
---------^
read_biopar.f90(224): error #6321: An unterminated block exists.
DO ng=1,Ngrids
^
read_biopar.f90(223): error #6321: An unterminated block exists.
IF (Lwrite) THEN
^
compilation aborted for read_biopar.f90 (code 1)
make: *** [Build/read_biopar.o] Error 1

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Error abou NPZD_IRON

#2 Unread post by kate »

I don't understand this. If you look at read_biopar.F, it will be including npzd_iron_inp.h. On line 33 of that file, itracer is listed as an integer. Maybe try a "make clean" and start over? If that doesn't work, you'll have to take a look at read_biopar.f90 in the build directory and see what's there.

User avatar
wilkin
Posts: 922
Joined: Mon Apr 28, 2003 5:44 pm
Location: Rutgers University
Contact:

Re: Error abou NPZD_IRON

#3 Unread post by wilkin »

It looks like you are building -D'SVN_REV="583M"'

That's from December 2011. You might want to update your code.
John Wilkin: DMCS Rutgers University
71 Dudley Rd, New Brunswick, NJ 08901-8521, USA. ph: 609-630-0559 jwilkin@rutgers.edu

vivek
Posts: 27
Joined: Tue Oct 20, 2015 1:40 pm
Location: IISc (Indian Institute of Science)

Re: Error abou NPZD_IRON

#4 Unread post by vivek »

Dear Sir's

Thank you very much for your valiable suggestions,,

Post Reply