From 75ef3f3eff6cebae28bd2d30ac088a419b0455d4 Mon Sep 17 00:00:00 2001 From: Hugo Verhelst Date: Fri, 24 May 2024 17:25:07 +0200 Subject: [PATCH] path changes --- plugins/MATLAB/gismo.m | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/plugins/MATLAB/gismo.m b/plugins/MATLAB/gismo.m index 3bc2f2134..8d8384623 100644 --- a/plugins/MATLAB/gismo.m +++ b/plugins/MATLAB/gismo.m @@ -8,19 +8,18 @@ end path_to_main = '/home/hverhelst/Documents/code/gismo_mex'; -path_to_gismo = [path_to_main,'/build/lib/libgismo']; -path_to_Cinterface = '/optional/gsCInterface/src/Cgismo.h'; +path_to_libgismo = [path_to_main,'/build/lib/libgismo']; +path_to_gsCInterface = '/optional/gsCInterface/'; +path_to_CinterfaceFile = '/optional/gsCInterface/src/Cgismo.h'; % path_to_Minterface = './optional/gsCInterface/MATLAB/'; -path_to_gsCore = '/home/hverhelst/Documents/code/gismo_mex/build'; -path_to_gsCInterface = '/optional/gsCInterface/src/'; +path_to_gsCore = [path_to_main,'/build']; -addpath(genpath(path_to_gsCInterface)); -% addpath(path_to_Minterface) +addpath(genpath([path_to_main,path_to_gsCInterface])); % The following will create the library 'libgismo' -loadlibrary(path_to_gismo,... - path_to_Cinterface,... Path where to find the C interface +loadlibrary(path_to_libgismo,... + path_to_CinterfaceFile,... Path where to find the C interface 'addheader','gsCTypes.h',... 'addheader','gsCMatrix.h',... 'addheader','gsCMatrixInt.h',... @@ -37,7 +36,7 @@ path_to_gsCore... Path where to find gsCore ); -libfunctions('libgismo') +libfunctions('libgismo');