Fortran is a general-purpose, procedural, imperative programming language that is especially suited for numeric computation and scientific computing.
4
votes
2answers
52 views
1D shock tube problem written in Fortran
I have written a simple Euler solver for the 1D shock tube problem. Eventually, I plan to extend this code to solve the full 3D compressible Navier-Stokes equations. Therefore, I want to start with ...
3
votes
1answer
30 views
Linear shooting method to solve a B.V.P
I have wrote a code to approximate the solution of a boundary value problem:
x'' = p(t)x'(t)+q(t)x(t)+r(t)
x(b) = beta in [a,b]
by using Runge-Kutta method ...
5
votes
2answers
177 views
Calculator in FORTRAN
This is my first step into Fortran. The program aims to provide a simple way of calculating numbers. Just looking for improvements in general.
...
1
vote
2answers
111 views
Monte Carlo Pi with R + Fortran + MPI
I created a R package to calculate Pi with a Monte Carlo simulation.
My goal is to optimize the parallel function SnowPi as much as possible. This is the ...
1
vote
2answers
85 views
Smearing estimate with Fortran
I wrote this Fortran module and I need its subroutines to run as fast as possible. My hope is to get some advice to optimize this code, and after having the serial version running as fast as it can ...
3
votes
1answer
99 views
Reimplementing numpy.genfromtxt in Fortran for Python
I've found that the function genfromtxt from numpy in Python is very slow.
Therefore I decided to wrap a subroutine with f2py to read my data. The data is a ...
2
votes
2answers
125 views
Increase performance of a spate of 2x2 matrix multiplication
I would like to improve the performance of the piece of code below (in Fortran). It gives good results but the profiling tells me that it is where it spends most of its running time.
Basically, it ...
4
votes
2answers
130 views
Efficient communication across multiple processors for finite elements
I am implementing finite element code using MPI. Obviously, when using MPI I will have to include communication between different nodes so that all processors have all relevant information. As this is ...
11
votes
3answers
199 views
FizzBuzz vs. FortRan
In keeping with using FizzBuzz as an introduction to a language, I present FizzBuzz with a Fortran95 twist:
For multiples of 3, print Fort, and for 5's multiples ...
4
votes
1answer
690 views
Gees - GPL Euler equation solver
As a little helper I recently had to write a code that solves the 1-D Euler equations. As it serves my purpose well I though others could make use of it as well. The homepage of the code can be found ...
3
votes
1answer
407 views
High performance exponential of a skew Hermitian matrix in Fortran 95
I'm new to Fortran, and this is pretty much my first escapade. Below is a function that I wrote which relies on calls to LAPACK. The function is sat in a module with some other functions and works ...
10
votes
2answers
574 views
Extracting a set of numbers from a file
I do most of my programming in C/C++ and Perl, but I currently learning Fortran. I began by coding up a simple program, something that took me < 5 minutes in Perl (see this thread from BioStar). ...