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
285727df
Commit
285727df
authored
13 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
option to forceInterpolation
parent
323f21c1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+2
-3
2 additions, 3 deletions
CMakeLists.txt
Plugin/MathEval.cpp
+5
-2
5 additions, 2 deletions
Plugin/MathEval.cpp
with
7 additions
and
5 deletions
CMakeLists.txt
+
2
−
3
View file @
285727df
...
...
@@ -17,9 +17,7 @@ endif(DEFINED CMAKE_BUILD_TYPE)
project
(
gmsh CXX C
)
option
(
ENABLE_ACIS
"Enable ACIS geometrical models"
ON
)
option
(
ENABLE_ANN
"Enable ANN to compute Approximate Nearest
Neighbors"
ON
)
option
(
ENABLE_RBF
"Enable RBF project"
OFF
)
option
(
ENABLE_ANN
"Enable ANN to compute Approximate Nearest Neighbors"
ON
)
option
(
ENABLE_BAMG
"Enable Bamg mesh generator"
ON
)
option
(
ENABLE_BFGS
"Enable BFGS"
ON
)
option
(
ENABLE_BLAS_LAPACK
"Use BLAS/Lapack for basic linear algebra"
ON
)
...
...
@@ -50,6 +48,7 @@ option(ENABLE_PETSC "Enable PETSc linear algebra solvers" ON)
option
(
ENABLE_PLUGINS
"Build the post-processing plugins"
ON
)
option
(
ENABLE_POST
"Build the post-processing module"
ON
)
option
(
ENABLE_QT
"Build QT GUI"
OFF
)
option
(
ENABLE_RBF
"Enable RBF project"
OFF
)
option
(
ENABLE_READLINE
"Enable Readline in Lua prompt"
ON
)
option
(
ENABLE_SALOME
"Enable Salome routines for CAD healing"
ON
)
option
(
ENABLE_SLEPC
"Enable SLEPc eigensolvers"
ON
)
...
...
This diff is collapsed.
Click to expand it.
Plugin/MathEval.cpp
+
5
−
2
View file @
285727df
...
...
@@ -13,7 +13,8 @@ StringXNumber MathEvalOptions_Number[] = {
{
GMSH_FULLRC
,
"TimeStep"
,
NULL
,
-
1.
},
{
GMSH_FULLRC
,
"View"
,
NULL
,
-
1.
},
{
GMSH_FULLRC
,
"OtherTimeStep"
,
NULL
,
-
1.
},
{
GMSH_FULLRC
,
"OtherView"
,
NULL
,
-
1.
}
{
GMSH_FULLRC
,
"OtherView"
,
NULL
,
-
1.
},
{
GMSH_FULLRC
,
"ForceInterpolation"
,
NULL
,
0.
}
};
StringXString
MathEvalOptions_String
[]
=
{
...
...
@@ -90,6 +91,7 @@ PView *GMSH_MathEvalPlugin::execute(PView *view)
int
iView
=
(
int
)
MathEvalOptions_Number
[
1
].
def
;
int
otherTimeStep
=
(
int
)
MathEvalOptions_Number
[
2
].
def
;
int
iOtherView
=
(
int
)
MathEvalOptions_Number
[
3
].
def
;
int
forceInterpolation
=
(
int
)
MathEvalOptions_Number
[
4
].
def
;
std
::
vector
<
std
::
string
>
expr
(
9
);
for
(
int
i
=
0
;
i
<
9
;
i
++
)
expr
[
i
]
=
MathEvalOptions_String
[
i
].
def
;
...
...
@@ -118,7 +120,8 @@ PView *GMSH_MathEvalPlugin::execute(PView *view)
}
OctreePost
*
octree
=
0
;
if
((
data1
->
getNumEntities
()
!=
otherData
->
getNumEntities
())
||
if
(
forceInterpolation
||
(
data1
->
getNumEntities
()
!=
otherData
->
getNumEntities
())
||
(
data1
->
getNumElements
()
!=
otherData
->
getNumElements
())){
Msg
::
Info
(
"Other view based on different grid: interpolating..."
);
octree
=
new
OctreePost
(
otherView
);
...
...
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