Welcome! Log In Create A New Profile

Advanced

Compiling Palabos 2.0 using a 64bit Compiler on Windows

Posted by MosGeoMosGeo  
Compiling Palabos 2.0 using a 64bit Compiler on Windows
June 20, 2018 05:45PM
Hi,

Has anyone compiled Palabos 2.0 using a 64bit compiler on windows 10? Which compiler are you using? I tried using a 64bit version of Mingw but it is giving me this error:

Quote

..\src\gridRefinement\couplingInterfaceGenerator3D.h|145|error: invalid initialization of reference of type 'plb::MultiContainerBlock3D&' from expression of type 'plb::MultiContainerBlock3D*'|
Re: Compiling Palabos 2.0 using a 64bit Compiler on Windows
June 25, 2018 08:43AM
Hello,

this is indeed a bug/typo in the code. To compile successfully, please change line 145 of the file:

src\gridRefinement\couplingInterfaceGenerator3D.h

to:

return *dataProcessors;

Best,
Dimitris
Re: Compiling Palabos 2.0 using a 64bit Compiler on Windows
June 25, 2018 07:10PM
This saved my life!!!

Just for information, this wasn't just an error on Windows systems, because I was getting the same error messages on Linux (which is kinda obvious, since the src files are the very same).

I was almost pulling my hairs out, trying to figure what the heck was happening. I'm working in a 2D code with grid refinement, and this error about a 3D library made no sense.

I modified the src and it compiled flawlessly. Thumbs up ;)
Sorry, you do not have permission to post/reply in this forum.