Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dolfin_warp
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Genet
dolfin_warp
Commits
ef9f0634
Commit
ef9f0634
authored
6 years ago
by
PATTE Cecile
Browse files
Options
Downloads
Patches
Plain Diff
SetInputData() of probe_filter in init_disp instead of eval in order to make things faster
parent
7404729a
Loading
Loading
1 merge request
!2
Add the case where the image is deformed and the displacement comes from a vtu file
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
image_expressions_cpp.py
+2
-2
2 additions, 2 deletions
image_expressions_cpp.py
with
2 additions
and
2 deletions
image_expressions_cpp.py
+
2
−
2
View file @
ef9f0634
...
...
@@ -115,6 +115,8 @@ public:
probe_filter->SetSourceData(mesh);
probe_points->SetNumberOfPoints(1);
probe_polydata->SetPoints(probe_points);
probe_filter->SetInputData(probe_polydata);
}
'''
)
*
(
u_is_vtk
))
*
(
im_is_def
)
+
'''
void init_image(
...
...
@@ -172,8 +174,6 @@ public:
U->eval(UX, X);
'''
)
*
(
not
u_is_vtk
)
+
(
'''
probe_points->SetPoint(0,X.data());
probe_polydata->SetPoints(probe_points);
probe_filter->SetInputData(probe_polydata);
probe_filter->Update();
probe_filter->GetOutput()->GetPointData()->GetArray(
"
U
"
)->GetTuple(0, UX.data());
...
...
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