Commit 58d6b0f9 authored by Jan Zapletal's avatar Jan Zapletal

MAINT: moved mex to examples

parent 89d72d8b
Examples/build/*
Examples/dist/*
Makefile
cpp/Makefile
Examples/cpp/build/*
Examples/cpp/dist/*
build/*
dist/*
fig/formulas.*
......
HEATDTN_LIB_PATH=../dist
HEATDTN_INC_PATH=../include
HEATDTN_LIB_PATH=../../dist
HEATDTN_INC_PATH=../../include
#CXX=icpc
#CXXFLAGS=-qopenmp -O3 -g -std=c++11 -w2 -I${HEATDTN_INC_PATH}
......
......@@ -4,6 +4,6 @@ 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 -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++ -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
......@@ -4,6 +4,6 @@ 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 -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++ -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
......@@ -90,10 +90,6 @@ CXXFLAGS=-m64 -fopenmp -Wall -Wno-sign-compare -I${MKLROOT}/include -I${EIGEN_IN
LDLIBSOPTIONS=-fopenmp -L${MKLROOT}/lib/intel64 -Wl,-rpath,'${MKLROOT}/lib/intel64' -lmkl_core -lmkl_gnu_thread -lmkl_intel_lp64
```
### Examples
A simple program linking against `libheatdtn.so` is provided in the directory `./Examples`. Run `cd Examples && cp ./Makefile.default ./Makefile`, modify `./Makefile` to suit your needs and run `make` to compile `./dist/testHeatDtN`. Run the program to test the library.
## heatDtN API
The library provides three functions described below.
......@@ -180,6 +176,16 @@ void deleteBem4iData(
The function has to be called to delete all heatDtN data correctly. Note that `evaluateLaplaceRepresentationFormula` **cannot** be called after this call.
## Examples
### CPP
A simple program linking against `libheatdtn.so` is provided in the directory `./Examples/cpp`. Run `cd Examples/cpp && cp ./Makefile.default ./Makefile`, modify `./Makefile` to suit your needs and run `make` to compile `./dist/testHeatDtN`. Run the program to test the library.
### MEX
A MEX interface is provided in `./Examples/mex`. Run `cd Examples/mex`, modify `./compile.sh` (or `compile_c_api.sh`) to suit your needs and run the script. Run `testHeatDtN.m` (or `testHeatDtN_c_api.m`) in Matlab.
## heatDtN as an ESPRESO plugin
We refer to the documentation of the ESPRESO library at http://espreso.it4i.cz/, for further info please contact the developers of heatDtN or ESPRESO at jan.zapletal@vsb.cz or ondrej.meca@vsb.cz.
......
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