Commit 76f69d61 authored by Jan Zapletal's avatar Jan Zapletal

MAINT: using int in test, maint of mex compilation

parent b16c1117
......@@ -2,7 +2,7 @@
#include <iostream>
typedef long LO;
typedef int LO;
const LO nNodes = 8;
const LO nElems = 12;
......
#!/bin/bash
MATLAB_ROOT=/opt/matlab
rm -f heatdtn_mex.o
rm -f cpp_mexapi_version.o
rm -f heatdtn_mex.mexa64
g++ -c -DMATLAB_DEFAULT_RELEASE=R2018a -DUSE_MEX_CMD -D_GNU_SOURCE -DMATLAB_MEX_FILE -I/usr/local/MATLAB/R2018b/extern/include -I../../include -fexceptions -fPIC -fno-omit-frame-pointer -pthread -std=c++11 -O2 -fwrapv -DNDEBUG heatdtn_mex.cpp -o heatdtn_mex.o
g++ -c -DMX_COMPAT_64 -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -D_GNU_SOURCE -DMATLAB_MEX_FILE -I/usr/local/MATLAB/R2018b/extern/include -fexceptions -fPIC -fno-omit-frame-pointer -pthread -O2 -fwrapv -DNDEBUG "/usr/local/MATLAB/R2018b/extern/version/cpp_mexapi_version.cpp" -o cpp_mexapi_version.o
g++ -pthread -Wl,--no-undefined -Wl,-rpath-link,/usr/local/MATLAB/R2018b/bin/glnxa64 -shared -O -Wl,--version-script,/usr/local/MATLAB/R2018b/extern/lib/glnxa64/c_exportsmexfileversion.map heatdtn_mex.o cpp_mexapi_version.o -L"/usr/local/MATLAB/R2018b/bin/glnxa64" -L../../dist -Wl,-rpath,../../dist -lMatlabDataArray -lmx -lmex -lmat -lstdc++ -lheatdtn -o heatdtn_mex.mexa64
g++ -c -DMATLAB_DEFAULT_RELEASE=R2018a -DUSE_MEX_CMD -D_GNU_SOURCE -DMATLAB_MEX_FILE -I${MATLAB_ROOT}/extern/include -I../../include -fexceptions -fPIC -fno-omit-frame-pointer -pthread -std=c++11 -O2 -fwrapv -DNDEBUG heatdtn_mex.cpp -o heatdtn_mex.o
g++ -c -DMX_COMPAT_64 -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -D_GNU_SOURCE -DMATLAB_MEX_FILE -I${MATLAB_ROOT}/extern/include -fexceptions -fPIC -fno-omit-frame-pointer -pthread -O2 -fwrapv -DNDEBUG "${MATLAB_ROOT}/extern/version/cpp_mexapi_version.cpp" -o cpp_mexapi_version.o
g++ -pthread -Wl,--no-undefined -Wl,-rpath-link,${MATLAB_ROOT}/bin/glnxa64 -shared -O -Wl,--version-script,${MATLAB_ROOT}/extern/lib/glnxa64/c_exportsmexfileversion.map heatdtn_mex.o cpp_mexapi_version.o -L"${MATLAB_ROOT}/bin/glnxa64" -L../../dist -Wl,-rpath,../../dist -lMatlabDataArray -lmx -lmex -lmat -lstdc++ -lheatdtn -o heatdtn_mex.mexa64
#!/bin/bash
MATLAB_ROOT=/opt/matlab
rm -f heatdtn_mex_c_api.o
rm -f c_mexapi_version.o
rm -f heatdtn_mex_c_api.mexa64
g++ -c -DMATLAB_DEFAULT_RELEASE=R2018a -DUSE_MEX_CMD -D_GNU_SOURCE -DMATLAB_MEX_FILE -I/usr/local/MATLAB/R2018b/extern/include -I../../include -fexceptions -fPIC -fno-omit-frame-pointer -pthread -std=c++11 -O2 -fwrapv -DNDEBUG heatdtn_mex_c_api.cpp -o heatdtn_mex_c_api.o
g++ -c -DMX_COMPAT_64 -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -D_GNU_SOURCE -DMATLAB_MEX_FILE -I/usr/local/MATLAB/R2018b/extern/include -fexceptions -fPIC -fno-omit-frame-pointer -pthread -O2 -fwrapv -DNDEBUG "/usr/local/MATLAB/R2018b/extern/version/c_mexapi_version.c" -o c_mexapi_version.o
g++ -pthread -Wl,--no-undefined -Wl,-rpath-link,/usr/local/MATLAB/R2018b/bin/glnxa64 -shared -O -Wl,--version-script,/usr/local/MATLAB/R2018b/extern/lib/glnxa64/c_exportsmexfileversion.map heatdtn_mex_c_api.o c_mexapi_version.o -L"/usr/local/MATLAB/R2018b/bin/glnxa64" -L../../dist -Wl,-rpath,../../dist -lmx -lmex -lmat -lstdc++ -lheatdtn -o heatdtn_mex_c_api.mexa64
g++ -c -DMATLAB_DEFAULT_RELEASE=R2018a -DUSE_MEX_CMD -D_GNU_SOURCE -DMATLAB_MEX_FILE -I${MATLAB_ROOT}/extern/include -I../../include -fexceptions -fPIC -fno-omit-frame-pointer -pthread -std=c++11 -O2 -fwrapv -DNDEBUG heatdtn_mex_c_api.cpp -o heatdtn_mex_c_api.o
g++ -c -DMX_COMPAT_64 -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -D_GNU_SOURCE -DMATLAB_MEX_FILE -I${MATLAB_ROOT}/extern/include -fexceptions -fPIC -fno-omit-frame-pointer -pthread -O2 -fwrapv -DNDEBUG "${MATLAB_ROOT}/extern/version/c_mexapi_version.c" -o c_mexapi_version.o
g++ -pthread -Wl,--no-undefined -Wl,-rpath-link,${MATLAB_ROOT}/bin/glnxa64 -shared -O -Wl,--version-script,${MATLAB_ROOT}/extern/lib/glnxa64/c_exportsmexfileversion.map heatdtn_mex_c_api.o c_mexapi_version.o -L"${MATLAB_ROOT}/bin/glnxa64" -L../../dist -Wl,-rpath,../../dist -lmx -lmex -lmat -lstdc++ -lheatdtn -o heatdtn_mex_c_api.mexa64
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment