Skip to content

Reply To: rayleighTaylor3d

#5739
Adrian
Keymaster

The compiler can not decide which constructor of BlockReduction3D2D to use.

Making it clear that {0,0,1} should construct a normal vector [1] will solve this:


BlockReduction3D2D<T> planeReduction( density, Vector<T,3>{0, 0, 1} );

[1]: https://www.openlb.net/DoxyGen/html/db/ded/classolb_1_1BlockReduction3D2D.html#a158fe582f00266150512a0ef416d1984