Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seg fault in data extraction #5

Open
mickyaero opened this issue Aug 4, 2017 · 1 comment
Open

Seg fault in data extraction #5

mickyaero opened this issue Aug 4, 2017 · 1 comment
Assignees

Comments

@mickyaero
Copy link
Owner

mickyaero commented Aug 4, 2017

The seg fault is most probably due to the wrong dimension

2017-08-03

f[i] is being accessed but variable i is of type size_t and the for loop is iterating over dimension and the size of the dimension is huge (6729915426273446717) which is beyond the limit of size_t and hence seg fault. Therefore the dimension needs to be corrected and that will resolve the issue hopefully.

@dilawar
Copy link
Collaborator

dilawar commented Aug 4, 2017

The dimension should be generated from VoxelPools object. Each VoxelPool has its won system of ODE ( BoostSys); there you need to figure out how to extract the dimension of dydt, dy vector.

See the file ksolve/VoxelPool.cpp https://github.com/BhallaLab/moose-core/blob/master/ksolve/VoxelPools.cpp .

In short, the problem is how to get dimension of ODE from VoxelPools ?

To start with

  • Go to master branch and put some printf statement in VoxelPools process function. How to compute the size of matrix ? Number of species you can get by reading the size of vector of species.

I am writing this from memory. Few names may be different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants