- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have read Stve Lionel's explanation,but I still don't get it.
ifort -c ircg.for
ircg.for(2153): error #6405: The same named entity from different modules and/or program units cannot be referenced. [APR1DSENS]
group(1,:,:)= apr1dsens(:,:)
---------------------^
ircg.for(2154): error #6405: The same named entity from different modules and/or program units cannot be referenced. [APR2DSENS]
group(2,:,:)= apr2dsens(:,:)
---------------------^
ircg.for(2155): error #6405: The same named entity from different modules and/or program units cannot be referenced. [APR3DSENS]
group(3,:,:)= apr3dsens(:,:)
---------------------^
ircg.for(2156): error #6405: The same named entity from different modules and/or program units cannot be referenced. [APR4DSENS]
group(4,:,:)= apr4dsens(:,:)
---------------------^
I try to put 4 arrays into one.These 4 arrays are defined in module mt2dsens.
ifort -c ircg.for
ircg.for(2153): error #6405: The same named entity from different modules and/or program units cannot be referenced. [APR1DSENS]
group(1,:,:)= apr1dsens(:,:)
---------------------^
ircg.for(2154): error #6405: The same named entity from different modules and/or program units cannot be referenced. [APR2DSENS]
group(2,:,:)= apr2dsens(:,:)
---------------------^
ircg.for(2155): error #6405: The same named entity from different modules and/or program units cannot be referenced. [APR3DSENS]
group(3,:,:)= apr3dsens(:,:)
---------------------^
ircg.for(2156): error #6405: The same named entity from different modules and/or program units cannot be referenced. [APR4DSENS]
group(4,:,:)= apr4dsens(:,:)
---------------------^
I try to put 4 arrays into one.These 4 arrays are defined in module mt2dsens.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Judging from Steve Lionel's points, he has only around ten-thousand posts; so, looking for the specific one that you alluded to should be a good test of the search features of the forum software, but I am sufficiently negatively biased about its capabilities to not even try.
You have, in file ircg.for, the following subroutine heading:
You have, in file ircg.for, the following subroutine heading:
[fxfortran] subroutine transenpas(group,apr1dsens,but module mt2dsens, which is USEd in the subroutine, already contains declarations for subroutine arguments 2, 3, 4 and 5:
& apr2dsens,apr3dsens,apr4dsens)
...
use params
use mt2dsens
...
[/fxfortran]
[fxfortran] real*4 apr1dsens(npmax,ncs)Even if the duplicated declarations match perfectly as to type, size, etc., such redeclarations of entities already associated through USE statements are not allowed.
real*4 apr2dsens(npmax,ncs)
real*4 apr3dsens(npmax,ncs)
real*4 apr4dsens(npmax,ncs)
[/fxfortran]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks mecej,I will use interfaces.

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