You cannot post messages because only members can post, and you are not currently a member.
Description:
Discussion of g95, the free Fortran 95 compiler. General questions on Fortran should be asked in comp.lang.fortran .
|
|
|
Missing Intrinsics for quads
|
| |
Hi,
I just want to note, that the Fortran intrinsic functions exponent() and
fraction() are missing in g95 for floating point numbers with quad precision.
Maybe there are some others missing too.
Best regards
Hans Peschke
|
|
Private Variables
|
| |
Here's a silly wee puzzle. The solution is below. Why is there no
error produced from the assignment of 11 to y?
module m
integer, private :: y
end module m
program p
use m
y = 11
end program p
Module m's variable "y" is indeed private; the y being assigned 11, is... more »
|
|
Strip filename and line number info
|
| |
Is there a compiler flag that will remove all filename and line number
information from the compiled executable? The example program below
illustrates how at runtime, the filename and line number associated
with the error get written to the screen:
=====fprog.f90=======
PROGRAM fprog
INTEGER :: i, j... more »
|
|
Coarray link errors
|
| |
I've downloaded the latest g95 source and compiled it. I'm able to
compile 'normal' Fortran code, but I'm getting the following errors
when linking my co-array program:
$ g95 coarray.f90
/tmp/ccyibhwb.o: In function `MAIN_':
coarray.f90:(.text+0x2a): undefined reference to `_g95_this_image'
coarray.f90:(.text+0x40): undefined reference to `_g95_sync_all'... more »
|
|
Fortran C# project
|
| |
I have a project for my software testing class where we have to create
a program and then test it. Basically my teacher just gave us a .txt
file and said use Fortran. I am pretty lost right now, can anyone
help? Thanks.
|
|
intrinsic functions and user-defined functions
|
| |
hello everyone,
I'm curious about what's the difference between fortran intrinsic
functions and user defined ones.You know, there is a intrinsic
funtion: SUM(array, dim, mask),here you don't have to tell the
compiler the shape of the array.But ,in a user-defined function the
shape of the array must be declared or passed in as arguments.I tried... more »
|
|
linking G95 object .o in a QT4.5 project
|
| |
Hello ,
I would like to link a G95 FORtran compiled object into a C++ (QT4.5)
program.
A) I have made a small routine named subroutine GET_DATE()
subroutine GET_DATE(NAN,NMOIS,NJOUR)
integer*2 NAN
integer*2 NMOIS
integer*8 NJOUR
integer*2 values(8)
call date_and_time(VALUES=values)... more »
|
|
Temporary arrays when returning arrays from function calls
|
| |
Hi,
G95 seems to use temporary arrays when returning array objects from
function calls. Consider the following simple function that returns an
array:
FUNCTION vector_function(v1,v2) RESULT(v3)
IMPLICIT NONE
INTEGER, PARAMETER :: ndim = 100
REAL*8, DIMENSION(ndim), INTENT(IN) :: v1, v2... more »
|
|
maxval** and minval**
|
| |
Hi all,
The maxval (and minval) runtime library function comes in 4 varieties.
For example, the double precision real versions are:
_g95_maxval_r8
_g95_maxval1_r8
_g95_maxvald_r8
_g95_maxval1d_r8
Incidentally, I'm calling these functions directly from libf95.a, and
I do know the specification of the Fortran function. Can anyone give a... more »
|
|
Mysterious Crash with g95
|
| |
I have an interesting set of code that crashes when called. The
offending subroutine is findx.f. The full program uses subroutine
findx and an entry to findxc. The call to findx works, but the entry
to findxc crashes. I have simplified this test case to an abbreviated
the code in the main program and the subroutine geomar.f. I placed... more »
|
|
|