diff --git a/example/Numerics/PSE/0_Derivative_approx_1D/main.cpp b/example/Numerics/PSE/0_Derivative_approx_1D/main.cpp index f4bd61367afee74896c29c72e9622bb8232fce63..0116c627fe65af7cb0e131bb5d52fcb9b1720808 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 63453808f06d6e93fe864b3a8456eb7a4927d39d..a5a8b2adf26b89645071881d3af339ea9b510cda 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 df0f493ca75a81ecec8ff1017773cca511c3a316..38937a3773fd7e153b50286ee0f867a1da06fbcb 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 fe3892b1d28f018ffa327cc6c63245db28bd21fd..a05c39e297f35d965b497ef04c11d0fadd42ab25 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(); }