Simple fix for Sundials 3.2 compatibility

The Sundials 3.1 and 3.2 are compatible with each other
so this patch just allows to pass check for the installed Sundials 3.2
This commit is contained in:
band-a-prend 2019-07-25 00:06:45 +03:00 committed by Ray Speth
parent 97356a48df
commit 3b948e17d4

View file

@ -1091,7 +1091,7 @@ if env['system_sundials'] == 'y':
# Ignore the minor version, e.g. 2.4.x -> 2.4
env['sundials_version'] = '.'.join(sundials_version.split('.')[:2])
if env['sundials_version'] not in ('2.4','2.5','2.6','2.7','3.0','3.1'):
if env['sundials_version'] not in ('2.4','2.5','2.6','2.7','3.0','3.1','3.2'):
print("""ERROR: Sundials version %r is not supported.""" % env['sundials_version'])
sys.exit(1)
print("""INFO: Using system installation of Sundials version %s.""" % sundials_version)