Skip to content
Snippets Groups Projects
Commit bd3099f0 authored by Achilles Kappis's avatar Achilles Kappis
Browse files

Revert to using serial for-loops in ptSrcField.m

parent 59a722d2
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
% Author: Achilles Kappis
% e-mail: axilleaz@protonmail.com
%
% Date: 19/12/2024 (DD/MM/YYYY)
% Date: 26/02/2025 (DD/MM/YYYY)
%
% Copyright: MIT
% --------------------------------------------------
......@@ -113,7 +113,7 @@ function waveField = ptSrcField(sPos, rPos, f, Q, c, rho)
% Calculate variables
% ============================================
% Go through the frequencies
parfor fIdx = 1:numel(f)
for fIdx = numel(f):-1:1
% Calculate parameters
w = 2 * pi * f(fIdx); % Radial frequency
k = w/c; % Wavenumber
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment