Skip to content

Small sanity check change to openfoam block#986

Merged
boegel merged 3 commits intoeasybuilders:developfrom
wpoely86:openfoam
Sep 5, 2016
Merged

Small sanity check change to openfoam block#986
boegel merged 3 commits intoeasybuilders:developfrom
wpoely86:openfoam

Conversation

@wpoely86
Copy link
Copy Markdown
Member

@wpoely86 wpoely86 commented Sep 5, 2016

In openfoam 4.0, the vorticity binary is superseded by postproces. I've replaced it by wdot which seems to be present in all releases so far.

vorticity is superseded by postprocess in OpenFOAM 4.0. I have replaced
it by the wdot binary which seems to be present in all OpenFOAM(-Extend)
releases to date.
@wpoely86
Copy link
Copy Markdown
Member Author

wpoely86 commented Sep 5, 2016

@hajgato FYI

Comment thread easybuild/easyblocks/o/openfoam.py Outdated
if len(contents_installdir) == 1 and os.path.isdir(os.path.join(self.installdir, contents_installdir[0])):
if len(contents_installdir) == 1 and \
os.path.isdir(os.path.join(self.installdir, contents_installdir[0])):
source = os.path.join(self.installdir, contents_installdir[0])
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wpoely86 better move source outside of the if, I don't like this use of \

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if that rocks your boat but there's nothing wrong with backslashes

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we rarely use them elsewhere in the EB codebase, just a matter of consistency

@boegel boegel added this to the v2.9.0 milestone Sep 5, 2016
@boegel
Copy link
Copy Markdown
Member

boegel commented Sep 5, 2016

looks ok & tested with a couple of existing OpenFOAM easyconfigs, so good to go, thanks @wpoely86!

@boegel boegel merged commit e309386 into easybuilders:develop Sep 5, 2016
@wpoely86 wpoely86 deleted the openfoam branch September 6, 2016 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants