Skip to content
Snippets Groups Projects
Commit 9bee6e6d authored by Adrien Crovato's avatar Adrien Crovato
Browse files

Adapt for amfe. Minor improvements.

parent 75ea7440
No related branches found
No related tags found
No related merge requests found
Pipeline #4185 passed
......@@ -85,6 +85,11 @@ threads="1"
%immutable dart::Solver::pbl; // read-only variable (no setter)
%immutable dart::Solver::linsol;
%immutable dart::Solver::relTol;
%immutable dart::Solver::absTol;
%immutable dart::Solver::maxIt;
%immutable dart::Solver::nthreads;
%immutable dart::Solver::verbose;
%immutable dart::Solver::nIt;
%immutable dart::Solver::phi;
%immutable dart::Solver::rPhi;
......
......@@ -54,6 +54,7 @@ def initDart(params, scenario='aerodynamic', task='analysis'):
"""
# Imports
import math
import fwk.wutils as wu
import tbox
import tbox.gmsh as gmsh
import dart
......@@ -100,6 +101,7 @@ def initDart(params, scenario='aerodynamic', task='analysis'):
nthrd = params['Threads']
else:
nthrd = 1
wu.initMkl(nthrd) # initialize threading layer and number of threads
# verbosity
if 'Verb' in params:
verb = params['Verb']
......@@ -144,8 +146,7 @@ def initDart(params, scenario='aerodynamic', task='analysis'):
# Mesh morpher creation
if scenario == 'aerostructural' or task == 'optimization':
_mrf = tbox.MshDeform(_msh, _dim)
_mrf.nthreads = nthrd
_mrf = tbox.MshDeform(_msh, _dim, nthrds=nthrd)
_mrf.setField(params['Fluid'])
_mrf.addFixed(params['Farfield'])
if _dim == 2:
......
......@@ -185,7 +185,7 @@ void Body::save(std::string const &name, Results const &res)
outfile << std::endl;
// Close file
outfile.close();
std::cout << "done!" << std::endl;
std::cout << "done" << std::endl;
}
void Body::write(std::ostream &out) const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment