- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am getting this error when trying to run ifort/mpif90 on a Fedora Core 3 machine. I know the code works because it compiles and run fine on another cluster with a similar intel fortran compiler and mpich.
make
mpif90 -c -O3 definearray.f
fortcom: Error: definearray.f, line 37: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute. [ZEDGE]
if(ibctopbot.eq.1) allocate (zedge(l+1))
...................................^
fortcom: Error: definearray.f, line 37: The rank of the allocate-shape-spec-list differs from the rank of the allocate-object. [ZEDGE]
if(ibctopbot.eq.1) allocate (zedge(l+1))
...................................^
fortcom: Error: definearray.f, line 64: The syntax of this substring is invalid. [RHOMICRO]
allocate(rhomicro(1-ih:np+ih,1-ih:mp+ih,l))
...............^
compilation aborted for definearray.f (code 1)
make: *** [definearray.o] Error 1
make
mpif90 -c -O3 definearray.f
fortcom: Error: definearray.f, line 37: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute. [ZEDGE]
if(ibctopbot.eq.1) allocate (zedge(l+1))
...................................^
fortcom: Error: definearray.f, line 37: The rank of the allocate-shape-spec-list differs from the rank of the allocate-object. [ZEDGE]
if(ibctopbot.eq.1) allocate (zedge(l+1))
...................................^
fortcom: Error: definearray.f, line 64: The syntax of this substring is invalid. [RHOMICRO]
allocate(rhomicro(1-ih:np+ih,1-ih:mp+ih,l))
...............^
compilation aborted for definearray.f (code 1)
make: *** [definearray.o] Error 1
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would guess that there's something missing in your configuration so that the proper include files or modules are not being found. Perhaps there's some conditionalization that is wrong. The errors you report are not likely to be due to a compiler difference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hmmm is there anyway you can start me off or guide me in the right direction? I am not a fortran guru I am just the systems admin trying to put this together.
Thanks for your help
Thanks for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm not familiar with MPICH (I know of it, but have never used it.) Perhaps someone else more familiar with it will have suggestions. All I can suggest is to look at what -D values are being specified to make sure that the appropriate conditionalizations are being used. Compare these against another system that works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Shankar,
Could you do the following commands:
which mpif90
mpif90 -V -c -O3 definearray.f
I'm assuming 'definearray.f' is your code and not a part of mpich - is this true?
Could you send the first 64 lines of definearray.f so I can see the line numbers it is complaining about. This looks like a code issue and not a mpich issue, but the source code would help.
thanks

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