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
b3e222ce
There was an error fetching the commit references. Please try again later.
Commit
b3e222ce
authored
6 years ago
by
Tomáš Oberhuber
Browse files
Options
Downloads
Patches
Plain Diff
Additional fix of tnl-view for support of int and bool type in mesh functions.
parent
f022500c
No related branches found
No related tags found
1 merge request
!26
Lbm
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Tools/tnl-view.h
+7
-0
7 additions, 0 deletions
src/Tools/tnl-view.h
with
7 additions
and
0 deletions
src/Tools/tnl-view.h
+
7
−
0
View file @
b3e222ce
...
@@ -133,6 +133,13 @@ bool setMeshEntityType( const MeshPointer& meshPointer,
...
@@ -133,6 +133,13 @@ bool setMeshEntityType( const MeshPointer& meshPointer,
return
setMeshFunctionRealType
<
MeshPointer
,
EntityDimension
,
double
,
VectorFieldSize
>
(
meshPointer
,
inputFileName
,
parsedObjectType
,
parameters
);
return
setMeshFunctionRealType
<
MeshPointer
,
EntityDimension
,
double
,
VectorFieldSize
>
(
meshPointer
,
inputFileName
,
parsedObjectType
,
parameters
);
if
(
parsedObjectType
[
3
]
==
"long double"
)
if
(
parsedObjectType
[
3
]
==
"long double"
)
return
setMeshFunctionRealType
<
MeshPointer
,
EntityDimension
,
long
double
,
VectorFieldSize
>
(
meshPointer
,
inputFileName
,
parsedObjectType
,
parameters
);
return
setMeshFunctionRealType
<
MeshPointer
,
EntityDimension
,
long
double
,
VectorFieldSize
>
(
meshPointer
,
inputFileName
,
parsedObjectType
,
parameters
);
if
(
parsedObjectType
[
3
]
==
"int"
)
return
setMeshFunctionRealType
<
MeshPointer
,
EntityDimension
,
int
,
VectorFieldSize
>
(
meshPointer
,
inputFileName
,
parsedObjectType
,
parameters
);
if
(
parsedObjectType
[
3
]
==
"long int"
)
return
setMeshFunctionRealType
<
MeshPointer
,
EntityDimension
,
long
int
,
VectorFieldSize
>
(
meshPointer
,
inputFileName
,
parsedObjectType
,
parameters
);
if
(
parsedObjectType
[
3
]
==
"bool"
)
return
setMeshFunctionRealType
<
MeshPointer
,
EntityDimension
,
bool
,
VectorFieldSize
>
(
meshPointer
,
inputFileName
,
parsedObjectType
,
parameters
);
std
::
cerr
<<
"Unsupported arithmetics "
<<
parsedObjectType
[
3
]
<<
" in mesh function "
<<
inputFileName
<<
std
::
endl
;
std
::
cerr
<<
"Unsupported arithmetics "
<<
parsedObjectType
[
3
]
<<
" in mesh function "
<<
inputFileName
<<
std
::
endl
;
return
false
;
return
false
;
}
}
...
...
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