Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
c6a3686e
There was an error fetching the commit references. Please try again later.
Commit
c6a3686e
authored
8 years ago
by
Jakub Klinkovský
Browse files
Options
Downloads
Patches
Plain Diff
Simplified MeshFunctionEvaluator
parent
251371f3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/TNL/Functions/MeshFunctionEvaluator.h
+8
-11
8 additions, 11 deletions
src/TNL/Functions/MeshFunctionEvaluator.h
with
8 additions
and
11 deletions
src/TNL/Functions/MeshFunctionEvaluator.h
+
8
−
11
View file @
c6a3686e
...
...
@@ -34,8 +34,11 @@ class MeshFunctionEvaluatorTraverserUserData;
*/
template
<
typename
OutMeshFunction
,
typename
InFunction
>
class
MeshFunctionEvaluator
:
public
Domain
<
OutMeshFunction
::
getEntitiesDimensions
(),
MeshDomain
>
class
MeshFunctionEvaluator
{
static_assert
(
OutMeshFunction
::
getDomainDimensions
()
==
InFunction
::
getDomainDimensions
(),
"Input and output functions must have the same domain dimensions."
);
public:
typedef
typename
OutMeshFunction
::
MeshType
MeshType
;
typedef
typename
MeshType
::
RealType
MeshRealType
;
...
...
@@ -44,12 +47,6 @@ class MeshFunctionEvaluator : public Domain< OutMeshFunction::getEntitiesDimensi
typedef
typename
OutMeshFunction
::
RealType
RealType
;
typedef
Functions
::
MeshFunctionEvaluatorTraverserUserData
<
OutMeshFunction
,
InFunction
,
RealType
>
TraverserUserData
;
const
static
int
meshEntityDimensions
=
OutMeshFunction
::
getEntitiesDimensions
();
static_assert
(
MeshType
::
meshDimensions
==
InFunction
::
getDomainDimensions
(),
"Input function and the mesh of the mesh function have both different number of dimensions."
);
static
void
evaluate
(
OutMeshFunction
&
meshFunction
,
const
InFunction
&
function
,
const
RealType
&
time
=
0.0
,
...
...
@@ -98,10 +95,10 @@ class MeshFunctionEvaluatorTraverserUserData
typedef
InFunction
InFunctionType
;
MeshFunctionEvaluatorTraverserUserData
(
const
InFunction
*
function
,
const
Real
*
time
,
OutMeshFunction
*
meshFunction
,
const
Real
*
outFunctionMultiplicator
,
const
Real
*
inFunctionMultiplicator
)
const
Real
*
time
,
OutMeshFunction
*
meshFunction
,
const
Real
*
outFunctionMultiplicator
,
const
Real
*
inFunctionMultiplicator
)
:
meshFunction
(
meshFunction
),
function
(
function
),
time
(
time
),
outFunctionMultiplicator
(
outFunctionMultiplicator
),
inFunctionMultiplicator
(
inFunctionMultiplicator
){}
...
...
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