Skip to content

Commit

Permalink
skip cost_xx if files are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelforget committed Dec 30, 2016
1 parent 2dc0108 commit 6e35405
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ecco_v4/cost_xx.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
if ~isempty(dir([dirModel nameSigma]));
dirSig=dirModel;
else;
error(['could not find ' nameSigma]);
warning(['could not find ' nameSigma ' -> abort']);
return;
end;

if ~isempty(dir([dirModel 'xx_' xxName '.effective.*data']));
Expand Down
4 changes: 2 additions & 2 deletions gcmfaces_diags/diags_pre_process.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
dirSnap=dirModel;
doBudget=~isempty(dir([dirSnap 'budg2d_snap_set1*']));
end;
doCtrl=~isempty(dir([dirModel 'ADXXfiles' filesep 'xx*.effective.*']));
doCtrl=doCtrl|~isempty(dir([dirModel 'xx*.effective.*']));
doCtrl=~isempty(dir([dirModel 'xx_atemp.effective.*']))
doCtrl=doCtrl&~isempty(dir([dirModel 'cap_sigma_tmp2m_degC_eccollc.bin']));
else;
dirSnap=fullfile(dirModel,'diags',filesep);
doBudget=0;
Expand Down

0 comments on commit 6e35405

Please sign in to comment.