I have two modules with an init subroutine that look as following: I would like to create a supermodule and convert the modules A and B to submodul ...
I have two modules with an init subroutine that look as following: I would like to create a supermodule and convert the modules A and B to submodul ...
I have a variable length (L) that changes for each particle in a group of a few hundred thousand particles with every time step. I'm trying to add a c ...
I am not pro in Fortran95, but I am writing a code in it and I found that I want to mask the array values with -9999, if it does not have certain valu ...
I am reading a .txt file and writing to a .dat file for use in GrADS. The .txt file contains 1D data, and my program reads all 123 lines correctly as ...
I write code based on modern Fortran. For some reason, I want to modify it in a way that is compatible with the old version. Converting from the lates ...
I'm doing a very basic Fortran tutorial to learn it for grad school and I input the codes for conditionals and loops exactly as they were written in t ...
Making it short, my code is supposed to return a txt with my intensity values, instead, for all rs but 0, my intensity returns a value of +infinity. D ...
We have a new Fortran 2003 code which calls and is linked to a Fortran 77 library (in an external package). Is there any way to write declarations for ...
I have a .txt file, which has next special lines: I want to read numbers after comment line !INPUT_PARAMETERS. So, if i have: I want to receive ...
I am having issues with PHP not returning print statements from Fortran. The idea is that PHP executes a command to compile a Fortran file then runs i ...
Sorry for the noobie question but I need some help in figuring out how to return execution back to the start of a subroutine after a logical block is ...
I'm working on a python project which calls a fortran subroutine via f2py for efficiency reasons. When I execute the code, it fails at seemingly rand ...
I'm trying to do an Ah=b decomposition for u and up2 in my program. Nevertheless, up2 is depend on u for it's first value. In order to not repeat th ...
In what way can I get the smallest figure in a given five digit figure. E.g 23764. How do I get 2 being the smallest. Taking the figure as a digit su ...
I have a seemingly simple problem: I want to detect whether a floating point addition in Fortran will overflow by doing something like the following: ...
How to insert matrices into fortran program? I have a script: When I run the program, I get the following: The inserting of matrix behave differ ...
i'm new to Fortran and i want to display 2 columns arrays side by side, so i can create a display table of them. I was only so far able to display the ...
Suppose I have a data file (fort.100) including the data like, how to read these mixed real and complex values to the complex variables? In other ...
I am trying to run a piece of fortran code written in f95. I have compiled it using gfortran in Ubuntu. In the code there is a command to read in a t ...
I have a warning message which is appearing very frequently in my build log. The warning message is: Named COMMON block ‘<BLOCK_NAME>’ at (1) s ...