Which version of Intel Fortran 1st had C Interop?
Does anyone know which version of Intel Fortran was the first one to have C interop capability? James Tursa ... 14 Dec 2009 10:58
Some questions by parallizing a fortran program with the help of OpenMP
I have made a simple fortran test programm to check/test the performance of OpenMP. In the following you can see the souce code without OpenMP. This test program (without OpenMP) needs about 35 seconds. ---------------------------------------- C PROGRAM OPENMP C IMPLICIT NONE INTEGER TICK, ... 16 Dec 2009 14:35
stop adverts on this board?
Is there some way to stop all the adverts on this board? The place is pretty much useless the way it is. ... 26 Dec 2009 09:59
Fortran DLL call from excel
I am calling a fortran DLL from excel which passes an array to fortran program. The array values are incrimented by 10. Its crishing the program. Why? and how do i resolve this. Full code presented below Subroutine FortranDLL( Array1, upbound ) !DEC$ ATTRIBUTES DLLEXPORT, ALIAS: 'FORTRANDLL' :: Fortra... 11 Dec 2009 12:27
Passing parts of an array to other routine
Hi, I have a code that is supposed to work as a parallel algorithm as well as as a single-CPU job, and one routine is for collecting data on a grid stored in arrays of the form a(-1:nx,-1:ny,-1:nz,nb) or v (4,-1:nx,-1:ny,-1:nz,nb) into one big array of the form atot(ndim, 0:nxtot-1,0:nytot-1,0:nztot-1,nbtot) in a ... 5 Dec 2009 08:31
transfer from real to logical
dan(a)dan-desktop:~/source$ gfortran temp1.f90 -Wall -Wextra -o out dan(a)dan-desktop:~/source$ ./out NaN 1111111110000000000000000000000 a is T F F T F T F F T T T F T T F F T F F F T T T F T T T F T F F F dan(a)dan-desktop:~/source$ cat temp1.f90 PROGRAM test_transfer integer :: x = 2143289344 lo... 13 Jan 2010 18:52
BINARY FILE FORMAT
Hello Experts, I have a binary file created by FORTRAN program. I need to modify its content. Unfortunately, I don't have any manual that explains the format of this binary file. Is there a way to find the format in which this binary file is written? Thanks, kis ... 3 Dec 2009 22:42
C interop to popen
I am a bit confused by the following example, which tries to call the unix (linux) popen(), fgets(), pclose(). It works as I would expect when compiled by g95, but the gfortran compiled code hangs around the first fgets(), #0 0xb7fcd424 in __kernel_vsyscall () #1 0xb7f091e3 in read () from /lib/i686/cmov/li... 17 Dec 2009 04:55
Difference between passing a number and a variable to a subroutine
Hello everyone! I just found out that Fortran distinguishes between passing a variable and actual numbers to a subroutine. F.eks. writing integer, dimension(2) ddims ddims(1) = 64 ddims(2) = 64 CALL h5dread_f(dset1_id, H5T_NATIVE_DOUBLE, bufnew, ddims, error) works perfectly, but CALL h5dread_f(dset1_... 2 Dec 2009 07:36
SuperKISS for 32- and 64-bit RNGs in PL/I.
This 32-bit version uses the unsigned arithmetic facilities of PL/I: /*-------------------------------------------------------------*/ testKISS32: procedure options (main); /* George Marsaglia's Pseudo-Random Number Generator having a period of */ /* 5*2^1320481*(2^32-1). ... 1 Dec 2009 02:50