src/tio_global.c
/***************************************************************************************************
 *
 * Checks whether a given section is defined for the given mesh
 *
 **************************************************************************************************/
Checks whether a given section is defined for the given mesh
Checks whether a given section is defined for the given mesh
int iTIO_CheckSection( const struct iMesh_t *tmesh,
                       const TIO_Object_t sectionID )
{
  TIO_Size_t i;
  int        found;
  if (NULL == tmesh->sectionCache) {
    return (FALSE);
  }
  for (i=0; i<tmesh->sectionCache->nlist; ++i) {
    found = (tmesh->sectionCache->sectionID[i] == sectionID);
    if (found) {
      break;
    }
  }
  return (found);
}
int iTIO_CheckSection ( const struct iMesh_t * tmesh , const TIO_Object_t sectionID ) { TIO_Size_t i ; int found ; if ( NULL == tmesh -> sectionCache ) { return ( FALSE ) ; } for ( i = 0 ; i < tmesh -> sectionCache -> nlist ; ++ i ) { found = ( tmesh -> sectionCache -> sectionID [ i ] == sectionID ) ; if ( found ) { break ; } } return ( found ) ; }
Checks whether a given section is defined for the given mesh
Checks whether a given section is defined for the given mesh