Skip to content

rayleighTaylor3d

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5737
    Gloriousface
    Participant

    Hello,all

    When I simulate rayleighTaylor3d, the system reports the following errors. How can I solve them?

    rayleighTaylor3d.cpp: In function ‘void getResults(olb::SuperLattice3D<double, olb::descriptors::D3Q19<olb::descriptors::VELOCITY, olb::descriptors::FORCE, olb::descriptors::EXTERNAL_FORCE, olb::descriptors::OMEGA> >&, olb::SuperLattice3D<double, olb::descriptors::D3Q19<olb::descriptors::VELOCITY, olb::descriptors::FORCE, olb::descriptors::EXTERNAL_FORCE, olb::descriptors::OMEGA> >&, int, olb::SuperGeometry3D<double>&, olb::util::Timer<double>&)’:

    rayleighTaylor3d.cpp:221:62: error: call of overloaded ‘BlockReduction3D2D(olb::SuperLatticeDensity3D<double, olb::descriptors::D3Q19<olb::descriptors::VELOCITY, olb::descriptors::FORCE, olb::descriptors::EXTERNAL_FORCE, olb::descriptors::OMEGA> >&, <brace-enclosed initializer list>)’ is ambiguous
    BlockReduction3D2D<T> planeReduction( density, {0, 0, 1} );

    Thanks

    #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

    #5740
    Gloriousface
    Participant

    Thank you very much for your help. This problem has been solved successfully

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.