Download .venv/Lib/site-packages/numpy/f2py/tests/src/modules/use_modules.f90 from DrDavis/PythonProject1: direct link, hf CLI and curl.
- Browser
- Download file 418 Bytes
-
https://huggingface.co/DrDavis/PythonProject1/resolve/main/.venv/Lib/site-packages/numpy/f2py/tests/src/modules/use_modules.f90
- Command line
-
hf download hf://DrDavis/PythonProject1/.venv/Lib/site-packages/numpy/f2py/tests/src/modules/use_modules.f90
-
curl -L -o use_modules.f90 https://huggingface.co/DrDavis/PythonProject1/resolve/main/.venv/Lib/site-packages/numpy/f2py/tests/src/modules/use_modules.f90
418 Bytes
| module mathops | |
| implicit none | |
| contains | |
| function add(a, b) result(c) | |
| integer, intent(in) :: a, b | |
| integer :: c | |
| c = a + b | |
| end function add | |
| end module mathops | |
| module useops | |
| use mathops, only: add | |
| implicit none | |
| contains | |
| function sum_and_double(a, b) result(d) | |
| integer, intent(in) :: a, b | |
| integer :: d | |
| d = 2 * add(a, b) | |
| end function sum_and_double | |
| end module useops | |