Subject: Re: [PATCH] gnu: Add openfoam
From: [email-masked] (Ludovic Courtès)
To: Paul Garlick <[email-masked]>
Cc: [email-masked]
Date: Fri, 15 Sep 2017 18:35:29 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Paul,

Paul Garlick <[email-masked]> skribis:

> *gnu/packages/patches/openfoam-4.1-cleanup.patch: New file
> *gnu/packages/simulation.scm: New file
> *gnu/local.mk (GNU_SYSTEM_MODULES): Add module
> (dist_patch_DATA): Add patch

I went ahead and pushed this (with indentation changes and use of
#:modules as discussed earlier; please consider using
‘etc/indent-code.el’ in the future):

  https://git.savannah.gnu.org/cgit/guix.git/commit/?id=8f21aa22bf4b731ed0e5631c371846028e5cec0d

Users who don’t set FOAM_INST_DIR will be tripped up like this:

--8<---------------cut here---------------start------------->8---
$  /gnu/store/4zqn4w0wlq0irdwh3dhrdbsr7i3f1dag-openfoam-4.1/bin/checkMesh 
--> FOAM FATAL ERROR in Foam::findEtcFiles() : could not find mandatory file
    'controlDict'

$  /gnu/store/4zqn4w0wlq0irdwh3dhrdbsr7i3f1dag-openfoam-4.1/bin/interFoam 
--> FOAM FATAL ERROR in Foam::findEtcFiles() : could not find mandatory file
    'controlDict'
--8<---------------cut here---------------end--------------->8---

But that’s part of the game for now.  :-)

Thanks a lot for your work and patience!

Ludo’.