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

compile WW3 model

hags123
Débutant
2 156 Visites
Hello,
I want to compile a WW3 model, with pgf90 i have not any problem but with ifort I found a problem when the code has a !/OPTIONS (like this:
!/LLG 1000 FORMAT ....
!/XYG 1000 FORMAT ......
in this case it gives an error of compilation:
error #6052: This label has not been defined as a FORMAT label. [1000]
error #6052: This label has not been defined as a FORMAT label. [1000]
what is the corret option of compilation to use?
Thank you
0 Compliments
5 Réponses
Steven_L_Intel1
Employé
2 156 Visites
I am unfamiliar with this "OPTIONS" syntax, but it seems that the intent is to uncomment one of these FORMAT statements.
0 Compliments
hags123
Débutant
2 156 Visites
Thank you for you answer.
>but it seems that the intent is to uncomment one of these FORMAT statements.
If I have one "OPTIONS" syntax I can uncomment one of these FORMAT statments but there are many options of this type. I can not uncomment all lines with these instructions because the program reads these Opcions from a namelist file. Using pgf90 these instructions readed without any error.
Thanks
0 Compliments
Steven_L_Intel1
Employé
2 156 Visites
Perhaps these "OPTIONS directives" are PGI-specific. I have never seen that syntax before and it's unlike any other directive syntax I have seen. What you have is, in standard Fortran, a series of comments such that there is no FORMAT statement with label 1000. Something outside of standard Fortran is supposed to transform these comments into compilable statements. If you are using something that is a PGI-only extension, you will have to change it if you want to use any other compiler.
0 Compliments
hags123
Débutant
2 156 Visites
>If you are using something that is just an extension of IGP, you will have to change if you want to use any >other compiler.
This is exactly what I'm doing at the moment because there is no other solution if I want to use the ifort compiler.
Thank you very much.
abdel
0 Compliments
mecej4
Contributeur émérite III
2 156 Visites
The WaveWatch III project is a huge undertaking. Weather simulation is typically done on supercomputers with a large number of pre and post processors. Options are sometimes passed to pre- and post-processors in the form of Fortran comments, just are directives are in Intel Fortran. For example: see the list of options under 6 in this WW3 source code.. Standard Fortran compilers should not be expected to know anything about such in-house conventions, and I doubt that PGI on a PC can process such comments as having any significance than as just comments. The PGI documentation says nothing about such embedded options. Perhaps you used a supercomputer version of PGI? There is one recourse worth considering. Will using list-directed format instead of selecting between two or three Formats work?
0 Compliments
Répondre