Parallel version of upwind scheme
조회 수: 2 (최근 30일)
이전 댓글 표시
Dear all, I came up to the naive question which is contradictive, i.e.
How to parallelize upwind scheme?
Suppose, we have the following implementation of upwind
for k = 1:kFin % time-loop
% space-loop
un(2:nx) = u(2:nx) - cfl*(u(2:nx) - u(1:nx-1));
% BC
un(1) = un(nx);
% update
u = un;
end % for
So, how to parallelize it via parfor or spmd or else?
Is it possible for such schemes?
댓글 수: 2
Walter Roberson
2019년 2월 21일
Is cfl a scalar, or is it a row vector with (nx-1) columns, or is it a square 2D array with (nx-1) rows and columns ?
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 FPGA, ASIC, and SoC Development에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!