Home > Lexical Error > Lexical Error - Unknown Token Type Fortran

Lexical Error - Unknown Token Type Fortran

By joining you are opting in to receive e-mail. Are the values of i and j such that press(i+2,j+2) is even within the bounds of the array? Steve Lionel (Intel) Tue, 07/08/2003 - 00:03 I don't recognize that message format. Click Here to join Tek-Tips and talk with other members! navigate here

IESEC = 0 !UTC time zone (ABTZ) -- No default ! When I tried to read > the file 'press' it gave me the following error. > ---------------------------------------------------------- > PGFIO-F-225/list-directed read/unit=55/lexical error-- unknown token > type. > File name = press Once I cleared that up in the input file, my problems were solved. domain: summertriangle | -- Mark Twain Mon, 08 Aug 2011 07:07:39 GMT Ron Shepar#3 / 11 Reading files in fortran In article Quote: > Please

Quote: > PGFIO-F-225/list-directed read/unit=55/lexical error-- unknown token > type. > File name = press formatted, sequential access record = 1 Well, then what does record 1 of the file Already a member? Remember, the read statement(s) should mirror the write statement(s).

end do > end do > ----------------------------------------- > The other code in which I read this data file is as follows > ----------------------------------------- > ?REAL_T ? y = float(j)*delta2+ylo > ? change Code: 2010,5,4,18,30,0.033333,11.00,80.0,"/home/mark/GEMSS/Apps/BP-DeepwaterHorizon/Cleanup/Dispersant/RiserPipeDispDomain.txt," to Code: 2010,5,4,18,30,0.033333,11.00,80.0,"/home/mark/GEMSS/Apps/BP-DeepwaterHorizon/Cleanup/Dispersant/RiserPipeDispDomain.txt" - Mat Back to top Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 YearOldest FirstNewest First PGI User Forum Forum You never responded to my question about what the first line of the file looked like.

Quote:> read(55,*) press(i,j) [ I read it] That 1. RE: the PGI error gummibaer (Programmer) 9 Feb 07 15:55 Ha,ha, (that's laughing )Phhheewwwww was meant to represent a long sigh from deep within.Well I think to port 60,000+ lines of Close Reply To This Thread Posting in the Tek-Tips forums is a member-only feature. Get More Information Thanks.

IBHR = 4 !Second (IBSEC) -- No default !IBSEC = 0 !Ending date: Year (IEYR) -- No default ! what it reads depends on how you dimensioned press. With 65000 lines of code in one file you are sure to loose control of things. open(55,file='press11') [ I open the file] . .

Does it contain what you expect? her latest blog In Fortran you can have negative subscripts as long as the array is dimensioned properly. One might guess that this is done in a loop, but then one might guess a lot of things, some of which are probably wrong. Quote:> . > . > open (55, file='press11') > do j = -1,129 > ?

before your read (iochannel,format)variable(i,j)! check over here File name = press formatted, sequential access record = 1 In source file f/2d.Linux.PGI.PGI.MPI/PROB_2D.f, at line number 1419 ---------------------------------------------------------- I generated the data file as follows ---------------------------------------------------------- open (55, I am trying to read this file in another fortran code. Instead I write simple expressions for X and Y that map (I,J) to actual coordinates.

Technology PGI Unified Binary MPI Debugging PGI Accelerator with OpenACC Common Compiler Feedback Format CUDA Fortran CUDA-x86 Products HPC Products PGI Workstation PGI Server PGI CDK Cluster Development Kit PGI Visual Thanks, Mat Back to top KolluruJoined: 02 Nov 2006Posts: 20 Posted: Tue Dec 11, 2012 10:38 am Post subject: Hi Mat, Thanks for your quick response. Reading any binary file from Fortran 9. http://cygnussoft.com/lexical-error/lexical-error-or-unexpected-token.html Lately when I am running a program I get the following error message PGFIO-F-225/list-directed read/unit=475/lexical error-- unknown token type.

Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework. press(i+2,j+2) = 2.d0*v_strength/((1.d0-dexp(-1.d0))*v_width)*(dexp > (-r1sq/v_width**2)-dexp(-r2sq/v_width**2)) > ? ? Cancel Red Flag SubmittedThank you for helping keep Tek-Tips Forums free from inappropriate posts.The Tek-Tips staff will check this out and take appropriate action.

Join UsClose Login with LinkedIN Or Log In Locally Email Password Remember Me Forgot Password?Register ENGINEERING.com Eng-Tips Forums Tek-Tips Forums Search Posts Find A Forum Thread Number Find An Expert

Registration on or use of this site constitutes acceptance of our Privacy Policy. Quote:> The other code in which I read this data file is as follows > ----------------------------------------- > REAL_T press(DIMV(press)) I don't know what that is supposed to be. It was running ok. Is this array dimensioned the same as the one in the writing program? -- Richard Maine | Good judgment comes from experience;

The above attempt at description isn't adequate to figure out what you are talking about, so I'm just not going to try. ... Join today Support Terms of Use *Trademarks Privacy Cookies Publications Intel® Developer Zone Newsletter Intel® Parallel Universe Magazine Look for us on: FacebookTwitterGoogle+LinkedInYouTube English简体中文EspañolPortuguês Rate Us Login with LinkedIN Or Log RE: the PGI error gummibaer (Programmer) 6 Feb 07 15:29 What are the type declarations and values of the different variables we have here (iogeo, ilandu) ?Is nx defined earlier in weblink reading GIF files in fortran 8.

My apologies if you feel that way [mea culpa]. Is that what you intend? RE: PGFIO-F-225/list-directed read/internal file/lexical error wethegrl (TechnicalUser) 12 Aug 03 12:52 Thank you.that was the problem! I'll take care that such queries are not repeated.

Make mistakes and correct them. 9. Already a member? If you're unsure, post your input here. do i = -1,97 > ? ?

Steve Steve - Intel Developer Support Top Tim P. By joining you are opting in to receive e-mail. Visit: Board index The team • Delete all board cookies • All times are UTC - 5 hours [ DST ] Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group