Changeset 452 for trunk/src/civ.m


Ignore:
Timestamp:
Jun 12, 2012, 8:53:51 PM (12 years ago)
Author:
sommeria
Message:

bugs repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r446 r452  
    21002100                detect=exist(filename,'file')==2;
    21012101                if detect% if a netcdf file already exists
    2102                     answer=msgbox_uvmat('INPUT_Y-N',['delete files in ' subdir_civ1_new]);
    2103                     if ~strcmp(answer,'Yes')
     2102                    answer=msgbox_uvmat('INPUT_Y-N',['overwrite existing civ files in ' subdir_civ1_new]);
     2103                    if strcmp(answer,'Yes')
     2104                        detect=0;
     2105                        filecell.nc.civ1(ifile,j)={filename};
     2106                    else
    21042107                        r=regexp(subdir_civ1_new,'(?<root>.*\D)(?<num1>\d+)$','names');%detect whether name ends by a number
    21052108                        if isempty(r)
Note: See TracChangeset for help on using the changeset viewer.