Med Memory Users' Guide 5.1.3

Constructors

Functions

 MEDMEM::GRID::GRID (const std::vector< std::vector< double > > &xyz_array, const std::vector< std::string > &coord_name, const std::vector< std::string > &coord_unit, const MED_EN::med_grid_type type=MED_EN::MED_CARTESIAN)

Detailed Description

These methods are the different constructors for the grid objects.


Function Documentation

GRID::GRID ( const std::vector< std::vector< double > > &  xyz_array,
const std::vector< std::string > &  coord_name,
const std::vector< std::string > &  coord_unit,
const MED_EN::med_grid_type  type = MED_EN::MED_CARTESIAN 
) [inherited]

Constructor specifying the axes of the grid.

This constructor describes the grid by specifying the location of the nodes on each of the axis. The dimension of the grid is implicitly defined by the size of vector xyz_array.

Parameters:
xyz_arrayspecifies the node coordinates for each direction
coord_namenames of the different coordinates
coord_unitnames of the different coordinate units
typegrid type (MED_POLAR, MED_CARTESIAN)

References MEDMEM::MESH::_coordinate, MEDMEM::GRID::_gridType, MEDMEM::GRID::_iArray, MEDMEM::GRID::_iArrayLength, MEDMEM::GRID::_is_connectivity_filled, MEDMEM::GRID::_is_coordinates_filled, MEDMEM::GRID::_is_default_gridType, MEDMEM::MESH::_isAGrid, MEDMEM::GRID::_jArray, MEDMEM::GRID::_jArrayLength, MEDMEM::GRID::_kArray, MEDMEM::GRID::_kArrayLength, MEDMEM::MESH::_meshDimension, MEDMEM::MESH::_numberOfNodes, MEDMEM::MESH::_spaceDimension, and MEDMEM::GRID::init().