|
Question about READ statement Hello, supposing array(:,:) is a doubleprecision array and on unit 1 there is an unformatted file, is there a different between the forms: read(1) ((array(i,j), j=1,jmax), i=1,imax) and do i =1, imax do j =1, jmax read(1) array(i,j) enddo enddo I would say "no", but my experience seems... 19 Jul 2008 15:01
Mixed-language I/O jumble Hi world! My code uses a lot of mixed-language stuff, which seems to cause some mess with output to stdout. Say, some Fortran routine does a PRINT "Hello world 1" and calls some C or Ada afterwards, which then prints "Hello world 2", but the program ends up printing Hello world 2 Hello world 1 (in t... 21 Jul 2008 10:59
rpc's comments on Fortran 2008, part 2 Title: the official interpretations should be examined The Fortran standard should be written in such a manner that a reader who is not a member of the committee should be able to understand it without needing to read the interpretations issued against Fortran 90, Fortran 95, and Fortran 2003. The committee... 11 Jul 2008 00:43
rpc's comments on Fortran 2008, part 1 Title: Coarrays should be optional The Fortran 2008 draft should not be approved unless coarrays are made optional. Coarrays are too new to belong in Fortran 2008. Many models for parallel programming have been developed. Coarrays are not clearly superior to these other models. Making coarrays optional ... 11 Jul 2008 03:48
Bug in IBM Fortran compiler? Hi, while trying to compile an application with the IBM Fortran compiler I found something odd, which can be summarized with the following test_xlf.f90 code. The original code has a subroutine resembling the "Add" subroutine, but I just found that the assignment NewRegions(1:4) = Reg%R(1:4) was giving it tr... 11 Jul 2008 09:55
derived data and pointer Hi everyone I define a type as follows. type event integer :: n real(4),pointer :: x(:) end type event And then I use this to define an allocatable array and write statements. type(event),allocatable :: event_his (:) allocate event_his (10) do i = 1, 10 event_his(i)%... 10 Jul 2008 13:24
Trying to use a logical as an array index I am trying to print out True and False instead of T and F. I would like to use a logical as an array index, but can't in F90. I have tried the following, and it works on Intel v10, but will it always work, ie. is the integer value of .true. always -1? (I don't want to get an array bounds error if .true. /= -1) ... 13 Jul 2008 17:10
gfortran netCDF problem I am a new user, trying to use netCDF with gfortran. gfortran (v 4.4.0) works fine by itself, but I am having problems installing netCDF. I first tried v 3.6.1 but when I unzipped there was no netcdf. h. I then tried 3.5.1, which had the .h file. However when I try to include it in a simple program, I get "Illegal ... 11 Jul 2008 14:03
Can't seem to extract data from this ASCII file I'm trying to extract the data from the ASCII file below into an array. Using Read (3,*) or Read (3,'(explicit formatting)') gives an input conversion error or a list-directed I/O syntax error. My program and the input data file are shown below... Program extract_elout_data Implicit None Integer:: i,j,k,fi... 18 Jul 2008 19:36
another way to shoot yourself in the foot? Colin Paul Gloster <Colin_Paul_Gloster(a)ACM.org> wrote: [a very long post including quite a lot of quotations of me, among others] I'm afraid that this post was too long and rambling for me to follow it. I could not detect any coherent message in it, other than perhaps a hint of randomly assembling quotes that so... 18 Jul 2008 19:36 |