Skip to content

Commit

Permalink
Using std=legacy as default fortran flag (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterMeisrimelModelon authored May 17, 2024
1 parent 214dbd6 commit 45b1d7e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ jobs:
make -j4
sudo make install
- name: Build
run: python3 setup.py install --user --sundials-home=/usr --blas-home=/usr/lib/x86_64-linux-gnu/ --lapack-home=/usr/lib/x86_64-linux-gnu/ --superlu-home=/usr --extra-fortran-compile-flags="-fallow-argument-mismatch"
run: python3 setup.py install --user --sundials-home=/usr --blas-home=/usr/lib/x86_64-linux-gnu/ --lapack-home=/usr/lib/x86_64-linux-gnu/ --superlu-home=/usr
- name: Test
run: python3 -m nose --verbose tests/* tests/solvers/*
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

--- Assimulo-3.5.1 ---
* Fixed build with sundials 7.x
* Added "std=legacy" as default fortran compile flag.
This addresses compilation issues commonly experienced with more modern Fortran standards.

--- Assimulo-3.5.0 ---
* Changed "numpy.float" to equivalent "numpy.float64" due to DeprecationWarnings in numpy >= 1.20.
Expand Down
5 changes: 5 additions & 0 deletions doc/sphinx/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Changelog
==========

--- Assimulo-3.5.1 ---
* Fixed build with sundials 7.x
* Added "std=legacy" as default fortran compile flag.
This addresses compilation issues commonly experienced with more modern Fortran standards.

--- Assimulo-3.5.0 ---
* Changed "numpy.float" to equivalent "numpy.float64" due to DeprecationWarnings in numpy >= 1.20.
* Improved examples with sparse jacobians by omitting the zeros in the jacobians.
Expand Down
4 changes: 2 additions & 2 deletions doc/sphinx/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
# built documents.
#
# The short X.Y version.
version = '3.5.0'
version = '3.5.1'
# The full version, including alpha/beta/rc tags.
release = '3.5.0'
release = '3.5.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def remove_prefix(name, prefix):
parser.add_argument("--prefix",default=None,type=str,help='Path to destination directory')
parser.add_argument("--extra-fortran-link-flags", help='Extra Fortran link flags (a list enclosed in " ")', default='')
parser.add_argument("--extra-fortran-link-files", help='Extra Fortran link files (a list enclosed in " ")', default='')
parser.add_argument("--extra-fortran-compile-flags", help='Extra Fortran compile flags (a list enclosed in " ")', default='')
parser.add_argument("--extra-fortran-compile-flags", help='Extra Fortran compile flags (a list enclosed in " ")', default='--std=legacy')
parser.add_argument("--version", help='Package version number', default='Default')

args = parser.parse_known_args()
Expand Down Expand Up @@ -669,7 +669,7 @@ def fortran_extensionlists(self):
NAME = "Assimulo"
AUTHOR = u"C. Winther (Andersson), C. Führer, J. Åkesson, M. Gäfvert"
AUTHOR_EMAIL = "[email protected]"
VERSION = "3.5.0-dev" if version_number_arg == "Default" else version_number_arg
VERSION = "3.5.1.dev0" if version_number_arg == "Default" else version_number_arg
LICENSE = "LGPL"
URL = "http://www.jmodelica.org/assimulo"
DOWNLOAD_URL = "http://www.jmodelica.org/assimulo"
Expand Down

0 comments on commit 45b1d7e

Please sign in to comment.