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 Chriss Miller 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: *

  • Users: mojomother
  • Content: Threads
  • Order by date
  1. mojomother

    Output TRIMmed list of strings

    In my code, I declare a large list of fixed-length character strings: CHARACTER * 256 :: string_list(256) The ancient problem is that if I was to output such a string, it is always filled with spaces, no matter what its actual contents are: string_list(1) = 'test' WRITE(*,'(A)')...
  2. mojomother

    Read entire file to buffer?

    Is there any way to read an entire file into an ALLOCATABLE buffer in Fortran? Say I have the code CHARACTER, DIMENSION(:), ALLOCATABLE :: file_buffer file_size = get_file_size(filename) ALLOCATE(file_buffer(file_size)) What needs to happen afterwards to read the entire file "file_name" into...
  3. mojomother

    Type mismatch when converting from 77 to 90

    I've converted a program from f77 to f90 syntax and am now getting errors of the type "The type of the actual argument differs from the type of the dummy argument" with Intel Visual Fortran 10. The code from where the errors originate has the following structure: SUBROUTINE routine1(w)...

Part and Inventory Search

Back
Top