Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Search results for query: *

  • Users: TheKKK
  • Order by date
  1. TheKKK

    -convert command ?

    Hi, on intel fortran i compile giving the command: ifort -convert big_endian myfile.f What is the "convert" command in gfortran or in lahey compilers? The above didnt work.
  2. TheKKK

    reading a large number of files

    What about in linux?
  3. TheKKK

    reading a large number of files

    What if my filenames have not a common root? If i have: GR01.dat GR07.dat FR01.dat FR02.dat IT01.dat IT06.dat ........ Is there a way fortan could read one by one all these... if i dont want to write all the filenames in a .txt file? Thanx!
  4. TheKKK

    newline character doesnt work?

    Wordpad on windows works fine too. Thanx
  5. TheKKK

    newline character doesnt work?

    Thank you very much but since i dont want to use microsoft editor like MSword u mentioned.. Do u know an editor i can call with cygwin that will display the result correctly?
  6. TheKKK

    reading a large number of files

    I have to read and extract data from a large number of files: file1.dat file2.dat file3.dat ......... file100.dat Is there a fast way of reading all these files one at a time? My simple idea is to write all the filenames in a text file from which i will read a filename at a time. If anyone...
  7. TheKKK

    newline character doesnt work?

    I see the dat file with a notepad
  8. TheKKK

    newline character doesnt work?

    program test open(50,file='test.dat') write(6 ,FMT='(I3,/)') 111 WRITE(6 ,FMT='(I3,/)') 222 write(50,FMT='(I3,/)') 111 WRITE(50,FMT='(I3,/)') 222 close(50) end In the above, at the screen i see: 111 222 but in the dat file i see: 111222
  9. TheKKK

    newline character doesnt work?

    I compiled with g77 and f77 and the result remains the same In all fortran manuals i see, slash / begins a new line!!
  10. TheKKK

    newline character doesnt work?

    None of these worked... The // is a concatenation operator and writeln (or writenl) is not recognized by my compiler
  11. TheKKK

    newline character doesnt work?

    I have to say that the / works if i print to screen but not when i print in a file .dat or .txt
  12. TheKKK

    newline character doesnt work?

    I use gfortran on cygwin and in a simple code like: program test open(50,file='test.dat') write(50,'(A)') 'firstname' write(50,'(A)') 'lastname' close(50) end i get: firstnamelastname instead of firstname lastname i also tried write(50,'(A/)')...
  13. TheKKK

    end of character variable

    Thanx that worked!
  14. TheKKK

    end of character variable

    ...i=1,NRuns . . . ! read from SCREEN.OUT OPEN(UNIT=80,FILE='SCREEN.OUT') ! read line 25 as string of characters READ(UNIT=80,'(25(/),50(A))')string l = LEN(string) k = INDEX(string,'=') ! read value after '=' READ(string(k+1:l),*)value CLOSE(UNIT=80) enddo end program
  15. TheKKK

    read a value from a file

    Thanx
  16. TheKKK

    read a value from a file

    Hello, I have a file that goes like this: *** MODEL RUN *** *** VERSION DATED 96043 *** . . . . STACK HT (M) = 100.0000 STACK DIAMETER (M) = 2.6950 STACK VELOCITY (M/S) = 99.9020 How can I...
  17. TheKKK

    call system command

    The command program <IN.DAT works at the command promt in a DOS window
  18. TheKKK

    call system command

    The code by xwb didnt work: call system ('"C:\Users\kostis\Documents\COMPUTATIONAL PHYSICS 4th\PROJECT SCREEN3\screen3LOOP\folder\program.exe" <IN.DAT')
  19. TheKKK

    call system command

    The folder\program <IN.DAT doesnt work in a DOS window so i shouldnt expect it to work throygh my code. But then the call system ('cd folder') call system ('program <IN.DAT') should work then but it doesnt also How can i put these two commands in a single line?
  20. TheKKK

    call system command

    It doesnt work also when entering the full path like this: call system ('C:\Users\kostis\Documents\COMPUTATIONAL PHYSICS 4th\PROJECT SCREEN3\screen3LOOP\folder\program <IN.DAT') however i can create a file in the folder like this: OPEN(UNIT=99,FILE='folder\IN.DAT',STATUS='REPLACE') so i...

Part and Inventory Search