Skip to content

Commit

Permalink
Update DynamicDrawNet.m
Browse files Browse the repository at this point in the history
  • Loading branch information
nolte committed Feb 4, 2021
1 parent 5df0092 commit 5017e5a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions DynamicDrawNet.m
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@


% Time loop
difep = 100; lastdis = 1;
difep = 100; lastdis = 1;
loop = 1;
while difep > 1e-5*N
while difep > 1e-2
loop = loop + 1;

eploop = loop;
Expand Down Expand Up @@ -142,10 +142,9 @@
end
end

%Distemp
Dis(loop) = Distemp;
%difep = abs(Distemp - lastdis)/N^2;
difep = abs(Distemp - lastdis)/Distemp;
difep = abs(Distemp - lastdis)/e;
%difep = abs(Distemp - lastdis)/Distemp;
lastdis = Distemp;

%keyboard
Expand Down Expand Up @@ -185,8 +184,8 @@

end % end time loop

% figure(10)
% plot(Dis)
figure(10)
semilogy(Dis)


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down

0 comments on commit 5017e5a

Please sign in to comment.