Reply To: Using addWallFunctionBoundary
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › Using addWallFunctionBoundary › Reply To: Using addWallFunctionBoundary
October 26, 2020 at 5:10 pm
#5251
vinhvu1995
Participant
Hi Marc,
Thanks for the reply, I’ve replaced the erroneous line and I still cannot compile my code. This is the error I get
src/boundary/wallFunctionBoundaryPostProcessors3D.hh: In member function ‘void olb::WallFunctionBoundaryProcessor3D<T, DESCRIPTOR>::computeFneqRNEBB(olb::Cell<T, DESCRIPTOR>&, T*, T, T*)’:
/src/boundary/wallFunctionBoundaryPostProcessors3D.hh:711:96: error: no matching function for call to ‘opposite(__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&)’
711 | fneq_bc[normalInwardsIndices[fIndex]] = fneq_bc[util::opposite(normalInwardsIndices[fIndex])];
| ^
In file included src/dynamics/dynamics.h:32,
/src/boundary/boundaryCondition3D.h:31,
src/boundary/boundary3D.h:28,
src/olb3D.h:1,
from array.cpp:7:
src/core/util.h:193:47: note: candidate: ‘template<class DESCRIPTORBASE> int olb::util::opposite(int)’
193 | template <typename DESCRIPTORBASE> inline int opposite(int iPop)
| ^~~~~~~~
src/core/util.h:193:47: note: template argument deduction/substitution failed:
In file included from src/boundary/boundary3D.hh:42,
from src/olb3D.hh:1,
from array.cpp:9:
src/boundary/wallFunctionBoundaryPostProcessors3D.hh:711:96: note: couldn’t deduce template parameter ‘DESCRIPTORBASE’
711 | fneq_bc[normalInwardsIndices[fIndex]] = fneq_bc[util::opposite(normalInwardsIndices[fIndex])];
|
I guess the next release has the updated code which should fix the problems. Do you think it be better if I waited for the next release?
Cheers,
Vinh
- This reply was modified 3 years, 10 months ago by vinhvu1995. Reason: Pasting code doesn't work well
- This reply was modified 3 years, 10 months ago by vinhvu1995. Reason: cannot post code with ../.../