From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2PYiMRWTFmUW+QAAauVa8A:P1 (envelope-from ) for ; Fri, 29 Sep 2023 11:04:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2PYiMRWTFmUW+QAAauVa8A (envelope-from ) for ; Fri, 29 Sep 2023 11:04:21 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7740C55583 for ; Fri, 29 Sep 2023 11:04:21 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=housseini.me header.s=solmzk3ljecfoypi3q6x2mqs3bucnhjw header.b=YnMnho6+; dkim=fail ("headers rsa verify failed") header.d=amazonses.com header.s=shh3fegwg5fppqsuzphvschd53n6ihuv header.b=ZKbaP7NG; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695978261; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qSWrNdLS/JHligFItmyy+mbwM11y4GEUD6u+0ZdHDGA=; b=JU0gwmmlTYrTTiQW+DY2zWhcy+4D3vsU7zfT+iVzc7bQFrh4P5xJkTTevwRp6PEfaXUVRz 9Cl061d0Oli/HHX2UgLaIitzDvJPhKat5nDpPqfxOS4EJwxgXxtcZMPEvUBfp79xAxVVHE 5m7NFMUBI8bqskctrIROQDW+dScrBluaaOt+pfX214PM83yzFoblLVqyonKJWx8JrOyFdh 2c6U0OIpWMqnth1+5ntPY6BETm832nLTI2DFU6W3fcNUzA/3LDJtd32UETOZFvTKi4I1Zm xPeFPQ3j1JQN7cFjWiG4BFrBQ+vL50x94K0/WGl8QdWRALpQWXXcIXUw7OWJuQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695978261; a=rsa-sha256; cv=none; b=nCZwh77AuIasLO5WsS/JpITGrQ4CEWo+Z7kZ8b2d/tZGxD6lJ2464aIRefncd6XUEU6YVh PwqOodKCCtFGLcsBudyWV0BGSlsO9IQo/TOPuh56jEynmFVQshAtHPlgSFu+b98UXj1vR7 KzJeVJafLVf2sfQUzbMm1Ks48powbVdQALukeArkZqjwODR+wn9SyrFYU2seuupQN0xgiS O1P3idyW3L9a6fSSefjicrsjRQWjrTB6LyDE3fPiknlPotCREes8jFkGdBdWzqwFOWS08A S21DFWyn0XokC08KxKh7RvTKigfIaY2SVzIUlU1RGLuQpvLeRJ7lPGNSTXFFCw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=housseini.me header.s=solmzk3ljecfoypi3q6x2mqs3bucnhjw header.b=YnMnho6+; dkim=fail ("headers rsa verify failed") header.d=amazonses.com header.s=shh3fegwg5fppqsuzphvschd53n6ihuv header.b=ZKbaP7NG; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qm9Pa-0008TH-6M; Fri, 29 Sep 2023 05:03:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qm9PY-0008ST-BI for guix-patches@gnu.org; Fri, 29 Sep 2023 05:03:48 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qm9PX-0000Nm-Vl for guix-patches@gnu.org; Fri, 29 Sep 2023 05:03:48 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qm9Pm-0004IZ-KJ for guix-patches@gnu.org; Fri, 29 Sep 2023 05:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66262] [PATCH 2/3] gnu: openfoam-org: Update to 11. Resent-From: reza Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 29 Sep 2023 09:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66262 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66262@debbugs.gnu.org <66262@debbugs.gnu.org> Cc: reza Received: via spool by 66262-submit@debbugs.gnu.org id=B66262.169597823416492 (code B ref 66262); Fri, 29 Sep 2023 09:04:02 +0000 Received: (at 66262) by debbugs.gnu.org; 29 Sep 2023 09:03:54 +0000 Received: from localhost ([127.0.0.1]:55140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qm9Pd-0004Ht-66 for submit@debbugs.gnu.org; Fri, 29 Sep 2023 05:03:54 -0400 Received: from a2-20.smtp-out.eu-west-1.amazonses.com ([54.240.2.20]:34841) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <0102018ae02d6cd5-6d828014-3023-41e1-995a-2f43d483563f-000000@mail.housseini.me>) id 1qm9PT-0004H7-Ez for 66262@debbugs.gnu.org; Fri, 29 Sep 2023 05:03:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=solmzk3ljecfoypi3q6x2mqs3bucnhjw; d=housseini.me; t=1695978188; h=Subject:From:To:Cc:Date:Mime-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To:References:Message-Id; bh=WjCm40kImUr8kAZ12GUUZRqMYbfuljA/Z/Fai6hNSek=; b=YnMnho6+fsEaaM1NI6LKNqVrp7EeHQxKjJxc2QCwL3lwavsHI4PRJufSXeZqaoQ5 xiGxmld8ImZS2T86wxJRpKhu5LAqcuO52Oo5mxeFwVrHal2FG4fDnyXyINbMA5bDWcM nHTmJ7LuQPmdQSU9i1Bg3iEUxoPQPc559nN4SWWo= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=shh3fegwg5fppqsuzphvschd53n6ihuv; d=amazonses.com; t=1695978188; h=Subject:From:To:Cc:Date:Mime-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To:References:Message-Id:Feedback-ID; bh=WjCm40kImUr8kAZ12GUUZRqMYbfuljA/Z/Fai6hNSek=; b=ZKbaP7NGgW8rtOAeOrCxwx82SCfh9doYOwcGchXF/E0r7HZCRWfCmZoKMq6Pfq/W 4I76yyRqMBgL+I3WJ0Q74DHn0oM3JKrw7SiDmErPrwDf/N6Y1j3gY4nPq0QWofmV4sj AHXb+inDN+87TiPvFwhShFtfTYdH81arE386HJqw= Date: Fri, 29 Sep 2023 09:03:07 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <3c9e2eabdc2f10db9d2a51d82203fcefd5e5e218.1695977095.git.reza@housseini.me> X-Mailer: Amazon WorkMail Thread-Index: AQHZ8rNo+fS4zZNERYy4L7/bc9dU1QAAFqWL Thread-Topic: [PATCH 2/3] gnu: openfoam-org: Update to 11. X-Wm-Sent-Timestamp: 1695978186 X-Original-Mailer: git-send-email 2.41.0 Message-ID: <0102018ae02d6cd5-6d828014-3023-41e1-995a-2f43d483563f-000000@eu-west-1.amazonses.com> Feedback-ID: 1.eu-west-1.b24dn6frgCi6dh20skzbuMRr7UL8M6Soir/3ogtEjHQ=:AmazonSES X-SES-Outgoing: 2023.09.29-54.240.2.20 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: reza X-ACL-Warn: , reza via Guix-patches From: reza via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -3.23 X-Spam-Score: -3.23 X-Migadu-Queue-Id: 7740C55583 X-TUID: piYFmvX02SEc * gnu/packages/simulation.scm (openfoam-org): Update to 11. Use=0D=0Aopen= foam-package factory function to create package.=0D=0A---=0D=0A gnu/packa= ges/simulation.scm | 364 ++++++------------------------------=0D=0A 1 fil= e changed, 54 insertions(+), 310 deletions(-)=0D=0A=0D=0Adiff --git a/gnu= /packages/simulation.scm b/gnu/packages/simulation.scm=0D=0Aindex 0d52434= fac..3db58813d3 100644=0D=0A--- a/gnu/packages/simulation.scm=0D=0A+++ b/= gnu/packages/simulation.scm=0D=0A@@ -87,316 +87,6 @@ (define-module (gnu = packages simulation)=0D=0A #:use-module (ice-9 regex)=0D=0A #:use-mod= ule (srfi srfi-1))=0D=0A=20=0D=0A-(define-public openfoam-org=0D=0A- (pa= ckage=0D=0A- (name "openfoam-org")=0D=0A- (version "10.20230119")=0D= =0A- (source (origin=0D=0A- (method url-fetch)=0D=0A- = (uri (string-append "https://github.com/OpenFOAM/OpenFOAM-"=0D=0A= - (version-major version) "/archive/"=0D= =0A- (second (string-split version #\.))= =0D=0A- ".tar.gz"))=0D=0A- = (sha256=0D=0A- (base32=0D=0A- "1aw2vb5s7frg9= 42ngd5x5x2dm67liyg6czff56qi567mshccpy46"))=0D=0A- (modules '= ((guix build utils)))=0D=0A- (snippet `(begin=0D=0A- = ;; patch shell paths=0D=0A- (s= ubstitute* (list "wmake/src/Makefile"=0D=0A- = "wmake/makefiles/general")=0D=0A- = (("/bin/sh")=0D=0A- "sh"))=0D=0A- = (substitute* "etc/bashrc"=0D=0A- = ;; only go back one folder level=0D=0A- (= ("\\$\\(dirname \\$\\{BASH_SOURCE:-\\$0\\}\\)/../..")=0D=0A- = "$(dirname ${BASH_SOURCE:-$0})/..")=0D=0A- = ;; do not use openfoam folder convention=0D=0A- = (("^export WM_PROJECT_DIR=3D.*$")=0D=0A- = (string-append=0D=0A- "export WM_= PROJECT_DIR=3D$WM_PROJECT_INST_DIR\n"))=0D=0A- = ;; do not source bash_completion (gives error)=0D=0A- = (("^.*bash_completion.*$" all)=0D=0A- = (string-append "#" all))=0D=0A- ;; set same = version as guix package=0D=0A- (("^export WM_P= ROJECT_VERSION=3D.*$")=0D=0A- (string-append = "export WM_PROJECT_VERSION=3D"=0D=0A- = ,version "\n")))=0D=0A- ;; add expand fl= ag to RunFunctions=0D=0A- (substitute* "bin/tool= s/RunFunctions"=0D=0A- (("foamDictionary (.*)"= all args)=0D=0A- (string-append "foamDiction= ary -expand " args)))=0D=0A- ;; disable failing = test=0D=0A- (substitute* "test/postProcessing/ch= annel/Allrun"=0D=0A- (("^.*getApplication.*$" = all)=0D=0A- (string-append "#" all "\n"))))))= )=0D=0A- (build-system gnu-build-system)=0D=0A- (inputs (list boost= =0D=0A- cgal=0D=0A- git=0D=0A- = gmp=0D=0A- libxt=0D=0A- metis=0D= =0A- mpfr=0D=0A- ncurses=0D=0A- = openmpi=0D=0A- openssh=0D=0A- = paraview=0D=0A- pt-scotch32=0D=0A- rea= dline=0D=0A- zlib))=0D=0A- (native-inputs (list bison= =0D=0A- flex=0D=0A- ;; pa= raview plugin dependencies=0D=0A- cli11=0D=0A- = cmake-minimal=0D=0A- cgns=0D= =0A- curl=0D=0A- double-c= onversion=0D=0A- eigen=0D=0A- = expat=0D=0A- ffmpeg=0D=0A- = fmt=0D=0A- freetype=0D=0A- = gdal=0D=0A- gl2ps=0D=0A- = glew=0D=0A- gmsh=0D=0A- = hdf5=0D=0A- jsoncpp=0D=0A- = libjpeg-turbo=0D=0A- libogg=0D=0A- = libpng=0D=0A- libharu=0D=0A- = libtheora=0D=0A- libtiff=0D= =0A- libx11=0D=0A- libxml= 2=0D=0A- lz4=0D=0A- netcd= f=0D=0A- nlohmann-json=0D=0A- = proj=0D=0A- protobuf=0D=0A- = pugixml=0D=0A- python=0D=0A- = python-mpi4py=0D=0A- qtbase-5=0D=0A- = qtsvg-5=0D=0A- qttools-5=0D= =0A- qtwebengine-5=0D=0A- = qtxmlpatterns=0D=0A- utfcpp=0D=0A- = vtk=0D=0A- xz))=0D=0A- (propagated-= inputs (list gnuplot))=0D=0A- (outputs '("debug" ;~60MB=0D=0A- = "out"))=0D=0A- (arguments=0D=0A- (list=0D=0A- ;; Execu= table files and shared libraries are located in the 'platforms'=0D=0A- = ;; subdirectory.=0D=0A- #:strip-directories=0D=0A- #~(list "= share/OpenFOAM/platforms/linux64GccDPInt32Opt/bin"=0D=0A- "s= hare/OpenFOAM/platforms/linux64GccDPInt32Opt/lib")=0D=0A-=0D=0A- #:m= odules=0D=0A- '((ice-9 ftw)=0D=0A- (ice-9 regex)=0D=0A- = (ice-9 string-fun)=0D=0A- (srfi srfi-1)=0D=0A- (guix buil= d gnu-build-system)=0D=0A- (guix build utils))=0D=0A-=0D=0A- = #:phases=0D=0A- #~(modify-phases %standard-phases=0D=0A- (a= dd-before 'build 'patch-HOME-path=0D=0A- (lambda _=0D=0A- = (setenv "HOME" "/tmp") #t))=0D=0A- (add-before 'build '= patch-scotch=0D=0A- (lambda _=0D=0A- (substitute*= "etc/config.sh/scotch"=0D=0A- (("^export SCOTCH_VERSION=3D= scotch_.*$")=0D=0A- (string-append "export SCOTCH_VERSION= =3Dscotch_"=0D=0A- #$(package-version pt-s= cotch32) "\n"))=0D=0A- (("^export SCOTCH_ARCH_PATH=3D.*$")= =0D=0A- (string-append "export SCOTCH_ARCH_PATH=3D"=0D=0A= - (assoc-ref %build-inputs "pt-scotch32")=0D= =0A- "\n"))) #t))=0D=0A- (add-bef= ore 'build 'patch-mpi=0D=0A- (lambda _=0D=0A- (le= t* ((mpi-path (assoc-ref %build-inputs "openmpi"))=0D=0A- = (mpi-version #$(package-version openmpi)))=0D=0A- ;; = specify openmpi type=0D=0A- (substitute* "etc/bashrc"=0D=0A= - (("WM_MPLIB=3DSYSTEMOPENMPI")=0D=0A- = "WM_MPLIB=3DOPENMPI"))=0D=0A- (substitute* "etc/config.sh= /mpi"=0D=0A- (("export FOAM_MPI=3Dopenmpi-.*$")=0D=0A- = (string-append "export FOAM_MPI=3Dopenmpi-"=0D=0A- = mpi-version "\n"))=0D=0A- ((= "export MPI_ARCH_PATH=3D.*\\$FOAM_MPI.*$")=0D=0A- (stri= ng-append "export MPI_ARCH_PATH=3D" mpi-path=0D=0A- = "\n")))) #t))=0D=0A- (add-before 'build 'patch-parav= iew=0D=0A- (lambda _=0D=0A- (substitute* "etc/con= fig.sh/paraview"=0D=0A- (("^export ParaView_VERSION=3D.*$"= )=0D=0A- (string-append "export ParaView_VERSION=3D"=0D=0A= - #$(package-version paraview) "\n"))=0D=0A= - (("^export ParaView_DIR=3D.*$")=0D=0A- (= string-append "export ParaView_DIR=3D"=0D=0A- = (assoc-ref %build-inputs "paraview")=0D=0A- = "\n"))) #t))=0D=0A- (add-before 'build 'add-rpaths=0D=0A- = (lambda _=0D=0A- (letrec* ((libraries '("boost" "= cgal"=0D=0A- "gmp"=0D=0A- = "metis"=0D=0A- = "mpfr"=0D=0A- "pt-scotch32"=0D=0A-= "openmpi"=0D=0A- = "zlib"=0D=0A- "parav= iew"))=0D=0A- (rpaths=0D=0A- = (fold-right (lambda (library rpaths)=0D=0A- = (string-append rpaths=0D=0A- = "-rpath=3D"=0D=0A- = (assoc-ref=0D=0A- = %build-inputs library)=0D=0A- = "/lib,")) "" libraries))=0D=0A- = (openfoam-lib=0D=0A- (string-append #$= output=0D=0A- "/share/OpenFOAM/pla= tforms/linux64GccDPInt32Opt/lib"))=0D=0A- (ldflags= =0D=0A- (string-append "-Wl,"=0D=0A- = rpaths=0D=0A- = "-rpath=3D"=0D=0A- openfoam= -lib=0D=0A- ","=0D=0A- = "-rpath=3D"=0D=0A- = openfoam-lib=0D=0A- "= /dummy,"=0D=0A- "-rpath=3D"=0D=0A-= openfoam-lib=0D=0A- = "/paraview-"=0D=0A- = #$(version-major+minor (package-version=0D=0A- = paraview)))))=0D=0A- = (substitute* "wmake/rules/linux64Gcc/c++"=0D=0A- = (("\\$\\(LIB_HEADER_DIRS\\) -fPIC" all)=0D=0A- (st= ring-append all " " ldflags)))) #t))=0D=0A- (add-before 'build '= add-vtk-include-path=0D=0A- (lambda _=0D=0A- (let= * ((vtk-version #$(version-major+minor=0D=0A- = (package-version vtk)))=0D=0A- (vtk-root (as= soc-ref %build-inputs "vtk"))=0D=0A- (vtk-inc (string= -append vtk-root "/include/vtk-" vtk-version))=0D=0A- = (vtk-inc-flag (string-append "-I" vtk-inc)))=0D=0A- (subs= titute* "wmake/rules/linux64Gcc/c++"=0D=0A- (("\\$\\(LIB= _HEADER_DIRS\\)" all)=0D=0A- (string-append all " " vtk= -inc-flag " "))))=0D=0A- #t))=0D=0A- (delete 'confi= gure) ;no configure phase=0D=0A- (replace 'build=0D=0A- = (lambda _=0D=0A- ;; compile OpenFOAM libraries and applic= ations=0D=0A- (invoke "bash" "-c"=0D=0A- = (format #f=0D=0A- "source ./etc/bashrc && = =2E/Allwmake -j~a"=0D=0A- (parallel-job-coun= t)))))=0D=0A- (add-after 'build 'cleanup=0D=0A- ;; Av= oid unnecessary, voluminous object and dep files.=0D=0A- (lamb= da _=0D=0A- (when (file-exists=3F "platforms/linux64GccDPInt= 32Opt/src")=0D=0A- (delete-file-recursively=0D=0A- = "platforms/linux64GccDPInt32Opt/src"))=0D=0A- (when= (file-exists=3F=0D=0A- "platforms/linux64GccDPInt32O= ptOPENMPI")=0D=0A- (delete-file-recursively=0D=0A- = "platforms/linux64GccDPInt32OptOPENMPI"))=0D=0A- (f= or-each delete-file=0D=0A- (find-files "." "\\.o$"= )) #t))=0D=0A- (replace 'check=0D=0A- (lambda* (#:key= tests=3F #:allow-other-keys)=0D=0A- (when tests=3F=0D=0A- = (when (file-exists=3F "test")=0D=0A- (with= -directory-excursion "test"=0D=0A- (invoke "bash" "-c"= =0D=0A- (format #f=0D=0A- = "source ../etc/bashrc && ./Allrun -j~a"=0D=0A- = (parallel-job-count)))))=0D=0A- ;;= too many tutorials are failing=0D=0A- ;; (with-directory-= excursion "tutorials"=0D=0A- ;; (invoke "bash" "-c" "sourc= e ../etc/bashrc && ./Alltest"))=0D=0A- ) #t))=0D=0A- = (replace 'install=0D=0A- (lambda _=0D=0A- (le= t ((install-dir (string-append #$output=0D=0A- = "/share/OpenFOAM")))=0D=0A- (mkdir-p = install-dir) ;create install directory=0D=0A- ;; move cont= ents of build directory to install directory=0D=0A- (copy-= recursively "." install-dir))))=0D=0A- (add-after 'install 'add-= symbolic-link=0D=0A- (lambda _=0D=0A- (let* ((bin= (string-append #$output "/bin"))=0D=0A- (lib (string= -append #$output "/lib"))=0D=0A- (openfoam (string-ap= pend #$output=0D=0A- "/share= /OpenFOAM"))=0D=0A- (build-bin (string-append openfoa= m=0D=0A- "/platforms/linux6= 4GccDPInt32Opt/bin"))=0D=0A- (build-lib (string-appen= d openfoam=0D=0A- "/platfor= ms/linux64GccDPInt32Opt/lib"))=0D=0A- (foam-bin (stri= ng-append openfoam "/bin")))=0D=0A- ;; add symbolic links = in standard 'bin' directory=0D=0A- (mkdir-p bin)=0D=0A- = (for-each (lambda (file)=0D=0A- (= unless (member file=0D=0A- '("= =2E" ".."))=0D=0A- (symlink (string-append b= uild-bin "/"=0D=0A- = file)=0D=0A- (string-append bin "/"= file))))=0D=0A- (scandir build-bin))=0D=0A- = (for-each (lambda (file)=0D=0A- (u= nless (member file=0D=0A- '(".= " ".."))=0D=0A- (symlink (string-append foam= -bin "/"=0D=0A- file= )=0D=0A- (string-append bin "/" fil= e))))=0D=0A- (scandir foam-bin))=0D=0A- = ;; add symbolic link for standard 'lib' directory=0D=0A- = (symlink build-lib lib)) #t)))))=0D=0A- (native-search-paths=0D=0A= - (list (search-path-specification=0D=0A- (variable "WM_PR= OJECT_DIR")=0D=0A- (separator #f)=0D=0A- (files '("= share/OpenFOAM")))))=0D=0A- ;; Note:=0D=0A- ;; Tutorial files are i= nstalled read-only in /gnu/store.=0D=0A- ;; To allow write permissions= on files copied from the store a=0D=0A- ;; 'chmod' step is needed bef= ore running the applications. For=0D=0A- ;; example, from a user's lo= gin:=0D=0A- ;; $ source $(dirname $(which blockMesh))/../../../etc/bas= hrc=0D=0A- ;; $ mkdir -p $FOAM_RUN=0D=0A- ;; $ cd $FOAM_RUN=0D=0A- = ;; $ cp -r $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily .=0D=0A= - ;; $ cd pitzDaily=0D=0A- ;; $ chmod -R u+w .=0D=0A- ;; $ block= Mesh=0D=0A- (synopsis "Framework for numerical simulation of fluid flo= w")=0D=0A- (description=0D=0A- "OpenFOAM provides a set of solvers= and methods for tackling=0D=0A-problems in the field of Computational Fl= uid Dynamics (CFD). It is written in=0D=0A-C++. Governing equations suc= h as the Navier-Stokes equations can be solved in=0D=0A-integral form. P= hysical processes such as phase change, droplet transport and=0D=0A-chemi= cal reaction can be modelled. Numerical methods are included to deal wit= h=0D=0A-sharp gradients, such as those encountered in flows with shock wa= ves and flows=0D=0A-with gas/liquid interfaces. Large problems may be sp= lit into smaller, connected=0D=0A-problems for efficient solution on para= llel systems.")=0D=0A- (license license:gpl3+)=0D=0A- (home-page "h= ttps://openfoam.org")))=0D=0A-=0D=0A-(define-public openfoam=0D=0A- (dep= recated-package "openfoam" openfoam-org))=0D=0A-=0D=0A (define-public ope= nfoam-com=0D=0A ;; This is a fork of 'openfoam-org', maintained separat= ely.=0D=0A (package=0D=0A@@ -726,6 +416,60 @@ (define* (openfoam-packag= e source version name home-page synopsis)=0D=0A (license license:gp= l3+)=0D=0A (home-page home-page))))=0D=0A=20=0D=0A+(define-public o= penfoam-org=0D=0A+ (let* ((version "11")=0D=0A+ (name "openfoam-= org")=0D=0A+ (source (origin=0D=0A+ (method url= -fetch)=0D=0A+ (uri (string-append "https://github.com/= OpenFOAM/OpenFOAM-"=0D=0A+ (version= -major version)=0D=0A+ "/archive/"=0D= =0A+ "version-"=0D=0A+ = (version-major version)=0D=0A+ = ".tar.gz"))=0D=0A+ (sha256 (base3= 2=0D=0A+ "1h70a5ni2psx7bcx2xg6aqraj2kkbfn8mflh= 2akbp6k9mmpgih7b"))=0D=0A+ (modules '((guix build utils= )))=0D=0A+ (snippet `(begin=0D=0A+ = ;; patch shell paths=0D=0A+ (subs= titute* (list "wmake/src/Makefile"=0D=0A+ = "wmake/makefiles/general")=0D=0A+ = (("/bin/sh")=0D=0A+ "sh"))=0D= =0A+ (substitute* "etc/bashrc"=0D=0A+ = ;; only go back one folder level=0D=0A+ = (("\\$\\(dirname \\$\\{BASH_SOURCE:-\\$0\\}\\)/= =2E./..")=0D=0A+ "$(dirname ${BASH_SOURC= E:-$0})/..")=0D=0A+ ;; do not use openfoa= m folder convention=0D=0A+ (("^export WM_= PROJECT_DIR=3D.*$")=0D=0A+ (string-appen= d=0D=0A+ "export WM_PROJECT_DIR=3D$WM_P= ROJECT_INST_DIR=0D=0A+"))=0D=0A+ ;; do no= t source bash_completion (gives error)=0D=0A+ = (("^.*bash_completion.*$" all)=0D=0A+ = (string-append "#" all))=0D=0A+ ;; set= same version as guix package=0D=0A+ (("^= export WM_PROJECT_VERSION=3D.*$")=0D=0A+ = (string-append "export WM_PROJECT_VERSION=3D"=0D=0A+ = ,version "\n")))=0D=0A+ = ;; add expand flag to RunFunctions=0D=0A+ = (substitute* "bin/tools/RunFunctions"=0D=0A+ = (("foamDictionary (.*)" all args)=0D=0A+ = (string-append "foamDictionary -expand "=0D=0A+ = args)))=0D=0A+ = ;; disable failing test=0D=0A+ (su= bstitute* "test/postProcessing/channel/Allrun"=0D=0A+ = (("^.*getApplication.*$" all)=0D=0A+ = (string-append "#" all "\n")))))))=0D=0A+ (home-page "h= ttps://openfoam.org")=0D=0A+ (synopsis "Framework for numerical s= imulation of fluid flow")=0D=0A+ (template (openfoam-package sour= ce version name home-page synopsis)))=0D=0A+ (package=0D=0A+ (inh= erit template))))=0D=0A+=0D=0A+(define-public openfoam=0D=0A+ (deprecate= d-package "openfoam" openfoam-org))=0D=0A+=0D=0A (define-public open-simu= lation-interface=0D=0A (package=0D=0A (name "open-simulation-interf= ace")=0D=0A--=20=0D=0A2.41.0=0D=0A=0D=0A