Fortran Definition and 858 Threads
-
K
Fortran Subscripts and Fractions in Fortran 95
i'm trying to write the equation dB=log_10(P_2/P_1) I just need help writing this equation into Fortran. I know for exponents I use **, but what about subscripts? Also, my inital thought for a fraction is /. Is this correct?- kathrynag
- Thread
- Fortran Fractions
- Replies: 2
- Forum: Programming and Computer Science
-
D
Fortran Fortran: String to Real Conversion
This has been bugging my (and my program) for a few days now. I'm searching for a way to convert a string (or more properly; a collect of characters) to a Real data type. I'm new to Fortran, but as I understand it there seems to be no intrinsic function to make this easy. I have tried various...- DizzyDoo
- Thread
- Fortran String
- Replies: 1
- Forum: Programming and Computer Science
-
S
Fortran 90 (need to read in binary data files into arrays)
Hello, I am currently doing a 3rd year undergrad project on forward radio meteor scatter the problem involves the following: I have over 80Gbs worth of 10 second data blocks of recorded radio input. They are stored as date stamped .bin files in binary format, each of order 1700kb or...- sparkstermaes
- Thread
- Arrays Binary Data files Fortran
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
M
Fortran 64 bit windows fortran compiler
Hi, I have used Compaq Visual Fortran 6.5 for years. Recently bought a new PC with Intel Core2 Quad Q6600 processor and Windows Vista 64 bit Home Premium OS (yes, likely a mistake on the OS). I wish to use Code I wrote in the past and take advantage of 64bit processor, memory, etc. I...- mcgrete
- Thread
- Bit Compiler Fortran Windows
- Replies: 4
- Forum: Programming and Computer Science
-
A
Fortran Can Fortran Incorporate Variables in Output File Names?
Hi, I looked around in some forums, but couldn't find a good answer to this problem: my programmes produce several output files. When the programm is finished, I add certain simulation parameters to the file name, so that I see later, to which simulation run this file belongs. (for example...- angura
- Thread
- File Fortran Output
- Replies: 7
- Forum: Programming and Computer Science
-
J
Fortran Fortran - How to retrieve read near middle or end of large file quickly.
Hi. I need to be retrieve information far into a file without reading everything before it. Is there a way to do this? Current code is below. Thanks, Jeff Tibbitt !ccccccccccccccccccccccccccccccccccccccc program getcoord integer i real*4 xx(1000), yy(1000), zz(1000) double precision...- jtibbitt
- Thread
- File Fortran
- Replies: 2
- Forum: Programming and Computer Science
-
M
Fortran Simulation: spectroscopy with fortran or anything else
hi friends, I'm going to simulate the spectrum of a specific ion, with constant situation (like: density, temperature and etc). but I don't know what should I do first! thanks for your help :frown:- mosy_gh23
- Thread
- Fortran Simulation Spectroscopy
- Replies: 1
- Forum: Programming and Computer Science
-
P
Fortran Checking programming code: fortran 95
Hi. Can anyone be kind enough to check what's wrong with my source code? Here's the project: http://www.dur.ac.uk/3h.physics/proj...nsmission.html You can skip the introduction bits. I'm stuck at the last question on Calculation Part I. I did the source code independently and it works...- p$ycho
- Thread
- Code Fortran Programming
- Replies: 2
- Forum: Programming and Computer Science
-
J
Fortran How can I test my loudspeaker for sound output in Fortran?
Hello, i want to produce a sound, for example a simple beep, with fortran. Can anyone help me please? John- jpapa
- Thread
- Fortran Sound
- Replies: 3
- Forum: Programming and Computer Science
-
B
Fortran Help with Fortran 77 - File Opening Questions
Hi, I have some doubts about how to open files in fortran 77. The file must to be inside some particular directory? Sorry about my english.- Bruno Solheid
- Thread
- Fortran
- Replies: 1
- Forum: Programming and Computer Science
-
W
Fortran Creating Multiple Output Files in Fortran
Hi guys, I am tryin to get my program to output multiple files with the name of the file dependent on a number of integer variables in the program, any help with this would be greatfully appreciated. Cheers- wooly
- Thread
- File Fortran Output
- Replies: 1
- Forum: Programming and Computer Science
-
M
Fortran Learn Fortran in Linux: Step-by-Step Guide
Hello, I used to do schoolwork in Fortran (Compaq Windows version). Couple weeks ago I decided to say "good-bye" to Windows and installed Mandriva Linux. But now I'm quiet confused how program work in work. I see that nolonger I don't have beautiful white window to write program text...- marden
- Thread
- Fortran Linux
- Replies: 3
- Forum: Programming and Computer Science
-
R
Fortran Frustrating fortran .exe problem
HI, I am using fortran 90 for simulation. I write a subroutine (CALC_PORO_SOL_BANDED )where i called a linear solver LSLRB. I called this CALC_PORO_SOL_BANDED subroutine from another two subroutine in a do loop. It works for 1 subroutine without any error but from another subroutine it works...- Rahman_M_M
- Thread
- Fortran
- Replies: 16
- Forum: Programming and Computer Science
-
F
Fortran Fortran complex numbers and do loops
I have a very simple question, but have been unable to find an answer for it. When using fortran 90 can you use a DO loop to calculate a complex number? For example: [code] COMPLEX FUNCTION forwards (tincdum,tstartdum,tenddum,fdum,ydum,idum,wdum&...- freja
- Thread
- Complex Complex numbers Fortran Loops Numbers
- Replies: 1
- Forum: Programming and Computer Science
-
N
Fortran Can I Compile Linux FORTRAN Code on a Windows Compiler?
Hi, I have a code that was written with a Linux FORTRAN compiler but is 'portable'. does this mean I am able to compile it on a windows compiler?- NoobixCube
- Thread
- Fortran Linux Windows
- Replies: 3
- Forum: Programming and Computer Science
-
P
Fortran Fortran: Integrating Different Functions
Hi! Im using fortran and am trying to create a integrating program that is able to use different functions. I have written the subroutine that will integrate but would also like it to be able to use different functions determine by user selection. Here is my subroutine: subroutine...- porkpie
- Thread
- Fortran Functions
- Replies: 1
- Forum: Programming and Computer Science
-
Y
Fortran Why Does My Fortran 90 Function Cause a Segmentation Fault?
i have a fortran 90 function invoked: iret = store_data(ncid_bfm,var_ids(n),OCET_SHAPE,NO_BOXES,garray=D3DIAGNOS(i,:)) each time i get to that line i get segmentation fault [SIZE="3"] on the calling unit variables a defined like so: !BOP ! ! !IROUTINE: Store the results ! ...- yairsuari
- Thread
- Fortran Function
- Replies: 1
- Forum: Programming and Computer Science
-
Fortran 2 questions in one thread : Fortran 90
Hi, I'm laughing, after having passed more than one hour on a very simple program I could finish it. It does the Euclidean division between 2 numbers that one type. It is very inefficient I agree. I gave up doing it in a more efficient way in order to simplify it (for my brain at least)...- fluidistic
- Thread
- Fortran Thread
- Replies: 2
- Forum: Programming and Computer Science
-
Fortran Fortran 90 very basic question : else if statement
Hi there, I've tried all I could in order to complete a very simple and basic program that finds the roots of any quadratic binomial. You have to enter the coefficients a, b and c and it would find the roots. I could do that, but a problem occurred if I typed a=0. Of course if a=0 the...- fluidistic
- Thread
- Fortran If statement
- Replies: 6
- Forum: Programming and Computer Science
-
S
Which Software is Best for CFD: Fortran vs C
Can someone pls advise me as to which would be the better software to learn which would help in CFD - Fortran or C or something else? Thanks!- sashankhrao
- Thread
- Cfd Fortran
- Replies: 2
- Forum: Mechanical Engineering
-
S
Fortran Why Is My Euler Method in Fortran Not Updating Yn Correctly?
Euler Method in Fortran - HELP! Using Euler method I want to calculate the equation below, deltat=0.3, 10 times. Problem: When n=1, Yn1(1) is calculated right. But, in the following steps it should assume that Yn(2)=Yn1(1) and the program is assuming Yn(2)=0, as well as Yn(3)=0,...and so on...- sayellow
- Thread
- Euler Euler method Fortran Method
- Replies: 1
- Forum: Programming and Computer Science
-
A
Fortran Run External File.exe Through Fortran 90 - Answered
Hi! I'm a MSc student and for the development of my dissertation I need to implement a simple fortran 90 program. I'm aware of the basic features of this language but I can't seem to find how to run an executable file (an external file) through fortran. My question is, how can I make the fortran...- andredoc
- Thread
- Fortran
- Replies: 2
- Forum: Programming and Computer Science
-
L
Fortran PROGRAMMING WITH FORTRAN 77 copyright 1995
I have the book "Schaum's Outline Series Theory & Problems PROGRAMMING WITH FORTRAN 77 copyright 1995", well from the time of this book till today(2008-9) changed a lot in FORTRAN 77 ? If yes, what points mainly ? Well start reading this book , or buy another newer book in the subject ? This...- LSE1234
- Thread
- Fortran Programming
- Replies: 4
- Forum: Programming and Computer Science
-
N
Fortran Fortran 90: Alternative to flush() for f90 Compiler
Hi all, I've recently obtained some code in Fortran 90 that was compiled with gfortran. I am compiling with f90 and one of the called statements is not recognised. I have call flush(1) where 1 is the filename that the code is flushing. Since flush is not a part of f90, is there an...- natski
- Thread
- Fortran
- Replies: 6
- Forum: Programming and Computer Science
-
T
Fortran Solving Fortran Error on Pascal's Triangle Program
I am trying to write a fortran program to take an integer n and print out the first n rows of Pascal's triangle. The code I have so far: PROGRAM PascalTriangle IMPLICIT NONE INTEGER i, n, j, ktemp, ktemp1, ktemp2, ktemp3, ktemp4, ktemp5 WRITE(6,*), "Enter a positive integer n:> "...- Tubs
- Thread
- Error Fortran
- Replies: 2
- Forum: Programming and Computer Science
-
N
Fortran Fortran 77 & 90/95 on Windows XP
Hi all, I'm sure this question has been asked before but I couldn't find it. However, I will ask it nevertheless... How does one compile AND run fortran 77 & 90/95 codes on a Windows XP O/S? The fact I am asking this means I am not a computer-whizz so please take this into account when...- natski
- Thread
- Fortran Windows
- Replies: 13
- Forum: Programming and Computer Science
-
O
What Fortran Software Should Beginners Use for Programming Classes?
Hi everyone, Currently my friend is taking fortran programming class at his university. The instructor said every student should own any fortran software. As I don’t have much know about it, can anyone recommend me any fortran software for this fortran programming class? Thanks in...- optics.tech
- Thread
- Fortran Program
- Replies: 7
- Forum: Mechanical Engineering
-
U
Fortran Fortran compiler specific kind modifier.
Fortran compiler specific "kind" modifier. I've recently switched over from the SilverFrost (Salford) FTN95 compiler to the open source g95 compliler. So far everything seems very compatible between the two compilers (as in the same source compiles without modification on either compiler)...- uart
- Thread
- Compiler Fortran Specific
- Replies: 1
- Forum: Programming and Computer Science
-
M
Fortran Beginner fortran question - starting with a new slate
Hi All I am new to fortran and there are things that I believe fortran should do and don't know how to do it - I am using fortran 77. 1- I know how to declare variables, but i do not know how to make sure that i start out with zeros and not use old data that might have been stored by a...- Moly
- Thread
- Beginner Fortran
- Replies: 2
- Forum: Programming and Computer Science
-
Fortran Can I create a chess engine using Fortran 90?
I'm just a very beginner when it comes to program and I have a question. I've read that some (old) chess engines are written in fortran so I know it's possible to create a chess engine using the fortran language. I wanted to know if someone has a link or a file providing the source of a chess...- fluidistic
- Thread
- Chess Engine Fortran
- Replies: 14
- Forum: Programming and Computer Science
-
U
Fortran Fortran write (or print). How to controll new line or not
Fortran write (or print). How to controll "new line" or not I haven't touched fortran for about 100 years (and that's only a very slight exaggeration). Recently I had to write a very small amount of code in Fortran 95. I've picked up most aspects pretty quickly but I'm still a bit vague on...- uart
- Thread
- Fortran Line
- Replies: 7
- Forum: Programming and Computer Science
-
L
With FORTRAN I may program Microcontrollers ?
With FORTRAN I may program Microcontrollers ? what else ? Can you give me some edu sites (offer such kits) of using fortran such a way ?- LSE1234
- Thread
- Fortran Program
- Replies: 5
- Forum: Electrical Engineering
-
K
Fortran What Does 10.e6 Mean in FORTRAN?
Hello, I've a program in FORTRAN which I need to convert to C#, there's an assignment statement like this: FC=10.e6 What exactly does it mean? Is it 10*10^6? or 10.000000? Do you have some tips to convert the FORTRAN program to any modern language (C#, JAVA, C/C++) ? Thank You- khdani
- Thread
- Fortran Notation Scientific
- Replies: 2
- Forum: Programming and Computer Science
-
M
Fortran Problems reading binary file in FORTRAN
I am having problems reading a binary file in FORTRAN. I know that the file was generated by the code below: open(7,file='hctd1_kxx.dat',form='unformatted') ... write(7) iscl write(7) inode,npoints write(7) (kxm(i)*(10**(prop(i))),i=1,npoints) close(7)...- marcelosousa1
- Thread
- Binary File Fortran Reading
- Replies: 1
- Forum: Programming and Computer Science
-
K
Fortran C or FORTRAN compiler for Vista?
Can anyone help me find a compiler/IDE for FORTRAN or C that can work with Windows Vista? I am a physics student and would like to learn some programing, but my computer runs Vista and I have yet to find a compiler that works. Otherwise, are there any recommendations for a language I could...- kde2520
- Thread
- Compiler Fortran
- Replies: 10
- Forum: Programming and Computer Science
-
D
Fortran Fortran - Cygwin, gfortran and emacs
Hello, I am in need of assistance, not with code, but with simply setting Fortran up in XP. I am under the impression that I need cygwin, gfortran/g95 and emacs. I installed Cygwin, and downloaded some file tree (gfortran-4.4-Cygwin-i686.tar). But I do not know where to get the 'emacs'...- DieCommie
- Thread
- Fortran Gfortran
- Replies: 6
- Forum: Programming and Computer Science
-
6
Fortran Solving FORTRAN Compiling Errors with Code::Blocks
Anyone have experience with Code::Blocks? I'm trying to get it to compile some FORTRAN for me, but getting some confusing errors. While Compiling: Compiling: horz.f90 mingw32-g++.exe: C:\Documents and Settings\...\horz.f90: linker input file unused because linking not done Linking...- 600burger
- Thread
- Fortran
- Replies: 1
- Forum: Programming and Computer Science
-
S
Fortran Solving Fortran 77 Debugging Issues - Save Me!
Hello, I've been trying to debug some Fortran 77 code so I can eventually update to 95. I keep receiving this message: /test.f:2824:Unknown pseudo-op: .quad /test.f:2824:Rest of line ignored. 1st junk character valued 48 (0). Make: *** Error code 256 from f95 assembler failed. Build...- shenie
- Thread
- Fortran
- Replies: 1
- Forum: Programming and Computer Science
-
S
Fortran Why Am I Experiencing Compilation Errors with My Fortran Code?
I am having trouble compiling code. Here's my code: PROGRAM Sample1 IMPLICIT NONE ! Variables and constants INTEGER, PARAMETER :: n=1000, m=10 INTEGER :: i REAL, DIMENSION (1: n) :: x REAL, DIMENSION (1:100, 1:m) :: y REAL, DIMENSION (1: m):: colavg INTEGER :: filestat...- shenie
- Thread
- Compiler Fortran
- Replies: 2
- Forum: Programming and Computer Science
-
F
Fortran How to format a data ascii file in Fortran on RedHat linux?
[FONT="Arial"][SIZE="4"]it is my first post and It is very serious and urgent I have a data ascii file composed of real and integer data. these data are separated by commas. would any of you write some code to change its format into this...- Fortran_begin
- Thread
- Fortran
- Replies: 1
- Forum: Programming and Computer Science
-
D
Fortran Fortran 90 question about reading files with text
I have a file with text and adjacent to it, the number i want to read. Below is the format. I was wondering how to read just the numbers without touching the text. trhy 30.0 difje 30.0 sdjk 66.5 xmb 15.0 dcos 15.0 fjvm 2.573e-4 srht 9.05e-3 art3...- dealove
- Thread
- files Fortran Reading Text
- Replies: 1
- Forum: Programming and Computer Science
-
I
Why can't my Fortran code find the subroutine DEVCRG?
Hello, I have a code in Fortran that I can compile but when I try to build it I get the following messages: error LNK2001: unresolved external symbol _DEVCRG@24 fatal error LNK1120: 1 unresolved externals I guess that it does not understand it cannot find the subroutine DEVCRG, but I do...- irida65
- Thread
- Error Fortran
- Replies: 3
- Forum: Computing and Technology
-
L
Fortran How to Write Fortran Code for a Complex Phase Speed
Hi, We assume Max hBy(y) = α1 for y ε (a1, a2) and Min hBy(y) = α2 for y ε (a1, a2) Where -∞ < α2 ≤ α1 < ∞, and the complex phase speed must lie in the region defined by (CR + α1 )^2 + CI^2 ≤ µγ^2/k^2, if CR <- α1 CI^2 ≤ µγ^2/k^2, if -α1≤ CR ≤-α2, (CR + α2 )^2 + CI^2 ≤ µγ^2/k^2...- logi
- Thread
- Code Fortran
- Replies: 1
- Forum: Programming and Computer Science
-
J
Fortran How to Extract Gridded Data in Fortran?
Hi, Please bear with me on this because I'm really not a programmer at all but I need some help with modifying a code in fortran. This program is supposed to extract data for a single month of data at a time from the file highlighted in red below which contains 108 years of data. First of all...- jainax
- Thread
- Fortran Program
- Replies: 6
- Forum: Programming and Computer Science
-
B
Fortran Fortran Trigonometric Function: Law of Cosines and Inverse Calculation
I want Fortran to regconize trigonometric functions. The trigonometric equation I am trying to right in Fortran is the Law of cosines COS(c)=d^2+a^2-b^2/(2*a*d) However, I want Fortran to calculate the inverse of the above equation: How would I write the following equation in Fortran...- Benzoate
- Thread
- Fortran
- Replies: 2
- Forum: Programming and Computer Science
-
K
Fortran Solving Fortran 77 Mystery: nran(i)=mod(int(i*ranw(Idum)),i) + 1
I have this line in a Fortran 77 program, and I don't understand how it works: nran(i)=mod(int(i*ranw(Idum)),i) + 1 What I don't understand is that nran is not a function, nor is it dimensioned anywhere (its type is implicitly an integer). This line only works if it comes right after the...- kanato
- Thread
- Fortran Line Weird
- Replies: 2
- Forum: Programming and Computer Science
-
B
Simulating globular clusters over blackholes with Fortran
I suspect that the runtime simulation for a star systems containing thousands of stars , many of those stars whose mass is way beyond the solar mass to be very very long. Is it possible and cost-friendly(i.e, not expensive) to simulate a globular star system cluster over a supermassive black...- Benzoate
- Thread
- Blackholes Clusters Fortran globular
- Replies: 6
- Forum: Astronomy and Astrophysics
-
J
Fortran How can I properly use function calls in Fortran 90?
Hi all, I'm new to Physics Forums, but not to physics, since I'm now doing my MSc. I've had a persistent problem in a segment of my Fortran code that I've worked around, but would like to fix. The long and short is that I'm integrating a six-dimensional ODE with a fourth-order Runge-Kutta...- JellyKing
- Thread
- Fortran Function
- Replies: 4
- Forum: Programming and Computer Science
-
F
FORTRAN 90 - DVERK? - initial condition solver
Hi, I am new to FORTRAN and am trying to work with a system of ODE's. Does someone know of a routine like DVERK for solving initial condition problems for FORTRAN 90? In MATLAB I would simply use ODE45. I just need something similar. Thank you!- FrogPad
- Thread
- Condition Fortran Initial
- Replies: 3
- Forum: General Math
-
Fortran Fortran 90, Euler's method help
I'm trying to make a program that can approximate a differential equation via the Euler's method. Here is my program : Program diff implicit none Real :: t_0, x_0, t_f, k_j, h Real :: t,x Integer :: n,j Write(*,*)'Chose t_0 and x_0' Read(*,*)t_0, x_0 Write(*,*)'Chose t_f'...- fluidistic
- Thread
- Euler's method Fortran Method
- Replies: 2
- Forum: Programming and Computer Science