Description:
Discussion about FORTRAN.
|
|
|
Auto-testing for memory leaks.
|
| |
Hello, I have a bunch of derived types that contain pointer arrays. In the course of their use the structures get allocated, copied, destroyed, reallocated, extended, etc. I test for memory leaks in a rather brain dead way - I call the routines in my test code many 10's of 1000's of times with top running in another window so I can keep an eye on... more »
|
|
How to make a function work with different type and kind type argument
|
| |
Hi, the intrinsic sin(x), cos(x), etc, work with arguments of general type and kind type. Suppose I want to write a function mysin(x) which just calls sin(x) and, like sin(x), must work with general type and kind type argument. I can achieve the generality of type through overloading, however how can I obtain generality of kind type?... more »
|
|
internal write rounds wrong
|
| |
Hi, i want tol display a real number with less decimal places. What i do is an internal write with a format Fx.x like "write(char,form) number" Normally it works fine but my Fortran rounds the last 5 down. Example: 1.555 is rounded by format F4.2 to 1.55 not to 1.56 !!! Has somebody an idea to solve this problem?... more »
|
|
read binary file written in fortran from another language
|
| |
Dear all, is that possible to read some binary files written by Fortran language in a different language such as C++? I read here: [link] that Fortran uses "records" which makes things hard for other programming languages to process the bytes in some form of these records. However... more »
|
|
doxygen
|
| |
will anyone plz. show me an example of creating manual of fortran code with doxygen?i tried and failed
|
|
Parallel in Fortran90
|
| |
Dear all; I have written a code in Fortran90, but this code is run for large systems very slowly (because of large amount of data) now I want to convert my program to a parallel one. but I haven't ever written parallel program. Would you please guide me what should I do? I'm anxiously looking forward your reply and guidelines.... more »
|
|
C++ wrapper for fortran functions
|
| |
Dear all, Though this is a mixed language issue, I did decide to post here, How can I can wrap a fortran function in C++? I am aware of extern linkage and the _ issues that have to be added. If I would like to wrap this, what should be done? extern "C" { void lapackfunctiontocall_(...) ...I can make an extern "C" block in a header file and put all needed... more »
|
|
array constructor syntax
|
| |
Since the following code is only accepted by g95 and not by gfortran-4.2.3 or the intel compiler 10.1, I was wondering if I got the syntax right. module array_constructor implicit none character(len=14), dimension(5), parameter :: & var_names = [character(len=14) :: & 'YEAR', 'COMPCODE', 'RECEPTYPE', 'NCOLS', 'NROWS']... more »
|
|
|