Skip to content

Commit

Permalink
fixed a bug in amg coarsening
Browse files Browse the repository at this point in the history
  • Loading branch information
scaomath committed Aug 30, 2021
1 parent 11f05d1 commit 912c396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solver/coarsenAMGc.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
if ~exist('theta','var'), theta = 0.025; end
N = size(A,1);
isC = false(N,1); % C: coarse node
N0 = min(sqrt(N),25); % number of the coarest nodes
N0 = min(floor(sqrt(N)),25); % number of the coarest nodes

%% Generate strong connectness matrix
Dinv = spdiags(1./sqrt(diag(A)),0,N,N);
Expand Down

0 comments on commit 912c396

Please sign in to comment.