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

Fortcom Error on Fedora Core 3 with MPICH

shankar
Beginner
810 Views
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
0 Kudos
4 Replies
Steven_L_Intel1
Employee
810 Views
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.
0 Kudos
shankar
Beginner
810 Views
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
0 Kudos
Steven_L_Intel1
Employee
810 Views
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.
0 Kudos
Ron_Green
Moderator
810 Views

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
0 Kudos
Reply