Version: 5.1.6

INTERP_TEST.PerfTestToolkit Class Reference

Specialization of MeshTestToolkit for the purposes of performance testing. More...

Inheritance diagram for INTERP_TEST.PerfTestToolkit:
Inheritance graph

Public Member Functions

void calcIntersectionMatrix (const char *mesh1path, const char *mesh1, const char *mesh2path, const char *mesh2, IntersectionMatrix &m)
 Calculates the intersection matrix for two meshes.
std::pair< int, intcountNumberOfMatrixEntries (const IntersectionMatrix &m)
 Counts the number of elements in an intersection matrix, and the number of these which are non-zero.

Detailed Description

Specialization of MeshTestToolkit for the purposes of performance testing.


Member Function Documentation

void INTERP_TEST.PerfTestToolkit.calcIntersectionMatrix ( const char *  mesh1path,
const char *  mesh1,
const char *  mesh2path,
const char *  mesh2,
IntersectionMatrix m 
)

Calculates the intersection matrix for two meshes.

Outputs the names of the meshes intersected, the number of elements in each mesh, the number of matrix elements and the number of non-zero matrix elements, etc. These values help to determine how well the filtering algorithm is working.

Parameters:
mesh1path the path to the file containing the source mesh, relative to {$MED_ROOT_DIR}/share/salome/resources/med/
mesh1 the name of the source mesh
mesh2path the path to the file containing the target mesh, relative to {$MED_ROOT_DIR}/share/salome/resources/med/
mesh2 the name of the target mesh
m intersection matrix in which to store the result of the intersection

References INTERP_TEST.PerfTestToolkit.countNumberOfMatrixEntries(), INTERP_TEST.getResourceFile(), LOG, and MEDMEM.MED_DRIVER.

std::pair<int,int> INTERP_TEST.PerfTestToolkit.countNumberOfMatrixEntries ( const IntersectionMatrix m  ) 

Counts the number of elements in an intersection matrix, and the number of these which are non-zero.

Parameters:
m the intersection matrix
Returns:
pair<int, int> containing as its first element the number of elements in m and as its second element the number these which are non-zero

References INTERP_KERNEL.epsilonEqual(), and INTERP_KERNEL.VOL_PREC.