2016-07-27 1 views
0

O가 funits에 의존하는 Fortran 코드를 컴파일하려고하면. gfortran에서는 사용할 수 없습니다. 4.9.3.Gfortran에 모듈이 없습니다. ifort가 수행되는 동안

use FUNITS 
     1 
    Fatal Error: Can't open module file 'funits.mod' for reading at (1): No such file or directory 

여기 gfortran 정보를입니다 버전 14.0.3가 사전 설치되어 대신 ifort

gfortran -v 
Using built-in specs. 
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.3/gfortran 
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.9.3/lto-wrapper 
Target: x86_64-pc-linux-gnu 
Configured with: /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.9.3/python --enable-languages=c,c++,java,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.9.3 p1.5, pie-0.6.4' --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --enable-vtable-verify --enable-libvtv --enable-lto --without-cloog --enable-libsanitizer 
Thread model: posix 
gcc version 4.9.3 (Gentoo 4.9.3 p1.5, pie-0.6.4) 

.

자유 소프트웨어에 의존해야하기 때문에 gfortran과 함께 funits을 어떻게 설치할 수 있습니까?

+0

tag [tag : fortran]을 사용해야하며 follof [tag : gfortran]는 너무 많은 사람이 아닙니다. –

답변

3

FUNITS는 모듈입니다. 표준 포트란에는 그러한 모듈이 없습니다. 내장 모듈이 아닌 외부 라이브러리 여야합니다.

귀하가 주장 하긴하지만 인텔 포트란의 일부도 아닙니다. 내 인텔 포트란 설치의 일부가 아니며 설명서의 어느 부분에도 언급되어 있지 않습니다.

어디서 왔는지, 누가이 라이브러리를 제공하고 gfortran을 직접 컴파일해야하는지 찾으셔야합니다.

또는 해당 기능을 찾아 직접 구현하십시오.

간단한 웹 검색에서 인터넷에 FUNITS이라는 2 개의 모듈을 발견했습니다. 둘 다 일부 파일 단위 번호 상수를 선언합니다. 나는 당신이 그들 중 하나를 필요로하는지 여부를 모른다. https://mfix.netl.doe.gov/develop/STI/source_profile_2015-2/mfix_und/MFIX_html/9899.htmlhttp://home.chpc.utah.edu/~u0703457/STILT_tutorial/WRF_STILT_code/STILT_updated/funits.f 아마도 당신의 하드 드라이브를 검색하는 것이 더 좋을 것이다.

관련 문제