⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 settingsgui.m

📁 五点差分型多重网格方法:各种插值算子的比较)
💻 M
📖 第 1 页 / 共 2 页
字号:
function varargout = settingsgui(varargin)amg_globals;% SETTINGSGUI Application M-file for settingsgui.fig%    FIG = SETTINGSGUI launch settingsgui GUI.%    SETTINGSGUI('callback_name', ...) invoke the named callback.% Last Modified by GUIDE v2.5 26-Jul-2006 16:12:10if nargin == 0  % LAUNCH GUI	fig = openfig(mfilename,'reuse');	% Use system color scheme for figure:	set(fig,'Color',get(0,'defaultUicontrolBackgroundColor'));	% Generate a structure of handles to pass to callbacks, and store it. 	handles = guihandles(fig);	guidata(fig, handles);	if nargout > 0		varargout{1} = fig;    end    elseif ischar(varargin{1}) % INVOKE NAMED SUBFUNCTION OR CALLBACK	try		[varargout{1:nargout}] = feval(varargin{:}); % FEVAL switchyard	catch		disp(lasterr);	endend%| ABOUT CALLBACKS:%| GUIDE automatically appends subfunction prototypes to this file, and %| sets objects' callback properties to call them through the FEVAL %| switchyard above. This comment describes that mechanism.%|%| Each callback subfunction declaration has the following form:%| <SUBFUNCTION_NAME>(H, EVENTDATA, HANDLES, VARARGIN)%|%| The subfunction name is composed using the object's Tag and the %| callback type separated by '_', e.g. 'slider2_Callback',%| 'figure1_CloseRequestFcn', 'axis1_ButtondownFcn'.%|%| H is the callback object's handle (obtained using GCBO).%|%| EVENTDATA is empty, but reserved for future use.%|%| HANDLES is a structure containing handles of components in GUI using%| tags as fieldnames, e.g. handles.figure1, handles.slider2. This%| structure is created at GUI startup using GUIHANDLES and stored in%| the figure's application data using GUIDATA. A copy of the structure%| is passed to each callback.  You can store additional information in%| this structure at GUI startup, and you can change the structure%| during callbacks.  Call guidata(h, handles) after changing your%| copy to replace the stored original so that subsequent callbacks see%| the updates. Type "help guihandles" and "help guidata" for more%| information.%|%| VARARGIN contains any extra arguments you have passed to the%| callback. Specify the extra arguments by editing the callback%| property in the inspector. By default, GUIDE sets the property to:%| <MFILENAME>('<SUBFUNCTION_NAME>', gcbo, [], guidata(gcbo))%| Add any extra arguments after the last argument, before the final%| closing parenthesis.% --------------------------------------------------------------------% --------------------------------------------------------------------function src_user_Callback(hObject, eventdata, handles)% hObject    handle to src_user (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)amg_globals;PROB_SRC=USER_SPEC_FD;% --------------------------------------------------------------------function src_usr2_Callback(hObject, eventdata, handles)% hObject    handle to Untitled_5src_usr2 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)amg_globals;PROB_SRC=USER_SPEC_FEM;% --------------------------------------------------------------------function setup_rugestueben_Callback(hObject, eventdata, handles)% hObject    handle to setup_rugestueben (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)amg_globals;SETUP_ALG=RUGE_STUEBEN;% --------------------------------------------------------------------function smooth_jac_Callback(hObject, eventdata, handles)% hObject    handle to smooth_jac (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)amg_globals;SMOOTHER=JACOBI;% --------------------------------------------------------------------function smooth_SOR_Callback(hObject, eventdata, handles)% hObject    handle to smooth_SOR (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)amg_globals;SMOOTHER=SOR;% --------------------------------------------------------------------function slove_smooth_Callback(hObject, eventdata, handles)% hObject    handle to slove_smooth (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)amg_globals;C_SOLVER=THE_SMOOTHER;% --------------------------------------------------------------------function solve_elim_Callback(hObject, eventdata, handles)% hObject    handle to solve_elim (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)amg_globals;C_SOLVER=DIRECT_ELIM;% --------------------------------------------------------------------function ps_on_Callback(hObject, eventdata, handles)% hObject    handle to ps_on (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)amg_globals;POST_SMOOTH=YES;% --------------------------------------------------------------------function ps_off_Callback(hObject, eventdata, handles)% hObject    handle to ps_off (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)amg_globals;POST_SMOOTH=NO;% --------------------------------------------------------------------function TwoLevels_Callback(hObject, eventdata, handles)% hObject    handle to TwoLevels (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)global COARSEST;COARSEST=2;% --------------------------------------------------------------------function ThreeLevels_Callback(hObject, eventdata, handles)% hObject    handle to ThreeLevels (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)global COARSEST;COARSEST=3;% --------------------------------------------------------------------function FourLevels_Callback(hObject, eventdata, handles)% hObject    handle to FourLevels (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)global COARSEST;COARSEST=4;% --------------------------------------------------------------------function FiveLevels_Callback(hObject, eventdata, handles)% hObject    handle to FiveLevels (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)global COARSEST;COARSEST=5;% --------------------------------------------------------------------function TenLevels_Callback(hObject, eventdata, handles)% hObject    handle to TenLevels (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)global COARSEST;COARSEST=10;% --------------------------------------------------------------------function FifteenLevels_Callback(hObject, eventdata, handles)% hObject    handle to FifteenLevels (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)global COARSEST;COARSEST=15;% --------------------------------------------------------------------function OneCycle_Callback(hObject, eventdata, handles)% hObject    handle to OneCycle (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)global CYCLES;CYCLES=1;% --------------------------------------------------------------------function TwoCycle_Callback(hObject, eventdata, handles)% hObject    handle to TwoCycle (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)global CYCLES;CYCLES=2;% --------------------------------------------------------------------function ThreeCycle_Callback(hObject, eventdata, handles)% hObject    handle to ThreeCycle (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)global CYCLES;CYCLES=3;% --------------------------------------------------------------------function FourCycle_Callback(hObject, eventdata, handles)% hObject    handle to FourCycle (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)global CYCLES;CYCLES=4;% --------------------------------------------------------------------function FiveCycle_Callback(hObject, eventdata, handles)% hObject    handle to FiveCycle (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)global CYCLES;CYCLES=5;% --------------------------------------------------------------------function threshold3_Callback(hObject, eventdata, handles)% hObject    handle to threshold5 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)amg_globals;STOP_TYPE=RESID_THRESHOLD;STOP_VALUE=0.001;% --------------------------------------------------------------------function threshold5_Callback(hObject, eventdata, handles)% hObject    handle to threshold5 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)amg_globals;STOP_TYPE=RESID_THRESHOLD;STOP_VALUE=0.00001;% --------------------------------------------------------------------function threshold7_Callback(hObject, eventdata, handles)% hObject    handle to threshold7 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -