GCC/gfortran 4.7.0 release approaching - request for testing1149 (2/2/2012 1:09:52 PM) comp.lang.fortran Dear all, Executive summary: GCC 4.7 will be soon released. It has better polymorphism/object-oriented programming support, OpenMP 3.1, generates faster code - and on the C++ side there are new C++ 2011 featur... Tobias
F95+ Standard question: Interleaved DATA + default initialization855 (6/7/2011 9:15:52 AM) comp.lang.fortran Dear all, I am seeking a second opinion regarding the validity of the following code. It consists of a derived type, where one component is has a default initializer. The other component is initialized via DAT... Tobias
Fortran standard question: Aliasing involving dummy arguments11231 (7/21/2010 6:42:28 PM) comp.lang.fortran Hi all,
I have an alias question regarding argument association.
I think the relevant part of the standard is "12.5.2.13 Restrictions on
entities associated with dummy arguments" (Fortran 2008, FDIS); in... Tobias
C interoperability question regarding COMMON2152 (1/29/2010 5:38:23 PM) comp.lang.fortran Hello all,
I have a question: What do you expect for the following common
INTEGER(c_int) :: I
COMMON /a/ i
Is it interoperable with C's
struct {
int i;
} a;
or with
int a;
If the co... Tobias
archive object not work, please help3238 (9/1/2012 1:14:50 PM) comp.lang.fortran Hi there,
There is a project with source file in 3 different directory. I use
gfortran to compile them.
project/module
project/interface
project/sub
in project/module and project/interface director... jszhao(77)
gfortran & coarrays6131 (9/4/2012 12:14:07 AM) comp.lang.fortran I've been trying to experiment with coarrays using gfortran. I tried the canonical "hello world" for carrays (see below). Then when I try to compile using:
$ gfortran -fcoarray=single coarray.f95
coarray... john.chludzinski(61)
Intrinsic function for dp vs sp?2162 (9/11/2012 3:09:47 AM) comp.lang.fortran Searching on the web I found some sites that show cos() for sp and
dcos() for dp. The GNU Fortran site seems to indicate that dcos() is
deprecated ("archaic")? Are there different calls for sp vs. dp for
t... john.chludzinski(61)
GDB & gfortran indexing259 (9/11/2012 7:28:26 AM) comp.lang.fortran I tried a trick common for C coders when using GDB (when indexing):
(gdb) set $i = 0
(gdb) p W[$i++]->V
(gdb) RET
(gdb) RET
....
With gfortran I get:
(gdb) set $i=1
(gdb) p plts(12)%conn(i)%me
Va... john.chludzinski(61)
Conversions between different character kinds?847 (9/13/2012 9:53:49 PM) comp.lang.fortran Hello all,
while assignment between character variables of different kinds
is performed transparently in Fortran 2003, I am not aware of any
functions for explicit conversions between these types. I find ... anlauf.2008(29)
"Implicit" use of assignment(=)2464 (9/15/2012 2:49:23 PM) comp.lang.fortran Recently I noticed that overloaded assignment operator has no effect when i=
t is called "implicitly", in cases demonstrated by the following program:
module a_mod
type :: a
contains
procedur... pawel.biernat1(12)
Bessel function computation with SLATEC ( AMOS routines)20105 (9/16/2012 4:39:43 PM) comp.lang.fortran Hi,
I am trying to compute the Bessel function(s) using the SLATEC Amos library available on Netlib. Here is the code I use. The arguments for routine CBESY by Amos are explained in comments header.
c******... gcdiwan(54)
Non-elemental procedure, multiple possible ranks1263 (9/21/2012 12:31:52 AM) comp.lang.fortran I was considering whether it's possible to write a procedure for multiple ranks without duplicated code, where an elemental procedure would be inappropriate. Here's a (mildly artificial) example of where this m... SeanSantos(2)
Unexpected result with OpenMP360 (9/21/2012 11:14:31 AM) comp.lang.fortran Hello,
I was experimenting with a method to parallellize the inner loop of a program
without having to re-create a parallel section: the outer loop is a loop
describing the evolution over time, so that i... arjen.markus895(634)