|
[Sponsors] |
June 15, 2021, 05:10 |
swak4foam on CentOS7 cluster
|
#1 | |
New Member
Dmitry
Join Date: Sep 2020
Location: Moscow, RU
Posts: 16
Rep Power: 6 |
Hello, everyone!
I am trying to install swak4foam on a cluster with this configuration: centos-release-7-6.1810.2.el7.centos.x86_64 flex 2.5.37 cmake version 2.8.12.2 bison (GNU Bison) 3.0.4 gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36) Intel(R) MPI Library for Linux* OS, Version 2021.1 Build 20201112 (id: b9c9d2fc5) Copyright 2003-2020, Intel Corporation. icc (ICC) 2021.1 Beta 20201112 I successfully installed OpenFOAM7, but I am having problems with swak.. My steps are: 1) download source files on my local machine: hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam openfoam-extend-swak4Foam 2) copy source files to my $HOME directory on the cluster 3) load modules for compilation: module purge module load compilers/intel/2021.1.1 module load mpi/intel/2021.1.1 module load launcher/suppz 4) set the environment variables: source $HOME/OpenFOAM/OpenFOAM-7/etc/bashrc WM_MPLIB=INTELMPI FOAMY_HEX_MESH=yes MPI_ROOT=/opt/software/intel/oneapi/mpi/2021.1.1 export PATH=$HOME/openfoam-extend-swak4Foam/maintainanceScripts/privateRequirements/bin:$PATH export SWAK4FOAM_SRC=$HOME/openfoam-extend-swak4Foam/Libraries 5) run ./AllwmakeAll -j >AllwmakeAll.txt & There are no obvious errors in the log file (see attach), but there are also no files in ~/OpenFOAM/kuzovlev-7/platforms/linux64IccDPInt32Opt/bin/ , only libraries in ~/OpenFOAM/kuzovlev-7/platforms/linux64IccDPInt32Opt/lib/ Quote:
|
||
June 23, 2021, 13:56 |
|
#2 |
New Member
Dmitry
Join Date: Sep 2020
Location: Moscow, RU
Posts: 16
Rep Power: 6 |
solved this problem by changing in Allwmake file WM_COMPILER from Gcc to Icc :
Code:
( #revert back to the default Gcc compiler, due to some problems that Icc has #with overly complex classes [ "$WM_COMPILER" = "Icc" ] && export WM_COMPILER=Icc cd Utilities; $BEAR_COMPILE_PREFIX wmake all ) Last edited by complete.basis; June 23, 2021 at 17:52. |
|
January 17, 2023, 23:54 |
Swak4Foam installation
|
#3 |
New Member
VINIT
Join Date: Aug 2022
Posts: 10
Rep Power: 4 |
Can someone please help. It's time sensitive.
I am trying to get Swak4Foam installed on Cluster. OpenFOAM v2106 is successfully installed in Cluster but giving issues for swak4foam. I installed it on my PC and it was installed. But I am using Ubuntu 22.04 and cluster has Ubuntu 16.04. It is not able to find Flex although its already installed. Here is the log: Current OpenFOAM version is v2106. Previously compiled for OpenFOAM (v2106) Reading variables from 'swakConfiguration' Looking for Python 2 Looking for Python 3 Found Python 3.7 Configuring Python 3.7 Using python3.7 at /usr/bin/python3.7-config for python3 Checking swak4Foam-version and generating file Swak version is 202x.yy.0 hg info: a69d0c0cbe50 (feature/port/p2106) tip Using /usr/bin/bear to build compilation database Bison: /usr/bin/bison Flex: /usr/bin/flex Bison at /usr/bin/bison is version 3.3.2 (Major 3 Minor 3) Flex is version 2.6.4 (Minor version: 4) OpenFOAM-version: Major 2106 Minor 0 Patch 0 (-1 == x / 0) Fork: com No change to swak4FoamParsers/foamVersion4swak.H Please include the output above when reporting a problem in the compilation. It helps diagnosing the problem wmake libso swak4FoamParsers /apps/cluster/OpenFOAM-v2106/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/options:69: /apps/cluster/OpenFOAM-v2106/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../myflex: No such file or directory make: *** No rule to make target '/apps/cluster/OpenFOAM-v2106/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../myflex'. Stop. /apps/cluster/OpenFOAM-v2106/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/options:69: /apps/cluster/OpenFOAM-v2106/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../myflex: No such file or directory make: *** No rule to make target '/apps/cluster/OpenFOAM-v2106/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../myflex'. Stop. wmake error: file '/apps/cluster/OpenFOAM-v2106/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/sourceFiles' could not be created in /apps/cluster/OpenFOAM-v2106/swak4Foam/Libraries/swak4FoamParsers Parser library did not compile OK. No sense continuing as everything else depends on it Requirements for Library not satisfied. I see no sense in going on Check the README before you go on to ask. And search: Most likely your problem occurred to 5 other people before and has been solved on the MessageBoard |
|
Tags |
centos 7, intel compiler, swak4foam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] swak4foam compiling issues on a cluster | saj216 | OpenFOAM Installation | 5 | January 17, 2023 17:05 |
[swak4Foam] swak4Foam installaton issue on cluster | canopus | OpenFOAM Community Contributions | 9 | May 25, 2021 13:57 |
Cannot install swak4Foam correctly in cluster. Help! | zxw | OpenFOAM | 0 | September 15, 2018 11:37 |
[Other] Basic questions about OpenFOAM cluster running and installing | Fauster | OpenFOAM Installation | 0 | May 25, 2018 16:00 |
[swak4Foam] OF 3.0.0 cluster install problems | fatirishman53 | OpenFOAM Community Contributions | 1 | September 7, 2016 11:24 |