Changeset 24530


Ignore:
Timestamp:
01/27/20 06:20:05 (5 years ago)
Author:
bdef
Message:

BUG:fixing typo

Location:
issm/trunk-jpl/src/m
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/SMBgradientscomponents.m

    r24525 r24530  
    4646                function        md=checkconsistency(self,md,solution,analyses) % {{{
    4747                        if ismember('MasstransportAnalysis',analyses),
    48                                 md = checkfield(md,'fieldname','smb.accuref','singleseries',1,'NaN',1,'Inf',1);
     48                                md = checkfield(md,'fieldname','smb.accuref','singletimeseries',1,'NaN',1,'Inf',1);
    4949                                md = checkfield(md,'fieldname','smb.accualti','numel',1,'NaN',1,'Inf',1);
    5050                                md = checkfield(md,'fieldname','smb.accugrad','numel',1,'NaN',1,'Inf',1);
    51                                 md = checkfield(md,'fieldname','smb.runoffref','singleseries',1,'NaN',1,'Inf',1);
     51                                md = checkfield(md,'fieldname','smb.runoffref','singletimeseries',1,'NaN',1,'Inf',1);
    5252                                md = checkfield(md,'fieldname','smb.runoffalti','numel',1,'NaN',1,'Inf',1);
    5353                                md = checkfield(md,'fieldname','smb.runoffgrad','numel',1,'NaN',1,'Inf',1);
  • issm/trunk-jpl/src/m/contrib/defleurian/netCDF/export_netCDF.m

    r21648 r24530  
    1 function export_netCDF(md,filename)     
    2        
     1function export_netCDF(md,filename)
     2
    33%Now going on Real treatment
    44        if exist(filename),
     
    1717        mode = bitor(mode,netcdf.getConstant('NC_NOCLOBBER'));%NOCLOBBER to avoid overwrite
    1818        ncid = netcdf.create(filename,mode);
    19         netcdf.putAtt(ncid,netcdf.getConstant('NC_GLOBAL'),'Title',['Results for run ' md.miscellaneous.name]);
    20         netcdf.putAtt(ncid,netcdf.getConstant('NC_GLOBAL'),'Date',['Created ' datestr(now)]);
    21        
     19        netcdf.putAtt(ncid,netcdf.getConstant('NC_GLOBAL'),'description',['Results for run ' md.miscellaneous.name]);
     20        netcdf.putAtt(ncid,netcdf.getConstant('NC_GLOBAL'),'history',['Created ' datestr(now)]);
     21
    2222        %gather geometry and timestepping as dimensions
    2323        resfields=fieldnames(md.results);
     
    2727        else
    2828                StepNum=1;
    29   end                                                   
     29  end
    3030
    3131   dimlist=[40,2,md.mesh.numberofelements,md.mesh.numberofvertices,size(md.mesh.elements,2)];
    32  
     32
    3333        %define netcdf dimensions
    3434        DimSize(1).index=netcdf.defDim(ncid,'Dimension1',StepNum);
     
    4444
    4545        typelist=[{'numeric'} {'logical'} {'string'} {'char'} {'cell'}];
    46  
     46
    4747        %get all model classes and create respective groups
    4848        groups=fieldnames(md);
     
    7979                                                elseif isprop(Var{l},'step')
    8080                                                        lname=Var{l}.step
    81                                                 else 
     81                                                else
    8282                                                        lname=[class(Var{l}) int2str(l)];
    8383                                                end
     
    260260                end
    261261        end
    262         %if we have a cell variable we need to add a stringlength dimension 
     262        %if we have a cell variable we need to add a stringlength dimension
    263263        if isa(Var,'struct'),
    264264                if DimValue(3)~=2
Note: See TracChangeset for help on using the changeset viewer.