From 5af36978004ad808271e840bfde1c5378ebf2abc Mon Sep 17 00:00:00 2001 From: Pietro Incardona <i-bird@localhost.localdomain> Date: Thu, 14 Apr 2016 00:51:44 +0200 Subject: [PATCH] Fixing examples --- example/Numerics/PSE/0_Derivative_approx_1D/main.cpp | 6 +++--- .../PSE/1_Derivative_approx_1D_mp/main_float128.cpp | 6 +++--- example/Numerics/PSE/1_Diffusion_1D/main.cpp | 6 +++--- example/VCluster/0_simple/main.cpp | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/example/Numerics/PSE/0_Derivative_approx_1D/main.cpp b/example/Numerics/PSE/0_Derivative_approx_1D/main.cpp index f4bd6136..0116c627 100644 --- a/example/Numerics/PSE/0_Derivative_approx_1D/main.cpp +++ b/example/Numerics/PSE/0_Derivative_approx_1D/main.cpp @@ -86,8 +86,8 @@ int main(int argc, char* argv[]) // Here we Initialize the library and we define Ghost size // and non-periodic boundary conditions // - init_global_v_cluster(&argc,&argv); - Vcluster & v_cl = *global_v_cluster; + openfpm_init(&argc,&argv); + Vcluster & v_cl = create_vcluster(); size_t bc[1]={NON_PERIODIC}; Ghost<1,double> g(12*eps); @@ -304,5 +304,5 @@ int main(int argc, char* argv[]) // // Deinitialize the library // - delete_global_v_cluster(); + openfpm_finalize(); } diff --git a/example/Numerics/PSE/1_Derivative_approx_1D_mp/main_float128.cpp b/example/Numerics/PSE/1_Derivative_approx_1D_mp/main_float128.cpp index 63453808..a5a8b2ad 100644 --- a/example/Numerics/PSE/1_Derivative_approx_1D_mp/main_float128.cpp +++ b/example/Numerics/PSE/1_Derivative_approx_1D_mp/main_float128.cpp @@ -89,8 +89,8 @@ int main(int argc, char* argv[]) // Here we Initialize the library and we define Ghost size // and non-periodic boundary conditions // - init_global_v_cluster(&argc,&argv); - Vcluster & v_cl = *global_v_cluster; + openfpm_init(&argc,&argv); + Vcluster & v_cl = create_vcluster(); size_t bc[1]={NON_PERIODIC}; Ghost<1,float128> g(12*eps); @@ -308,5 +308,5 @@ int main(int argc, char* argv[]) // // Deinitialize the library // - delete_global_v_cluster(); + openfpm_finalize(); } diff --git a/example/Numerics/PSE/1_Diffusion_1D/main.cpp b/example/Numerics/PSE/1_Diffusion_1D/main.cpp index df0f493c..38937a37 100644 --- a/example/Numerics/PSE/1_Diffusion_1D/main.cpp +++ b/example/Numerics/PSE/1_Diffusion_1D/main.cpp @@ -139,8 +139,8 @@ int main(int argc, char* argv[]) // Here we Initialize the library and we define Ghost size // and non-periodic boundary conditions // - init_global_v_cluster(&argc,&argv); - Vcluster & v_cl = *global_v_cluster; + openfpm_init(&argc,&argv); + Vcluster & v_cl = create_vcluster(); size_t bc[1]={NON_PERIODIC}; Ghost<1,double> g(12*eps); @@ -370,5 +370,5 @@ int main(int argc, char* argv[]) // // Deinitialize the library // - delete_global_v_cluster(); + openfpm_finalize(); } diff --git a/example/VCluster/0_simple/main.cpp b/example/VCluster/0_simple/main.cpp index fe3892b1..a05c39e2 100644 --- a/example/VCluster/0_simple/main.cpp +++ b/example/VCluster/0_simple/main.cpp @@ -22,7 +22,7 @@ int main(int argc, char* argv[]) // // Initialize the library and several objects // - init_global_v_cluster(&argc,&argv); + openfpm_init(&argc,&argv); // // ### WIKI 3 ### @@ -30,7 +30,7 @@ int main(int argc, char* argv[]) // Get the vcluster object and the number of processor // - Vcluster & v_cl = *global_v_cluster; + Vcluster & v_cl = create_vcluster(); size_t N_prc = v_cl.getProcessingUnits(); // @@ -173,5 +173,5 @@ int main(int argc, char* argv[]) std::cout << v_two.get(i); } - delete_global_v_cluster(); + openfpm_finalize(); } -- GitLab