started performance plot

This commit is contained in:
2025-11-16 17:46:36 -08:00
parent db20f11ea8
commit e53b721f34
13 changed files with 83 additions and 22 deletions

View File

@@ -6,22 +6,18 @@ function [obj] = run(obj)
obj (1, 1) {mustBeA(obj, 'miSim')};
end
% Set up times to iterate over
times = linspace(0, obj.timestep * obj.maxIter, obj.maxIter+1)';
partitioningTimes = times(obj.partitioningFreq:obj.partitioningFreq:size(times, 1));
% Start video writer
v = obj.setupVideoWriter();
v.open();
for ii = 1:size(times, 1)
for ii = 1:size(obj.times, 1)
% Display current sim time
t = times(ii);
fprintf("Sim Time: %4.2f (%d/%d)\n", t, ii, obj.maxIter)
obj.t = obj.times(ii);
fprintf("Sim Time: %4.2f (%d/%d)\n", obj.t, ii, obj.maxIter + 1);
% Check if it's time for new partitions
updatePartitions = false;
if ismember(t, partitioningTimes)
if ismember(obj.t, obj.partitioningTimes)
updatePartitions = true;
obj = obj.partition();
end