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

  • Users: mojomother
  • Order by date
  1. mojomother

    Output TRIMmed list of strings

    Valuable advice, thank you again! Matt
  2. mojomother

    Output TRIMmed list of strings

    Works perfectly! Thank you so much! I didn't know about this kind of constructs at all (iterating without DO blocks). Can you tell me what they are called?
  3. mojomother

    what is the corresponding subroutine of ZXMIN/LINV1F in fortran 90

    Hi, LINV1F is not an intrinsic Fotran routine, neither in F77 nor in F90, so you will always need a library to use it. Google immediately turns up http://ib.cnea.gov.ar/~fiscom/Libreria/imsl_old/linv1f.f, the source code for LINV1F. Looking at this file, it seems like it shouldn't be too hard...
  4. 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)')...
  5. 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...
  6. mojomother

    help in solution maker of calculus

    If you don't have a lot of mathematical knowledge then Fortran is probably the worst language you could use, since it is outdated and used almost exclusively in the field of mathematical/numerical algorithms. Other languages like Java or C++ have lots of pre-built mathematical libraries...
  7. mojomother

    Type mismatch when converting from 77 to 90

    I found the problem, there was a simple type mismatch (REAL/INTEGER) which I had not noticed before. In fact, the behavior described (passing array elements and have them reinterpreted as array markers) works without problems in both f77 and f90. Have a good day, Matt
  8. mojomother

    Create KML File

    You need to use FORMAT statements, e.g. FORMAT('(A)') for a character string. Without such a statement, standard Fortran output starts with a blank for reasons I have never understood. Cheers, Matt
  9. 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