LCOV - code coverage report
Current view: top level - src - ScdVertexData.cpp (source / functions) Hit Total Coverage
Test: coverage_sk.info Lines: 16 18 88.9 %
Date: 2020-12-16 07:07:30 Functions: 1 2 50.0 %
Branches: 15 28 53.6 %

           Branch data     Line data    Source code
       1                 :            : /**
       2                 :            :  * MOAB, a Mesh-Oriented datABase, is a software component for creating,
       3                 :            :  * storing and accessing finite element mesh data.
       4                 :            :  *
       5                 :            :  * Copyright 2004 Sandia Corporation.  Under the terms of Contract
       6                 :            :  * DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government
       7                 :            :  * retains certain rights in this software.
       8                 :            :  *
       9                 :            :  * This library is free software; you can redistribute it and/or
      10                 :            :  * modify it under the terms of the GNU Lesser General Public
      11                 :            :  * License as published by the Free Software Foundation; either
      12                 :            :  * version 2.1 of the License, or (at your option) any later version.
      13                 :            :  *
      14                 :            :  */
      15                 :            : 
      16                 :            : #include "ScdVertexData.hpp"
      17                 :            : #include <assert.h>
      18                 :            : 
      19                 :            : namespace moab
      20                 :            : {
      21                 :            : 
      22                 :            : //! constructor
      23                 :         31 : ScdVertexData::ScdVertexData( const EntityHandle start_vertex, const int imin, const int jmin, const int kmin,
      24                 :            :                               const int imax, const int jmax, const int kmax )
      25                 :            :     : SequenceData( 3, start_vertex,
      26 [ +  - ][ +  + ]:        124 :                     start_vertex + ( imax - imin + 1 ) * ( jmax - jmin + 1 ) * ( kmax - kmin + 1 ) - 1 )
      27                 :            : {
      28                 :            :     // need to have meaningful parameters
      29 [ +  - ][ +  - ]:         31 :     assert( imax >= imin && jmax >= jmin && kmax >= kmin );
                 [ -  + ]
      30                 :            : 
      31 [ +  - ][ +  - ]:         31 :     vertexParams[0] = HomCoord( imin, jmin, kmin );
      32 [ +  - ][ +  - ]:         31 :     vertexParams[1] = HomCoord( imax, jmax, kmax );
      33 [ +  - ][ +  - ]:         31 :     vertexParams[2] = HomCoord( 1, 1, 1 );
      34                 :            : 
      35                 :         31 :     dIJK[0]   = imax - imin + 1;
      36                 :         31 :     dIJK[1]   = jmax - jmin + 1;
      37                 :         31 :     dIJK[2]   = kmax - kmin + 1;
      38                 :         31 :     dIJKm1[0] = dIJK[0] - 1;
      39                 :         31 :     dIJKm1[1] = dIJK[1] - 1;
      40                 :         31 :     dIJKm1[2] = dIJK[2] - 1;
      41                 :            : 
      42         [ +  - ]:         31 :     create_sequence_data( 0, sizeof( double ) );
      43         [ +  - ]:         31 :     create_sequence_data( 1, sizeof( double ) );
      44         [ +  - ]:         31 :     create_sequence_data( 2, sizeof( double ) );
      45                 :         31 : }
      46                 :            : 
      47                 :          0 : SequenceData* ScdVertexData::subset( EntityHandle /*start*/, EntityHandle /*end*/, const int* /*sequence_data_sizes*/,
      48                 :            :                                      const int* /*tag_data_sizes*/ ) const
      49                 :            : {
      50                 :          0 :     return 0;
      51                 :            : }
      52                 :            : 
      53                 :            : }  // namespace moab

Generated by: LCOV version 1.11