Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

is it intel problem?

malibec2005
Beginner
1,398 Views
Hi, when i tried to recompile my FVCOM software i had the follwoing error: mod_ncdio.f90(886): error #6404: This name does not have a type, and must have an explicit type. [DO] i1 = lbound(do,1) ; i2 = ubound(do,1) -------------------^ mod_ncdio.f90(886): error #6361: An array-valued argument is required in this context. [LBOUND] i1 = lbound(do,1) ; i2 = ubound(do,1) -------------------^ mod_ncdio.f90(886): error #6283: The DIM specification is out-of-range. [1] i1 = lbound(do,1) ; i2 = ubound(do,1) ----------------------^ mod_ncdio.f90(886): error #6361: An array-valued argument is required in this context. [UBOUND] i1 = lbound(do,1) ; i2 = ubound(do,1) ---------------------------------------^ mod_ncdio.f90(886): error #6283: The DIM specification is out-of-range. [1] i1 = lbound(do,1) ; i2 = ubound(do,1) ------------------------------------------^ mod_ncdio.f90(887): error #6285: There is no matching specific subroutine for this generic subroutine call. [PUTVAR] call putvar(i1,i2,m,mgl,kb,kb-1,"n",do,nc_ofid,do_vid,myid& ------------^ compilation aborted for mod_ncdio.f90 (code 1) make: *** [mod_ncdio.o] Error 1 any advice? Reagrds
0 Kudos
4 Replies
jimdempseyatthecove
Honored Contributor III
1,398 Views
The error messages seem to indicate you are using "do" in a context where "do" is required to be an array, .AND. "do" is undefined. Are you missing a variable declaration, missing an include file, missing a USE...

Jim
0 Kudos
mecej4
Honored Contributor III
1,398 Views
Please repost your code extract using the syntax highligher tool provided, so that we can see what part of a line of code the next error message points to. The tool has an icon of a slanted pen/pencil writing on sheets of paper (2nd row, 4th icon).

Not every program with errors is an "Intel problem".
0 Kudos
jimdempseyatthecove
Honored Contributor III
1,398 Views
When I reformat the post I get
[bash]Hi, when i tried to recompile my FVCOM software i had the follwoing error:

mod_ncdio.f90(886): error #6404: This name does not have a type, and must have an explicit type. [DO] 
       i1 = lbound(do,1) ; i2 = ubound(do,1)
-------------------^ 
mod_ncdio.f90(886): error #6361: An array-valued argument is required in this context. [LBOUND]
       i1 = lbound(do,1) ; i2 = ubound(do,1) 
-------------------^ 
mod_ncdio.f90(886): error #6283: The DIM specification is out-of-range. [1] 
       i1 = lbound(do,1) ; i2 = ubound(do,1) 
----------------------^ mod_ncdio.f90(886): 
error #6361: An array-valued argument is required in this context. [UBOUND] 
       i1 = lbound(do,1) ; i2 = ubound(do,1) 
---------------------------------------^ mod_ncdio.f90(886): 
error #6283: The DIM specification is out-of-range. [1] 
       i1 = lbound(do,1) ; i2 = ubound(do,1) 
------------------------------------------^ mod_ncdio.f90(887): 
error #6285: There is no matching specific subroutine for this generic subroutine call. [PUTVAR]
       call putvar(i1,i2,m,mgl,kb,kb-1,"n",do,nc_ofid,do_vid,myid& 
------------^ compilation aborted for mod_ncdio.f90 (code 1) 
make: *** [mod_ncdio.o] Error 1

any advice? Reagrds 
[/bash]

Now re-read my first post:

The error messages seem to indicate you are using "do" in a context where "do" is required to be an array, .AND. "do" is undefined. Are you missing a variable declaration, missing an include file, missing a USE...
Jim Dempsey
0 Kudos
DavidWhite
Valued Contributor II
1,398 Views
If this error is occuring in part of the FVCOM code, and you have all the include files, etc, as suggested by Jim, then I suggest you post a request on the FVCOM forum, as it is a problem with their code, not with theFortran compiler.

If this code compiles under gfortran, which I gather many FVCOM users have, it may be that the error checking in IVF has caught a bug with gfortran does not.

David
0 Kudos
Reply