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

error #5078 and #5082

agustinus_S_
Beginner
1,479 Views

hello sir
I have problems in programming, after I run there is some error # 5078 (Unrecognized token ' ` ' skipped) and # 5082 (Syntax error, found IDENTIFIER 'USERCONSTITUTIVEINPUTS' when expecting one of: ( % [ . = =>), I do not know what to do because I was very new in the programming language Fortran.
I attach the image screenshot
thanks ...

0 Kudos
7 Replies
Lorri_M_Intel
Employee
1,479 Views

The problem is the quote character that you are using; the "backwards quote" is not recognized by the compiler as a valid character.

Please modify the program to either use the "forward quote", or to use a double-quote character.

            Let us know if that does not work, OK?

                               --Lorri

0 Kudos
agustinus_S_
Beginner
1,479 Views
thank you mom, I've changed this character use " and error is gone, it seems I was too ignorant of the language Fortran. Mom if I may ask again, now I try to start a new file, but I find some error and confused what to do, a great hope that the mother can help me, I attach a picture, thanks ...
0 Kudos
andrew_4619
Honored Contributor II
1,479 Views

& is a continuation character used in free format fortran (.f90 files). In fixed format which you are using you have a character in column 6 (e.g. 1-9 or a-z) to indicate it is continued. I would expect if the & is in column 6 that is not an allowed character (a long time since I used fixed format....)

 

0 Kudos
Kevin_D_Intel
Employee
1,479 Views

The ampersand (&) character is not in column 6 and thus is not being treated as a continuation character as you wanted but rather a label. Add a space to the left of it to move it into column 6. When you are editing under the VS editor, look to the bottom right corner of the Visual Studio IDE. There you will see line (Ln) and column (Col) information representative of where your cursor is sitting. If you select the & under the source editor that will give you an indication of its column position.

Another of the Doctor's useful articles, Doctor Fortran in "Source Form Just Wants to be Free"

0 Kudos
NotThatItMatters
Beginner
1,479 Views

Please, an & in column 6 is not only OK for fixed source form, it's recommended.

Why?

Back in the day when you wanted to use an include file for both fixed and free source form and you had long lines in the include file, you would build it with an ampersand in column 6 so the fixed source would recognize it and an ampersand in column 73 so that the free source would recognize it.

I have an extensive bit of fixed and free source for an application, and all my line continuations in the fixed are & and all my line continuation in the free (must be) &.  The compiler has no problem with this.

0 Kudos
andrew_4619
Honored Contributor II
1,479 Views

Have to say I have not written any fixed form for many years and  I could not tell from the screen grab if the & was in 6 or not and was also not aware if that was legal or not in fixed. Clearly it is!

On a side note I find fixed form really awful to look at and have an uncontrollable urge to convert it. Yes I know if it ain't broke leave it alone...... but free form was standard more than 25 years ago now and programs can be reliably converted automatically.... just saying.....

0 Kudos
mecej4
Honored Contributor III
1,479 Views

Agustinus S.: Please post the source code as text, either using the {...} button in the toolbar, next to Omega, or zip up the source files and attach the zip. Image files are next to useless when one needs to count column positions or extract the text for further analysis.

I think that the problem is that your continuation character '&' is in column 7 rather than in column 6, where it should be. I say this because the '&' is directly above the 'r' in the 'return' a few lines below. Again, your choice of an image file is unfortunate because it seems to have an extra blank column to the left of column-1, where the comment character 'C' is expected.

0 Kudos
Reply