First time here? Checkout the FAQ!
x
0 votes
by (140 points)

Hello,

I am trying to import an EP model into a tissue simulation in carpentry (e.g. the EM_coupling tutorial example). However, the import isn't accepted.

The model is an edited version of TT2.model. I have produced the "TT2_Cai.model" file and used openCARP to generate the corresponding shared object ("MyTT2.so"). In openCARP, I have also used bench to test the model output - this gives the result I expected, so the model seems to be written correctly. I then try to import the model into carp. If I include the command-line parameters:
imps += [‘-num_external_imp’ , 1,  ‘-external_imp[0]‘, ‘/home/al12/Carp/tutorials/04_EM_tissue/04_EM_coupling/TT2_Cai.so’]
This gives the following error message:
carpentry: carp.cc:2871: double init_electrics(Electrics*, TimerObj*, double, double, Mapping*): Assertion `load_ionic_module(param_globals::external_imp[ii])' failed.
The TT2_Cai.so file is located in the correct path, but this error happens even without actually using the imported model (i.e., even when using the original imps += [ '-imp_region[0].im', 'TT2']) . If I comment out the above line, the simulation proceeds normally. This suggests that carp is not managing to load the model in the first place.

- Am I using the correct syntax?
- Might the problem come from using a .so file generated in openCARP in a carpentry tissue simulation?
- Might there be a version incompatibility?

Thank you.
-Alex.

1 Answer

0 votes
by (8.0k points)
Hi Alex! openCARP shared libraries cannot be used in CARPentry as they are binary incompatible.
Welcome to openCARP Q&A. Ask questions and receive answers from other members of the community. For best support, please use appropriate TAGS!
architecture, carputils, documentation, experiments, installation-containers-packages, limpet, slimfem, website, governance
MathJax.Hub.Config({ tex2jax: { inlineMath: [ ['$','$'], ["\\(","\\)"] ], config: ["MMLorHTML.js"], jax: ["input/TeX"], processEscapes: true } }); MathJax.Hub.Config({ "HTML-CSS": { linebreaks: { automatic: true } } });
...