Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. byter101

    use of enum() and format() in fortran

    okay it is just an array; i missed it. Its just weird that it shows up a different color in the editor. oh well, thanks guys
  2. byter101

    use of enum() and format() in fortran

    but i don't have an 'enum' array declared anywhere, and it shows up in blue in the IDE like its a data type or cast or something..
  3. byter101

    use of enum() and format() in fortran

    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...
  4. byter101

    what does ** mean in fortran?

    very helpful
  5. byter101

    what does ** mean in fortran?

    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
  6. byter101

    using an array between C and FORTRAN

    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
  7. byter101

    using an array between C and FORTRAN

    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
  8. byter101

    using an array between C and FORTRAN

    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...
  9. byter101

    using external variable files

    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...
  10. byter101

    using external variable files

    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...

Part and Inventory Search

Back
Top