gfortran

    0热度

    1回答

    我在将多个Fortran模块/子例程链接到共享库时遇到问题。 事情是,我第一次有一个独立的Fortran程序,一切顺利。这包括了 main.f95 mymodule.f95 myutils.f95 但现在我适应的事情,这样我可以从R.调用Fortran代码 于是,我放弃了主程序main.f95,我有一个新的文件,让我们说 callFromR.f95 其中包含一个子程序将从R.该函数被调

    0热度

    1回答

    编译简单Fortran程序时,我有一个简单的Fortran 95程序 include "sandboxlib.f95" program sandbox implicit none write(*, *) 'abc' end program 和含有功能 module sandboxlib integer, parameter :: dp = kind(1.d0)

    -2热度

    1回答

    !subroutine No.10: to calculate positive capilary pressure required subroutine Pcow_positive1(sigma_ow,R,alpha,b,teta_ow,Pcow_positive,r1,time) implicit none !dummy argument declarat

    1热度

    1回答

    当我提出我的包CRAN,它不与下面的警告通过自动传入检查: * checking whether package 'EpiILM' can be installed ... WARNING Found the following significant warnings: Warning: GNU Extension: Different type kinds at (1)

    0热度

    1回答

    什么样的运行时错误-fcheck=mem gfortran选项捕获? 的manual page解释不明确对我来说: “-fcheck = MEM” 内存分配启用生成运行时检查。注意:此选项不会影响使用ALLOCATE 语句的显式分配,该语句将始终被检查。

    1热度

    1回答

    有几个线程的标题类似,但我不相信它们是相同的。其中一个非常类似于fortran pass allocated array to main procedure,但答案需要Fortran 2008.我是在Fortran 90/95解决方案之后。 另一个非常好的,非常相似的线程是Dynamic array allocation in fortran90。然而,在这种方法中,当它们在子程序中分配时,它们似

    -1热度

    1回答

    我想写大量元素的单排using- write(*,1) a,b,c,d,e,f,g,h,i,j,k,l,m 1 format(13(1pe11.4,1x)) 但它显示该行是在k截断错误。我该如何解决这个错误?

    1热度

    1回答

    300 do i=1,counter open(1,file='Pcow_pd.txt') write(1,*),Sw_pd(i), Pcow_pd(i) open(2,file='Krw_pd.txt') write(2,*),Sw_pd(i), Krw_pd(i) open(3,file='Kro_pd.txt') write(3,*),Sw_pd(i), Kro_pd(i)

    1热度

    1回答

    我正在尝试将LAPACK合并到我正在编译的程序中。我目前在MINGW64 gfortran编译器中使用msys2工具链。我使用以下过程来获得LAPACK: To get BLAS and LAPACK together In Msys2 64 bit environment type in: Pacman –S mingw-w64-x86_64-cmake #gets cmake Pacma

    -1热度

    1回答

    我已经从一本基本上运行善良的书中读取了这个Fortran程序,以适合测试某些数据并给出输出结果。代码和它的实际结果/输出给定为下:这个程序的 real*4 x(50),xc(50,20),omega(50) integer ir(50) real*8 xx c This code tests goodness of fit. n=47 c The method of Bak, Niels