Ignore:
Timestamp:
Apr 30, 2018, 8:01:35 PM (3 years ago)
Author:
sommeria
Message:

miscellaneous updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_civdata.m

    r1027 r1033  
    8080VelTypeOut=VelType;
    8181errormsg='';
    82 if ~exist(FileName,'file')
    83     errormsg=['input file ' FileName ' does not exist'];
    84     return
    85 end
    8682if ischar(FieldNames), FieldNames={FieldNames}; end;
    8783ProjModeRequest='';
     
    10298Data=nc2struct(FileName,'ListGlobalAttribute','CivStage');
    10399if isfield(Data,'Txt')
    104      erromsg=['error in read_civdata: ' Data.Txt];
     100     errormsg=['error in read_civdata: ' Data.Txt];
    105101    return
    106102end
     
    108104[varlist,role,VelTypeOut]=varcivx_generator(ProjModeRequest,VelType,Data.CivStage);
    109105if isempty(varlist)
    110     erromsg=['error in read_civdata: unknow velocity type ' VelType];
     106    errormsg=['error in read_civdata: unknow velocity type ' VelType];
    111107    return
    112108else
Note: See TracChangeset for help on using the changeset viewer.