Fortran95 wrapper/code development package
Project description
Forthon
Forthon generates links between Fortran95 and Python. Python is a high level, object oriented, interactive and scripting language that allows a flexible and versatile interface to computational tools. The Forthon package generates the necessary wrapping code which allows access to the Fortran database and to the Fortran subroutines and functions. This provides a development package where the computationally intensive parts of a code can be written in efficient Fortran, and the high level controlling code can be written in the much more versatile Python language.
Installing
Requires python versions 3.8 or higher and the numpy package.
To install from the source,
python -m pip install .
Write permission is required for the python library site-packages directory.
Alternatively, it can be installed from PyPI, as in "pip install Forthon".
See the examples, which act as the documentation.
Example
An example of how to use Forthon can be found in the simpleexample subdirectory. Go into that directory and run "make". Forthon needs to have been installed. This will build and install the example. Then run
python run_forthon_example.py
This will produce output like this:
Before setsqrt, x = 0.0
After setsqrt, x = 3.1622776601683795
A more extensive example can be found in the example subdirectory. It can be built and run with the "make" command.
Release notes
See Release_Notes
License
See License.txt for license information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file forthon-0.10.8.tar.gz
.
File metadata
- Download URL: forthon-0.10.8.tar.gz
- Upload date:
- Size: 89.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9888f0190ef0dd03fdbd751b64105205e86ad05fbcb6b3b245b61f87a1b8124 |
|
MD5 | bc60fa9e87f396c8ab67a34a6dc1cdd2 |
|
BLAKE2b-256 | 8bc56b0e2c04a9ee1f729e7b08b46bfc9076d0fb2b8ef8b427361ebe80ff98e6 |
File details
Details for the file Forthon-0.10.8-py3-none-any.whl
.
File metadata
- Download URL: Forthon-0.10.8-py3-none-any.whl
- Upload date:
- Size: 95.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d72b3db23bccf00eefe83d3aeeafbe769103947a9d79974573300396d442f919 |
|
MD5 | 8184f1d1a8d17b96025e637258f3305f |
|
BLAKE2b-256 | 2fcada4b6101d178df75900a6eba6fff49994bd0bb633ce697c43ebcc677256a |