-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreatePaths.m
More file actions
41 lines (35 loc) · 1.28 KB
/
Copy pathCreatePaths.m
File metadata and controls
41 lines (35 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
function CreatePaths
clc
close all
addpath([pwd,'/modules/']);
addpath([pwd,'/examples/']);
set(0,'defaultLegendInterpreter','latex');
set(0,'defaulttextInterpreter','latex');
set(0,'defaultaxesfontsize',20);
envvar = [pwd,'/include'];
setenv('FF_INCLUDEPATH',envvar);
if exist('~/bedmap2/','dir')
addpath('~/bedmap2/')
else
fprintf('>> Must addpath to bedmap2\n')
end
if exist('~/Documents/MATLAB/bedmap2_toolbox_v4.6.2/','dir')
addpath('~/Documents/MATLAB/bedmap2_toolbox_v4.6.2/')
else
fprintf('>> Must addpath to bedmap2_toolbox*\n')
end
if exist('~/Library/Application Support/MathWorks/MATLAB Add-Ons/Toolboxes/Antarctic Mapping Tools/AntarcticMappingTools/','dir')
addpath('~/Library/Application Support/MathWorks/MATLAB Add-Ons/Toolboxes/Antarctic Mapping Tools/AntarcticMappingTools/')
else
fprintf('>> Must addpath to Antarctic Mapping Tools\n')
end
%% Should be set manually by the user.
global ff
if exist('/usr/local/ff++/openmpi-2.1/3.61-1/bin/FreeFem++')
ff='/usr/local/ff++/openmpi-2.1/3.61-1/bin/FreeFem++';
elseif exist('/usr/local/ff++/mpich3/bin/FreeFem++')
ff='/usr/local/ff++/mpich3/bin/FreeFem++';
else
fprintf('>> Run:\n\n which FreeFem++\n\n in your command line to get the path for FreeFem++.\n Set the full path in the variable `ff` in CreatePaths.m\n');
end
end