Gerd
December 12, 2014, 10:25am
#1
Hello,
I tried to compile the example segregation2D (codesByTopicx/shanChenMulitPhase) from the new Palabos version under Windows with Code::Blocks.
I get following error:
…\src\multiBlock\defaultMultiBlockPolicy3D.h|91|
undefined reference to `plb::SerialScalarAccess3D::SerialScalarAccess3D()’|
it refers to this part of the code defaultMultiBlockPolicy3D.h, in detail to the bold line
[code=“cpp”]
template
MultiScalarAccess3D* getMultiScalarAccess() {
#ifdef PLB_MPI_PARALLEL
return new ParallelScalarAccess3D();
#else
return new SerialScalarAccess3D();
#endif
}
Does anyone have an idea? I'm thankful for any help,
Best regards,
Gerd
Dear Gerd,
There were some problems with Code-Blocks and compilation, but I think we managed to provide a temporary fix until the next release. Can you please see this thread:
http://www.palabos.org/forum/read.php?11,7488
and let us know if it solves your problem?
Best,
Dimitris
Gerd
December 12, 2014, 3:30pm
#3
Dear Dimitris,
thank you for fast reply.
I have tried the changed code, but the error remains the same.
Do you have any other ideas? (I’m new using Palabos, so there may be a basic error)
Best regards,
Gerrit
Can you please try to add in the file: defaultMultiBlockPolicy2D.h
the line:
[code=cpp]
#include “multiBlock/serialMultiDataField2D.hh”
and in the file: defaultMultiBlockPolicy3D.h
the line:
[code=cpp]
#include "multiBlock/serialMultiDataField3D.hh"
Thank you!
Gerd
December 12, 2014, 4:49pm
#5
Great! It works now. Thanks a lot!