- 1.1 CMakeLists.txt has been changed to include pybind11 in a subdirectory ./pybind11; Ubuntu 18.04.1 LTS (Bionic Beaver) has been used (the latest stable version).
- 1.2 Python bindings have been included in ./py_wrap.cc file accordingly to ./main.py file includes.
- 1.3 Overloading creatSimulation in MaterialPointsFactory to take a functor that defines non-default input parameters for the simulation or else the simulation will run under default parameters. Those parameters could be Conductivity, Capacity .. etc.
- 2.1 Referencing to compute objects should be guaranteed by binding with shared_pointers. This should remove any memory conflicts in handling objects between Python and C++.
- 2.2 We used reference returning policy for factory interfaces to avoid problems in reference counting again between Python and C++.
To build and make the project's binaries call the following shell script. This shell script will make a build file, call out Cmake and make.
- 3.1.1 to make excecutable (if not) and run C/P:
chmod +x compile.sh && ./compile.sh
- 3.1.2 to run only C/P:
- 3.1.3 to run the final python file use the following command C/P:
cd build && python3 main.py nsteps freq filename particle_type timestep
c4science · Help