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

mpich with ifc7.1 problem

tony_g
Beginner
598 Views
I compiled mpich with ifc(7.1 version).It seemed being finished with no problem.
But when running MM5 program(for weather forcasting),the program cannot be executed.I got error message as" Error reading big header".
Then I search this message from its source code,and got the following code from file "param.f":
........
........
........
OPEN(11, FILE='MMINPUT_DOMAIN1',FORM='UNFORMATTED',
& STATUS='OLD',ERR=9003)
READ (11,IOSTAT=IER)BHI,BHR,BHIC,BHRC
IF(IER.NE.0)THEN
write(*,'("Error reading big header")')
STOP
ENDIF
Does it mean the INPUT file "MMINPUT_DOMAIN1" cannot be read?
But when I used pgf77+mpich,there's no problem for this input file.So I think its ifc's problem, right?Or maybe there's some diference between pgf77 and ifc for reading.
Has anyone met this problem before?
Many thanks!
tony
0 Kudos
3 Replies
Intel_C_Intel
Employee
598 Views
I faced a similar problem when using MM5 on AIX with MPICH 1.2.5 and MVICH (from NERSC) patch ported to AIX compiled with XL compilers. Not only MM5, no FORTRAN codes would take any namelist input redirection.
Although I cannot give you any solution, what I did was to hard-code the namelists into the source code and compile it. Worked fine. I was never able to determine why it wouldnt take the namelists from redirection.
I tried setting the environment variables regarding the namelist format etc etc ... nothing worked.
hope this helps you to execute the MM5 code atleast for the moment.
regards,
Kalyan
0 Kudos
Zhihui_C_Intel
Employee
598 Views
you can solve this problem by setting environment variable "F_UFMTENDIAN" to big, for example:
export F_UFMTENDIAN = big
0 Kudos
Zhihui_C_Intel
Employee
598 Views
you can solve this problem by setting environment variable "F_UFMTENDIAN" to big, for example:
export F_UFMTENDIAN = big
0 Kudos
Reply