First  |  Prev |  Next  |  Last
Pages: 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
Logical units and INQUIRE
Hi all! I have a simple question. I want to check if a given logical unit is connected to an opened file. As a test, I wrote the following short program: program foo logical :: lfile inquire (unit=42, exist=lfile) write(*,*) lfile open (unit=42, file='file.dat') ... 27 May 2010 22:31
inequality values
I have two matrices (a,b). if I show determinant of matrix with ‘det’, I will have: Det([transpose(a)][b]) = Det([transpose(b)][a]) I have written a code with Fortran90 to calculate above term, but values of both sides of equation are different in some digits (scalar information takes 8 byte). This inequality make... 31 May 2010 19:40
ALLOCATABLE array as MPI buffer
My question is if I use an ALLOCATABLE array as the buffer (unallocated). Should it be allocated before that or the MPI routines (RECV, BCAST...) will automatically allocate and fill the received data to it. Thanks, Tuan ... 28 May 2010 19:15
lost of efficiency of operator overloading
I am writing a code using operator overloading feature of F90/95. The basic math is to replace all real(8) with two real(8) contained in a type named DUAL_NUM, and overloading the corresponding calculations according to newly defined data. Based on the coding, the computing should not more than three times more tha... 7 Jun 2010 03:06
passing a type of different KIND to a C function from Fortran ?binding
bio_amateur <hoangtrongminhtuan(a)gmail.com> wrote: (big snip in KIND conversion, C, size_t, call by value, etc.) Thank you for all the help. So, it's clear to me that using VALUE means creating a copy on the background. Somewhere a copy must be made, yes. But C doesn't pass arrays by value, but instead... 26 May 2010 20:16
passing a type of different KIND to a C function from Fortran binding
bio_amateur <hoangtrongminhtuan(a)gmail.com> wrote: Now, the situation is that I have an array which is quite large, and passing by reference to the C function. Now, we'll see that creating a duplicate is not a good choice. So, if we know a way, such as using pointer to typecast and pass it to the C functio... 26 May 2010 19:09
getting the gap right
I'm using fortran to make the calculations for an exterior gate I'm building. The picketing material is five and a half inches wide, and the distance to be covered is given by spar: E:\gcc_eq32>out rough opening is 36.000000 encasing is 2.5000000 finished opening is 33.500000 left_gap is ... 24 Jun 2010 14:07
problem with array of strings comparison
Hello everyone, I am getting different results for the following seemingly simple program using different compilers: program test implicit none character (2), dimension (2), parameter :: list = (/'ab', 'ba'/) integer :: i i = 1 write (*, *) list (:) (1 : 1) == list (1) (i : i) end program t... 27 May 2010 03:48
Fortran Basics
Howdy there, I am converting some fortran 77 code into matlab. There are various questions that have cropped up. As I prgress through my conversion process i will add them to this topic. For now my first question is; What is 0.0D0? the context it is being used in is; IF (A.NE.0.0D0) GOTO 20 As an initial guess I... 28 May 2010 18:09
gfortran offline install
Hi, I have a pc with dual boot windows7 and Ubuntu. I only have internet connection on windows7 (no internet on ubuntu). I want to install gfortran on my Ubuntu... I can download .deb required by gfortran using "windows7" connection and copy and install them on ubuntu. Can you tell me which .deb files... 29 May 2010 09:11
First  |  Prev |  Next  |  Last
Pages: 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33