Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hyteg
hog
Commits
f8c5b0bd
Commit
f8c5b0bd
authored
1 year ago
by
Nils Kohl
Browse files
Options
Downloads
Patches
Plain Diff
Another type fix.
mypy is driving me insane.
parent
fcf63b81
Branches
Branches containing commit
No related tags found
1 merge request
!2
Vector operators
Pipeline
#66275
failed
1 year ago
Stage: test
Stage: integration
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
generate_all_operators.py
+2
-1
2 additions, 1 deletion
generate_all_operators.py
with
2 additions
and
1 deletion
generate_all_operators.py
+
2
−
1
View file @
f8c5b0bd
...
@@ -605,9 +605,10 @@ def all_operators(
...
@@ -605,9 +605,10 @@ def all_operators(
for
c
in
[
0
,
1
,
2
]:
for
c
in
[
0
,
1
,
2
]:
# fmt: off
# fmt: off
div_geometries
=
list
(
geometries
)
if
c
==
2
:
if
c
==
2
:
div_geometries
=
three_d
div_geometries
=
three_d
else
:
div_geometries
=
list
(
geometries
)
ops
.
append
(
OperatorInfo
(
mapping
=
f
"
P2ToP1
"
,
name
=
f
"
Div_
{
c
}
"
,
trial_space
=
P1
,
test_space
=
P2
,
ops
.
append
(
OperatorInfo
(
mapping
=
f
"
P2ToP1
"
,
name
=
f
"
Div_
{
c
}
"
,
trial_space
=
P1
,
test_space
=
P2
,
form
=
partial
(
divergence
,
transpose
=
False
,
component_index
=
c
),
form
=
partial
(
divergence
,
transpose
=
False
,
component_index
=
c
),
type_descriptor
=
type_descriptor
,
opts
=
opts
,
geometries
=
div_geometries
,
type_descriptor
=
type_descriptor
,
opts
=
opts
,
geometries
=
div_geometries
,
...
...
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