fortran error unterminated comment Quaker City Ohio

Address 439 S Bridge St, Belmont, OH 43718
Phone (740) 359-6817
Website Link

fortran error unterminated comment Quaker City, Ohio

compute the interpolated value for a point not in the array y0 = y(k) + (y(k+1)-y(k))/(x(k+1)-x(k))*(x0-x(k)) else write(*,*)'Error computing the interpolation !!!' write(*,*) 'x0 =',x0, ' is out of range <', Error #5120: Unterminated character constant? Index Nav: [DateIndex] [SubjectIndex] [AuthorIndex] [ThreadIndex] Message Nav: [DatePrev][DateNext] [ThreadPrev][ThreadNext] Other format: [Raw text] Bogus "error: unterminated comment" From: "Smith-Rowland, Edward M" To:

sramanujam Wed, 02/04/2009 - 13:05 when i compile a fortran code using intel fortran compiler for linux in centos 64 bit linux machine, i'm getting this error (Error #5120: Unterminated character Trending Now Answers Best Answer: The maximum length of a character sting depends on the specific compiler that you have. Follow 1 answer 1 Report Abuse Are you sure that you want to delete this answer? is it that the len_trim function cant take more than 126 chars?

You can only upload a photo (png, jpg, jpeg) or video (3gp, 3gpp, mp4, mov, avi, mpg, mpeg, rm). Ill post the code itself but i am more interested in the compiling errors because i still need to fine tune the array data handling, but i cant do that until Thus, you should split the lines. Program main implicit none real, dimension(:,:), allocatable :: m, oldm real a integer io, nn character(30) :: filename real, dimension(:,:), allocatable :: alt, temp, nue, oxy integer locationa, locationt, locationn, locationo,

how do i calculate the string length? You should try simple things one at a time rather than doing so much. This option is supplied automatically when compiling Fortran code via the g77 or gcc command. Thnx for reading.

is it that the len_trim function cant take more than 126 chars? It may be salient that RFLCT.FOR has DOS line endings while unterm_comment.for does not. These should be written without parentheses. Sorry where should I put this?

the program runs okay till a length of 126 charchters (that is it gives me the length of the string on the terminal) but as soon as i add the 127th So you have to move that line up to the other declarations. As others have said, the problem isn't the compiler, it's your code, so you should be posting on a more appropriate forum such as this newbie forum. Please upload a file larger than 100 x 100 pixels We are experiencing some problems, please try again.

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed share|improve this answer answered Nov 14 '12 at 15:56 sigma 955513 Yea i finally saw the missing parentheses sometime last night. Add your answer Source Submit Cancel Report Abuse I think that this question violates the Community Guidelines Chat or rant, adult content, spam, insulting other members,show more I think that this Unfortunately, the `-traditional' flag will not avoid an error from anything that cpp sees as an unterminated C comment, such as: C Some Fortran compilers accept /* as starting C an

Does anyone know how to fix this error, "unterminated string constant line 1 char 26 code 0? RSS Top 3 posts / 0 new Last post For more complete information about compiler optimizations, see our Optimization Notice. Home Help Search Login Register Wiki Code::Blocks » User forums » Help » Compile Error « previous next » Send this topic Print Pages: [1] Go Down Author Topic: Compile Error This option is supplied automatically when `-v' or `--verbose' is specified as a command-line option for g77 or gcc and when the resulting commands compile Fortran source files.

Proceed like that, one bit at a time... –Jonathan Dursi Nov 13 '12 at 1:55 Thank you for that advice, i was able to clear quite a few errors Is there any way to transfer python (.py) files from a mac to a mac via an iPhone? They should be like this: tempi = exp(linear_interpolation(alt, temp, size(alt), alti) ) ! <- extra ")" nuei = exp(linear_interpolation(alt, nue, size(alt), alti) ) oxyi = exp(linear_interpolation(alt, oxy, size(alt), alti) ) It's Check something like POSIX standards for examples of other return codes.

via ./f771 -quiet < /dev/null, to ensure that they have not introduced any internal inconsistencies (such as in the table of intrinsics) before proceeding---g77 will crash with a diagnostic if it Answer Questions Whats wrong with my code? The "data declaration error" stems from your attempt to declare and initialise multiple variables like real dz = size(alt)/100, z, integral = 0 Along with being positioned incorrectly in the code no i think i am getting logic errors; allocate( oldm( size(m) ) ) 1 Error: Syntax error in specification at (1).

Anyways, sorry for the life story. Reading data in 8192 bytes length is order of magnitude faster than formatted read, one only needs to be wary of the last block in the file, as it usually would Browse other questions tagged error-handling fortran scientific-computing or ask your own question. nn = 0 j = 0 write(*,*) 'Enter input file name: ' read(*,*) filename open( 1, file = filename ) do !reading in data file read(1, *, iostat = io) a

error-handling fortran scientific-computing share|improve this question edited Nov 15 '12 at 22:16 asked Nov 13 '12 at 1:45 VashElric 1314 4 Firstly, it usually only makes sense to look at I compile the code with gfortran and get several copies of the following errors. 1)Unexpected data declaration statement at (1) 2)Unterminated character constant beginning at (1) 3)Unclassifiable statement at (1) 4)Unexpected Is accuracy binary? I want to calculate the length of a big string in fortran 90.

In aFortran mode, Comment lines / trailing comments would be completelyignored and // not regarded as comment sign. Len_trim is an intrinsic function that does return the length of the string, disregarding any trailing blanks. Index Nav: [DateIndex] [SubjectIndex] [AuthorIndex] [ThreadIndex] Message Nav: [DatePrev][DateNext] [ThreadPrev][ThreadNext] Other format: [Raw text] Re: Bogus "error: unterminated comment" From: FX To: "Smith-Rowland, Edward M"

i have written the following program. Posts: 4825 Interests on OpenCV and Robotics Re: Compile Error « Reply #1 on: December 26, 2011, 06:32:17 am » Code: [Select]/*This program gets the ages of 5 kids and averages That would cause it to run through the preprocessor which might change things. The files are fixed form and have a comment endingin "/*".I tried to type my own reduced test case, unterm_comment.for, onLinux and was unable to reproduce the error.It may be salient

The nnth value of m deallocate( oldm ) enddo ! asked 3 years ago viewed 7835 times active 3 years ago Related 52Writing robust and “modern” Fortran code12Modern language with the advantages of FORTRAN?4Scientific Fortran Compile Error12Methods for entering equations while