LCOV - code coverage report
Current view: top level - include/kokkos/materials - KokkosParsedMaterial.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 3 3 100.0 %
Date: 2026-05-29 20:35:17 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://www.mooseframework.org
       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             : #pragma once
      11             : 
      12             : #include "KokkosMaterial.h"
      13             : #include "KokkosParsedObjectBase.h"
      14             : 
      15             : class KokkosParsedMaterial : public Moose::Kokkos::Material, public Moose::Kokkos::ParsedObjectBase
      16             : {
      17             : public:
      18             :   static InputParameters validParams();
      19             : 
      20             :   KokkosParsedMaterial(const InputParameters & parameters);
      21             : 
      22             :   template <typename Derived>
      23             :   KOKKOS_FUNCTION void computeQpProperties(const unsigned int qp, Datum & datum) const;
      24             : 
      25             : protected:
      26             :   /**
      27             :    * Parsed material property
      28             :    */
      29             :   Moose::Kokkos::MaterialProperty<Real> _prop;
      30             : };
      31             : 
      32             : template <typename Derived>
      33             : KOKKOS_FUNCTION void
      34      610840 : KokkosParsedMaterial::computeQpProperties(const unsigned int qp, Datum & datum) const
      35             : {
      36      610840 :   _prop(datum, qp) = _evaluator.eval(_t, datum.q_point(qp), qp, &datum);
      37      610840 : }

Generated by: LCOV version 1.14