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
Package registry
Model registry
Operate
Terraform modules
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
Romin Tomasetti
gmsh
Commits
af7cb3dd
Commit
af7cb3dd
authored
8 years ago
by
Amaury Johnen
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
2fab8230
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Mesh/meshGRegionRelocateVertex.cpp
+0
-1
0 additions, 1 deletion
Mesh/meshGRegionRelocateVertex.cpp
Mesh/qualityMeasuresJacobian.cpp
+2
-29
2 additions, 29 deletions
Mesh/qualityMeasuresJacobian.cpp
Mesh/qualityMeasuresJacobian.h
+2
-6
2 additions, 6 deletions
Mesh/qualityMeasuresJacobian.h
with
4 additions
and
36 deletions
Mesh/meshGRegionRelocateVertex.cpp
+
0
−
1
View file @
af7cb3dd
...
@@ -27,7 +27,6 @@ static double objective_function (double xi, MVertex *ver,
...
@@ -27,7 +27,6 @@ static double objective_function (double xi, MVertex *ver,
else
else
// minQual = std::min((lt[i]->specialQuality()), minQual);
// minQual = std::min((lt[i]->specialQuality()), minQual);
minQual
=
std
::
min
(
fabs
(
lt
[
i
]
->
minSICNShapeMeasure
())
*
.2
,
minQual
);
minQual
=
std
::
min
(
fabs
(
lt
[
i
]
->
minSICNShapeMeasure
())
*
.2
,
minQual
);
// minQual = std::min(lt[i]->minAnisotropyMeasure(), minQual);
}
}
ver
->
x
()
=
x
;
ver
->
x
()
=
x
;
ver
->
y
()
=
y
;
ver
->
y
()
=
y
;
...
...
This diff is collapsed.
Click to expand it.
Mesh/qualityMeasuresJacobian.cpp
+
2
−
29
View file @
af7cb3dd
...
@@ -15,15 +15,6 @@
...
@@ -15,15 +15,6 @@
#include
<iomanip>
#include
<iomanip>
#include
"pointsGenerators.h"
#include
"pointsGenerators.h"
#include
"OS.h"
#include
"OS.h"
#define TMBEG(n, what) static int I##n = 0, IND##n = _CoeffDataAnisotropy::mytimes.size(); \
if (++I##n == 1) { \
Msg::Info("Time%d = "#what, IND##n); \
_CoeffDataAnisotropy::mytimes.push_back(0); \
_CoeffDataAnisotropy::mynumbers.push_back(0); \
} \
_CoeffDataAnisotropy::mynumbers[IND##n] += 1; \
double TM##n = Cpu();
#define TMEND(n) _CoeffDataAnisotropy::mytimes[IND##n] += Cpu() - TM##n;
namespace
jacobianBasedQuality
{
namespace
jacobianBasedQuality
{
...
@@ -263,25 +254,7 @@ double minICNMeasure(MElement *el,
...
@@ -263,25 +254,7 @@ double minICNMeasure(MElement *el,
return
min
;
return
min
;
}
}
//double minSampledAnisotropyMeasure(MElement *el, int deg, bool writeInFile)//fordebug
double
minSampledICNMeasure
(
MElement
*
el
,
int
deg
)
//fordebug
//{
// fullMatrix<double> samplingPoints;
// bool serendip = false;
// gmshGeneratePoints(FuncSpaceData(el, deg, &serendip), samplingPoints);
//
// double values[3];
// double min = std::numeric_limits<double>::infinity();
// for (int i = 0; i < samplingPoints.size1(); ++i) {
// min = std::min(min, el->getEigenvaluesMetric(samplingPoints(i, 0),
// samplingPoints(i, 1),
// samplingPoints(i, 2),
// values));
// }
//
// return min;
//}
double
minSampledICNMeasure
(
MElement
*
el
,
int
deg
,
bool
writeInFile
)
//fordebug
{
{
fullMatrix
<
double
>
nodesXYZ
(
el
->
getNumVertices
(),
3
);
fullMatrix
<
double
>
nodesXYZ
(
el
->
getNumVertices
(),
3
);
el
->
getNodesCoord
(
nodesXYZ
);
el
->
getNodesCoord
(
nodesXYZ
);
...
@@ -340,7 +313,7 @@ double minSampledICNMeasure(MElement *el, int deg, bool writeInFile)//fordebug
...
@@ -340,7 +313,7 @@ double minSampledICNMeasure(MElement *el, int deg, bool writeInFile)//fordebug
return
min
;
return
min
;
}
}
double
minSampledIGEMeasure
(
MElement
*
el
,
int
deg
,
bool
writeInFile
)
//fordebug
double
minSampledIGEMeasure
(
MElement
*
el
,
int
deg
)
//fordebug
{
{
fullMatrix
<
double
>
nodesXYZ
(
el
->
getNumVertices
(),
3
);
fullMatrix
<
double
>
nodesXYZ
(
el
->
getNumVertices
(),
3
);
el
->
getNodesCoord
(
nodesXYZ
);
el
->
getNodesCoord
(
nodesXYZ
);
...
...
This diff is collapsed.
Click to expand it.
Mesh/qualityMeasuresJacobian.h
+
2
−
6
View file @
af7cb3dd
...
@@ -23,12 +23,8 @@ double minIGEMeasure(MElement *el,
...
@@ -23,12 +23,8 @@ double minIGEMeasure(MElement *el,
double
minICNMeasure
(
MElement
*
el
,
double
minICNMeasure
(
MElement
*
el
,
bool
knownValid
=
false
,
bool
knownValid
=
false
,
bool
reversedOk
=
false
);
bool
reversedOk
=
false
);
//double minSampledAnisotropyMeasure(MElement *el, int order,//fordebug
double
minSampledICNMeasure
(
MElement
*
el
,
int
order
);
//fordebug
// bool writeInFile = false);
double
minSampledIGEMeasure
(
MElement
*
el
,
int
order
);
//fordebug
double
minSampledICNMeasure
(
MElement
*
el
,
int
order
,
//fordebug
bool
writeInFile
=
false
);
double
minSampledIGEMeasure
(
MElement
*
el
,
int
order
,
//fordebug
bool
writeInFile
=
false
);
class
_CoeffData
class
_CoeffData
{
{
...
...
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