Fortran Error Invalid Form Of Array Reference At
summation = summation + f(thetacounter,phicounter)*(r(rcounter)**2)*sin(theta(thetacounter))*wr(rcounter)*wtheta(thetacounter)*wphi(phicounter) ! open(unit=10,file="STAR.vrt",status="old",action="read") do i = 1,nov read(10,*)ivrt(i)%vrt(1), ivrt(i)%vrt(2), ivrt(i)%vrt(3), ivrt(i)%vrt(4) !print *, ivrt(i)%vrt(1), ivrt(i)%vrt(2), ivrt(i)%vrt(3), ivrt(i)%vrt(4) end do close (10) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Index Nav: [DateIndex] [SubjectIndex] [AuthorIndex] [ThreadIndex] Message Nav: [DatePrev][DateNext] [ThreadPrev][ThreadNext] Other format: [Raw text] Re: Error: Invalid form of array reference at (1) From: Tobias Burnus
Is it possible that the library is being bundled with your executable instead of dynamically linked? -Lee share Share on Twitter Share on Facebook Email Link Like + Quote Reply Any help would be greatly appreciated. When I use the same makefile on my 10.6 MacBook. TEMPORARY VARIABLES, R-SPACE REAL,allocatable :: ECR(:,:,:) !!
Best, -N RE: Error: Invalid form of array reference at (1) GreenPatriot (Programmer) (OP) 11 Jun 14 15:58 Never mind - I found the problem. Going to be away for 4 months, should we turn off the refrigerator or leave it on with water inside? However, in terms of Fortran only 72 and 132 > are the magic numbers.
It was a common problem when people tried to compile DEC Fortran on IBM and other conventional systems. Yes, my password is: Forgot your password? Alternatively, you can ask gfortran to accept longer line lengths using, e.g., -ffree-line-length-none (or -ffree-line-length-
Close Box Join Tek-Tips Today! Change the name (also URL address, possibly the category) of the page. Regarding the number 80: I read in the gfortran manual that 80 matches old card images and it is also a typical width of many terminals. Trouble understanding charging capacitor on bridge rectifier Can two integer polynomials touch in an irrational point?
enddo ! i decided to declare each reference to an array as a constant variable (as shown in the code) and it is working now, so you may have hit the nail on Cyberpunk story: Black samurai, skateboarding courier, Mafia selling pizza and Sumerian goddess as a computer virus Risk Management in Single engined piston aircraft flight In the United States is racial, ethnic, for what it's worth, the "1" appears after the 'phicoun' in: (r(rcounter)**2)*sin(theta(thetacounter))*wtheta(thetacounter)*wphi(phicoun Steve Kargl Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate
asked 2 years ago viewed 147 times active 2 years ago Related 2072Create ArrayList from array1938Appending to array2FORTRAN: Invalid form for an assignment3passing assumed-shape arrays in two levels of subroutines (Fortran Alternatively, you can ask gfortran to accept longer line lengths using, e.g., -ffree-line-length-none (or -ffree-line-length-
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... have a peek at these guys Taking out the SAVE did not help. Resources Join | Indeed Jobs | Advertise Copyright © 1998-2016 ENGINEERING.com, Inc. You are a saint.
do phicounter = 1,nphi ! do rcounter = 1, nr ! EXTERNALlY APPLIED STRESS COMPLEX :: ETAK(NP,NQ,NX,NY,NZ) !! check over here share Share on Twitter Share on Facebook Email Link Like + Quote Reply lee1210, Aug 10, 2010 lee1210 macrumors 68040 Joined: Jan 10, 2005 Location: Dallas, TX #11 Really shouldn't be
ivrt(icell(i)%cell(2)%icounter(1)=ivrt(icell(i)%cell(2)%icounter(1)+1 1 The error is shown here for all the lines with the icounter. FIELD VARIABLES, K-SPACE REAL,allocatable :: ETA(:,:,:,:,:) !! TEMPORARY VARIABLES, R-SPACE REAL :: ECR(NX,NY,NZ) !!
Thus, it is not surprising that you > get such an error exactly in column 132.
Click Here to join Tek-Tips and talk with other members! Also components ishape, reffwd of some type. K (IJK)COMPONENTS REAL,allocatable :: BPQ(:,:,:,:,:,:,:) !! However, I believe that I have continued the one equality across the three lines correctly; none of the lines come anywhere near column 72.
share|improve this answer answered Dec 14 '13 at 17:08 Vladimir F 26k31852 Unfortunately, I do not see any warning. Is there a role with more responsibility? The executable runs but 600MB is a problem. http://epssecurenet.com/fortran-error/fortran-error-2290.html NO OF IN-PLANE SLIP DIR.
I would generally not recommend to use lines longer than 80 or 100 characters. Let us know a. enddo ! PI REAL, PARAMETER :: TWOPI=2*PI !! 2xPI C DEFINE COMMON VARIABLES FOR REAL :: N(4,3) !!
I've made some of these arrays allocatable. Anonymous form close (x) Front Page Mac Blog iOS Blog Roundups AirPort Apple Car Apple Deals Apple Pay Apple Stores Apple TV Apple VR Project Cheers, - Tobi References: Error: Invalid form of array reference at (1) From: laurbert515 Re: Error: Invalid form of array reference at (1) From: Steve Kargl Re: Error: Invalid form of Compiler: gfortran (from HPC Mac website) libraries: FFTW3 Here is the makefile ********************************* OBJS = dis.o \ var.o \ evo.o \ grd.o \ ini.o \ str.o \ ino.o \ gsf.o \
The Fortran standard allows only 132 characters in free-form source code and 72 in fixed-form source code. Does it include any other files? -Lee share Share on Twitter Share on Facebook Email Link Like + Quote Reply lordava, Aug 9, 2010 lordava thread starter macrumors newbie Joined: The oversized object file is "var.o". share|improve this answer answered Jul 8 '14 at 20:02 Alexander Vogt 13.1k122448 add a comment| up vote 0 down vote Like Alexander Vogt I agree that there are brackets missing.
Then you must add allocate statements at the appropriate initialization locations.Click to expand... (Same as lee1210) share Share on Twitter Share on Facebook Email Link Like + Quote Reply lordava, There is no continuation character. In particular, we have no idea whether the arrays you show are actually declared as arrays. How do I say "Thank you, Captain Obvious?" Why is water evaporated from the ocean not salty?
I would recommend to use it always. –Vladimir F Dec 14 '13 at 17:15 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up PS: J3 invented & for a reason. -- Steve laurbert515 Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Error: share|improve this answer answered Jul 8 '14 at 21:27 francescalus 9,15341538 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign Something does not work as expected?