Commit 88dee2bb authored by incardon's avatar incardon

Update data to use the latest modules

parent 4d296cbe
......@@ -118,7 +118,15 @@ int main(int argc, char* argv[])
v_cl.execute();
//
// ### WIKI 14 ###
// ### WIKI 9 ###
//
// Output the particle position for each processor
//
vd.write("output");
//
// ### WIKI 10 ###
//
// Deinitialize the library
//
......
openfpm_data @ a05857e3
Subproject commit 08dd51a9c1a9ecf4317d9f4d68f8d55ae81b70f3
Subproject commit a05857e34fe1ddfc266d8ae80e8c4d673be88d00
openfpm_vcluster @ 3e846786
Subproject commit 54fcd2aeb78744c3b4f085d8f58b86cb8e325e52
Subproject commit 3e846786367e20cf01e7658af9c1ec4c277c6ce3
......@@ -749,18 +749,13 @@ public:
*/
inline bool write(std::string out, int opt = NO_GHOST)
{
if (hasEnding(out,".csv"))
{
// CSVWriter test
CSVWriter<openfpm::vector<Point<dim,St>>, openfpm::vector<prop> > csv_writer;
std::string output = std::to_string(v_cl.getProcessUnitID()) + std::string("_") + out;
// CSVWriter test
CSVWriter<openfpm::vector<Point<dim,St>>, openfpm::vector<prop> > csv_writer;
// Write the CSV
return csv_writer.write(output,v_pos.get(INTERNAL),v_prp.get(INTERNAL));
}
std::string output = std::to_string(out + std::to_string(v_cl.getProcessUnitID()) + std::to_string(".csv"));
return false;
// Write the CSV
return csv_writer.write(output,v_pos.get(INTERNAL),v_prp.get(INTERNAL));
}
};
......
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