/[MITgcm]/MITgcm_contrib/gael/profilesMatlabProcessing/profiles_misc/ncclose.m
ViewVC logotype

Contents of /MITgcm_contrib/gael/profilesMatlabProcessing/profiles_misc/ncclose.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Sun Jan 24 17:07:09 2016 UTC (9 years, 5 months ago) by gforget
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
- these routines were moved to gcmfaces/gcmfaces_IO

1 function [] = ncclose(ncid);
2 % close a netcdf file.
3
4 global useNativeMatlabNetcdf;
5 if isempty(useNativeMatlabNetcdf); useNativeMatlabNetcdf = ~isempty(which('netcdf.open')); end;
6
7
8 if useNativeMatlabNetcdf;
9 netcdf.close(ncid);
10 else;%try to use old mex stuff
11 close(ncid);
12 end;
13
14
15

  ViewVC Help
Powered by ViewVC 1.1.22