Quote:
The error is quite strange because because FOAM_VERSION4SWAK is defined a few lines further up. The only reason I can think of is that Libraries/swak4FoamParsers/foamVersion4swak.H was not correctly created. What is the content of that file? |
Hi Bernhard,
Thanks for your reply. I just upgraded to foam-extend-3.1 and swak4Foam and groovyBCs were easily installed. Now it is working nicely :) Thanks again and Best, Mahdi |
hi friends,
I have problem with installing swake4foam, my OpenFoam version is 2.3.1, is there any patch for this version? thanks all |
Quote:
|
I have been busy with installing swak4foam all night. Finally, under the guidence of the master, I was successful. The procedure is following:
1、hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam openfoam-extend- swak4Foam 2、./maintainanceScripts/compileRequirements.sh 3、Downloading the patch file, and copy it to the installing catalog. 4、patch -p1 < swakFixFor20x.patch 5、ln -s swakConfiguration.automatic swakConfiguration 6、./Allwclean |
Installing swak4foam on openfoam 2.4.0
Hello!
I am trying to install swak4foam (0.3.2) on openfoam 2.4.0 and I am getting the following error: Code:
Previously compiled for OpenFOAM 2.4.0 With kind regards |
Greetings HKVadmin and welcome to the forum!
That is a very peculiar error message. I tested it just now with Ubuntu 12.04 which uses GCC 4.6.3 and I didn't have that problem. To diagnose the origin of the problem, I need the following information:
Best regards, Bruno |
1 Attachment(s)
Thank you Bruno!
Quote:
Quote:
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-50) g++ --version gives: g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-50) Quote:
Quote:
In /usr/local/OpenFOAM we have multiple folders: drwxr-xr-x 3 root root 4096 Oct 17 2011 engrid-1.2.0 drwxr-xr-x 4 root root 4096 Oct 17 2011 gmsh-2.4.2 drwxr-xr-x 6 root root 4096 Oct 17 2011 netgen-4.9.14-svn drwxr-xr-x 10 root root 4096 Dec 10 12:25 OpenFOAM-2.0.x drwxrwxr-x 11 root root 4096 Dec 10 12:26 OpenFOAM-2.4.0 drwxr-xr-x 4 root root 4096 Oct 17 2011 paraview-3.10.0 drwxr-xr-x 6 root root 4096 Oct 17 2011 ThirdParty-2.0.x drwxr-xr-x 10 root root 4096 Oct 1 12:31 ThirdParty-2.4.0 Maybe also important in this case: Our OpenFOAM-2.4.0 installation is not working exactly as it should be. Parallel processing isn't working (but single core is). We are still trying to figure that out as well. Could that perhaps be the reason wak4foam isn't building? Thank you very much for your help so far! With kind regards, Marc EDIT: Turns out that our gcc version was not new enough. With gcc version 4.2.8 swak4foam builds as it should! |
Hi Marc,
The dependency file looks OK. I'm guessing you're using Redhat 5.x, given that the default is GCC 4.1.2. Have a look at these instructions for ideas regarding the issue with MPI (for running in parallel): http://openfoamwiki.net/index.php/In...EL#CentOS_5.11 Quote:
Best regards, Bruno |
Quote:
You guessed correctly! I meant 4.8.2 As for running in parralel. This seemed to be a strange issue as well. We figured out that OpenFOAM uses mpicc to get some information about OpenMPI? Turns out that on our environment mpicc was not recognized while OpenMPI and mpi etc. were succesfully installed. We then edited the file /usr/local/OpenFOAM/OpenFOAM-2.4.0/etc/config.sh and around line 369 added: export PATH=/usr/local/openmpi-1.8.5/bin:$PATH That worked. But then log.interFoam stated that a dummy library in Pstream could not be used in parallel. A quick search showed (by earlier responses by you) that this is solved by compiling Pstream again. So we did (after exporting openmpi to our PATH as Pstream also uses mpicc for something) that by running Allwmake in the Pstream directory and after that everything seemed to work. My collegeau is going to test this week and hopefully he comes to the same conclusion as mine and that is that everything is working properly. With kind regards, Marc |
Hi Bruno,
I still have an issue. Our users are logging in on our cluster with their own username. But swak4foam doens't seem to work for them. This is because it has been built by root as stated on this page: https://openfoamwiki.net/index.php/Contrib/swak4Foam It says "Note: building swak4Foam installs it into FOAM_USER_LIBBIN for the current user. So if it built as root (or another administrative account) it is not usable from another account (or in other words: every user must compile swak4Foam for himself separately. There are ways to install it for all users. They are documented but you must find the way there yourself as a test to make sure you know what you're doing as doing this wrong may introduce very peculiar problems)" Could you point me in the right direction to make it so that every user can use swak4foam? Thanks in advance! Marc EDIT: Nevermind, I should RTFM ;) |
openfoam 1.6-ext : Parser error
For people who got this error
Code:
Parser library did not compile OK. No sense continuing as everything else depends on it For me that solved the problem of installing swak4Foam with 1.6-ext. |
swak4Foam with Rapid CFD
Dear all,
I tried installing swak4Foam (v0.3.2) with RapidCFD (GPU implementation of OF based on OpenFOAM-2.3.1). I opened this thread for this, but got no reply so far. Since I am very much interested in both, or rather dependent on both working together, I try to push this here... The problem seems to be, that swak4Foam does not recognise RapidCFD as a valid version of OpenFOAM, because it cannot identify the version of OpenFOAM in one of the first steps in the installation process. If anybody has any idea, in how I could try doing this, please let me know! All help is welcome!! Best regards Johannes |
Hi all
I am trying to compile swak4Foam on a cluster for openFOAM-2.1.1. Here are the system configurations Code:
This is a clean install Code:
../FieldValueExpressionParser.yy(157): error: no instance of overloaded function "Foam::ConcretePluginFunction<DriverType>::evaluate [with DriverType=Foam::FieldValueExpressionDriver]" matches the argument list Thank you very much! |
Quote:
Quote:
Quote:
|
Dear gschaider
Thank you very much for your prompt response! And apologise I cannot reply your post a bit earlier. Quote:
Thanks again for your help! EKW |
Quote:
I'm afraid that might be the problem: I've had people submit patches so that swak compiles with the Intel-compiler (that compiler seems to see some things slightly different than others). Myself I only test the code with Gcc and CLang so I can't tell you how to fix that problem. Sorry You might try commenting out the relevant lines in FieldValueExpressionParser.yy . That sould "only" break plugin-functions. But I can't tell for sure |
Quote:
Thank you for pointing me to the right direction. EKW |
Dear Foamers,
I face problems installing swak4Foam with OpenFOAM v1606+. Procedure: 1.) Download from git according to https://openfoamwiki.net/index.php/I...opment_version Executing: and Code:
git checkout branches/develop Code:
./Allwmake > log.make 2>&1 Code:
ln -s swakConfiguration.automatic swakConfiguration Code:
./maintainanceScripts/compileRequirements.sh => The error is strange: Code:
Make/linux64GccDPInt32Opt/../mybisonNew:20: recipe for target 'Make/linux64GccDPInt32Opt/FieldValueExpressionParser.o' failed Code:
Previously compiled for OpenFOAM (v1606+) System: OpenSuse Leap 42.3 Processor: Intel(R) Xeon(R) Gold |
That problem is mentioned in the README. It is a problem that OF 4.0 and 1606+ have: when re-factoring the code one change in d2dt was missed. As nobody except swak4Foam seemed to use that part nobody noticed.
Two solutions:
Quote:
|
All times are GMT -4. The time now is 20:39. |