intel-fortran

Progress bar is not being written continuously in ifort while it is in gfortran

有些话、适合烂在心里 提交于 2020-02-01 09:09:40
问题 I have wrote a genetic algorithm in Fortran to be able to compute with a long double precision a generic fitness function. The first version (double precision) was written for gfortran where I implemented a progress bar. Now I have to compile with ifort because gfortran is not capable of performing real*16 calculations. All works fine but in this case (ifort) the progress bar does not work properly. Namely, only when the whole cycle is completed the progress bar is printed to std output. Here

Progress bar is not being written continuously in ifort while it is in gfortran

若如初见. 提交于 2020-02-01 09:09:37
问题 I have wrote a genetic algorithm in Fortran to be able to compute with a long double precision a generic fitness function. The first version (double precision) was written for gfortran where I implemented a progress bar. Now I have to compile with ifort because gfortran is not capable of performing real*16 calculations. All works fine but in this case (ifort) the progress bar does not work properly. Namely, only when the whole cycle is completed the progress bar is printed to std output. Here

Progress bar is not being written continuously in ifort while it is in gfortran

血红的双手。 提交于 2020-02-01 09:09:25
问题 I have wrote a genetic algorithm in Fortran to be able to compute with a long double precision a generic fitness function. The first version (double precision) was written for gfortran where I implemented a progress bar. Now I have to compile with ifort because gfortran is not capable of performing real*16 calculations. All works fine but in this case (ifort) the progress bar does not work properly. Namely, only when the whole cycle is completed the progress bar is printed to std output. Here

Assignment of Allocatables of Different Shapes in Fortran [duplicate]

雨燕双飞 提交于 2020-01-15 08:08:06
问题 This question already has an answer here : Allocatable array valued function. gfortran vs ifort (1 answer) Closed 2 years ago . Please look at the following code: program test implicit none integer, allocatable :: v1(:, :) integer, allocatable :: v2(:, :) allocate(v1(2, 4)) allocate(v2(2, 3)) v1(:, :) = reshape([11, 12, 13, 14, 15, 16, 17, 18], [2, 4]) v2(:, :) = reshape([21, 22, 23, 24, 25, 26], [2, 3]) print *, v1 print *, 'shape(v1): ', shape(v1) print * print *, v2 print *, 'shape(v2): ',

Assignment of Allocatables of Different Shapes in Fortran [duplicate]

泄露秘密 提交于 2020-01-15 08:07:10
问题 This question already has an answer here : Allocatable array valued function. gfortran vs ifort (1 answer) Closed 2 years ago . Please look at the following code: program test implicit none integer, allocatable :: v1(:, :) integer, allocatable :: v2(:, :) allocate(v1(2, 4)) allocate(v2(2, 3)) v1(:, :) = reshape([11, 12, 13, 14, 15, 16, 17, 18], [2, 4]) v2(:, :) = reshape([21, 22, 23, 24, 25, 26], [2, 3]) print *, v1 print *, 'shape(v1): ', shape(v1) print * print *, v2 print *, 'shape(v2): ',

F2PY cannot find intel fortran compiler on windows 7

北城以北 提交于 2020-01-14 03:29:06
问题 I am struggling to get F2PY working with Intel Fortran on Windows 7. This appears to be a common issue and I have attempted a number of suggestions found in other posts (described below). A bit of information about my system: Windows 7 64-bit Python 2.7.11 via Enthought Canopy 32-bit (up to date as of June 12, 2016) Intel Fortran 14 (Intel\Composer XE 2013 SP1) (32 and 64-bit) After doing a bit of research see here I found that the issue may be related to the c++ runtime so I installed

How to add new element to dynamical array in Fortran90

萝らか妹 提交于 2020-01-13 19:26:44
问题 [SOLVED] by francescalus. Working code for double precision dynamical arrays is: module DynamicalArrays contains subroutine AddToList(list, element) IMPLICIT NONE integer :: i, isize double precision, intent(in) :: element double precision, dimension(:), allocatable, intent(inout) :: list double precision, dimension(:), allocatable :: clist if(allocated(list)) then isize = size(list) allocate(clist(isize+1)) do i=1,isize clist(i) = list(i) end do clist(isize+1) = element deallocate(list) call

MPI_ERR_BUFFER when performing MPI I/O

时光毁灭记忆、已成空白 提交于 2020-01-05 18:25:49
问题 I am testing MPI I/O. subroutine save_vtk integer :: filetype, fh, unit integer(MPI_OFFSET_KIND) :: pos real(RP),allocatable :: buffer(:,:,:) integer :: ie if (master) then open(newunit=unit,file="out.vtk", & access='stream',status='replace',form="unformatted",action="write") ! write the header close(unit) end if call MPI_Barrier(mpi_comm,ie) call MPI_File_open(mpi_comm,"out.vtk", MPI_MODE_APPEND + MPI_MODE_WRONLY, MPI_INFO_NULL, fh, ie) call MPI_Type_create_subarray(3, int(ng), int(nxyz),

Intel Visual Fortran Compiling Error

别等时光非礼了梦想. 提交于 2020-01-05 04:58:09
问题 When I compile a project, Intel Visual Fortran keeps giving me this kind of error. The error is found on the code below: dimension tairgl(12),eairgl(24),windgl(12),psisgl(12),yenang(98),yunazm(98) This is the error message given by the compiler. Error: Syntax error, found END-OF-STATEMENT when expecting one of: ( [ Anybody have any idea about this error? 回答1: The syntax looks OK. I can think of two possibilities: 1) the compiler is configured to only look at source code to column 72 and this

Strange values at debug for fortran mex code

假如想象 提交于 2020-01-05 03:59:30
问题 I am toying with matlab, mex, intel fortran in visual studio etc. I copied a routine from here doing the multiplication of a matrix by a scalar : C Computational subroutine subroutine xtimesy(x, y, z, m, n) real*8 x, y(3,3), z(3,3) integer m, n do 20 i=1,m do 10 j=1,n z(i,j) = x*y(i,j) 10 continue 20 continue return end The initial wrapping code supposed to produce the mexw64 file was crashing on the elseif (mxIsNumeric(prhs(2)) .ne. 1) then so that I have adapted it as follows : #include