Re: [deal.II] Re: interface between dealii and matlab for data transfer (using mex files?)

2022-08-15 Thread Simon Sticko
Hi, I have done the mex-coupling with dealii before. As Bruno said, it is easiest to mex with cmake. Example in attached zip. Hope it helps. Best, Simon Sticko On 15/08/2022 15:05, Bruno Turcksin wrote: Simon Le lun. 15 août 2022 à 08:52, Simon Wiesheier mailto:simon.wieshe...@gmail.com>>

Re: [deal.II] Re: interface between dealii and matlab for data transfer (using mex files?)

2022-08-15 Thread Bruno Turcksin
Simon Le lun. 15 août 2022 à 08:52, Simon Wiesheier a écrit : > > I also thought about transferring the data by reading from/writing to a > file. > But I was looking for a more general approach without having to create > files. > > Writing files is no less general than coupling directly Matlab

Re: [deal.II] Re: interface between dealii and matlab for data transfer (using mex files?)

2022-08-15 Thread Simon Wiesheier
Dear Bruno, I also thought about transferring the data by reading from/writing to a file. But I was looking for a more general approach without having to create files. I was also pondering if it is possible to compile the mex file like a normal dealii program (by adding a few Matlab macros to

[deal.II] Re: interface between dealii and matlab for data transfer (using mex files?)

2022-08-15 Thread Bruno Turcksin
Simon, You could just write/read files to transfer the data and you can launch your deal.II code from Matlab using https://www.mathworks.com/help/matlab/ref/system.html This way Matlab does not need to know anything about deal.II. You just write and read files, and you execute a bash command.