diff --git a/Preprocessing_tools/geost_currents.m b/Preprocessing_tools/geost_currents.m index 73026f9bd479c9032b2eca2e13825576656a6a65..2363074ba8615dc757597c21333ba0236cdfcf33 100644 --- a/Preprocessing_tools/geost_currents.m +++ b/Preprocessing_tools/geost_currents.m @@ -162,8 +162,8 @@ for l=1:tlen % % Ekman transport % - if ~isempty(frcname) -% disp('Add the Ekman transport') + if exist(frcname) + disp('Add the Ekman transport') sustr(:,:)=nfrc{'sustr'}(l,:,:); svstr(:,:)=nfrc{'svstr'}(l,:,:); % rhoA=1.3; Cd=1.4e-3; diff --git a/Preprocessing_tools/geost_currents_bry.m b/Preprocessing_tools/geost_currents_bry.m index cc0f2e0ae463df34d5f3a7912c92cbf7c6d10104..eaad7517df7a78442456ee9a37786ce11391afe5 100644 --- a/Preprocessing_tools/geost_currents_bry.m +++ b/Preprocessing_tools/geost_currents_bry.m @@ -193,8 +193,8 @@ for l=1:tlen % % Ekman transport % - if ~isempty(frcname) -% disp('Add the Ekman transport') + if exist(frcname) + disp('Add the Ekman transport') if obcndx==1 tmp=squeeze(nfrc{'sustr'}(l,1,:)); sustr=0*h;