First  |  Prev |  Next  |  Last
Pages: 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
passing a type of different KIND to a C function from Fortranbinding
On 2010-05-26, glen herrmannsfeldt <gah(a)> wrote: [Argument passing in C] First, anything smaller than int is always converted to int before the call. Really? I wasn't aware of that. Is this something specified in the C standard, or is it just implemented this way on some (common?) ABI's... 26 May 2010 10:13
passing a type of different KIND to a C function from Fortran binding
I just posted this in PGI Forum, yet i hope I can get more help from the comp.lang.fortran group mems. I believe that size_t interoperable type in Fortran is INTEGER(c_size_t). Suppose that I have a C function which accepts an integer of type size_t. If this function is called in C code, we can pass an integer c... 5 Jun 2010 21:17
Not even in the top 20! It seems that Fortran isn't in the top 20, tied with RPG and Bourne shell. -- glen ... 6 Jun 2010 18:15
Fortran in Physics - meeting in London
For those in the UK, there is a meeting that might be of interest organised by the BCS in London on June 7 called "Fortran in Physics - its Legacy and its Future". For further details see: -- Clive Page ... 25 May 2010 16:50
"static" explanation. What exactly does it mean?
Hello, Can some kind, patient person explain exactly what the use of static memory entails? For example, if one uses the "-fstatic" option for a compiler. A colleague is having an issue with some code that runs fine on one machine (#1: redhat 4, 32 bit, g95 v4.0), but bombs on another (#2: redhat 3, 32 bit, g95... 28 May 2010 18:09
problem in interface
This might be a silly question and/or i am missing a faq but plz help me. I have a subroutine declared as: 5 subroutine lm_a(oidxdn,opnu,opold,oqnu,oqold, & 6 clabl_1,lmx,w_oidn,w_opp,w_oqnu,w_oqold, & 7 d_ialpha,d_ifmt3d,d_itrans,d_jbasdn,d_ldn,d... 28 May 2010 07:08
What exactly does the SAVE statement do ?
I'm reading a fortran manuscript (i.e. handbook, primer) and I cannot quite understand the significance of a SAVE statement (in this case, when used in a MODULE). It states that the SAVE statement is used to ensure that variables keep their values between successive calls to the procedure. In other circumstances... 25 May 2010 08:00
Don't understand what my program is doing
Hi, Below is a program I wrote. In addition to storing the values of the arrays 'f' and 'tau' in files named 'f_vs_tauxxxxxx.txt', (where xxxxxx is the number of times the conditional loop labeled 4 has been iterated), it is also supposed to display the following data on screen for each iteration. (x's denote nu... 29 May 2010 00:39
call c lib from fortran in ms visual studio 2005
hello. all fortran experts! please help me. i am trying to call a c lib from fortran. (file 1 and 2 are for c library and file 3 is for fortran.) file 1 == 'ac_lib_static.h': #ifndef _AC_LIB_STATIC_H_ #define _AC_LIB_STATIC_H_ extern int ADD(int*, int*, int*); #endif // _AC_LIB_STATIC_H_ ----------... 22 May 2010 09:25
Suppressing intrinsic assignment of derived type
(...bump, and see below...) On 2/05/2010 9:04 AM, Ian Harvey wrote: Is there a way to suppress the intrinsic assignment of a derived type, so that an attempt to use intrinsic assignment (versus defined assignment) results in a compile time error? As background: I am in the habit of using the only clau... 21 May 2010 14:59
First  |  Prev |  Next  |  Last
Pages: 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34