-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinstall.m
More file actions
29 lines (23 loc) · 832 Bytes
/
install.m
File metadata and controls
29 lines (23 loc) · 832 Bytes
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
function install()
% INSTALL External Grid Generators for use with FEATool Multiphysics
%
% These external grid and mesh generators have been compiled and
% collected from the official unmodified sources and repositories for
% use with the FEATool Multiphysics (https://www.featool.com) MATLAB
% finite element simulation software, and optionally with the
% integrated OpenFOAM and FEniCS solver extensions.
% Copyright (C), Precise Simulation Limited, 2019.
installation_path = fullfile(userpath,'.featool');
if( ispc() )
ext = '.exe';
elseif( ismac() )
ext = '_mac';
elseif( isunix() )
ext = '_lnx';
end
folders = {'gmsh-3.0.6','triangle'};
binaries = strcat({'gmsh','triangle'},ext);
for i=1:length(folders)
copyfile( fullfile(folders{i},binaries{i}), ...
fullfile(installation_path,binaries{i}) );
end