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 Mike Lewis 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. xrayspex1

    Fortran Trim() problem

    hi all, can anyone maybe explain to me what i am doing wrong with the TRIM function, because it doesn't actually remove any blanks from my string. The code is here: program trim_err implicit none character(30) :: my_string my_string = ' 123465 ' print *, '|'//my_string//'|' my_string =...
  2. xrayspex1

    Fortran and Matlab operator priorities

    i've been comparing 4th order Runge-Kutta method i wrote in F90 and in Matlab R2006 and stumbled upon a bizzare thing: is it possible that the two programs have different arithmetic operator priorities???? look at the attached picture: if i use parenthesis to specify the computation order...
  3. xrayspex1

    assumed shape array

    oh, and thanks ArkM! allocatables are what i needed..
  4. xrayspex1

    assumed shape array

    thanks a lot - i didn't know that and it sounds like a really useful advice for the future.
  5. xrayspex1

    assumed shape array

    hi mikrom, i'm using f90. (in Compaq Visual Fortran 200) i pressume the compiler must be Intel Visual Fortran Compiler. i don't know about the details - i just use the developer studio default compiler, sorry i can't be of more help :)
  6. xrayspex1

    assumed shape array

    mikrom, thanks a lot! i've tried it and it works nicely.
  7. xrayspex1

    assumed shape array

    hi all, i'm trying to write a very simple program, which prompts me for matrix dimensions (m,n) and then outputs a m x n matrix of ones (1's) on the display. the thing obviously :) doesn't work - if you can help me, i'd be very grateful! my...
  8. xrayspex1

    sum in f90 not working?

    great, thanks a lot guys!
  9. xrayspex1

    sum in f90 not working?

    hi all, i'm a complete newbie to fortran - if someone can take 30 seconds to look at the short code below and tell me why it prints the wrong sum of two numbers, i'd be very gratefull, because i'm freaking out already... CODE: program temp implicit none real,external :: add real...

Part and Inventory Search

Back
Top