From 780a0de7ee080e59b7d116c7099facb05ff7e4a5 Mon Sep 17 00:00:00 2001 From: Luca Bertagna Date: Thu, 9 Jan 2025 08:32:24 -0700 Subject: [PATCH] Piro: improve warning message --- packages/piro/src/Piro_TransientSolver_Def.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/piro/src/Piro_TransientSolver_Def.hpp b/packages/piro/src/Piro_TransientSolver_Def.hpp index 96d533c8210b..bd303be53a14 100644 --- a/packages/piro/src/Piro_TransientSolver_Def.hpp +++ b/packages/piro/src/Piro_TransientSolver_Def.hpp @@ -352,8 +352,12 @@ Piro::TransientSolver::evalConvergedModelResponsesAndSensitivities( if (x->space()->isCompatible(*gx_out->space())) { Thyra::copy(*modelInArgs.get_x(), gx_out.ptr()); } else { - *out_ << " WARNING: x and gx_out are not compatible (likely, because adaptation occurred).\n" - " If you need the solution, you will have to retrieve it in another way.\n"; + *out_ << " WARNING [PIRO::TransientSolver::evalConvergedModelResponsesAndSensitivities]\n" + " The solution from inArgs (x) is incompatible with the last response in outArgs (gx),\n" + " which was created as a vector with the same vector-space of x. Since the responses\n" + " were created BEFORE calling the transient solver, the most likely explanation for this\n" + " incompatibility is that during the time integration the solution vector space changed,\n" + " for instance because the underlying spatial mesh was adapted (with topological changes).\n"; } }