ruoxi-wang / BBFMM3D

Other
23 stars 13 forks source link

FMM computation doesn't work when looped. (Maybe I'm wrong here) #5

Closed vktsn0303 closed 6 years ago

vktsn0303 commented 6 years ago

Hello Ruoxi Wang,

In the binary_file_mykernel.cpp program I need to loop the statement H2_3D_Compute<myKernel> compute(&Atree, field, source, Ns, Nf, q,m, stress); using a for loop. When I do it I get an error that says: 'Segementation fault (core dumped)' . The error occurs even when the following is used:

for (int i=0; i<10; i++)
{
H2_3D_Compute<myKernel> compute(&Atree, field, source, Ns, Nf, q,m, stress);
}

Is this supposed to throw an error or is it just an error in the program?

Thanks vktsn0303

vktsn0303 commented 6 years ago

I'm guessing it has to do a pre-computation step (build the tree) every time it computes the matrix-vector product. Please let me know if I am right.

Thanks vktsn0303