Commit c374ec80 by Pierre Cazenave

### Fix output messages to only print if the global ftbverbose variable is set

parent 18a86d20
 ... @@ -31,8 +31,12 @@ function [Mobj] = add_sponge_nodes_list(Mobj,SpongeList,SpongeName,SpongeRadius ... @@ -31,8 +31,12 @@ function [Mobj] = add_sponge_nodes_list(Mobj,SpongeList,SpongeName,SpongeRadius % % %============================================================================== %============================================================================== subname = 'add_sponge_nodes'; subname = 'add_sponge_nodes'; fprintf('\n') fprintf(['begin : ' subname '\n']) global ftbverbose if(ftbverbose) fprintf('\n') fprintf(['begin : ' subname '\n']) end % Do we want a figure showing how we're getting along? % Do we want a figure showing how we're getting along? if nargin == 5 if nargin == 5 ... @@ -49,7 +53,7 @@ if plotFig == 1 ... @@ -49,7 +53,7 @@ if plotFig == 1 else else x = Mobj.lon; x = Mobj.lon; y = Mobj.lat; y = Mobj.lat; end; end figure figure patch('Vertices',[x,y],'Faces',Mobj.tri,... patch('Vertices',[x,y],'Faces',Mobj.tri,... ... @@ -65,8 +69,10 @@ if(npts == 0) ... @@ -65,8 +69,10 @@ if(npts == 0) fprintf('No points in given list') fprintf('No points in given list') fprintf(['end : ' subname '\n']) fprintf(['end : ' subname '\n']) return return end; end fprintf('%d points provided\n',npts) if(ftbverbose) fprintf('%d points provided\n',npts) end % add to mesh object % add to mesh object Mobj.nSponge = Mobj.nSponge + 1; Mobj.nSponge = Mobj.nSponge + 1; ... @@ -76,6 +82,8 @@ Mobj.sponge_name{Mobj.nSponge} = SpongeName; ... @@ -76,6 +82,8 @@ Mobj.sponge_name{Mobj.nSponge} = SpongeName; Mobj.sponge_rad(Mobj.nSponge) = SpongeRadius; Mobj.sponge_rad(Mobj.nSponge) = SpongeRadius; Mobj.sponge_fac(Mobj.nSponge) = SpongeCoeff; Mobj.sponge_fac(Mobj.nSponge) = SpongeCoeff; if(ftbverbose) fprintf(['end : ' subname '\n']) end fprintf(['end : ' subname '\n'])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!