Skip to content

fix version check on using '-log' option to 'Allwmake' in OpenFOAM easyblock#1739

Merged
wpoely86 merged 1 commit intoeasybuilders:developfrom
boegel:fix_OpenFOAM_version_check
May 27, 2019
Merged

fix version check on using '-log' option to 'Allwmake' in OpenFOAM easyblock#1739
wpoely86 merged 1 commit intoeasybuilders:developfrom
boegel:fix_OpenFOAM_version_check

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented May 25, 2019

Allwmake -log is not supported in OpenFOAM v1606+, so the version check was wrong (should be > rather than >=).

In addition, we need to strip off v and + because of the funky OpenFOAM versioning scheme...

Without this, Allwmake -log is always used with versions like v<digits>:

>>> LooseVersion('v1606') > LooseVersion('1606')
True

@wpoely86 wpoely86 merged commit 777615b into easybuilders:develop May 27, 2019
@boegel boegel deleted the fix_OpenFOAM_version_check branch May 27, 2019 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants