- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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".
Not every program with errors is an "Intel problem".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I reformat the post I get
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
[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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page