forked from fangq/iso2mesh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetexeext.m
More file actions
37 lines (36 loc) · 760 Bytes
/
getexeext.m
File metadata and controls
37 lines (36 loc) · 760 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
30
31
32
33
34
35
36
37
function exesuff=getexeext()
%
% exesuff=getexeext()
%
% get meshing external tool extension names for the current platform
%
% author: Qianqian Fang (fangq<at> nmr.mgh.harvard.edu)
%
% output:
% exesuff: file extension for iso2mesh tool binaries
%
% -- this function is part of iso2mesh toolbox (http://iso2mesh.sf.net)
%
exesuff='.exe';
if(isunix)
exesuff=['.',mexext];
end
if(isoctavemesh)
if(~ispc)
if(~ismac)
if(isempty(regexp(computer,'86_64')))
exesuff='.mexglx';
else
exesuff='.mexa64';
end
else
if(isempty(regexp(computer,'86_64')))
exesuff='.mexmaci';
else
exesuff='.mexmaci64';
end
end
else
exesuff='.exe';
end
end