|
[Sponsors] |
[swak4Foam] difficulties installing swak4foam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 3, 2020, 16:54 |
|
#101 |
Senior Member
Join Date: Jul 2019
Posts: 148
Rep Power: 7 |
Thanks. I edited the above with the support center of the cluster as suggested above. when I run ./Allwmake, I get the below error (last lines of it), I am wondering how to fix it:
CommonValueExpressionDriver.C: In member function ‘Foam::string Foam::CommonValueExpressionDriver:utputEntry()’: CommonValueExpressionDriver.C:1907:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<scalar>(true)()); ^~~~~~~~~~CommonValueExpressionDriver.C:1907:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<scalar>(true)()); ^~~~~~~~~~ writer_CommonValueExpressionDriver.C:1913:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<vector>(true)()); ^~~~~~~~~~CommonValueExpressionDriver.C:1913:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<vector>(true)()); ^~~~~~~~~~ writer_CommonValueExpressionDriver.C:1919:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<tensor>(true)()); ^~~~~~~~~~CommonValueExpressionDriver.C:1919:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<tensor>(true)()); ^~~~~~~~~~ writer_CommonValueExpressionDriver.C:1925:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<symmTensor>(true)() ); ^~~~~~~~~~CommonValueExpressionDriver.C:1925:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<symmTensor>(true)() ); ^~~~~~~~~~ writer_CommonValueExpressionDriver.C:1931:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<sphericalTensor>(tr ue)()); ^~~~~~~~~~CommonValueExpressionDriver.C:1931:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<sphericalTensor>(tr ue)()); ^~~~~~~~~~ writer_make: *** [/cvmfs/soft.computecanada.ca/easybuild/software/2017/avx512/MPI/gcc7.3/openmpi3.1/openfoam/6.20180813/OpenFOAM-6.20180813/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/CommonValueExpressionDriver.o] Error 1Parser library did not compile OK. No sense continuing as everything else depends on itRequirements for Library not satisfied. I see no sense in going onCheck 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 |
|
August 4, 2020, 07:55 |
|
#102 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
According to the error message his is a patched version of OF6. Is this the same version as the one on your workstation?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
August 4, 2020, 12:33 |
|
#103 |
Senior Member
Join Date: Jul 2019
Posts: 148
Rep Power: 7 |
Hi,
It is working on my PC. The OpenFOAM version is 6. The gcc version is 8.3.0. However, it is not on the cluster. The cluster uses OpenFOAM version 6.20180813. |
|
August 4, 2020, 14:28 |
|
#104 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
swak4Foam has only been tested with OF6 as released on the 10th of July 2018 and then with OF7. But not the intermediate versions from the git-repository
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
August 4, 2020, 14:33 |
|
#105 |
Senior Member
Join Date: Jul 2019
Posts: 148
Rep Power: 7 |
Hi gschaider, thanks for the reply. below is the error in the code environment.
Code:
CommonValueExpressionDriver.C: In member function ‘Foam::string Foam::CommonValueExpressionDriver:utputEntry()’: CommonValueExpressionDriver.C:1907:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<scalar> (true)()); ^~~~~~~~~~CommonValueExpressionDriver.C:1907:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<scalar>(true)()); ^~~~~~~~~~ writer_CommonValueExpressionDriver.C:1913:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<vector>(true)()); ^~~~~~~~~~CommonValueExpressionDriver.C:1913:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<vector>(true)()); ^~~~~~~~~~ writer_CommonValueExpressionDriver.C:1919:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<tensor>(true)()); ^~~~~~~~~~CommonValueExpressionDriver.C:1919:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<tensor>(true)()); ^~~~~~~~~~ writer_CommonValueExpressionDriver.C:1925:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<symmTensor>(true)() ); ^~~~~~~~~~CommonValueExpressionDriver.C:1925:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<symmTensor>(true)() ); ^~~~~~~~~~ writer_CommonValueExpressionDriver.C:1931:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<sphericalTensor>(tr ue)()); ^~~~~~~~~~CommonValueExpressionDriver.C:1931:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<sphericalTensor>(tr ue)()); ^~~~~~~~~~ writer_make: *** [/cvmfs/soft.computecanada.ca/easybuild/software/2017/avx512/MPI/gcc7.3/openmpi3.1/openfoam/6.20180813/OpenFOAM-6.20180813/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/CommonValueExpressionDriver.o] Error 1Parser 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 onCheck 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 |
|
November 19, 2020, 06:59 |
|
#106 |
Member
Andreas P.
Join Date: May 2017
Posts: 41
Rep Power: 9 |
Hey Bodo!
Did you solve the problem? I came accross the same error when i was trying to compile swak4Foam for my OpenFOAM-6 installation (SHA 47517f2ebb1bdbacb8e3ce4b15110cd252953f87). I both tried with the default and the develop branch of the hg repository. With the develop branch, another compilation error occured... |
|
November 19, 2020, 07:45 |
|
#107 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
I can't find a commit with that has in the Mercurial-Repository. What is the output of Code:
hg id
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
November 19, 2020, 08:12 |
|
#108 |
Member
Andreas P.
Join Date: May 2017
Posts: 41
Rep Power: 9 |
The SHA i posted was the one from my OpenFOAM-6 version.
The hg id is the following for the default branch of swak4Foam: 76087ce82a32 Edit: Btw, thank you for the fast reply! |
|
November 19, 2020, 10:31 |
|
#109 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
And how does the compilation fail? Error message?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
November 19, 2020, 10:49 |
|
#110 |
Member
Andreas P.
Join Date: May 2017
Posts: 41
Rep Power: 9 |
It was the same error message as Bodo1993 posted before with the default branch:
Code:
CommonValueExpressionDriver.C: In member function ‘Foam::string Foam::CommonValueExpressionDriver::outputEntry()’: CommonValueExpressionDriver.C:1907:55: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<scalar>(true)()); ^ CommonValueExpressionDriver.C:1913:55: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<vector>(true)()); ^ CommonValueExpressionDriver.C:1919:55: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<tensor>(true)()); ^ CommonValueExpressionDriver.C:1925:59: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<symmTensor>(true)()); ^ CommonValueExpressionDriver.C:1931:64: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<sphericalTensor>(true)()); Code:
In file included from lnInclude/CommonValueExpressionDriver.H:49:0, from helpers/swakExprString.C:35: FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:76:21: error: expected template-name before ‘<’ token public TableBase<Type> ^ FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:76:21: error: expected ‘{’ before ‘<’ token FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:76:21: error: expected unqualified-id before ‘<’ token In file included from FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:124:0, from lnInclude/CommonValueExpressionDriver.H:49, from helpers/swakExprString.C:35: FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.C:35:1: error: invalid use of incomplete type ‘class Foam::Function1Types::TableFile<Type>’ ) ^ In file included from lnInclude/CommonValueExpressionDriver.H:49:0, from helpers/swakExprString.C:35: FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:74:7: error: declaration of ‘class Foam::Function1Types::TableFile<Type>’ class TableFile ^ In file included from FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:124:0, from lnInclude/CommonValueExpressionDriver.H:49, from helpers/swakExprString.C:35: FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.C:62:76: error: invalid use of incomplete type ‘class Foam::Function1Types::TableFile<Type>’ Foam::Function1Types::TableFile<Type>::TableFile(const TableFile<Type>& tbl) ^ In file included from lnInclude/CommonValueExpressionDriver.H:49:0, from helpers/swakExprString.C:35: FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:74:7: error: declaration of ‘class Foam::Function1Types::TableFile<Type>’ class TableFile ^ In file included from FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:124:0, from lnInclude/CommonValueExpressionDriver.H:49, from helpers/swakExprString.C:35: FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.C:72:51: error: invalid use of incomplete type ‘class Foam::Function1Types::TableFile<Type>’ Foam::Function1Types::TableFile<Type>::~TableFile() ^ In file included from lnInclude/CommonValueExpressionDriver.H:49:0, from helpers/swakExprString.C:35: FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:74:7: error: declaration of ‘class Foam::Function1Types::TableFile<Type>’ class TableFile ^ In file included from FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:124:0, from lnInclude/CommonValueExpressionDriver.H:49, from helpers/swakExprString.C:35: FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.C:79:68: error: invalid use of incomplete type ‘class Foam::Function1Types::TableFile<Type>’ void Foam::Function1Types::TableFile<Type>::writeData(Ostream& os) const ^ In file included from lnInclude/CommonValueExpressionDriver.H:49:0, from helpers/swakExprString.C:35: FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:74:7: error: declaration of ‘class Foam::Function1Types::TableFile<Type>’ class TableFile ^ In file included from helpers/swakExprString.C:35:0: lnInclude/CommonValueExpressionDriver.H:50:28: error: ‘Function1s’ was not declared in this scope #define interpolationTable Function1s::TableFile ^ lnInclude/CommonValueExpressionDriver.H:185:15: note: in expansion of macro ‘interpolationTable’ HashTable<interpolationTable<scalar> > lines_; ^ In file included from helpers/swakExprString.C:35:0: lnInclude/CommonValueExpressionDriver.H:185:42: error: template argument 1 is invalid HashTable<interpolationTable<scalar> > lines_; ^ In file included from helpers/swakExprString.C:35:0: lnInclude/CommonValueExpressionDriver.H:50:28: error: ‘Function1s’ was not declared in this scope #define interpolationTable Function1s::TableFile ^ lnInclude/CommonValueExpressionDriver.H:187:15: note: in expansion of macro ‘interpolationTable’ HashTable<interpolationTable<scalar> > lookup_; ^ In file included from helpers/swakExprString.C:35:0: lnInclude/CommonValueExpressionDriver.H:187:42: error: template argument 1 is invalid HashTable<interpolationTable<scalar> > lookup_; ^ In file included from lnInclude/CommonValueExpressionDriver.H:866:0, from helpers/swakExprString.C:35: lnInclude/CommonValueExpressionDriverI.H: In member function ‘bool Foam::CommonValueExpressionDriver::isLine(const Foam::word&) const’: lnInclude/CommonValueExpressionDriverI.H:1132:23: error: request for member ‘found’ in ‘((const Foam::CommonValueExpressionDriver*)this)->Foam::CommonValueExpressionDriver::lines_’, which is of non-class type ‘const int’ return lines_.found(name); ^ lnInclude/CommonValueExpressionDriverI.H: In member function ‘bool Foam::CommonValueExpressionDriver::isLookup(const Foam::word&) const’: lnInclude/CommonValueExpressionDriverI.H:1137:24: error: request for member ‘found’ in ‘((const Foam::CommonValueExpressionDriver*)this)->Foam::CommonValueExpressionDriver::lookup_’, which is of non-class type ‘const int’ return lookup_.found(name); ^ FOAM-DIRECTORY/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/helpers/swakExprString.o' failed make: *** [Make/linux64GccDPInt32Opt/helpers/swakExprString.o] Error 1 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 Code:
This is a clean install SWAK-DIRECTORY/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison) Reading variables from 'swakConfiguration' Looking for Python 2 Found Python 2.7 Configuring Python 2.7 Using python2.7 at /usr/bin/python2.7-config for python2 Looking for Python 3 Found Python 3.4 Configuring Python 3.4 Using python3.4 at /usr/bin/python3.4-config for python3 Using our own Lua at SWAK-DIRECTORY/swak4Foam/privateRequirements Checking swak4Foam-version and generating file Swak version is 20xx.yy.0 hg info: 58b9a1dfa14c (develop) tip which: no bear in PATH No 'bear' installed Bison: SWAK-DIRECTORY/swak4Foam/privateRequirements/bin/bison Flex: /usr/bin/flex Bison at SWAK-DIRECTORY/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4) Flex is version 2.5.37 (Minor version: 37) OpenFOAM-version: Major 2999 Minor 9 Patch -1 (-1 == x / 98) Fork: org No swak4FoamParsers/foamVersion4swak.H. Generated |
|
November 19, 2020, 11:59 |
|
#111 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
That is strange: that line should only be compiled for OF7 and higher Quote:
Aaaah. The major version 2999 means that the compilation script could not determine the OF-version that is used. For that it uses the content of the WM_PROJECT_VERSION environment variable. Check with Code:
echo $WM_PROJECT_VERSION Code:
export WM_PROJECT_VERSION=6
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|||
November 19, 2020, 12:14 |
|
#112 |
Member
Andreas P.
Join Date: May 2017
Posts: 41
Rep Power: 9 |
Ah yeah! Thank you very much Bernhard!
Actually i slightly modified OpenFOAM-6 and therefor changed the WM_PROJECT_VERSION variable to something like 6-XYZ. Completely makes sense that it couldn't find out the project version then. I now reverted the change of WM_PROJECT_VERSION and the compilation seems to work fine. Thanks again and have a nice evening |
|
May 24, 2021, 07:53 |
error of compling
|
#113 |
Senior Member
|
Hi guys, I executed two times of ./Allwmake and the following messages came to me. I did not find the solution after I read your posts. Please give me some suggestions regarding this issue. I failed to compile it on the cluster although I tried a lot of ways. Any help will be greatly appreciated!
Code:
Previously compiled for OpenFOAM (v2012) /galileo/home/userexternal/qyang001/OpenFOAM/qyang001-v2012/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison) No file 'swakConfiguration'. Python etc won't work. See README for details Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems Checking swak4Foam-version and generating file Swak version is 0.4.1 Bison is version 2.7.12-4996 Flex is version 2.5.37 (Minor version: 37) OpenFOAM-version: Major 2999 Minor 9 Patch -1 (-1 == x / 98) Fork: openfoam No change to swak4FoamParsers/foamVersion4swak.H wmake libso swak4FoamParsers icpc -std=c++11 -pthread -fp-trap=common -fp-model precise -DOPENFOAM=2012 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-unknown-pragmas -diag-disable 327,654,1125,1292,2289,2304,11062,11074,11076 -O3 -xCORE-AVX2 -DNoRepository -IMake/linux64IccDPInt32OptBDW -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/finiteVolume/lnInclude -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/surfMesh/lnInclude -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/sampling/lnInclude -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/fileFormats/lnInclude -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/triSurface/lnInclude -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/dynamicMesh/lnInclude -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/lagrangian/basic/lnInclude -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/surfMesh/lnInclude -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/meshTools/lnInclude -I../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/ -iquote. -IlnInclude -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/OpenFOAM/lnInclude -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/OSspecific/POSIX/lnInclude -fPIC -c helpers/exprString.C -o Make/linux64IccDPInt32OptBDW/helpers/exprString.o In file included from helpers/exprString.C(39): ./CommonValueExpressionDriver.H(716): error: class "Foam::meshToMesh" has no member "imCellVolumeWeight" meshToMesh::imCellVolumeWeight ^ compilation aborted for helpers/exprString.C (code 2) make: *** [Make/linux64IccDPInt32OptBDW/helpers/exprString.o] Error 2 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 occured to 5 other people before and has been solved on the MessageBoard |
|
June 15, 2021, 09:35 |
Paser library issue with OF 4.x
|
#114 |
New Member
Gregoire Varillon
Join Date: May 2021
Posts: 3
Rep Power: 5 |
Dear all,
It seems that I have the same Parser library compilation issue than others in this thread. I tried the solution strategies explained above but none of them succeeded. Here is my configuration: > Ubuntu 20.04.2 LTS > OpenFOAM 4.x > swak4Foam development version (as specified on the wiki https://openfoamwiki.net/index.php/I...OAM_4.0_to_4.x) Code:
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam (cd swak4Foam && hg update develop) Then I followed the instructions, namely Code:
./maintainanceScripts/compileRequirements.sh ./Allwmake > log.make 2>&1 The compilation ends on the message "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" Here is the first (and only!) error message: Code:
/home/Me/OpenFOAM/OpenFOAM-4.x/src/OpenFOAM/lnInclude/PackedListI.H:550:13: error: return-statement with a value, in function returning ‘void’ [-fpermissive] 550 | return *this; | ^~~~ And this is the head of the log.make: Code:
Current OpenFOAM version is 4.x. Previously compiled for OpenFOAM (4.x) /home/Me/OpenFOAM/Me-4.x/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison) No file 'swakConfiguration'. Python etc won't work. See README for details Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems Checking swak4Foam-version and generating file Swak version is 202x.yy.0 hg info: c90337bb9368 (develop) tip No 'bear' installed Bison: /home/Me/OpenFOAM/Me-4.x/swak4Foam/privateRequirements/bin/bison Flex: /usr/bin/flex Bison at /home/Me/OpenFOAM/Me-4.x/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4) Flex is version 2.6.4 (Minor version: 4) OpenFOAM-version: Major 4 Minor 0 Patch 0 (-1 == x / 0) Fork: org No change to swak4FoamParsers/foamVersion4swak.H I also went the "Understanding Error Messages" page, but nothing seems to workaround. > Do you have any insight about this issue? > The wiki specifies some patches for OF 4.0. Is it also necessary for OF 4.x? (since it is not the case for OF 4.1) > If yes, I am still a bit lost on how to use these two files as "patches" The complete log.make exceeds the limit size for attachement by 15KB so I removed some parts of the log.make attached (symbolized by [...] in the file). But I can send the full version by any other mean. Looking forward to reading you. Grégoire |
|
June 15, 2021, 12:14 |
|
#115 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Hm. The oldest foundation-release that I currently have installed is 5. So I can't directly reproduce your problem. The PackedList-error is a problem in the OpenFOAM-sources. Where did you get that 4.x from (maybe it is an unstable git-version)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
June 15, 2021, 12:22 |
|
#116 |
New Member
Gregoire Varillon
Join Date: May 2021
Posts: 3
Rep Power: 5 |
Dear Bernhard,
Thank you for your prompt answer. I got OF 4.x from https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04, precisely git clone https://github.com/OpenFOAM/OpenFOAM-4.x.git git clone https://github.com/OpenFOAM/ThirdParty-4.x.git The instructions that I've followed for swak4Foam also come from Openfoamwiki.net. Best, Grégoire |
|
June 15, 2021, 17:14 |
|
#117 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
There is nothing I can do. The OpenFOAM sources (not swak) you use are plain broken. At https://github.com/OpenFOAM/OpenFOAM.../PackedListI.H line 550 the compiler complains about the return statement in a function that is not supposed to return anything (void). I checked: the next version that I have (5.0) has the same function without the offending return-statement. Is there a particular reason to use an outdated development version of OpenFOAM? I recommend sticking to released versions (these are also the only ones I test swak4Foam against) or the newest development versions. But stay clear of the .x versions unless you are prepared to fix compilation problems yourself
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
June 16, 2021, 04:11 |
|
#118 |
New Member
Gregoire Varillon
Join Date: May 2021
Posts: 3
Rep Power: 5 |
Ok thank you for your insights. I'll deal with this information.
|
|
October 14, 2022, 17:00 |
|
#119 | |
New Member
I. L.
Join Date: Aug 2022
Location: Germany
Posts: 5
Rep Power: 4 |
Quote:
I experience the same problems as AnkitRK, while trying to build Swak4Foam for OF-2.1.x If you ask me, why do I need OF 2.1.x... Well, I implemented some solvers years ago and didn't touch OpenFOAM (and CFD in general) for a very long time. Now, I need to reactivate them. Actually, I don't mind moving to a newer OF version, but I'm afraid that wouldn't be straightforward and easy. So first I need to make my old implementation work and do plenty of reverse engineering to recall all the stuff I did. Since I failed to build the newest Swak4Foam on my system (Ubuntu 16.04.7 LTS), I also tried to build two other old versions of Swak4Foam I found in my old backup. These where v0.1.6 and v0.2.4 and I was apparently using them back that day with the same OF-version. But on my current system I was not able to build them either. I would appreciate your help! Cheers Last edited by i.linch; October 17, 2022 at 04:12. |
||
October 17, 2022, 09:18 |
|
#120 | |
New Member
I. L.
Join Date: Aug 2022
Location: Germany
Posts: 5
Rep Power: 4 |
Quote:
Last edited by i.linch; October 18, 2022 at 12:12. |
||
Tags |
swak4faom, swak4foam error |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] Installing swak4Foam 0.4.0 on ubuntu 14.04 | JFM | OpenFOAM Community Contributions | 1 | October 30, 2016 10:43 |
[swak4Foam] Installing swak4Foam on ubuntu 12.04 | fluidflowsteel | OpenFOAM Community Contributions | 1 | June 28, 2016 15:02 |
[swak4Foam] Installing swak4Foam with openFoam v3.0+ | RebelLion | OpenFOAM Community Contributions | 0 | March 11, 2016 20:10 |
[swak4Foam] fails in parallel with -otherTime? | Phicau | OpenFOAM Community Contributions | 3 | June 26, 2013 14:00 |
[swak4Foam] Installing swak4Foam to OpenFOAM in mac | Kaquesang | OpenFOAM Community Contributions | 22 | January 21, 2013 12:51 |