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
Error abou NPZD_IRON
Re: Error abou NPZD_IRON
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.
Re: Error abou NPZD_IRON
It looks like you are building -D'SVN_REV="583M"'
That's from December 2011. You might want to update your code.
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
71 Dudley Rd, New Brunswick, NJ 08901-8521, USA. ph: 609-630-0559 jwilkin@rutgers.edu
Re: Error abou NPZD_IRON
Dear Sir's
Thank you very much for your valiable suggestions,,
Thank you very much for your valiable suggestions,,