NeHe tutorial code in gfortran1083 (7/27/2012 6:53:47 PM) comp.lang.fortran I have translated some of the tutorial code from the NeHe web page:
http://nehe.gamedev.net/
into gfortran for Windows. The code so far is:
http://home.comcast.net/~kmbtib/Fortran_stuff/Lessons01-05.z... James
Is there a way to get gfortran to use SSE?9240 (12/7/2011 5:43:13 PM) comp.lang.fortran How do you tell gfortran that your arrays are all aligned 0 mod 16 so that it can use instructions like movaps instead of movss to load and process data? I couldn't find any command-line switch. There some som... James
Packaging error in MinGW-w64 gfortran builds?371 (3/16/2011 7:10:17 AM) comp.lang.fortran Does anyone use the gfortran builds from http://mingw-w64.sourceforge.net/ ? I downloaded both the 32-bit mingw-w32-bin_i686-mingw_20110314.zip and 64-bit mingw-w64-bin_i686-mingw_20110314.zip builds tonight a... James
Recurring theme371 (2/17/2011 8:02:00 AM) comp.lang.fortran This issue happens in so many guises... C:\gfortran\clf\opengl\f03gl\random_sphere>type bug1.f90 module glu_primitive use ISO_C_BINDING, only: GLUquadric=>C_PTR implicit none private public GLUquad... James
Trying to pass different procedure pointers0146 (1/26/2011 12:22:16 AM) comp.lang.fortran I've been having so much fun programming lately that I thought I might share some of my joy with you. I wanted to pass procedure pointer components to a subroutine which would associate them with targets via C... James
Syntax error in NAME= specifier for binding label281 (1/20/2011 7:31:41 AM) comp.lang.fortran I thought that this was supposed to work: C:\gfortran\clf\opengl3>type test2.f90 module m1 use ISO_C_BINDING implicit none private character(*),parameter,private :: edit = & trim(merge(' ','... James
Interoperability with C global variables099 (1/20/2011 7:25:52 AM) comp.lang.fortran I read section 15.4.1 of N1830.pdf, but I can't seem to figure out what it means. Here's an example: C:\gfortran\clf\opengl3>type mystuff.f90 module mystuff use ISO_C_BINDING implicit none private ... James
Trying to find a workaround for PR47034079 (1/19/2011 5:53:33 PM) comp.lang.fortran The problem I am trying to avoid is seen as: C:\gfortran\clf\opengl3>type bug1a.f90 module m1 use ISO_C_BINDING implicit none private type(C_PTR),parameter :: a = & transfer(1_C_INTPTR_T,C_NU... James
Note 12.15083 (1/19/2011 7:52:15 AM) comp.lang.fortran Has this been fixed in more recent drafts than N1830.pdf? C:\gfortran\clf\opengl3>type note12_15.f90 module m1 implicit none ABSTRACT INTERFACE FUNCTION REAL_FUNC (X) REAL, INTENT (IN) :: ... James
Generic type-bound procedure2122 (1/18/2011 7:51:43 PM) comp.lang.fortran I have a couple of examples that work with generic procedures: C:\gfortran\clf\opengl3>type generic1.f90 module mytypes implicit none interface gen function f(x) real f, x end functi... James
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)
gfortran write performance1563 (8/29/2012 7:34:46 PM) comp.lang.fortran I have a program that was originally developed on a 32-bit Windows XP
machine using CVF 6.6c. Fairly simple. Works fine.
More recently, I ported that program to 64-bit Windows 7 using
gfortran 4.6.1 (the... tholen(16649)
binary data #27294 (8/30/2012 9:40:13 AM) comp.lang.fortran Hi!
My dosimeters provide data ASCII data-files, providing the data in 16-bit h=
exadecimal words. Reading in these words goes well. I declared them as foll=
ows:
CHARACTER(4) :: MyWord
In SOME ca... arjan.van.dijk(248)
Any Fortran intrinsic analog to modf(...) ?781 (9/5/2012 2:55:25 AM) comp.lang.fortran double modf( double x, double * intpart );
Breaks x into two parts: the integer part (stored in the object pointed by intpart) and the fractional part (returned by the function).
I've been looking (web se... john.chludzinski(61)
Intrinsic function for dp vs sp?2161 (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)
fortran help: Matching Data and writing values9112 (9/12/2012 6:03:33 PM) comp.lang.fortran hello!
i have two file with following data
first file (named: xyxp.dat)
6
1 1 0 10
3 2 1 5
3 5 4 8
0 0 0 11
1 2 5 4
5 6 4 12
second file (named: xyzn.dat)
6
1 0 0 0
2 1 1 0
... alizae(2)
"Implicit" use of assignment(=)2462 (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)
Ranq1 from numerical recepies31673 (9/17/2012 3:18:22 PM) comp.lang.fortran Dear friends,
I am in need of a "good" random number, for which, I have used LCG for
long.=20
Recently I found some problem in my application, probably due to the
random number. Before going to marseglia, I... bnrj.rudra(343)
Generalizing a call for 1,2,and 3-d arrays.959 (9/19/2012 6:48:12 PM) comp.lang.fortran I am using a set of C++ sparsematrix routines to represent sparse matrices =
in Fortran. I also have a toggle to switch between the Fortran arrays (ie.=
full) and the sparse functions. Trouble is that refe... acferrad9905(7)