First time here? Checkout the FAQ!
x
0 votes
by (1.3k points)
edited by

Hi,

I have a modified Shannon model that I use for my simulations. I wrote it before the changes to model and current names so it doesn't follow the current nomenclature. So far I was using an older release previous to that change without problems, but now I was trying to compile openCARP from source using the latest release with my unchanged model and I am getting an error during the generation of ionic models from imp_list.txt.

I have added my model to the physics/limpet/models folder and added the name of my model to the imp_list.txt  file. I was wondering if I have to change the names of the variables in my .model as well. I thought I would ask before changing everything but turning out the error comes from somewhere else :)

This is the error coming up when compiling:

[ 18%] Generating generated_functions.cc from imp_list.txt
gmake[2]: *** [physics/limpet/CMakeFiles/limpet.dir/build.make:609: physics/limpet/generated_functions.cc] Error 1
gmake[2]: *** Deleting file 'physics/limpet/generated_functions.cc'
gmake[1]: *** [CMakeFiles/Makefile2:499: physics/limpet/CMakeFiles/limpet.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2

Thanks!

T.

2 Answers

0 votes
by (3.4k points)
selected by
 
Best answer

Hi,

There is a bug indeed when adding a new ionic model.

I opened a merge request which should solve it.

In the meantime, can you try again using the branch that was created for this issue?

You can clone it by using `git clone -b fix_add_imp https://git.opencarp.org/openCARP/openCARP.git`

The fix will now be integrated to the master branch.

by (1.3k points)
Cool! Thanks Marie! That works now!
0 votes
by (17.5k points)
Hi Teo,

I suppose it's a conflict with old generated build files. Can you try to compile with a clean build directory?
by (1.3k points)
edited by
Hi Axel,

Thanks for your reply. I did compile with a clean build directory:
1. cloned git repo
2. I have added my model to the physics/limpet/models folder
3.  added the name of my model to the imp_list.txt.
4. Created the build folder with cmake.
`cmake -S. -B_build -DDLOPEN=ON -DBUILD_EXTERNAL=ON -DCMAKE_BUILD_TYPE=Release`

Alternatively to step 3 and 4. I also tried with doing `cmake -S. -B_build -DUPDATE_IMPLIST=ON -DDLOPEN=ON -DBUILD_EXTERNAL=ON -DCMAKE_BUILD_TYPE=Release` (note the -DUPDATE_IMPLIST=ON)

5. `cmake --build _build

I can happily send you my model file if you want to try to reproduce it.
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
...