From 07f7c611eb33dc359b4b85f501baa8f8484c9973 Mon Sep 17 00:00:00 2001 From: piacibel <cyrille.piacibello@inria.fr> Date: Wed, 21 Oct 2015 16:40:09 +0200 Subject: [PATCH] Added the example inside thetestChebInterface --- Addons/CKernelApi/Tests/testChebInterface.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Addons/CKernelApi/Tests/testChebInterface.c b/Addons/CKernelApi/Tests/testChebInterface.c index be05d25ee..5fe3b5cc6 100644 --- a/Addons/CKernelApi/Tests/testChebInterface.c +++ b/Addons/CKernelApi/Tests/testChebInterface.c @@ -66,6 +66,15 @@ void cheb_resetCell(int level, long long morton_index, int* tree_position, ChebCell_reset(level,morton_index,tree_position,spatial_position,userCell,userData); } +/** + * This function is mainly a display of its args... + */ +void on_leaf(int level, FSize nbParts, const FSize * idxParts, long long morton_index, double center[3], + void * cellDatas, void * userDatas){ + printf("I'm leaf at %lld pos, of center [%e %e %e], containing %lld parts\n", + morton_index,center[0],center[1],center[2],nbParts); +} + /** @@ -219,6 +228,9 @@ int main(int argc, char ** av){ int ite=0, max_ite=1; while(ite<max_ite){ //Execute FMM + + scalfmm_apply_on_leaf(handle,on_leaf); + tic(&interface_timer); scalfmm_execute_fmm(handle/*, kernel, &my_data*/); tac(&interface_timer); -- GitLab