Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dartflo
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aerospace and Mechanical Engineering
dartflo
Commits
02767cab
Commit
02767cab
authored
7 months ago
by
Paul Dechamps
Browse files
Options
Downloads
Patches
Plain Diff
(feat) Add the ability to use tbox SparseLU solver from the core api
parent
04ecc2c9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#48029
passed
7 months ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dart/api/core.py
+2
-0
2 additions, 0 deletions
dart/api/core.py
with
2 additions
and
0 deletions
dart/api/core.py
+
2
−
0
View file @
02767cab
...
@@ -249,6 +249,8 @@ def init_dart(cfg, scenario='aerodynamic', task='analysis', viscous=False):
...
@@ -249,6 +249,8 @@ def init_dart(cfg, scenario='aerodynamic', task='analysis', viscous=False):
grst
=
cfg
[
'
G_restart
'
]
if
'
G_restart
'
in
cfg
else
50
grst
=
cfg
[
'
G_restart
'
]
if
'
G_restart
'
in
cfg
else
50
gtol
=
cfg
[
'
G_tol
'
]
if
'
G_tol
'
in
cfg
else
1e-5
gtol
=
cfg
[
'
G_tol
'
]
if
'
G_tol
'
in
cfg
else
1e-5
linsol
=
tbox
.
Gmres
(
gfil
,
1e-6
,
grst
,
gtol
,
200
)
linsol
=
tbox
.
Gmres
(
gfil
,
1e-6
,
grst
,
gtol
,
200
)
elif
cfg
[
'
LSolver
'
]
==
'
SparseLu
'
:
linsol
=
tbox
.
SparseLu
()
else
:
else
:
raise
RuntimeError
(
'
Available linear solvers: PARDISO, MUMPS or GMRES, but
'
+
cfg
[
'
LSolver
'
]
+
'
was given!
\n
'
)
raise
RuntimeError
(
'
Available linear solvers: PARDISO, MUMPS or GMRES, but
'
+
cfg
[
'
LSolver
'
]
+
'
was given!
\n
'
)
# initialize the nonlinear (outer) solver
# initialize the nonlinear (outer) solver
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment