Jump to content

Big array segmentation fault


ivr

Recommended Posts

Hello, everyone!

 

I'm trying to calculate some internal forces of some particles using information from 125 neighbouring voxels around each particle. For accessing those voxels, I'm using this array as a shifting index: 

 

vector sha[] = array ({ −2 , −2, −2}, {−2, −2, −1}, {−2, −2, 0} , {−2, −2, 1} ,
{−2, −2, 2} , {−2, −1, −2}, {−2, −1, −1}, {−2, −1, 0} , {−2, −1, 1} , {−2,
−1, 2} , {−2, 0 , −2}, {−2, 0 , −1}, {−2, 0 , 0} , {−2, 0 , 1} , {−2, 0 , 2} , {−2,
1 , −2}, {−2, 1 , −1}, {−2, 1 , 0} , {−2, 1 , 1} , {−2, 1 , 2} , {−2, 2 , −2},
{−2, 2 , −1}, {−2, 2 , 0} , {−2, 2 , 1} , {−2, 2 , 2} , {−1, −2, −2}, {−1, −2,
−1}, {−1, −2, 0} , {−1, −2, 1} , {−1, −2, 2} , {−1, −1, −2}, {−1, −1, −1},
{−1, −1, 0} , {−1, −1, 1} , {−1, −1, 2} , {−1, 0 , −2}, {−1, 0 , −1}, {−1, 0 ,
0} , {−1, 0 , 1} , {−1, 0 , 2} , {−1, 1 , −2}, {−1, 1 , −1}, {−1, 1 , 0} , {−1, 1 ,
1} , {−1, 1 , 2} , {−1, 2 , −2}, {−1, 2 , −1}, {−1, 2 , 0} , {−1, 2 , 1} , {−1, 2 ,
2} , {0 , −2, −2}, {0 , −2, −1}, {0 , −2, 0} , {0 , −2, 1} , {0 , −2, 2} , {0 , −1,
−2}, {0 , −1, −1}, {0 , −1, 0} , {0 , −1, 1} , {0 , −1, 2} , {0 , 0 , −2}, {0 , 0 ,
−1}, {0 , 0 , 0} , {0 , 0 , 1} , {0 , 0 , 2} , {0 , 1 , −2}, {0 , 1 , −1}, {0 , 1 , 0} ,
{0 , 1 , 1} , {0 , 1 , 2} , {0 , 2 , −2}, {0 , 2 , −1}, {0 , 2 , 0} , {0 , 2 , 1} , {0 , 2 ,
2} , {1 , −2, −2}, {1 , −2, −1}, {1 , −2, 0} , {1 , −2, 1} , {1 , −2, 2} , {1 , −1,
−2}, {1 , −1, −1}, {1 , −1, 0} , {1 , −1, 1} , {1 , −1, 2} , {1 , 0 , −2}, {1 , 0 ,
−1}, {1 , 0 , 0} , {1 , 0 , 1} , {1 , 0 , 2} , {1 , 1 , −2}, {1 , 1 , −1}, {1 , 1 , 0} ,
{1 , 1 , 1} , {1 , 1 , 2} , {1 , 2 , −2}, {1 , 2 , −1}, {1 , 2 , 0} , {1 , 2 , 1} , {1 , 2 ,
2} , {2 , −2, −2}, {2 , −2, −1}, {2 , −2, 0} , {2 , −2, 1} , {2 , −2, 2} , {2 , −1,
−2}, {2 , −1, −1}, {2 , −1, 0} , {2 , −1, 1} , {2 , −1, 2} , {2 , 0 , −2}, {2 , 0 ,
−1}, {2 , 0 , 0} , {2 , 0 , 1} , {2 , 0 , 2} , {2 , 1 , −2}, {2 , 1 , −1}, {2 , 1 , 0} ,
{2 , 1 , 1} , {2 , 1 , 2} , {2 , 2 , −2}, {2 , 2 , −1}, {2 , 2 , 0} , {2 , 2 , 1} , {2 , 2 ,
2});

 

I isolated it in a separate attribute wrangle and this was indeed what was causing the Houdini crash. Does anyone have any advice on why Houdini crashes because of this array?

 

[SOLVED] the minus signs were dashes instead, the array was fine otherwise

Edited by ivr
SOLVED
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...