1 #ifndef DIAGNOSTICS_HPP_
2 #define DIAGNOSTICS_HPP_
8 #include "../athena_arrays.hpp"
9 #include "../mesh/mesh.hpp"
29 template <
typename Dg>
33 while (
p->next !=
nullptr)
p =
p->next;
36 p->next->next =
nullptr;
61 void setColor_(
int *color, CoordinateDirection dir);
virtual ~AngularMomentum()
void Finalize(AthenaArray< Real > const &w)
AngularMomentum(MeshBlock *pmb)
void Finalize(AthenaArray< Real > const &w)
AthenaArray< Real > v2f3_
AthenaArray< Real > v3f2_
AthenaArray< Real > v1f2_
void Finalize(AthenaArray< Real > const &w)
AthenaArray< Real > v3f1_
AthenaArray< Real > v1f3_
AthenaArray< Real > v2f1_
void gatherAllData23_(AthenaArray< Real > &total_vol, AthenaArray< Real > &total_data)
AthenaArray< Real > x2area_p1_
virtual void Finalize(AthenaArray< Real > const &w)
virtual void Progress(AthenaArray< Real > const &w)
AthenaArray< Real > x3edge_p1_
AthenaArray< Real > mean_
mean and eddy component
void setColor_(int *color, CoordinateDirection dir)
std::vector< int > color_
MPI color of each rank.
AthenaArray< Real > x2edge_p1_
AthenaArray< Real > x3area_
Diagnostics(MeshBlock *pmb, ParameterInput *pin)
AthenaArray< Real > x1area_
scratch geometric arrays
AthenaArray< Real > eddy_
Diagnostics * AddDiagnostics(Dg const &d)
AthenaArray< Real > x1edge_
std::vector< int > brank_
rank of the bottom block
AthenaArray< Real > x2edge_
AthenaArray< Real > x3edge_
AthenaArray< Real > x1edge_p1_
AthenaArray< Real > x2area_
AthenaArray< Real > x3area_p1_
Diagnostics * operator[](std::string name)
AthenaArray< Real > total_vol_
AthenaArray< Real > v3f3_
AthenaArray< Real > v2f2_
Divergence(MeshBlock *pmb)
void Finalize(AthenaArray< Real > const &w)
AthenaArray< Real > v1f1_
void Finalize(AthenaArray< Real > const &w)
void Progress(AthenaArray< Real > const &w)
virtual ~EddyKineticEnergy()
EddyKineticEnergy(MeshBlock *pmb)
void Finalize(AthenaArray< Real > const &w)
AthenaArray< Real > v2f2_
AthenaArray< Real > v3f3_
HorizontalDivergence(MeshBlock *pmb)
virtual ~HorizontalDivergence()
void Finalize(AthenaArray< Real > const &w)
void Progress(AthenaArray< Real > const &w)
HydroFlux(MeshBlock *pmb)
void Finalize(AthenaArray< Real > const &w)
void Finalize(AthenaArray< Real > const &w)
HydroMean(MeshBlock *pmb)
void Progress(AthenaArray< Real > const &w)
void Finalize(AthenaArray< Real > const &w)
PressureAnomaly(MeshBlock *pmb)
virtual ~PressureAnomaly()
void Finalize(AthenaArray< Real > const &w)
void Progress(AthenaArray< Real > const &w)
RadiativeFlux(MeshBlock *pmb)
void Finalize(AthenaArray< Real > const &w)
virtual ~TemperatureAnomaly()
TemperatureAnomaly(MeshBlock *pmb)
void Finalize(AthenaArray< Real > const &w)