MxUI / MUI

Multiscale Universal Interface: A Concurrent Framework for Coupling Heterogeneous Solvers
http://mxui.github.io/
Apache License 2.0
54 stars 40 forks source link

Update Python wrapper on the dev branch #62

Closed Wendi-L closed 4 years ago

Wendi-L commented 4 years ago

The Python wrapper has been updated on the dev branch with the recent changes of MUI core code on the dev branch. The RBF sampler has also added into the Python wrapper. I added one function into util.h of the MUI core code as well. It is an overload function of "frexp10", which allowed the type of variable "exp" to be "long &". I added it because the type of the variable "exponent" changed form C++ built-in type "int" to "CONFIG::INT" in "sampler_exact.h". By using the Python wrapper, "CONFIG::INT" will be controlled by Python code and will cast into "long" rather than "int" by 64-bit Python. Thus, an overload version of "frexp10" is needed.