Installation steps: Installed Visual Studio Community 2019, ensured Desktop C++ development is selected. Installed OneAPI Basic and then HPC. ...
Installation steps: Installed Visual Studio Community 2019, ensured Desktop C++ development is selected. Installed OneAPI Basic and then HPC. ...
I am looping through indices and I am checking if I am not in the first loop interation and another condition. I don't want the second condition to be ...
I am very new to MPI programming (like 3 days old). I am now dealing with MPI_ALLREDUCE and MPI_REDUCE. The code below takes a value n and the task of ...
I have a derived-type with pointer (or allocatable) component And I want to create a parameter, e.g. to pass it to a subroutine as intent(in): C ...
This is an extension to my previous post passing a character and double from C++ to Fortran, by mapping the same data structure. It adds an allocatabl ...
I want to make a variable format for my "write" statement. To do so, I wrote a small program (nvari is the variable): First question: It can be see ...
I am trying to pass a structure "stuff" from C++ to Fortran. "stuff" has a member "gef" which contains two variables, "name" and "extra". Before the c ...
I am learning CUDA by myself. My ultimate goal is to apply it to Fortran, but because a lot of classes/videos are based on C/C++, I often end up to pe ...
Apologies if the code is not great I am fairly new. I have the following code and I am unsure how to make it parallel via OpenMP, I have tried leaving ...
The code above defines fortran modules that are used by another module photdyn_model with use statements like use photdynh. After wrapping the modul ...
I discovered type-bound procedures and was wondering how I could use them. I have this code which is working as expected: Now I do not know how, if ...
I downloaded latest hdf5-1.14.0.tar.gz. After extraction, I configure as after make, I can find but what I need is libhdf5_fortran.a. But the cl ...
I have some older program I try to compile. I get an error mask_part and npsortie are arrays of LOGICAL. I use gfortran-7, this is the only compile ...
Here is my problem: I have a fortran code with a certain amount of nested loops and first I wanted to know if it's possible to optimize (rearranging) ...
I was wondering about the overhead of querying size of array in fortran. Old fortran (<f95) way was to pass the size of array to the arguments of s ...
I want to write function in a separate file myfunction.f90 and how to modify test.f90 to call it I separate into 2 files test.f90 and myfunc.f90 ...
I am new in Fortran so I can't really evaluate where the semantic mistake is. From what I see the syntax is ok and when I build I don't see any mistak ...
I am getting the following error while trying to compile a Fortran program with gfortran and FFTW3 library. The program however compiles successfully ...
When passing arrays to procedures, what is best in terms of (1) speed and (2) memory, assumed-shape or explicit shape? A similar question was asked so ...
I'm encountering the following schematic problem: A base class (defined as a regular type), let's call it base_a that defines a generic function ...