|
Call fortran in C++ project FlyVenus wrote: Hi, All: I plan to using a fortran 90 program in C++. I have no experience about that, and I have some question about that. 1. I think I have two methods to using the fortran 90 program. First, compile all the .f90 and .cpp to .obj, and link them. Second, make the fortran... 31 Mar 2008 17:57
passing fortran arrays Hi everybody, I try to pass a Fortran array to a c++-function, assuming that the name of the fortran array is a pointer, indicating the first element. it looks like this: the fortran file: program arrayfc implicit none integer,parameter :: n=5 integer :: stopp,SUMME real :: a(n),sum,mw,MITTELWER... 2 Feb 2008 11:19
how do gfortran and ifort deal with C head files? On Feb 2, 4:22 am, s1...(a)sohu.com wrote: this is just what I want ,but I can't get it. Perhaps it would help if you understand the way that Fortran preprocessing tends to work. I think ifort and most other Fortrans behave similarly. As noted above, if the source file has a .F or .F90 file type, the .F or .F... 2 Feb 2008 09:07
Fortran user models Intra-Day Stock Market To: "dpb" I cant reply to your sarcastic comment of 1/2/2008 as similiar named topic is too old to be seen by readers here. Further your none.net address rules out email responses to your posts from readers. You will be overjoyed (dismayed?) to learn that the last 10 days of forecasts have resulted in a Win... 2 Feb 2008 04:34
What's the meaning of "a model set of integers (reals)" in Fortran? On Feb 1, 8:51 am, nos...(a)see.signature (Richard Maine) wrote: 1. The Fortran model is a sign-magnitude one. It is symmetric with respect to sign. Sign magnitude is common in actual floating point representations. It is rare for integers. Most integers today are done in 2's complement (if I didn't get... 1 Feb 2008 23:04
Wrong code, I could not find the error Dear all, What is wrong in the below code: PROGRAM MAIN IMPLICIT NONE real :: a,b,c a=1.0 b=2.0 c=3.0 print*, a print*, b print*, c call mistaken(a=2.0,c=3.0) print*, a print*, b print*, c CONTAINS subroutine mistaken(a,b,c) real, intent(inout) ::a real, intent(out), optional :... 2 Feb 2008 11:19
What's the meaning of "a model set of integers (reals)" in Fortran? hermitian <iamwuxin(a)gmail.com> wrote: [about model numbers] One more question, does every k_w (zero or one) correspond to the computer bit (zero or one) used to store the integer? Sort of, but you are missing an important point. This is Fortran's model. As such, it is much like the some common machine repres... 1 Feb 2008 11:59
What's the meaning of "a model set of integers (reals)" in Fortran? Hi, everyone. I'm reading a book titled "Fortran 90/95 Explained" to learn Fortran by myself. My major is chemistry, so this question might be silly. In section 8.7.1 models for integer and real data. The authors wrote: For each kind of integer, it is the set i = s \times \sum_{k=1}^{q} w_k \times r^{k-1} ... 1 Feb 2008 05:45
Which direction is Fortran going? Use to see Fortran compilers and books in the computer stores, but now they don't even know what I'm talking about. A friend is a recent graduate with a degree in engineering from an accredited university and knows many program languages but no Fortran. Why is that? If you need to solve a complex engineering p... 1 Feb 2008 15:53
Type specification and initialization expressions James Giles wrote: .... The following has been discussed before and I think was determined to be non-standard for the same reason: Real :: X(5), Y(size(x)) By Steve's response it's clear that I mis-remembered the case. The one that I recalled must have been something like: Real :: X(4) = size(... 1 Feb 2008 14:13 |