Home > Syntax Error > Unexpected Data Declaration Statement At (1)

Unexpected Data Declaration Statement At (1)


The second i know is because my arrays are not the same dimensions, but i am trying to go from a two dimensional matrix to multiple single dimension arrays that come With modern technology, is it possible to permanently stay in sunlight, without going into space? Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Any better way to determine source of light by analyzing the electromagnectic spectrum of the light Make all the statements true Is it possible to have a habitable planet unsuitable for weblink

statements END PROGRAM bunkers SUBROUTINE lininterp( ... ) ! The time now is 06:04 PM. What happens when 2 Blade Barriers intersect? The output is as follows. $gfortran testspeed.f90 In file testspeed.f90:8 PRINT*,'Check: 1 Error: Unterminated character constant beginning at (1) In file testspeed.f90:9 y(10,100)=(70.**(1/3.)/100)?',y(10,100),70.d0**(1/3.d0)/100 1 Error: Unclassifiable statement at (1) In file

Unexpected Data Declaration Statement At (1)

In the early days of FORTRAN, when computer memory was measured in kilobytes, this was a valuable technique to make the most efficient use of very limited memory. My CEO wants permanent access to every employee's emails. Join our community today! In C code, I believe that this would be accomplished with a simple malloc, but this type of methodology may not be useful in Fortran.

How do I explain that this is a terrible idea? Here is my test program: program test implicit none integer num1, num2 print *, 'Starting...' num1 = 10 num2 = 11 call sub(num1, num2) print *, 'Done.' end program subroutine sub(num1, Example BLOCK DATA SETUP INTEGER A,B,C REAL I,J,K,L COMMON /AREA1/ A,B,C COMMON /AREA2/ I,J,K,L DATA A,B,C,I,J,K,L/0,1,2,10.0,-20.0,30.0,-40.0/ END EXTERNAL Statement During compilation and linking, if one of the modules containing a procedure Fortran Line Continuation Attached Files makefile.txt (3.1 KB, 17 views) science_guy View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by science_guy 10-16-2009, 12:10 AM #2

declarations ! They should also be accompanied by an annotated part of the code, with a corresponding number in brackets showing the place where the error occurred. 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 <', Please visit this page to clear all LQ-related cookies.

Are independent variables really independent? Orbital Precession in the Schwarzschild and Kerr Metrics Spectral Standard Model and String Compactifications Digital Camera Buyer’s Guide: Compact Point and Shoot Name the Science Photo Precession in Special and General INTEGER I. AwesomeMachine Linux - Software 0 05-02-2006 02:02 AM All times are GMT -5.

Unterminated Character Constant

In that page you can enter your bug report and the important things are to choose version, component. Not the answer you're looking for? Unexpected Data Declaration Statement At (1) It must be noted, though, that initialising variables like this has the side effect of implicitly giving them the save attribute. Syntax Error In Argument List Fortran The variable names do not need to match between program units but it is vital that their types and the order in which they appear in the list are identical.

Thanks so much! :) RissaR, Apr 26, 2012 Apr 26, 2012 #4 Mark44 Insights Author Staff: Mentor You're welcome! have a peek at these guys How much interest should I pay on a loan from a friend? Use EQUIVALENCE to map the two-dimensional array of partial derivatives directly onto the one-dimensional array of integrated quantities. Computer beats human champ in ancient Chinese game •Simplifying solar cells with a new mix of materials •Imaged 'jets' reveal cerium's post-shock inner strength Apr 26, 2012 #2 Mark44 Insights Author Fortran Unterminated Character Constant

statements END SUBROUTINE meanwind I have successfully fixed most of the other errors, but this was the biggest problem I was running in to. Is there a role with more responsibility? statements END SUBROUTINE lininterp SUBROUTINE meanwind( ... ) ! check over here Join them; it only takes a minute: Sign up Fortran Error Meanings up vote 2 down vote favorite I have been following books and PDFs on writing in FORTRAN to write

How to reliably reload package after change? Log in or Sign up here!) Show Ignored Content Know someone interested in this topic? Index(es): Date Thread Forums Search Forums Recent Posts Unanswered Threads Videos Search Media New Media Members Notable Members Current Visitors Recent Activity New Profile Posts Insights Search Log in or Sign

This is my code.

Share this thread via Reddit, Google+, Twitter, or Facebook Have something to add? 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 Main Menu LQ Calendar LQ Rules LQ Sitemap Site FAQ View New Posts View Latest Posts Zero Reply Threads LQ Wiki Most Wanted Jeremy's Blog Report LQ Bug Syndicate Latest Is intelligence the "natural" product of evolution?

Dummy arguments in external functions and subroutines cannot appear in the variable-list nor can variables which are external function names. santana View Public Profile View LQ Blog View Review Entries View HCL Entries Visit santana's homepage! declarations ! this content targetlvl < hlist(i+1)): u=(ulist(i+1)-ulist(i))/spacing*(targetlvl-hlist(i))+ulist(i) v=(vlist(i+1)-vlist(i))/spacing*(targetlvl-hlist(i))+vlist(i)

Blogs Recent Entries Best Entries Best Blogs Blog List Search Blogs Home Forums HCL Reviews Tutorials Articles Register Search Search Forums Advanced Search Search Tags Search LQ Wiki Search Tutorials/Articles Search Data stored in a COMMON block is not passed between program units via argument lists, but through the COMMON statement near the beginning of each program unit. Not the answer you're looking for? Example Consider the following program fragment: PROGRAM MAIN INTEGER A REAL F,R,X,Y COMMON R,A,F A = -14 R = 99.9 F = 0.2 CALL SUB(X,Y) … END SUBROUTINE SUB(P,Q) INTEGER I

The compile error occurs on a line where I am trying to create an array of arbitrary size. Needs f95 INTEGER,INTENT(IN)::iunit CHARACTER,INTENT(IN):: stuff*(*) REAL,INTENT(INOUT) :: tstart REAL,INTENT(OUT) :: CPU ! I am using the gfortran compiler on GNU/Linux, so I think that it would be possible to use all of the supported language features. Password Programming This forum is for all programming questions.

Thanks alot, Alex. An internal subroutine would be useful. –Nicholas Kinar Nov 29 '12 at 17:08 1 Also note, that explicit array allocation is done by the allocate statement, but the array must 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 Stockman All Rights Reserved Designed and maintained by Obliquity http://www.obliquity.com/computer/fortran/common.html

Variables in COMMON blocks are global in nature and when one program unit alters a variable in this shared memory area, then it affects all of the other program units which Next choose the product - say gcc. exit loop end if enddo if (k > 0) then ! Every COMMON block must be declared in every program unit in which the information stored therein is needed.