-
as seen on Stack Overflow
- Search for 'Stack Overflow'
hi,
I am trying to call a C++ function in FORTRAN subroutine. This C+ function is supposed to update an integer array. Here is a non-working code I wrote. Can someone please let me know what the issue is:
! FORTRAN function that calls a C++ function
subroutine my_function()
integer(4) ar(*)
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi folks,
Summing up, my problem consists on compiling g95 objects inside a C++ application.
Actually, I'm constructing an interface for an old fortran program.
For this task, I'm using the wxWidgets GUI library, and calling fortran subroutines when necessary.
At the beginning, I was developing the…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm going through a Fortran code, and one bit has me a little puzzled.
There is a subroutine, say
SUBROUTINE SSUB(X,...)
REAL*8 X(0:N1,1:N2,0:N3-1),...
...
RETURN
END
Which is called in another subroutine by:
CALL SSUB(W(0,1,0,1),...)
where W is a 'working array'. It appears that a specific…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have an issue in fortran 90.
I have a user defined type and when I call one of the MPI subroutines the data looks to be passed by values (not address, as I thought it should). The output arguments aren't modified. It seems to be specific to the MPI calls I tried the same thing in a simple test…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
In my fortran code I made the following call to dnrm2 routine
d = dnrm2(n, ax, 1)
Just a simple call that would return me a double precision result.
The problem is whether I should declare the function at the start of my script. I found that if I don't declare it, and when I compile the code in…
>>> More