Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

For every complex problem, there is a solution that is simple, neat, and wrong. -- H. L. Mencken


devel / comp.lang.fortran / gfort2py v2.0.0 release

SubjectAuthor
o gfort2py v2.0.0 releaseRob Farmer

1
gfort2py v2.0.0 release

<fa780690-5daf-4945-b58a-e9be531b65a7n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3436&group=comp.lang.fortran#3436

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:6214:8e6:b0:635:dd55:b341 with SMTP id dr6-20020a05621408e600b00635dd55b341mr4263qvb.12.1687694351096;
Sun, 25 Jun 2023 04:59:11 -0700 (PDT)
X-Received: by 2002:a25:5091:0:b0:c1a:dc07:1d74 with SMTP id
e139-20020a255091000000b00c1adc071d74mr664625ybb.0.1687694350426; Sun, 25 Jun
2023 04:59:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Sun, 25 Jun 2023 04:59:10 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2003:ca:1746:8d00:dd26:98d7:89b4:eb15;
posting-account=2YItagoAAACRzu4YYejLgrAXyjVjMSOQ
NNTP-Posting-Host: 2003:ca:1746:8d00:dd26:98d7:89b4:eb15
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fa780690-5daf-4945-b58a-e9be531b65a7n@googlegroups.com>
Subject: gfort2py v2.0.0 release
From: robert.j.farmer37@gmail.com (Rob Farmer)
Injection-Date: Sun, 25 Jun 2023 11:59:11 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2706
 by: Rob Farmer - Sun, 25 Jun 2023 11:59 UTC

After many years (and several complete re-writes) I am pleased to announce the release gfort2py v2.0.0. gfort2py is a Python library enabling the calling of Fortran code from Python. The main aim of this library is to make calling the Fortran code as easy as possible by minimising the number of changes to the Fortran code. All that is required is to have your code in a module and compiled as a shared library. No annotations or other changes needed.

Source code is available at https://github.com/rjfarmer/gfort2py

Gfort2py works with python >=3.7 and gfortran >=8. Note that there are many API breakages with the gfort2py 1.*.* series. Please refer to the README at https://github.com/rjfarmer/gfort2py/blob/main/README.md for examples of the new features.
Gfort2py supports many modern (and old) Fortran features including:

Scalars (ints, reals, logicals, characters)
Arrays of (ints, reals, logicals, characters): explicit, assumed shape, assumed size, and allocatable arrays.
Derived types including scalars and arrays.
Explicit arrays of derived types (assumed shape are not yet supported)
Allocatable strings (partial support)
Calling functions and subroutines.

More features are planned to be added over time.

Installation via pip:
python -m pip install --upgrade gfort2py

For those that want to get involved: Improvements to the test suite to include untested or new Fortran features (and Python code to test those features, even if it doesn’t yet work) is the most helpful. Otherwise, bug reports on broken features are also helpful.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor