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
73ba28ec
Commit
73ba28ec
authored
8 years ago
by
Martin Genet
Browse files
Options
Downloads
Patches
Plain Diff
Removing evalcount
parent
8345785f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
image_expressions.py
+0
-4
0 additions, 4 deletions
image_expressions.py
with
0 additions
and
4 deletions
image_expressions.py
+
0
−
4
View file @
73ba28ec
...
...
@@ -29,7 +29,6 @@ class ExprIm2(dolfin.Expression):
if
filename
is
not
None
:
self
.
init_image
(
filename
=
filename
)
self
.
X
=
numpy
.
array
([
float
()]
*
2
+
[
Z
])
#self.evalcount = 0
def
init_image
(
self
,
filename
):
self
.
image
=
myVTK
.
readImage
(
...
...
@@ -49,13 +48,11 @@ class ExprIm2(dolfin.Expression):
#print " Im = " + str(Im)
Im
/=
self
.
s
#print " Im = " + str(Im)
#self.evalcount += 1
class
ExprIm3
(
dolfin
.
Expression
):
def
__init__
(
self
,
filename
,
**
kwargs
):
if
filename
is
not
None
:
self
.
init_image
(
filename
=
filename
)
#self.evalcount = 0
def
init_image
(
self
,
filename
):
self
.
image
=
myVTK
.
readImage
(
...
...
@@ -74,7 +71,6 @@ class ExprIm3(dolfin.Expression):
#print " Im = " + str(Im)
Im
/=
self
.
s
#print " Im = " + str(Im)
#self.evalcount += 1
class
ExprGradIm2
(
dolfin
.
Expression
):
def
__init__
(
self
,
filename
=
None
,
Z
=
0.
,
**
kwargs
):
...
...
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