FlexELA
Loading...
Searching...
No Matches
vtm.h
1#ifndef VTM_H
2#define VTM_H
3
4#include "../svector/svector.h"
5#include "output.h"
6
7namespace output {
8
10 public:
11#ifdef ELA_USE_MPI
12 VolumeTrackingMatrix(const int& rowCount, MPI_Comm comm);
13#else
14 VolumeTrackingMatrix(const int& rowCount);
15#endif
16
18
19 void addCell(const Int_BinType& label, const svec::Value& volume, const svec::SVector& s);
20
21 void finalize();
22
23 void write(const char* filename);
24
25 void writeToLog(const char* filename, const double& t_num, const double& time);
26
27 private:
28#ifdef ELA_USE_MPI
29 const MPI_Comm comm;
30 int rank;
31#endif
32 const int rc;
33 svec::SVector* const row;
34};
35
36} // namespace output
37
38#endif
A container for sparse vectors.
Definition svector.h:25
For writing the volume tracking matrix (VTM) and volume vector (vv)
Definition asciilog.h:10
uint32_t Int_BinType
Definition output.h:21
double Value
Definition types.h:21