Commit d07c3c78 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Changing vcluster initialization

parent b5dbab02
...@@ -250,7 +250,7 @@ public: ...@@ -250,7 +250,7 @@ public:
// Check if the file is open // Check if the file is open
if (ofs.is_open() == false) if (ofs.is_open() == false)
{std::cerr << "Error cannot create the CSV file: " + file;} {std::cerr << "Error " << __FILE__ << ":" << __LINE__ << " cannot create the CSV file: " << file << std::endl;}
ofs << csv_header << point_data; ofs << csv_header << point_data;
......
...@@ -135,7 +135,7 @@ public: ...@@ -135,7 +135,7 @@ public:
*/ */
template<typename VPos, typename VPrp, int ... prp > bool write(const std::string & file, openfpm::vector<VPos> & v_pos, openfpm::vector<VPrp> & v_prp, size_t stop) template<typename VPos, typename VPrp, int ... prp > bool write(const std::string & file, openfpm::vector<VPos> & v_pos, openfpm::vector<VPrp> & v_prp, size_t stop)
{ {
Vcluster & v_cl = *global_v_cluster; Vcluster & v_cl = create_vcluster();
// Open and HDF5 file in parallel // Open and HDF5 file in parallel
......
...@@ -1116,7 +1116,7 @@ public: ...@@ -1116,7 +1116,7 @@ public:
template<int prp = -1> bool write(std::string file, std::string graph_name = "Graph", file_type ft = file_type::ASCII) template<int prp = -1> bool write(std::string file, std::string graph_name = "Graph", file_type ft = file_type::ASCII)
{ {
Vcluster & v_cl = *global_v_cluster; Vcluster & v_cl = create_vcluster();
g.deleteGhosts(); g.deleteGhosts();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment