CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[Other] swak4foam on CentOS7 cluster

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   June 15, 2021, 04:10
Default swak4foam on CentOS7 cluster
New Member
Join Date: Sep 2020
Location: Moscow, RU
Posts: 16
Rep Power: 5
complete.basis is on a distinguished road
Hello, everyone!
I am trying to install swak4foam on a cluster with this configuration:

flex 2.5.37
cmake version
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 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
What I am doing wrong?
Attached Files
File Type: zip (22.5 KB, 2 views)
complete.basis is offline   Reply With Quote

Old   June 23, 2021, 12:56
New Member
Join Date: Sep 2020
Location: Moscow, RU
Posts: 16
Rep Power: 5
complete.basis is on a distinguished road
solved this problem by changing in Allwmake file WM_COMPILER from Gcc to Icc :

  #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 16:52.
complete.basis is offline   Reply With Quote

Old   January 17, 2023, 22:54
Default Swak4Foam installation
New Member
Join Date: Aug 2022
Posts: 10
Rep Power: 3
VINIT is on a distinguished road
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
VINIT is offline   Reply With Quote


centos 7, intel compiler, swak4foam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[] swak4foam compiling issues on a cluster saj216 OpenFOAM Installation 5 January 17, 2023 16:05
[swak4Foam] swak4Foam installaton issue on cluster canopus OpenFOAM Community Contributions 9 May 25, 2021 12:57
Cannot install swak4Foam correctly in cluster. Help! zxw OpenFOAM 0 September 15, 2018 10:37
[Other] Basic questions about OpenFOAM cluster running and installing Fauster OpenFOAM Installation 0 May 25, 2018 15:00
[swak4Foam] OF 3.0.0 cluster install problems fatirishman53 OpenFOAM Community Contributions 1 September 7, 2016 10:24

All times are GMT -4. The time now is 03:43.