📄 amg_setup.m
字号:
%AMG_SETUP calls the specified routines for coarse point and intergrid weight selection
% Ryan McKenzie
% Department of Computational Sciences
% University of Kentucky
function amg_setup(level);
amg_globals;
if level ~= COARSEST %if the current level is not the coarsest level
%call appropriate setup algorithm to select coarse points and get
%interpolation weights
if SETUP_ALG == RUGE_STUEBEN
RugeStuebenCoarsen(level);
elseif SETUP_ALG == AMGm
AMGmCoarsen(level);
elseif SETUP_ALG == SMOOTH_AGGREGATE
SmoothAggregateCoarsen(level);
end
if SETUP_OPT == AT_ONCE %if we are coarsening more than one level
amg_setup(level+1); %call setup for next coarse grid
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -