Hi,
I am using fortran 11.0.035 compiler version on visual studio 2005. Please check the following code is giving wrong result for me. I am not getting the problem.
IF(IOCHK.NE.0)THEN //this conditioin is true
cscl begin pipewrite
cscl PRINT 479,IOCHK
4791 Buffer=' '
WRITE(Buffer,479,ERR=99479,IOSTAT=iPipeErr)IOCHK
Above code ...
This is something that's I've wanted to know recently, mostly out of curiousity. I'm in the mood to learn some old coding styles, and FORTRAN seems like a good place to start.
I guess I should help you guys out by providing a good starting point.
So how would this C procedure be written in FORTRAN?
int foo ( int x , int y )
{
int...
Hi,
For my source-code transforming (Fortran and C) numerical automatic differentiation engine project PARADE, I need a language-independent representation of procedural program code. The IL (intermediate language) in the below diagram:
(The whole tool will be developed solely using Haskell, so strip Java from the above diagram where...
Is there someone here, that perhaps, took upon himself the time and effort and added and recompiled notepad2 with fortran highlighting?
I tried looking at the code of notepad2, but unfortunately, not having any knowledge of c/c++ was immediately lost in it. Would someone here be willing to add the fortran keywords, if I supplied him wit...
Excuse me if this is a duplicate question, but I didn't see anything exactly like this.
What does READ() do in FORTRAN?
For example:
READ(1,82)
...
Before I begin, I must preface by stating that I am a novice when it comes to FORTRAN. I am maintaining a legacy piece of code from 1978. It's purpose is to read in some data values from a file, process the values, and then output the processed values to another text file.
Given the following FORTRAN code:
INTEGER NM,STUBS,I,J,K
...
I was wondering if anyone knew why some programming languages that I see most frequently spelled in all caps (like an acronym), are also commonly written in lower case. FORTRAN, LISP, and COBOL come to mind but I'm sure there are many more.
Perhaps there isn't any reason for this, but I'm curious to know if any of these changes are d...
Hi,
I have intialized one variable in one of the fortran functions. I am using it in another function. But the value is not remains same. In other function call I am getting garbage value. How do i maintain the initialized value.
Ex:
entry a()
num_calls=0
entry b()
num_calls= num_calls + 1
From entry "b" i am getting num_calls as s...
Hi,
I have the following Fortran code. Please explain me..
OPEN(UNIT=4,STATUS='SCRATCH',ACCESS='DIRECT',RECL=2048,IOSTAT=IOCHK)
Here IOCHK is not initialized to 0, it is giving some garbage value so that my code is not working..
IF(IOCHK.NE.0)THEN
// failed code
Can i initialize it separately?
...
why the variables are not initializing to zero in fortran 2003 when comapared with f90?
i have a variable in a funtion from a file. its initialized to 0. I want to use it another funtion then it shows a garbage value. even for global variables also. Is there any option I need to set for fortran 2003 compiler?
...
how to globalize a dummy argument from a function call?
I have below code in fortran
A(a,b) // here a and b are the values filling from function call but they are not declared any where
.
.
.
B(a.b) // same variable passing again to this function call also.
here the problem is the values from a and b are not maintaining for second ...
I'm creating a simple 'vector' type with overloaded basic operations like adding, assignment and so on. I'm hiding the implementation into a module. As a bare minimum I have to provide a facility to assign a 'usual' array to a 'vector'. When compiled with Intel Fortran compiler, I am receiving a warning that an array temporary is created...
I need a compiler for Fortran 77 in linux.
Are there any free compilers out there that people use?
I've heard about g77, but I can't find the rpm or how to install it in linux.
Thanks!
...
I am looking for an rpm or simple install instructions for getting f2c to work on my redhat linux os. I am new to linux and it is difficult finding something like this on google.
(The goal is to use f2c to convert a simple fortran77 file to c, then compile)
Does anybody have any suggestions?
...
Fortran's performances on Computer Language Benchmark Game are surprisingly bad. Today's result puts Fortran 14th and 11th on the two quad-core tests, 7th and 10th on the single cores.
Now, I know benchmarks are never perfect, but still, Fortran was (is?) often considered THE language for high performance computing and it seems like the...
Hi, all,
Several of my university teachers use Fortran. New Fortran specifications and extensions (like HPF) appear. Fortran even takes 26th place in the TIOBE ranking list. I've got interested in this fact and it raised several questions:
Do you use any version of Fortran today (or recently)?
In what activity or project and why?
Wh...
Hi,
Currently I have abc.dll which is fortran dll. Now I want to call C# code from abc.dll. Is there any way to call the C# code from fortran dll ?
thanks
Sagar
...
Let's say you have a Fortran 90 module containing lots of variables, functions and subroutines. In your USE statement, which convention do you follow:
explicitly declare which variables/functions/subroutines you're using with the , only : syntax, such as USE [module_name], only : variable1, variable2, ...?
Insert a blanket USE [modul...
I need a portable function/subroutine to locate the position of the last non-blank character in a string. I've found two options: LEN_TRIM and LNBLNK. However, different compilers seem to have different standards. The official documentation for the following compilers suggests that LEN_TRIM is part of the Fortran 95 standard on the f...
Is there a way to fill the free RAM on a linux machine with random data?
The reason I'm asking this: I'm working in a group where we do numerical programming in Fortran. Sometimes, people mess up working with double precision reals, so that programs that should give double precision results only give single precision.
If my understandi...