Skip to content
Merged

Ross #86

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions ProgramFiles/sys_calcsystem_fcns/create_grids.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
%Create grids for evaluating the connection functions
function s = create_grids(s)


% Backwards-compatibility code for old way of specifying finite element
% density
if isfield(s,'finite_element_density')
if isfield(s.density,'finite_element')
warning('Sysf_ file has both an s.density.finite_element specification and a (deprecated) s.finite_element_density specification. The latter will be ignored, and should be removed from the sysf_ file')
else
warning('Sysf_ file has a (deprecated) s.finite_element_density specification. This should be replaced by an s.density.finite_element specification')
s.density.finite_element = s.finite_element_density;
end
end


%list of grids that will be made
grid_list = {'vector','scalar','eval','metric_eval','metric_display','finite_element'};

Expand Down
10 changes: 9 additions & 1 deletion ProgramFiles/sysplotter_config_fcns/inputpathselect_Callback.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@ function inputpathselect_Callback(hObject, eventdata, handles)
% handles structure with handles and user data (see GUIDATA)

% Set the directory string to a user-selected path
targetdir = uigetdir(get(handles.inputpathconfig,'String'),'Select directory of configuration files');
oldtargetdir = get(handles.inputpathconfig,'String');
newtargetdir = uigetdir(get(handles.inputpathconfig,'String'),'Select directory of configuration files');

if ~isnumeric(newtargetdir)
targetdir = newtargetdir;
else
targetdir = oldtargetdir;
end

set(handles.inputpathconfig,'String',targetdir);

% Verify that the target directory has the necessary subdirectories
Expand Down