lib/io/parser.cc
/**
 ********************************************************************************************************************************************
 * \brief   Function to set the grid types along each direction based on meshType variable
 *
 *          The user specifies mesh type as a single string.
 *          This string has to be parsed to set the integer values xGrid, yGrid and zGrid.
 *          The values of these variables will determine the grid stretching along each direction appropriately.
 ********************************************************************************************************************************************
 */
\brief   Function to set the grid types along each direction based on meshType variable
The user specifies mesh type as a single string.
This string has to be parsed to set the integer values xGrid, yGrid and zGrid.
The values of these variables will determine the grid stretching along each direction appropriately.
\ brief Function to set the grid types along each direction based on meshType variable The user specifies mesh type as a single string . This string has to be parsed to set the integer values xGrid yGrid and zGrid . The values of these variables will determine the grid stretching along each direction appropriately .
void parser::setGrids() {
    xGrid = 0;
    yGrid = 0;
    zGrid = 0;
    char charMTypes[4];
    std::strcpy(charMTypes, meshType.c_str());
    switch (charMTypes[0]) {
        case 'S': xGrid = 1;
            break;
        case 'D': xGrid = 2;
            break;
    }
    switch (charMTypes[1]) {
        case 'S': yGrid = 1;
            break;
        case 'D': yGrid = 2;
            break;
    }
    switch (charMTypes[2]) {
        case 'S': zGrid = 1;
            break;
        case 'D': zGrid = 2;
            break;
    }
}
void parser :: setGrids ( ) { xGrid = 0 ; yGrid = 0 ; zGrid = 0 ; char charMTypes [ 4 ] ; std :: strcpy ( charMTypes , meshType . c_str ( ) ) ; switch ( charMTypes [ 0 ] ) { case ' ' : xGrid = 1 ; break ; case ' ' : xGrid = 2 ; break ; } switch ( charMTypes [ 1 ] ) { case ' ' : yGrid = 1 ; break ; case ' ' : yGrid = 2 ; break ; } switch ( charMTypes [ 2 ] ) { case ' ' : zGrid = 1 ; break ; case ' ' : zGrid = 2 ; break ; } }
\brief   Function to set the grid types along each direction based on meshType variable
          The user specifies mesh type as a single string.
\ brief Function to set the grid types along each direction based on meshType variable The user specifies mesh type as a single string .
// The integer values xGrid, yGrid and zGrid are set as below: // 0 - uniform grid // 1 - single-sided tangent-hyperbolic stretching // 2 - double-sided tangent-hyperbolic stretching