This is a tricky one: I have to maintain 2 versions of an F90 code consisting of ~11000 lines. The only difference between those versions is as follows:
Main program of version A contains an IF block which checks existence or non-existence of a certain file, opens the file, reads it and checks...
Is it possible to re-code the following in a more efficient way? The code performs a so-called red-black SOR to solve a Poisson equation, dividing an iterative step into two half-steps with the second using updated neighbored values of the first.
DO ijswap = 0,1
DO k = 2,n-2
DO j =...
I was wondering, which of the following code snippets would usually perform faster.
First avoiding IF statements within the loop, at the cost of a few additional arithmetic operations:
DO k = 2,n-2
DO i = 2,l-2
vvb = sign(0.5,v(i,2,k))
zwil1(i,1,k) =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.