FlexELA
Loading...
Searching...
No Matches
src
output
vtm.h
1
#ifndef VTM_H
2
#define VTM_H
3
4
#include "../svector/svector.h"
5
#include "output.h"
6
7
namespace
output
{
8
9
class
VolumeTrackingMatrix
{
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
17
~VolumeTrackingMatrix
();
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
output::VolumeTrackingMatrix
Definition
vtm.h:9
svec::SVector
A container for sparse vectors.
Definition
svector.h:25
output
For writing the volume tracking matrix (VTM) and volume vector (vv)
Definition
asciilog.h:10
output::Int_BinType
uint32_t Int_BinType
Definition
output.h:21
svec::Value
double Value
Definition
types.h:21
Declan B. Gaylo
© 2024. Documentation generated with
doxygen
.
Source Code