fortran

GNU Fortran compiler on Windows Subsystem for Linux - Segmentation fault with passing internal function to another procedure [duplicate]

∥☆過路亽.° 提交于 2020-12-12 05:16:24
问题 This question already has an answer here : Segmentation fault when passing internal function as argument (1 answer) Closed 11 days ago . I believe the following is a valid Fortran 2008 program and it works fine on genuine macOS, Linux, and Windows operating systems with both Intel and GNU Fortran compilers. module InternalFuncCaller_mod implicit none abstract interface function getInternalFunc_proc(input) result(output) implicit none real, intent(in) :: input real :: output end function

GNU Fortran compiler on Windows Subsystem for Linux - Segmentation fault with passing internal function to another procedure [duplicate]

北城以北 提交于 2020-12-12 05:11:31
问题 This question already has an answer here : Segmentation fault when passing internal function as argument (1 answer) Closed 11 days ago . I believe the following is a valid Fortran 2008 program and it works fine on genuine macOS, Linux, and Windows operating systems with both Intel and GNU Fortran compilers. module InternalFuncCaller_mod implicit none abstract interface function getInternalFunc_proc(input) result(output) implicit none real, intent(in) :: input real :: output end function

GNU Fortran compiler on Windows Subsystem for Linux - Segmentation fault with passing internal function to another procedure [duplicate]

一世执手 提交于 2020-12-12 05:10:48
问题 This question already has an answer here : Segmentation fault when passing internal function as argument (1 answer) Closed 11 days ago . I believe the following is a valid Fortran 2008 program and it works fine on genuine macOS, Linux, and Windows operating systems with both Intel and GNU Fortran compilers. module InternalFuncCaller_mod implicit none abstract interface function getInternalFunc_proc(input) result(output) implicit none real, intent(in) :: input real :: output end function

Link f2py generated *.so file in a python package using setuptools

放肆的年华 提交于 2020-12-11 10:09:49
问题 I wish to deploy a package to PyPi using setuptools. However, the core part of the package is actually written in Fortran, and I am using f2py to wrap it in python. Basically the project's structure looks like this: my_project license.txt README.md setup.py my_project init .py myfunc.py hello.so The module myfunc.py imports hello.so ( import my_project.hello ) which can then be used by functions inside myfunc.py. This works perfectly on my machine. Then I tried standard setuptools

Link f2py generated *.so file in a python package using setuptools

柔情痞子 提交于 2020-12-11 10:08:33
问题 I wish to deploy a package to PyPi using setuptools. However, the core part of the package is actually written in Fortran, and I am using f2py to wrap it in python. Basically the project's structure looks like this: my_project license.txt README.md setup.py my_project init .py myfunc.py hello.so The module myfunc.py imports hello.so ( import my_project.hello ) which can then be used by functions inside myfunc.py. This works perfectly on my machine. Then I tried standard setuptools

Link f2py generated *.so file in a python package using setuptools

☆樱花仙子☆ 提交于 2020-12-11 10:08:17
问题 I wish to deploy a package to PyPi using setuptools. However, the core part of the package is actually written in Fortran, and I am using f2py to wrap it in python. Basically the project's structure looks like this: my_project license.txt README.md setup.py my_project init .py myfunc.py hello.so The module myfunc.py imports hello.so ( import my_project.hello ) which can then be used by functions inside myfunc.py. This works perfectly on my machine. Then I tried standard setuptools

Link f2py generated *.so file in a python package using setuptools

梦想与她 提交于 2020-12-11 10:03:37
问题 I wish to deploy a package to PyPi using setuptools. However, the core part of the package is actually written in Fortran, and I am using f2py to wrap it in python. Basically the project's structure looks like this: my_project license.txt README.md setup.py my_project init .py myfunc.py hello.so The module myfunc.py imports hello.so ( import my_project.hello ) which can then be used by functions inside myfunc.py. This works perfectly on my machine. Then I tried standard setuptools

Link f2py generated *.so file in a python package using setuptools

天涯浪子 提交于 2020-12-11 10:02:42
问题 I wish to deploy a package to PyPi using setuptools. However, the core part of the package is actually written in Fortran, and I am using f2py to wrap it in python. Basically the project's structure looks like this: my_project license.txt README.md setup.py my_project init .py myfunc.py hello.so The module myfunc.py imports hello.so ( import my_project.hello ) which can then be used by functions inside myfunc.py. This works perfectly on my machine. Then I tried standard setuptools

OpenMP fortran 学习

女生的网名这么多〃 提交于 2020-11-20 08:01:32
参考自TAMU的PPThttps://people.math.umass.edu/~johnston/PHI_WG_2014/OpenMPSlides_tamu_sc.pdf 什么是OpenMP 在C、C++和FORTRAN中用于编写共享内存并行程序的事实上的标准API OpenMP API 由以下组成: 编译器指令 Compiler Directives 运行时 子程序/函数 Runtime subroutines/functions 环境变量 Environment variables 例子: 代码 PROGRAM HELLO !$OMP PARALLEL PRINT *,”Hello World” !$ OMP END PARALLEL STOP END 编译指令 intel: ifort -openmp -o hi.x hello.f pgi: pgfortran -mp -o hi.x hello.f gnu: gfortran -fopenmp -o hi.x hello.f 运行指令 Export OMP_NUM_THREADS=4 ./hi.x FORTRAN指令格式: !$ OMP PARALLEL [clauses] : !$OMP END PARALLEL OpenMP 遵循Fork/Join模型 OpenMP程序从一个线程开始;主线程(线程0)