From ed48881c9f74a107ca5818ac0b75679800edbe79 Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Mon, 12 Dec 2016 07:28:52 +0200 Subject: [PATCH] call update_xdmf! only if Xdmf object is attached to solver. --- src/solvers_modal.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/solvers_modal.jl b/src/solvers_modal.jl index 9547a11..849fa08 100644 --- a/src/solvers_modal.jl +++ b/src/solvers_modal.jl @@ -336,7 +336,9 @@ function (solver::Solver{Modal})(; show_info=true, debug=false, end end - update_xdmf!(solver) + if !isnull(solver.xdmf) + update_xdmf!(solver) + end return true end