hello,
how does an "enum" array work, as in below? I understand the exp() function.
enum(i)=enum(i)*exp(-0.8/24)
there's a simpler line elsewhere:
enum(i)=0
but i can't figure it out.
additionally, what is "format()" doing, what purpose does that darn 1007 serve, and what would this...
herro,
i have a line:
t1=2.0/(6316.0*zwtemp(ix,iy,iz)**(-1.55)+13609.0*zwtemp(ix,iy,iz)**(-1.86))
can anyone tell me what it does? specifically what the double asterisks are? (i'm assuming the single asterisk is a multiply)
thank yous
crap. well i'll take that into consideration if I get problems down the line.
i'm probably going to ask this in a separate post, but i have a simple question:
what does the ** mean in this line?
t1=2.0/(6316.0*zwtemp(ix,iy,iz)**(-1.55)+13609.0*zwtemp(ix,iy,iz)**(-1.86))
thanks bunches
sorry i figured it out. my value wasn't changing because I forgot that FORTRAN was 1 based and i was referencing the wrong spot. also, I concluded wrongly that a REAL(4) was equivalent to a double long, when it is simply a float. stupid stupid stupid
thank you for listening
Hello,
I cannot get a 3D array to work properly between c and fortran.
I put it in the fortran file (for.f90):
COMMON/ENVREAL/zwtemp(3,3,3)
so it should be global, then in the C file (c.c) it is:
extern struct {
double long zwtemp[3][3][3];
} envreal_;
yet when I try to assign a number...
it is just a text file with a list variables declared, for example
!segment
integer*4 :: xloc
integer*4 :: yloc
real(4) :: zaxis
and so on.
I was more just curious how the program interacts with those variables, but from what i understand when you use the 'include' command it automatically...
Hello,
I am dealing with a program that uses a file (called vars.i) which is basically a text file that contains a list of variables (integers and reals) that the program accesses throughout its execution. can anyone explain how this interaction works between the file and the .f90 file? like...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.