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: Pfor
  • Content: Threads
  • Order by date
  1. Pfor

    segmentation fault on ifort

    Hallo all, I just want to tell you about a problem I had with ifort (probably most of you know about this problem but it took me a lot of time to solve it). The code worked fine with gfortran and with old versions of ifort. I had no clue of what was happening. In the code there is a...
  2. Pfor

    variable initialization

    Dear all, I have been wasting some time to understand an error which was rather trivial, I forgot to initialize an index in a subroutine. As a result, no compiler gave me any error but when executed the code gave me different results for different compilers/computers. My question is thus: is...
  3. Pfor

    error deallocating arrays

    Hallo All, I am using Lapack libraries to diagonalize a matrix (complex, non-symmetric). After calling the lapack subroutine I try to deallocate the memory of the arrays used but there is a problem. Notice that If I do not deallocate the arrays everything works fine (I use gfortran as a...
  4. Pfor

    module interface problem

    hallo all, I have been given a code to modify (old fortran 77 in fixed format) so I changed it introducing modules (instead of "common" type sintax). There is a compilation problem of this kind: This name does not have a type, and must have an explicit type. [XMELE] XMELE=0. Since...
  5. Pfor

    code compiled with ifort doesn't work (but with gfortran does)

    Hallo All, I have a f90 code, if I compile it with gfortran it works, however if I compile it with ifort a segmentation fault occurs. I use to check for errors in memory allocation with gfortran via the option -fbounds-check and I have been told that the equivalent option for ifort is -C...
  6. Pfor

    memory usage

    hallo all, I have written a fortran code and compiled it with gfortran. I run it and I keep using the computer for other purposes, however from time to time the computer (fedora 14 core2 duo with a 1Gb) becomes very slow. I was thinking that maybe the memory usage might exceed the available...
  7. Pfor

    Erratic behavior

    hallo all, My code at first reads a input file. It seemed that the last two parameters of the first row of the input file had some problem. I changed the code not to read these two parameters. The numerical results from the code depend on how I delete these two parameters from the input...
  8. Pfor

    efficient summation

    Hallo! I am programming using fortran 90 (gfortran as a compiler). I have to sum a lot of functions like this: do ix=1,100 do iy =1,100 do n=1,10000 do k=1,10000 d(ix,iy) = d(ix,iy) + coeff(n,k) * f(n,ix) *g(k,iy) enddo enddo enddo enddo I was...
  9. Pfor

    precision

    Hallo everybody, I am using a code (compiled with gfortran) which uses the selected_real_kind statement, however since I had problems I tried to implement a very basic code like: !----------------------------------------------- program real_kinds implicit none...
  10. Pfor

    interfacing Lapack subroutine

    Dear all, I would like to interface a Lapack subroutine with my code. There is a point I don't understand. As far as I know in principle a f90 compiler should compile all the f77 codes, however I have a problem with commented sentences. When there is a * at the beginning of a line it is...
  11. Pfor

    segmentation fault

    Dear All, I am working on a F90 code I didn't write. I would like to execute the code itself two times (with different parameters) and I wrote a "do" loop at the beginning of the code. Before the loop ends all the allocated arrays should be deallocated. Unfortunately at the beginning of the...
  12. Pfor

    strange number

    Hallo All, I am using Fortran 90 (as a compiler I use gfortran), my code uses complex numbers and during a check on the output I found that the imaginary part of two numbers instead of being 0 as expected are: 3.60739284587612705E-313 2.56963542402032328E-320 I performed a -fbound-checks...

Part and Inventory Search

Back
Top