Dendro  5.01
Dendro in Greek language means tree. The Dendro library is a large scale (262K cores on ORNL's Titan) distributed memory adaptive octree framework. The main goal of Dendro is to perform large scale multiphysics simulations efficeiently in mordern supercomputers. Dendro consists of efficient parallel data structures and algorithms to perform variational ( finite element) methods and finite difference mthods on 2:1 balanced arbitary adaptive octrees which enables the users to perform simulations raning from black holes (binary black hole mergers) to blood flow in human body, where applications ranging from relativity, astrophysics to biomedical engineering.
dendroIO.h
1 //
2 // Created by milinda on 12/15/16.
3 //
4 
15 #ifndef SFCSORTBENCH_DENDROIO_H
16 #define SFCSORTBENCH_DENDROIO_H
17 
18 #include "TreeNode.h"
19 #include <algorithm>
20 #include <iostream>
21 #include <fstream>
22 #include <vector>
23 #include <sstream>
24 #include "assert.h"
25 
26 
27 // Files to handle raw data.
28 
29 namespace IO{
30 
37 int readPtsFromFile(char* filename, std::vector<double>& pts);
38 
46 int readDataPtsFromFile(char* filename, std::vector<double>& pts, std::vector<double>& ptVals);
47 
54 int writePtsToFile(char* filename, std::vector<double>& pts);
55 
63 int writeDataPtsToFile(char* filename, std::vector<double>& pts, std::vector<double>& data);
64 
65 
72 int writeNodesToFile (char* filename, const std::vector<ot::TreeNode> & nodes);
73 
80 int readNodesFromFile (char* filename,std::vector<ot::TreeNode > & nodes );
81 
82 
83 
84 };
85 
86 
87 
88 #endif //SFCSORTBENCH_DENDROIO_H
int readPtsFromFile(char *filename, std::vector< double > &pts)
Reads a list of points from a file.
Definition: dendroIO.cpp:8
Definition: dendroIO.h:29
int readNodesFromFile(char *filename, std::vector< ot::TreeNode > &nodes)
Reads a list of octants from a file.
Definition: dendroIO.cpp:102
int writeDataPtsToFile(char *filename, std::vector< double > &pts, std::vector< double > &data)
Writes a list of points and corresponding values from a file.
Definition: dendroIO.cpp:85
int writePtsToFile(char *filename, std::vector< double > &pts)
Writes a list of points to a file.
Definition: dendroIO.cpp:67
int writeNodesToFile(char *filename, const std::vector< ot::TreeNode > &nodes)
Writes a list of octants to a file.
Definition: dendroIO.cpp:124
int readDataPtsFromFile(char *filename, std::vector< double > &pts, std::vector< double > &ptVals)
Reads a list of points and corresponding values from a file.
Definition: dendroIO.cpp:39