Skip to content
Snippets Groups Projects

Introducing unique_ptrs to simplify memory management

Closed Boris Martin requested to merge unique_ptr into master
Files
18
@@ -301,6 +301,8 @@ double StateFunctional<T_Physic>::performance_regularization()
@@ -301,6 +301,8 @@ double StateFunctional<T_Physic>::performance_regularization()
template<Physic T_Physic>
template<Physic T_Physic>
const ModelField& StateFunctional<T_Physic>::gradient()
const ModelField& StateFunctional<T_Physic>::gradient()
{
{
 
// Update the model adjoint state and return it.
 
// TODO: no model sent but FS is updated -> Is it always up to date ?
std::array<bool,4> ToBeUpdated = {false,false,true,false};
std::array<bool,4> ToBeUpdated = {false,false,true,false};
return _mu.get(ToBeUpdated).field(Type::AS);
return _mu.get(ToBeUpdated).field(Type::AS);
}
}
Loading