fix(PolytropeOperator): uncommented code that should never have been commented in GetGradient
This commit is contained in:
@@ -267,9 +267,10 @@ mfem::Operator& PolytropeOperator::GetGradient(const mfem::Vector &x) const {
|
||||
// auto *gradPtr = &grad;
|
||||
// updatePreconditioner(grad);
|
||||
|
||||
// // TODO: Save the state vector somewhere so that I can inspect how the actual solution
|
||||
// // to theta and phi are evolving
|
||||
// m_jacobian->SetBlock(0, 0, &grad);
|
||||
// TODO: Save the state vector somewhere so that I can inspect how the actual solution
|
||||
// to theta and phi are evolving
|
||||
m_jacobian->SetBlock(0, 0, &grad);
|
||||
|
||||
// // TODO: Save the jacobian here
|
||||
// std::cout << "Writing out jacobian to file..." << std::endl;
|
||||
// std::vector<mfem::Operator*> ops;
|
||||
@@ -280,6 +281,7 @@ mfem::Operator& PolytropeOperator::GetGradient(const mfem::Vector &x) const {
|
||||
// saveBlockFormToBinary(ops, {{0, 0}, {0, 1}, {1, 0}, {1, 1}}, {false, false, false, false}, "jacobian_" + std::to_string(s_newtonStepGrad) + ".bin");
|
||||
// s_newtonStepGrad++;
|
||||
// std::cout << "Done writing out jacobian to file." << std::endl;
|
||||
|
||||
return *m_jacobian;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user