Skip to content

Reply To: Issues with time averaged velocity field in turbulence model running in GPU

Due to recent bot attacks we have changed the sign-up process. If you want to participate in our forum, first register on this website and then send a message via our contact form.

Forums OpenLB General Topics Issues with time averaged velocity field in turbulence model running in GPU Reply To: Issues with time averaged velocity field in turbulence model running in GPU

#6891
Adrian
Keymaster

Thanks for the report. The issue is that some places in OpenLB use non-standard runtime-defined C-style array sizes which do not work in all compilers. This will be fixed in the next release, until then you can replace lines 85 and 86 in src/functors/lattice/timeAveraged/superLatticeTimeAveraged3D.hh by e.g.:


      std::vector<BaseType<T>> tmp(_sFunctor.getTargetDim(), 0);
      _sFunctor(tmp.data(), i);