Home > Lexical Error > Lexical Error - Unknown Token Type

Lexical Error - Unknown Token Type

Skip to content Advanced search Board index Change font size FAQ Register Login Information The requested topic does not exist. I'll take care that such queries are not repeated. The above gives no hint as to how many values are written. Is not what your original post said the read looked like. http://cygnussoft.com/lexical-error/lexical-error-unknown-token-type-fortran.html

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)) > > ? ? Watch for values that do not match the limits from your declaration.Norbert RE: the PGI error nudols (MIS) (OP) 9 Feb 07 04:58 thanks for councils,but i 'm not very programmer..and Do your own homework. - in all senses of the word. -- e Mon, 08 Aug 2011 09:08:35 GMT nikhilvasu..#7 / 11 Reading files in fortran Quote:> P.S. ?RTFM! 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 http://www.pgroup.com/userforum/viewtopic.php?t=3612&sid=bc17a4505ceec8c755887ceafbe95d8d

Quote:> read(55,*) press(i,j) [ I read it] That 1. Quote:> I generated the data file as follows > ---------------------------------------------------------- > open (55, file='press') > . > . > . > write (55,*) press(i+2,j+2) This omits many, many relevant things. Steve Steve - Intel Developer Support Top Tim P. How about some example code?

All of a sudden it is giving me this error message. Reading fortran text files / Parsing ascii files/ Help!! 2. Thanks, Scott D. r2sq = (x-(two*v_cl_x-v_xcen))**2 + (y-v_ycen)**2 > ? ?

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)) > ? ? do i = -1,97 > ? ? It makes more sense to me to have the I and J values correspond to the actual subscripts on press() so that I and J run through the actual bounds of https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/271849 It sure isn't Fortran.

With 65000 lines of code in one file you are sure to loose control of things. Hence, in the code which I have written, I only ran the 1st case (-1 to 97 and -1 to 129)] . . . I even tried to read it a a big string to see if the program can read. 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.

Your original post said read(*,55) press which isn't at all the same thing. Steve Lionel (Intel) Tue, 07/08/2003 - 00:03 I don't recognize that message format. I don't think it worth any more of my time to respond until I at least see that line, since it could answer at a glance what would otherwise take a It was running ok.

a list of dummy arguments. check over here 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. press(i,j) = ... IEMO = 1 !Day (IEDY) -- No default !

Removing the letter fixed the problem. read(55,*) press(i,j) [ I read it] Please let me know, if I need to modify the anything. I apologize for providing insufficient information. http://cygnussoft.com/lexical-error/lexical-error-or-unexpected-token.html The line where the program fails to read is 2010,5,4,18,30,0.033333,11.00,80.0,"/home/mark/GEMSS/Apps/BP-DeepwaterHorizon/Cleanup/Dispersant/RiserPipeDispDomain.txt," First 5 variables are integer(4) 6,7,8 are rea(4) 9 is character(256) Entry ActivateTVDDispAppSubSurface ! !Subsurface SSurfaceDispMass = 0.0 SSDispRegionFileNameOld = SSDispRegionFileName

I am student and I new to fortran and I have never used it before. Please accept my > apology. Skip to main content Developer Zone Join today Log in DevelopmentOSAndroid*Chrome*HTML5Windows*Device2-in-1 & Ultrabook™Business ClientEmbedded SystemsIoTServer, Workstation, HPCTechnologyBig DataDual ScreenGame DevIntel® RealSense™ISA ExtensionsMachine LearningModern CodeNetworkingOpen SourceStorageToolsDeveloper TypeEmbedded SystemsGame DevMediaTechnical, Enterprise, HPCWebOSAll ToolsAndroid*HTML5Linux*OS

You haven't shown any declarations.

Have you tried to look at it? Registration on or use of this site constitutes acceptance of our Privacy Policy. I am student and I new > to fortran and I have never used it before. > Hence, I may be asking such questions. > I'll take care that such queries Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

As an aside unrelated to your problems, I suggest using the generic intrinsic exp instead of the specific dexp. Join Us! *Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. weblink Talk With Other Members Be Notified Of ResponsesTo Your Posts Keyword Search One-Click Access To YourFavorite Forums Automated SignaturesOn Your Posts Best Of All, It's Free!

Thanks Mon, 08 Aug 2011 12:14:20 GMT nikhilvasu..#8 / 11 Reading files in fortran Quote: > > P.S. ?RTFM! > I apologize for providing insufficient information. Once I cleared that up in the input file, my problems were solved. 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. I am trying to read this file in another fortran code.

Hence, > in the code which I have written, I only ran the 1st case (-1 to 97 > and -1 to 129)] A very common problem with people asking for do i = -1,97 > > ? ? Have input mirror output and vice versa. Fomatted read from a csv file (FORTRAN 77) 4.

IEHR = 8 !Second (IESEC) -- No default ! 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 Here's Why Members Love Tek-Tips Forums: Talk To Other Members Notification Of Responses To Questions Favorite Forums One Click Access Keyword Search Of All Posts, And More... I have seen experts to fail on more simple things.'Divide et Impera', Latin for 'Divide and Conquer' (Gaius Julius Caesar, not a programmer but otherwise quite a successful individual)First of all,

RE: PGFIO-F-225/list-directed read/internal file/lexical error sdibiase (TechnicalUser) (OP) 11 Aug 03 15:25 I found a character in my input file that shouldn't have been included. IEYR = 1990 !Month (IEMO) -- No default ! Using Java to read unformatted Fortran output files? 11. reading GIF files in fortran 8.

x = float(i)*delta1+xlo > ? ?