LCOV - code coverage report
Current view: top level - src/materials - MaterialProperty.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 6f668f Lines: 17 17 100.0 %
Date: 2025-09-22 20:01:15 Functions: 4 4 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://mooseframework.inl.gov
       3             : //*
       4             : //* All rights reserved, see COPYRIGHT for full restrictions
       5             : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
       6             : //*
       7             : //* Licensed under LGPL 2.1, please see LICENSE for details
       8             : //* https://www.gnu.org/licenses/lgpl-2.1.html
       9             : 
      10             : #include "MaterialProperty.h"
      11             : 
      12             : void
      13       93131 : dataStore(std::ostream & stream, PropertyValue & p, void *)
      14             : {
      15       93131 :   p.store(stream);
      16       93131 : }
      17             : 
      18             : void
      19       59258 : dataLoad(std::istream & stream, PropertyValue & p, void *)
      20             : {
      21       59258 :   p.load(stream);
      22       59258 : }
      23             : 
      24             : void
      25        6735 : dataStore(std::ostream & stream, MaterialProperties & v, void * context)
      26             : {
      27        6735 :   std::size_t prop_size = v.size();
      28        6735 :   dataStore(stream, prop_size, context);
      29             : 
      30       13470 :   for (const auto i : index_range(v))
      31        6735 :     dataStore(stream, v[i], context);
      32        6735 : }
      33             : 
      34             : void
      35        6735 : dataLoad(std::istream & stream, MaterialProperties & v, void * context)
      36             : {
      37             :   std::size_t prop_size;
      38        6735 :   dataLoad(stream, prop_size, context);
      39             :   mooseAssert(prop_size == v.size(), "Loading MaterialProperties data into mis-sized target");
      40             : 
      41       13470 :   for (const auto i : make_range(prop_size))
      42        6735 :     dataLoad(stream, v[i], context);
      43        6735 : }

Generated by: LCOV version 1.14