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 John Tel 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
  • 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

    Dear François, I was expecting this problem to be related to the array size, however as you can see in the code, I have been using 10 x 10 arrays... However I found the error. I was passing complex (kind = 4) instead of complex (kind = 8) arrays to the subroutine It is actually not clear...
  4. Pfor

    error deallocating arrays

    ...lines of the error and the code, which is very simple since it is just a test to understand the problem. Thank you very much, cheers, Paolo *** glibc detected *** ./test1.x: free(): invalid next size (fast): 0x00000000014119c0 *** ======= Backtrace: =========...
  5. 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...
  6. Pfor

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

    Hi Frnçois, I have checked on the remote pc where the code works without any segmentation fault, summing up: Cluster, ifort (IFORT) 9.1 20071016 , code working PC , ifort (IFORT) 12.0.4 20110427 , segmentation fault PC , gfortran GNU Fortran 95 (GCC) 4.1.0 20060515 (Red Hat 4.1.0-18)...
  7. Pfor

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

    ...(iLong,0:Niter+1) :: P, AP complex ( kind = pr ) , dimension (0:Niter, 0:Niter) :: betGCR! integer :: ien, iter ... en module bogo *********************************************** Another funny behaviour is the following: I tried to compile with ifort again and I received many errors...
  8. Pfor

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

    ...fault happens just after(during) the declaration of the variables, so that in the subroutine nothing can be done. I inserted a write(*,*) 'here' after declaring the variables but nothing is written. The same variable declaration is present also in another subroutine, which works with no...
  9. 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...
  10. 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...
  11. Pfor

    Erratic behavior

    Hallo all, I solved the problem, however I still cannot understand it. In the case I delete the commentaries in the inpunt file(I posted previously), everything works fine (notice that the values of the parameters of the input file were read correctly even before). Does anybody have an idea...
  12. Pfor

    Erratic behavior

    ...subroutine Old_input_read use parametri implicit none open(unit=5,file='pinned_restart.in') read(5,*) nrobox, dro,emin,emax,de,lzcut, dkz ,ikzcut read(5,*) v0,rn,adiff ,ibound ,lzout read(5,*) nroboxp,drop,eminp,emaxp,dep,lzcutp close(5)...
  13. 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...
  14. Pfor

    efficient summation

    Hallo François, Actually I didn't check the forum during the w/e (also because I was not so much positive about real improvements). I have to admit you opened my mind with your suggestions. I had been reading that transposing the vectors could increase the speed of the calculation however I...
  15. Pfor

    efficient summation

    ...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 trying to render this procedure more efficient from the time point of...
  16. Pfor

    precision

    ...= p16 ) :: b,c ! 12345678901 b = 0.33333333222 c = 0.33333333999 if (c.ne.b) write(*,*) 'not equal' if (c.eq.b) write(*,*) ' equal' end program...
  17. Pfor

    interfacing Lapack subroutine

    Thank you all for your answers. I tried to use "convert.f90" but at some point there was a error message: >At line 953 of file convert.f90 >Fortran runtime error: Bad value during integer read I figured out that the problem is in the fortran file to be converted. If I open it with gvim...
  18. Pfor

    interfacing Lapack subroutine

    Thank you fot the hint; however it doesn't work since I have to interface a fixed format part of a code (the Lapack subroutine for example) with a free form one (my code). I have been checking some converter like the convert.f90 ; but so far I didn't succeed in converting the form. Do you...
  19. Pfor

    interfacing Lapack subroutine

    ...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 considered as commented if the extension of the file is .f, (for example gvim turns it blue to show it is a...
  20. 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...

Part and Inventory Search

Back
Top