BC2210
- 17
- 0
Delete..
Delete..
Delete..
Last edited:
The discussion revolves around printing a one-dimensional array in Fortran as if it were a two-dimensional array. Participants explore the syntax and methods for achieving this, including the use of specific operators and the structure of arrays in Fortran.
Participants generally agree on the method of printing array entries but express differing views on the syntax details and the relevance of deleted posts. The discussion remains somewhat unresolved regarding the implications of deleting posts.
There are limitations in the clarity of syntax corrections and the potential confusion arising from mixing programming languages, which may affect understanding.
REAL,DIMENSION(2,3) :: array
DO,i=1,2
WRITE(6,*) array(i,:)
END DO
I don't think you want that first comma after the DO.minger said:They're not crazy, if I want to print all row entries in a column, then:
Code:REAL,DIMENSION(2,3) :: array DO,i=1,2 WRITE(6,*) array(i,:) END DO
This character - : - is a colon. This one - ; - is a semicolon.minger said:You can use the semi-colon as an implicit "all" when operating on arrays.
BC2210,BC2210 said:Delete..