From 7a4ebb374b8326bf4c8c9545df4fddcf523c4a34 Mon Sep 17 00:00:00 2001
From: acrovato <a.crovato@uliege.be>
Date: Tue, 5 Oct 2021 15:25:48 +0200
Subject: [PATCH] fix initialize morpher in tests

---
 dart/default.py      | 3 +--
 dart/src/wSolver.cpp | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dart/default.py b/dart/default.py
index 0e77ce5..3a03df5 100644
--- a/dart/default.py
+++ b/dart/default.py
@@ -190,8 +190,7 @@ def morpher(msh, dim, mov, fxd = ['upstream', 'farfield', 'downstream'], fld = '
         name of physical tag contaning the symmetry plane (y)
     """
     args = parseargs()
-    mshDef = tbox.MshDeform(msh, dim)
-    mshDef.nthreads = args.k
+    mshDef = tbox.MshDeform(msh, dim, nthrds=args.k)
     mshDef.setField(fld)
     mshDef.addFixed(fxd)
     mshDef.addMoving(mov)
diff --git a/dart/src/wSolver.cpp b/dart/src/wSolver.cpp
index cb6db16..7f69f84 100644
--- a/dart/src/wSolver.cpp
+++ b/dart/src/wSolver.cpp
@@ -103,7 +103,7 @@ Solver::Solver(std::shared_ptr<Problem> _pbl,
               << "Number of nodes: " << pbl->msh->nodes.size() << "\n"
               << "Number of elements: " << pbl->msh->elems.size() << "\n";
     std::cout << "--- Physical groups ---\n"
-              << "Fluid on: " << *pbl->fluid->tag << "\n";
+              << "Fluid on " << *pbl->fluid->tag << "\n";
     for (auto bnd : pbl->fBCs)
         std::cout << "Freestream on " << *bnd->tag << "\n";
     for (auto bnd : pbl->dBCs)
-- 
GitLab