MOAB: Mesh Oriented datABase
(version 5.2.1)
|
00001 /** 00002 * MOAB, a Mesh-Oriented datABase, is a software component for creating, 00003 * storing and accessing finite element mesh data. 00004 * 00005 * Copyright 2004 Sandia Corporation. Under the terms of Contract 00006 * DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government 00007 * retains certain rights in this software. 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU Lesser General Public 00011 * License as published by the Free Software Foundation; either 00012 * version 2.1 of the License, or (at your option) any later version. 00013 * 00014 */ 00015 00016 #include "ScdVertexData.hpp" 00017 #include <assert.h> 00018 00019 namespace moab 00020 { 00021 00022 //! constructor 00023 ScdVertexData::ScdVertexData( const EntityHandle start_vertex, const int imin, const int jmin, const int kmin, 00024 const int imax, const int jmax, const int kmax ) 00025 : SequenceData( 3, start_vertex, 00026 start_vertex + ( imax - imin + 1 ) * ( jmax - jmin + 1 ) * ( kmax - kmin + 1 ) - 1 ) 00027 { 00028 // need to have meaningful parameters 00029 assert( imax >= imin && jmax >= jmin && kmax >= kmin ); 00030 00031 vertexParams[0] = HomCoord( imin, jmin, kmin ); 00032 vertexParams[1] = HomCoord( imax, jmax, kmax ); 00033 vertexParams[2] = HomCoord( 1, 1, 1 ); 00034 00035 dIJK[0] = imax - imin + 1; 00036 dIJK[1] = jmax - jmin + 1; 00037 dIJK[2] = kmax - kmin + 1; 00038 dIJKm1[0] = dIJK[0] - 1; 00039 dIJKm1[1] = dIJK[1] - 1; 00040 dIJKm1[2] = dIJK[2] - 1; 00041 00042 create_sequence_data( 0, sizeof( double ) ); 00043 create_sequence_data( 1, sizeof( double ) ); 00044 create_sequence_data( 2, sizeof( double ) ); 00045 } 00046 00047 SequenceData* ScdVertexData::subset( EntityHandle /*start*/, EntityHandle /*end*/, const int* /*sequence_data_sizes*/, 00048 const int* /*tag_data_sizes*/ ) const 00049 { 00050 return 0; 00051 } 00052 00053 } // namespace moab