Hello,
I am new to SfePy (it looks amazing)
I have a question: Is it possible to dump a state variable ?
from sfepy.discrete import Problem
problem = Problem.from_conf_file(
"C:/ProgramData/Anaconda3/Lib/site-packages/sfepy/examples/linear_elasticity/its2D_1.py")
state = problem.solve()
from pickle import dump
with open("state.dat","wb") as f:
dump(state,f)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-15429a83d7eb> in <module>
1 from pickle import dump
2 with open("state.dat","wb") as f:
----> 3 dump(state,f)
C:\ProgramData\Anaconda3\lib\site-packages\sfepy\discrete\common\extmods\cmesh.cp36-win_amd64.pyd in sfepy.discrete.common.extmods.cmesh.CMesh.__reduce_cython__()
TypeError: no default __reduce__ due to non-trivial __cinit__
Best regards,