rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
addpaths_changed.m
Go to the documentation of this file.
1 % script which allows to use a second rbmatlab branch overloading
2 % an existing one, e.g. for temporary changed, patches, laptop
3 % version, etc.
4 
5 % Bernard Haasdonk 7.5.2010
6 
7 % list of paths on which existence in the pwd is checked if
8 % existent, added to path:
9 paths = {...
10  '3rd_party',...
11  'bin',...
12  'datafiles',...
13  'datafunc',...
14  fullfile('datafunc','init_values'),...
15  'demos',...
16  'develop',...
17  'discfunc',...
18  fullfile('discfunc','common'),...
19  fullfile('discfunc','fv'),...
20  fullfile('discfunc','fem'),...
21  fullfile('discfunc','ldg'),...
22  'doxygen',...
23  'dune',...
24  'general',...
25  fullfile('general','verbosity'),...
26  fullfile('general','vecmat'),...
27  fullfile('general','geometry'),...
28  fullfile('general','basic'),...
29  fullfile('general','filecaching'),...
30  'grid',...
31  fullfile('grid','common'),...
32  'models',...
33  fullfile('models','common'),...
34  fullfile('models','advection_output'),...
35  fullfile('models','multiscale_buckley_leverett'),...
36  fullfile('models','hmm_micro_local'),...
37  'rbasis',...
38  fullfile('rbasis','lin_ds'),...
39  fullfile('rbasis','lin_evol'),...
40  fullfile('rbasis','lin_stat'),...
41  fullfile('rbasis','nonlin_evol'),...
42  fullfile('rbasis','common'),...
43  fullfile('rbasis','basisgen'),...
44  fullfile('rbasis','vi'),...
45  'scripts',...
46  fullfile('scripts','steps'),...
47  '3rdparty',...
48  fullfile('3rdparty','mpgwrite'),...
49  'test'...
50  };
51 
52 for p = 1:length(paths)
53  if exist(fullfile(pwd,paths{p}),'dir')
54  addpath(paths{p});
55  disp(['adding path ',paths{p}]);
56  end;
57 end;