Commit 32ce0893 authored by Pierre Cazenave's avatar Pierre Cazenave

Enable all warnings in the functions rather than have things fail silently

parent 0cf78624
......@@ -31,7 +31,7 @@ function add_var_FVCOM_river(RiverFile,VarName,VarLongName,VarUnits,VarData)
%
%==============================================================================
warning off
%warning off
subname = 'add_var_FVCOM_river';
global ftbverbose;
......
......@@ -27,7 +27,7 @@ function example_FVCOM_tsobc(basename,time,nSiglay)
%
%==============================================================================
warning off;
%warning off;
subname = 'example_FVCOM_tsobc';
......
......@@ -24,7 +24,7 @@ function example_FVCOM_wind_ts
% Revision history
%
%==============================================================================
warning off
%warning off
subname = 'example_FVCOM_wind_ts';
global ftbverbose;
if(ftbverbose);
......
......@@ -24,7 +24,7 @@ function example_FVCOM_wind_ts_speed
% Revision history
%
%==============================================================================
warning off
%warning off
subname = 'example_FVCOM_wind_ts';
fprintf('\n')
fprintf(['begin : ' subname '\n'])
......
......@@ -9,7 +9,7 @@ clear all; close all;
% Revision history
%
%==============================================================================
warning off
%warning off
type = 2;
% set mesh/bathymetry files
......
......@@ -33,7 +33,7 @@ function era = read_ERA_wind(year, datadir, varlist)
% datadir = '/users/modellers/pica/Data/ECMWF/2006';
% varlist = {'u10', 'v10'};
warning off
%warning off
if nargin ~= 3
error('Incorrect number of arguments')
......@@ -116,4 +116,4 @@ netcdf.close(ncERA)
if ftbverbose;
fprintf(['end : ' subname '\n'])
end
\ No newline at end of file
end
......@@ -25,7 +25,7 @@ function ncep = read_NCEP_wind(ncep_u10_file, ncep_v10_file)
%
%==========================================================================
warning off
%warning off
if nargin ~= 2
error('Incorrect number of arguments')
......
......@@ -25,7 +25,7 @@ function write_FVCOM_bedflag(bedflag,filename,mytitle)
% Revision history
%
%==============================================================================
warning off
%warning off
global ftbverbose;
if(ftbverbose);
subname = 'write_FVCOM_bedflag';
......
......@@ -33,7 +33,7 @@ function write_FVCOM_river(RiverFile,RiverName,nRivnodes,time,flux,temp,salt,Riv
% Revision history
%
%==============================================================================
warning off;
%warning off;
global ftbverbose;
if(ftbverbose);
......
......@@ -39,7 +39,7 @@ function write_FVCOM_wind_ts_speed(Mobj, WindFile, time, u10, v10)
% vectors vary in time and space.
%
%==============================================================================
warning off
%warning off
subname = 'example_FVCOM_wind_ts_speed';
global ftbverbose;
if(ftbverbose);
......
......@@ -29,7 +29,7 @@ function write_FVCOM_z0(z0,filename,mytitle)
% MATLAB 2010a or higher.
%
%==============================================================================
warning off
%warning off
subname = 'write_FVCOM_z0';
global ftbverbose;
if(ftbverbose);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment