Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
pyMOR
pymor
Commits
cf339c02
Unverified
Commit
cf339c02
authored
Jul 18, 2022
by
René Fritze
Browse files
[demos] make other demos also use `config.require`
parent
b5381eeb
Pipeline
#150368
passed with stages
in 29 minutes and 31 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/pymordemos/fenics_nonlinear.py
View file @
cf339c02
...
...
@@ -5,6 +5,8 @@
from
typer
import
Argument
,
run
from
pymor.core.config
import
config
def
main
(
dim
:
int
=
Argument
(...,
help
=
'Spatial dimension of the problem.'
),
...
...
@@ -13,6 +15,7 @@ def main(
):
"""Reduces a FEniCS-based nonlinear diffusion problem using POD/DEIM."""
from
pymor.tools
import
mpi
config
.
require
(
"FENICS"
)
if
mpi
.
parallel
:
from
pymor.models.mpi
import
mpi_wrap_model
...
...
src/pymordemos/thermalblock_simple.py
View file @
cf339c02
...
...
@@ -15,6 +15,7 @@ from typer import Argument, run
from
pymor.basic
import
*
from
pymor.tools.typer
import
Choices
from
pymor.core.config
import
config
# parameters for high-dimensional models
...
...
@@ -50,6 +51,7 @@ def main(
elif
model
==
'fenics'
:
fom
,
parameter_space
=
discretize_fenics
()
elif
model
==
'ngsolve'
:
config
.
require
(
"NGSOLVE"
)
fom
,
parameter_space
=
discretize_ngsolve
()
elif
model
==
'pymor_text'
:
fom
,
parameter_space
=
discretize_pymor_text
()
...
...
ammservices bridge
@group_958_bot
mentioned in commit
09c51fbe
·
Jul 19, 2022
mentioned in commit
09c51fbe
mentioned in commit 09c51fbedbca82ad67b5ba1c6f256721925a5d77
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment