Smith  0.1
Smith is an implicit thermal structural mechanics simulation code.
evaluate_objective.hpp
Go to the documentation of this file.
1 // Copyright (c) Lawrence Livermore National Security, LLC and
2 // other Smith Project Developers. See the top-level LICENSE file for
3 // details.
4 //
5 // SPDX-License-Identifier: (BSD-3-Clause)
6 
13 #pragma once
14 
15 #include "gretl/double_state.hpp"
18 
19 namespace smith {
20 
23 DoubleState evaluateObjective(const ScalarObjective& objective, const FieldState& shape_disp,
24  const std::vector<FieldState>& inputs, const TimeInfo& time_info = TimeInfo(0.0, 1.0, 0));
25 
26 } // namespace smith
Accelerator functionality.
Definition: smith.cpp:36
gretl::State< double, double > DoubleState
typedef
Definition: field_state.hpp:25
gretl::State< FEFieldPtr, FEDualPtr > FieldState
typedef
Definition: field_state.hpp:22
DoubleState evaluateObjective(const ScalarObjective &objective, const FieldState &shape_disp, const std::vector< FieldState > &inputs, const TimeInfo &time_info)
Evaluates a DoubleState using a provided ScalarObjective reference, and the input arguments to that o...
Specifies interface for evaluating scalar objective from fields and their field gradients.