For example, I have a interpolating function solution by NDSolve in a windows x64 platform and want to share the result to users in other windows x86.

I tried the DumpSave and ".mx" binary format, but failed since ".mx" is not platform independent binary format.

However, ".wdx", developed by Wolfram in 2007, which is said to be independent on platforms, does not work either. I just obtain the similar error message when trying to Get or Import, on x86 platform, the ".mx" or ".wdx" binary files created by Win64 platform with a failure:

File interpolatingFunctionData.wdx was written with ABI 64, which is not compatible with this version of the Wolfram Language.

It seems ".mat" does not support interpolating function Exporting.

Then how should I exchange interpolating function data between different platforms?

  • 1
    $\begingroup$ How about Export[file.txt, Compress[interpolationObject]] $\endgroup$
    – Coolwater
    Commented Feb 23, 2016 at 7:10
  • $\begingroup$ thank you very much! I think this should work. Can you please answer it? $\endgroup$ Commented Feb 23, 2016 at 7:14

1 Answer 1

Export["file.txt", Compress[Interpolation[{1, 2, 3, 5, 8, 5}]]];
  • $\begingroup$ Though this should work, it doesn't really work. I don't know why. $\endgroup$ Commented Feb 26, 2016 at 6:37
  • $\begingroup$ Though this does not work. e.g., I tried to exchange the solution of the PDE in the tsunami model here mathematica.stackexchange.com/questions/107988/… , after transering the result from an x64 to an x86 windows machine, the same code visualizations look different (interpolating function basically changed in values). All other things are OK. Since there seems no other better solution, this answer is still acceptable. $\endgroup$ Commented Feb 26, 2016 at 7:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.