Compiling the model

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
fdaryabor
Posts: 78
Joined: Wed Jan 02, 2008 3:15 pm
Location: University of Copenhagen

Compiling the model

#1 Unread post by fdaryabor »

hi
I have error in create make_bry but I skip of it and when I execute './jobcomp' in shell script I will have follow errors:

AGRIF_FILES/modinitbis.F:27: error: keys_agrif.h: No such file or directory
AGRIF_FILES/modinitbis.F:60: error: include_agrif.h: No such file or directory
AGRIF_FILES/modinitbis.F:65: error: allocations_calls_interface_agrif.h: No such file or directory
AGRIF_FILES/modinitbis.F:95: error: allocations_calls_agrif.h: No such file or directory
AGRIF_FILES/modinitbis.F:103: error: allocations_agrif.h: No such file or directory
ifort -I.. -I.././ -I.. -c AGRIF_YOURFILES/modinitbis.f -o AGRIF_OBJS/modinitbis.o
ar -r libagrif.a AGRIF_OBJS/modbc.o AGRIF_OBJS/modcluster.o AGRIF_OBJS/modinit.o AGRIF_OBJS/modinitvars.o AGRIF_OBJS/modinterp.o AGRIF_OBJS/modinterpbasic.o AGRIF_OBJS/modtypes.o AGRIF_OBJS/modutil.o AGRIF_OBJS/modbcfunction.o AGRIF_OBJS/modcurgridfunctions.o AGRIF_OBJS/modmask.o AGRIF_OBJS/modsauv.o AGRIF_OBJS/modinitbis.o AGRIF_OBJS/modupdate.o AGRIF_OBJS/modupdatebasic.o
ar: creating libagrif.a
fpp -free -P -I../netcdf_ifc/ main.F | ./mpc > main_.f
ifort -c -O3 -w90 -w95 -cm -72 -fno-alias -i4 -r8 -Vaxlib -IAGRIFZOOM -openmp -I/usr/local/include main_.f -o main.o
fortcom: Error: main_.f, line 557: Cannot open include file 'mpif.h'
include 'mpif.h'
--------------^
fortcom: Error: main_.f, line 211: This symbol must be a defined parameter or an argument of an inquiry function that evaluates to a compile-time constant. [NUMFLUXTERMS]
parameter (indxbioVSink=indxbioFlux+NumFluxTerms)
------------------------------------------^
fortcom: Error: main_.f, line 214: This symbol must be a defined parameter or an argument of an inquiry function that evaluates to a compile-time constant. [NTRC_DIABIO]
& +ntrc_diats+ntrc_diauv+ntrc_diabio+1,
---------------------------------------------------^
fortcom: Error: main_.f, line 53: A COMMON block data object must not be an automatic object. [A2D]
real A2d(N2d,NSA,0:NPP-1), A3d(N3d,4,0:NPP-1)
-----------^
fortcom: Error: main_.f, line 53: An automatic object is invalid in a main program. [A2D]
real A2d(N2d,NSA,0:NPP-1), A3d(N3d,4,0:NPP-1)
-----------^
fortcom: Error: main_.f, line 53: A COMMON block data object must not be an automatic object. [A3D]
real A2d(N2d,NSA,0:NPP-1), A3d(N3d,4,0:NPP-1)
---------------------------------^
fortcom: Error: main_.f, line 53: An automatic object is invalid in a main program. [A3D]
real A2d(N2d,NSA,0:NPP-1), A3d(N3d,4,0:NPP-1)
---------------------------------^
fortcom: Error: main_.f, line 54: A COMMON block data object must not be an automatic object. [A1DXI]
real A1dXI(N1dXI,10*NWEIGHT,0:NPP-1),
-----------^
fortcom: Error: main_.f, line 54: An automatic object is invalid in a main program. [A1DXI]
real A1dXI(N1dXI,10*NWEIGHT,0:NPP-1),
-----------^
fortcom: Error: main_.f, line 54: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association [N1DXI]
real A1dXI(N1dXI,10*NWEIGHT,0:NPP-1),
-----------------^
fortcom: Error: main_.f, line 55: A COMMON block data object must not be an automatic object. [A1DETA]
& A1dETA(N1dETA,10*NWEIGHT,0:NPP-1)
-----------^
fortcom: Error: main_.f, line 55: An automatic object is invalid in a main program. [A1DETA]
& A1dETA(N1dETA,10*NWEIGHT,0:NPP-1)
-----------^
fortcom: Error: main_.f, line 55: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association [N1DETA]
& A1dETA(N1dETA,10*NWEIGHT,0:NPP-1)
------------------^
fortcom: Error: main_.f, line 211: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association [NUMFLUXTERMS]
parameter (indxbioVSink=indxbioFlux+NumFluxTerms)
------------------------------------------^
fortcom: Error: main_.f, line 286: A COMMON block data object must not be an automatic object. [DIABIOFLUX]
& , diabioFlux(NumFluxTerms)
--------------^
fortcom: Error: main_.f, line 286: An automatic object is invalid in a main program. [DIABIOFLUX]
& , diabioFlux(NumFluxTerms)
--------------^
fortcom: Error: main_.f, line 287: A COMMON block data object must not be an automatic object. [DIABIOVSINK]
& , diabioVSink(NumVSinkTerms)
--------------^
fortcom: Error: main_.f, line 287: An automatic object is invalid in a main program. [DIABIOVSINK]
& , diabioVSink(NumVSinkTerms)
--------------^
fortcom: Error: main_.f, line 287: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association [NUMVSINKTERMS]
& , diabioVSink(NumVSinkTerms)
--------------------------^
fortcom: Error: main_.f, line 288: A COMMON block data object must not be an automatic object. [DIABIOGASEXC]
& , diabioGasExc(NumGasExcTerms)
--------------^
fortcom: Error: main_.f, line 288: An automatic object is invalid in a main program. [DIABIOGASEXC]
& , diabioGasExc(NumGasExcTerms)
--------------^
fortcom: Error: main_.f, line 288: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association [NUMGASEXCTERMS]
& , diabioGasExc(NumGasExcTerms)
---------------------------^
fortcom: Error: main_.f, line 309: A COMMON block data object must not be an automatic object. [DIABIOFLUX_AVG]
& , diabioFlux_avg(NumFluxTerms)
--------------^
fortcom: Error: main_.f, line 309: An automatic object is invalid in a main program. [DIABIOFLUX_AVG]
& , diabioFlux_avg(NumFluxTerms)
--------------^
fortcom: Error: main_.f, line 310: A COMMON block data object must not be an automatic object. [DIABIOVSINK_AVG]
& , diabioVSink_avg(NumVSinkTerms)
--------------^
fortcom: Error: main_.f, line 310: An automatic object is invalid in a main program. [DIABIOVSINK_AVG]
& , diabioVSink_avg(NumVSinkTerms)
--------------^
fortcom: Error: main_.f, line 311: A COMMON block data object must not be an automatic object. [DIABIOGASEXC_AVG]
& , diabioGasExc_avg(NumGasExcTerms)
--------------^
fortcom: Error: main_.f, line 311: An automatic object is invalid in a main program. [DIABIOGASEXC_AVG]
& , diabioGasExc_avg(NumGasExcTerms)
--------------^
fortcom: Error: main_.f, line 407: A COMMON block data object must not be an automatic object. [H]
real h(-1:Lm+2+padd_X,-1:Mm+2+padd_E)
-----------^
fortcom: Error: main_.f, line 407: An automatic object is invalid in a main program. [H]
real h(-1:Lm+2+padd_X,-1:Mm+2+padd_E)
-----------^
fortcom: Severe: Too many errors, exiting
compilation aborted for main_.f (code 1)
gmake: *** [main.o] Error 1
mv: cannot stat `roms': No such file or directory
[root@localhost Run]#

Please guide me for solve of this problem.
Best Regards
F.Daryabor

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

Re: Compiling the model

#2 Unread post by kate »

fdaryabor wrote:hi
I have error in create make_bry but I skip of it and when I execute './jobcomp' in shell script I will have follow errors:

AGRIF_FILES/modinitbis.F:27: error: keys_agrif.h: No such file or directory
AGRIF_FILES/modinitbis.F:60: error: include_agrif.h: No such file or directory
AGRIF_FILES/modinitbis.F:65: error: allocations_calls_interface_agrif.h: No such file or directory

fpp -free -P -I../netcdf_ifc/ main.F | ./mpc > main_.f
ifort -c -O3 -w90 -w95 -cm -72 -fno-alias -i4 -r8 -Vaxlib -IAGRIFZOOM -openmp -I/usr/local/include main_.f -o main.o
fortcom: Error: main_.f, line 557: Cannot open include file 'mpif.h'
include 'mpif.h'
--------------^
fortcom: Error: main_.f, line 211: This symbol must be a defined parameter or an argument of an inquiry function that evaluates to a compile-time constant.
First I should say that this isn't the dialect of ROMS that I know. However, you appear to be missing files or you didn't tell the compiler where to look for those files, namely the ones with xx_agrif.h. Also, it can't find mpif.h, which often comes down to using the MPI flavor of the compiler. Are you trying to run parallel or serial? If serial (a good first thing to try), is there any way to disable the parallel parts of this code?

fdaryabor
Posts: 78
Joined: Wed Jan 02, 2008 3:15 pm
Location: University of Copenhagen

Re: Compiling the model

#3 Unread post by fdaryabor »

kate wrote:
fdaryabor wrote:hi
I have error in create make_bry but I skip of it and when I execute './jobcomp' in shell script I will have follow errors:

AGRIF_FILES/modinitbis.F:27: error: keys_agrif.h: No such file or directory
AGRIF_FILES/modinitbis.F:60: error: include_agrif.h: No such file or directory
AGRIF_FILES/modinitbis.F:65: error: allocations_calls_interface_agrif.h: No such file or directory

fpp -free -P -I../netcdf_ifc/ main.F | ./mpc > main_.f
ifort -c -O3 -w90 -w95 -cm -72 -fno-alias -i4 -r8 -Vaxlib -IAGRIFZOOM -openmp -I/usr/local/include main_.f -o main.o
fortcom: Error: main_.f, line 557: Cannot open include file 'mpif.h'
include 'mpif.h'
--------------^
fortcom: Error: main_.f, line 211: This symbol must be a defined parameter or an argument of an inquiry function that evaluates to a compile-time constant.
First I should say that this isn't the dialect of ROMS that I know. However, you appear to be missing files or you didn't tell the compiler where to look for those files, namely the ones with xx_agrif.h. Also, it can't find mpif.h, which often comes down to using the MPI flavor of the compiler. Are you trying to run parallel or serial? If serial (a good first thing to try), is there any way to disable the parallel parts of this code?



Hi
Tank you I disable parts of this code, but when I execute './jobcomp'
I have follow error:

[root@localhost Run]# ./jobcomp
OPERATING SYSTEM IS: Linux
PROCESSOR IS: i686
cp: No match.
/bin/rm -rf core *.o AGRIFZOOM/AGRIF_YOURFILES/*.o *.i *.s *.f *.trace *.mod
/bin/rm -rf roms mpc cross_matrix cppcheck srcscheck checkkwds partit ncjoin ncrename ./rii_files
fpp -free -P -I../netcdf_ifc/ mpc.F > mpc_.f
mpc.F(125): #warning: keyword redefined: integer
ifort -O3 -w90 -w95 -cm -72 -fno-alias -i4 -r8 -Vaxlib -o mpc mpc_.f
fpp -free -P -I../netcdf_ifc/ main.F | ./mpc > main_.f
main.F(406): #error: #if without #endif.
ifort -c -O3 -w90 -w95 -cm -72 -fno-alias -i4 -r8 -Vaxlib main_.f -o main.o
fortcom: Error: main_.f, line 4: Syntax error, found END-OF-FILE when expecting one of: <LABEL> <END> ; BLOCK BLOCKDATA PROGRAM TYPE COMPLEX BYTE CHARACTER ...
parameter (LLm0=60, MMm0=50, N=10)
------------------------------------------^
compilation aborted for main_.f (code 1)
gmake: *** [main.o] Error 1
mv: cannot stat `roms': No such file or directory

please guide me
Best Regards
F.Daryabor

Post Reply