#include <AMRStatistics.h>
Public Types | |
typedef base::vec_grid_fct_type | vec_grid_fct_type |
typedef GridFunction< DataType, dim > | grid_fct_type |
Public Member Functions | |
AMRStatistics (InterpolationType *int_ref, OutputType *out_ref) | |
void | Setup (GridHierarchy *gh, const int &ghosts, int *shape, double *geom) |
virtual void | register_at (ControlDevice &Ctrl) |
virtual void | register_at (ControlDevice &Ctrl, const std::string &prefix) |
~AMRStatistics () | |
virtual void | CalcStat (int OpType, int Lpoints, double *adata, double *result) |
virtual void | CalcGradient (int groupNum, int *dir, int nvars, int Lpoints, int na, int nb, std::vector< std::vector< point_type > > cdata, std::vector< std::vector< double > > vdata, int nstep, double *t, std::ostream *out, int curl, int wv, int uw, int vu) |
void | Evaluate (double *t, vec_grid_fct_type &U, grid_fct_type &Work) |
typedef GridFunction<DataType,dim> AMRStatistics< VectorType, InterpolationType, OutputType, dim >::grid_fct_type |
typedef base::vec_grid_fct_type AMRStatistics< VectorType, InterpolationType, OutputType, dim >::vec_grid_fct_type |
Reimplemented from AMRBase< VectorType, dim >.
AMRStatistics< VectorType, InterpolationType, OutputType, dim >::AMRStatistics | ( | InterpolationType * | int_ref, | |
OutputType * | out_ref | |||
) | [inline] |
References MAXGRADS, MAXPERVAR, and MAXSTATOPS.
AMRStatistics< VectorType, InterpolationType, OutputType, dim >::~AMRStatistics | ( | ) | [inline] |
virtual void AMRStatistics< VectorType, InterpolationType, OutputType, dim >::CalcGradient | ( | int | groupNum, | |
int * | dir, | |||
int | nvars, | |||
int | Lpoints, | |||
int | na, | |||
int | nb, | |||
std::vector< std::vector< point_type > > | cdata, | |||
std::vector< std::vector< double > > | vdata, | |||
int | nstep, | |||
double * | t, | |||
std::ostream * | out, | |||
int | curl, | |||
int | wv, | |||
int | uw, | |||
int | vu | |||
) | [inline, virtual] |
-dir, center, +dir
curl of velocity given keys { r,u,v,w,... }
References CurrentTime(), AMRBase< VectorType, dim >::GH(), and MINFIN.
Referenced by AMRStatistics< VectorType, InterpolationType, OutputType, dim >::Evaluate().
virtual void AMRStatistics< VectorType, InterpolationType, OutputType, dim >::CalcStat | ( | int | OpType, | |
int | Lpoints, | |||
double * | adata, | |||
double * | result | |||
) | [inline, virtual] |
void AMRStatistics< VectorType, InterpolationType, OutputType, dim >::Evaluate | ( | double * | t, | |
vec_grid_fct_type & | U, | |||
grid_fct_type & | Work | |||
) | [inline] |
open output file
write time header
for each group
for each probe
References bbox(), BeginFastIndex2, BeginFastIndex3, GridFunction< GFType, dim >::boundingbbox(), StatParser< InterpolationType::point_type, VectorType::InternalDataType, dim >::buildcoords(), AMRStatistics< VectorType, InterpolationType, OutputType, dim >::CalcGradient(), AMRStatistics< VectorType, InterpolationType, OutputType, dim >::CalcStat(), StatParser< InterpolationType::point_type, VectorType::InternalDataType, dim >::clearcoords(), StatParser::clonestack(), comm_service::comm(), CurrentTime(), EndFastIndex2, EndFastIndex3, FastIndex2, FastIndex3, FineLevel(), for_2, for_3, forall, AMRBase< VectorType, dim >::GH(), StatParser< InterpolationType::point_type, VectorType::InternalDataType, dim >::group_table, if(), _symrec< data_type >::iptr, comm_service::log(), MAXSTATOPS, me, MY_PROC, _symrec< data_type >::next, p, _symrec< data_type >::pdata, _symrec< data_type >::prev, _symrec< data_type >::ptr, _symrec< data_type >::ref, RETURN_OK, _symrec< data_type >::src, STAT_AVERAGED, STAT_DERIVED, STAT_RAW, staterror(), stepsize(), StepsTaken(), TOK_COORDINATE, TOK_DOUBLE, TOK_FUNCTION1, TOK_FUNCTION2, TOK_OP_DIV, TOK_OP_MINUS, TOK_OP_NEG, TOK_OP_PLUS, TOK_OP_POWER, TOK_OP_PROD, TOK_PLANES, TOK_POINTER, TOK_SEPARATOR, TOK_SURFACE, TOK_THREAD, TOK_VARIABLE, TOK_VARINARRAY, TOK_VOLUME, StatParser::token(), _symrec< data_type >::type, StatParser< InterpolationType::point_type, VectorType::InternalDataType, dim >::unlinksym(), _symrec< data_type >::vdata, StatParser< InterpolationType::point_type, VectorType::InternalDataType, dim >::vectorize(), and VizServer.
virtual void AMRStatistics< VectorType, InterpolationType, OutputType, dim >::register_at | ( | ControlDevice & | Ctrl, | |
const std::string & | prefix | |||
) | [inline, virtual] |
Reimplemented from AMRBase< VectorType, dim >.
References ControlDevice::getSubDevice(), MAXGRADS, MAXGROUPS, MAXPERVAR, MAXSTATOPS, and RegisterAt().
virtual void AMRStatistics< VectorType, InterpolationType, OutputType, dim >::register_at | ( | ControlDevice & | Ctrl | ) | [inline, virtual] |
Reimplemented from AMRBase< VectorType, dim >.
References AMRStatistics< VectorType, InterpolationType, OutputType, dim >::register_at().
Referenced by AMRStatistics< VectorType, InterpolationType, OutputType, dim >::register_at().
void AMRStatistics< VectorType, InterpolationType, OutputType, dim >::Setup | ( | GridHierarchy * | gh, | |
const int & | ghosts, | |||
int * | shape, | |||
double * | geom | |||
) | [inline] |
Process the rack definition file
if any group did not specify step sampling rate, then set it to default common value
write probe information: coordinates
for each probe
References StatParser< InterpolationType::point_type, VectorType::InternalDataType, dim >::buildcoords(), StatParser< InterpolationType::point_type, VectorType::InternalDataType, dim >::clearcoords(), _symrec< data_type >::dvalue, AMRBase< VectorType, dim >::GH(), StatParser< InterpolationType::point_type, VectorType::InternalDataType, dim >::group_table, if(), _symrec< data_type >::iptr, _symrec< data_type >::ivalue, MAXGROUPS, MaxLevel(), MAXPERVAR, me, MY_PROC, NVARS, p, StatParser::parse(), StatParser< InterpolationType::point_type, VectorType::InternalDataType, dim >::putsym(), RefineFactor(), RETURN_OK, AMRBase< VectorType, dim >::SetupData(), _symrec< data_type >::src, STAT_DERIVED, STAT_NX, STAT_NXF, STAT_NY, STAT_NYF, STAT_NZ, STAT_NZF, STAT_XMAX, STAT_XMIN, STAT_YMAX, STAT_YMIN, STAT_ZMAX, STAT_ZMIN, TOK_DOUBLE, TOK_INTEGER, TOK_PLANES, TOK_SURFACE, TOK_THREAD, TOK_VARIABLE, TOK_VARINARRAY, _symrec< data_type >::vdata, and VizServer.