Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
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
Model registry
Operate
Environments
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
Larry Price
gmsh
Commits
d86a133b
Commit
d86a133b
authored
11 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
better info messages for fields with more components/nodes that can be displayed
parent
02419c83
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Graphics/drawPost.cpp
+3
-3
3 additions, 3 deletions
Graphics/drawPost.cpp
Post/PViewDataGModelIO.cpp
+2
-2
2 additions, 2 deletions
Post/PViewDataGModelIO.cpp
Post/PViewVertexArrays.cpp
+6
-5
6 additions, 5 deletions
Post/PViewVertexArrays.cpp
with
11 additions
and
10 deletions
Graphics/drawPost.cpp
+
3
−
3
View file @
d86a133b
...
@@ -342,9 +342,9 @@ static void drawGlyphs(drawContext *ctx, PView *p)
...
@@ -342,9 +342,9 @@ static void drawGlyphs(drawContext *ctx, PView *p)
else
{
else
{
if
(
numNodesError
!=
numNodes
){
if
(
numNodesError
!=
numNodes
){
numNodesError
=
numNodes
;
numNodesError
=
numNodes
;
Msg
::
Error
(
"You should never draw view
s with
>
%d nodes per element
: use
"
Msg
::
Warning
(
"Field
s with %d nodes per element
cannot be displayed:
"
"'Adapt visualization grid' to view high-order datasets!"
,
"either force the field type or select 'Adapt visualization "
PVIEW_NMAX
);
"grid' if the field is high-order"
,
numNodes
);
}
}
continue
;
continue
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Post/PViewDataGModelIO.cpp
+
2
−
2
View file @
d86a133b
...
@@ -425,8 +425,8 @@ bool PViewDataGModel::readMED(const std::string &fileName, int fileIndex)
...
@@ -425,8 +425,8 @@ bool PViewDataGModel::readMED(const std::string &fileName, int fileIndex)
(
numComp
<=
1
)
?
1
:
(
numComp
<=
3
)
?
3
:
(
numComp
<=
9
)
?
9
:
numComp
;
(
numComp
<=
1
)
?
1
:
(
numComp
<=
3
)
?
3
:
(
numComp
<=
9
)
?
9
:
numComp
;
if
(
numCompMsh
>
9
)
if
(
numCompMsh
>
9
)
Msg
::
Warning
(
"More than 9 components in field: you will probably want to force "
Msg
::
Info
(
"More than 9 components in field: you will probably want to force "
"the field type to scalar, vector or tensor in the options"
);
"the field type to scalar, vector or tensor in the options"
);
// Warning! The ordering of the elements in the last two lists is
// Warning! The ordering of the elements in the last two lists is
// important: it should match the ordering of the MSH element types
// important: it should match the ordering of the MSH element types
...
...
This diff is collapsed.
Click to expand it.
Post/PViewVertexArrays.cpp
+
6
−
5
View file @
d86a133b
...
@@ -1213,9 +1213,9 @@ static void addElementsInArrays(PView *p, bool preprocessNormalsOnly)
...
@@ -1213,9 +1213,9 @@ static void addElementsInArrays(PView *p, bool preprocessNormalsOnly)
else
{
else
{
if
(
numNodesError
!=
numNodes
){
if
(
numNodesError
!=
numNodes
){
numNodesError
=
numNodes
;
numNodesError
=
numNodes
;
Msg
::
Error
(
"You should never draw view
s with
>
%d nodes per element
: use
"
Msg
::
Warning
(
"Field
s with %d nodes per element
cannot be displayed:
"
"'Adapt visualization grid' to view high-order datasets!"
,
"either force the field type or select 'Adapt visualization "
PVIEW_NMAX
);
"grid' if the field is high-order"
,
numNodes
);
}
}
continue
;
continue
;
}
}
...
@@ -1223,8 +1223,9 @@ static void addElementsInArrays(PView *p, bool preprocessNormalsOnly)
...
@@ -1223,8 +1223,9 @@ static void addElementsInArrays(PView *p, bool preprocessNormalsOnly)
if
((
numComp
>
9
&&
!
opt
->
forceNumComponents
)
||
opt
->
forceNumComponents
>
9
){
if
((
numComp
>
9
&&
!
opt
->
forceNumComponents
)
||
opt
->
forceNumComponents
>
9
){
if
(
numCompError
!=
numComp
)
{
if
(
numCompError
!=
numComp
)
{
numCompError
=
numComp
;
numCompError
=
numComp
;
Msg
::
Error
(
"You should never draw views with > 9 values per node: use"
Msg
::
Warning
(
"Fields with %d components cannot be displayed: "
"'Adapt visualization grid' to view high-order datasets!"
);
"either force the field type or select 'Adapt visualization "
"grid' if the field is high-order"
,
numComp
);
}
}
continue
;
continue
;
}
}
...
...
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