Changeset 270 for trunk/src/civ.m


Ignore:
Timestamp:
Nov 12, 2011, 4:46:54 PM (12 years ago)
Author:
sommeria
Message:

minor bug repairs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r269 r270  
    11621162else
    11631163    mode_list=get(handles.mode,'String')
     1164    if isempty(mode_list)
     1165        msgbox_uvmat('ERROR','please enter an input image or netcdf file')
     1166        return
     1167    end
    11641168    mode_value=get(handles.mode,'Value')
    11651169    mode=mode_list{mode_value};
     
    22202224                        RUN_STLIN(filecell.ncA.civ2{ifile,j},filecell.nc.civ2{ifile,j},'civ2',filecell.st{ifile,j},...
    22212225                            str2num(nx_patch2),str2num(ny_patch2),str2num(thresh_patch2),[filebase_A '.xml'],[filebase_B '.xml'])
     2226                    else
     2227                        Param.Patch2.Rho=rho_patch2;
     2228                        Param.Patch2.Threshold=thresh_patch2;
     2229                        Param.Patch2.SubDomain=subdomain_patch2;
    22222230                    end
    22232231                end
     
    22292237                        msgbox_uvmat('ERROR',errormsg)
    22302238                    end
     2239
    22312240                end
    22322241        end
Note: See TracChangeset for help on using the changeset viewer.