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
42de2c0a
Commit
42de2c0a
authored
10 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
trying to fix compile
parent
a590fefd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Numeric/MetricBasis.cpp
+10
-9
10 additions, 9 deletions
Numeric/MetricBasis.cpp
Numeric/MetricBasis.h
+3
-3
3 additions, 3 deletions
Numeric/MetricBasis.h
with
13 additions
and
12 deletions
Numeric/MetricBasis.cpp
+
10
−
9
View file @
42de2c0a
...
...
@@ -49,7 +49,8 @@ namespace {
}
}
MetricBasis
::
MetricBasis
(
int
tag
)
{
MetricBasis
::
MetricBasis
(
int
tag
)
{
const
int
type
=
ElementType
::
ParentTypeFromTag
(
tag
);
const
int
metOrder
=
metricOrder
(
tag
);
if
(
type
==
TYPE_HEX
||
type
==
TYPE_PRI
)
{
...
...
@@ -66,15 +67,15 @@ MetricBasis::MetricBasis(int tag) {
_fillInequalities
(
metOrder
);
}
double
MetricBasis
::
boundRmin
(
const
MElement
*
el
)
double
MetricBasis
::
boundRmin
(
MElement
*
el
)
{
const
MetricBasis
*
metric
=
BasisFactory
::
getMetricBasis
(
el
->
getTypeForMSH
());
MetricBasis
*
metric
=
(
MetricBasis
*
)
BasisFactory
::
getMetricBasis
(
el
->
getTypeForMSH
());
MetricData
*
md
=
NULL
;
fullMatrix
<
double
>
dummy
;
return
metric
->
getBoundRmin
(
el
,
md
,
dummy
);
}
double
MetricBasis
::
getMinR
(
const
MElement
*
el
,
MetricData
*&
md
,
int
deg
)
const
double
MetricBasis
::
getMinR
(
MElement
*
el
,
MetricData
*&
md
,
int
deg
)
const
{
fullMatrix
<
double
>
samplingPoints
;
...
...
@@ -218,9 +219,9 @@ double MetricBasis::getMinR(const MElement *el, MetricData *&md, int deg) const
return
min
;
}
double
MetricBasis
::
getBoundRmin
(
const
MElement
*
el
,
MetricData
*&
md
,
fullMatrix
<
double
>
&
lagCoeff
)
const
double
MetricBasis
::
getBoundRmin
(
MElement
*
el
,
MetricData
*&
md
,
fullMatrix
<
double
>
&
lagCoeff
)
{
((
MetricBasis
*
)
this
)
->
__curElem
=
(
MElement
*
)
el
;
__curElem
=
el
;
//if (el->getNum() != 2701) return 0;
int
nSampPnts
=
_gradients
->
getNumSamplingPoints
();
int
nMapping
=
_gradients
->
getNumMapNodes
();
...
...
@@ -316,7 +317,7 @@ double MetricBasis::getBoundRmin(const MElement *el, MetricData *&md, fullMatrix
((
MetricBasis
*
)
this
)
->
__numSub
.
resize
(
20
);
for
(
unsigned
int
i
=
0
;
i
<
__numSub
.
size
();
++
i
)
((
MetricBasis
*
)
this
)
->
__numSub
[
i
]
=
0
;
((
MetricBasis
*
)
this
)
->
__maxdepth
=
0
;
double
time
=
Cpu
();
//
double time = Cpu();
static
int
maxsub
=
0
,
elmax
;
double
tt
=
_subdivideForRmin
(
md2
,
RminLag
,
MetricBasis
::
_tol
,
MetricBasis
::
_which
);
if
(
maxsub
<
__numSubdivision
&&
tt
>
10
-
10
)
{
...
...
@@ -846,7 +847,7 @@ double MetricBasis::_subdivideForRmin(
subdomains
.
push
(
md
);
static
unsigned
int
aa
=
0
*
1000
;
bool
write
=
false
;
//
bool write = false;
if
(
++
aa
<
200
)
{
getMinR
(
__curElem
,
md
,
16
);
}
...
...
@@ -915,7 +916,7 @@ double MetricBasis::_subdivideForRmin(
md
=
subdomains
.
top
();
double
ans
=
md
->
_RminBez
;
if
(
isnan
(
ans
))
Msg
::
Info
(
"ISNAN %d"
,
subdomains
.
size
());
//
if (isnan(ans)) Msg::Info("ISNAN %d", subdomains.size());
while
(
subdomains
.
size
())
{
md
=
subdomains
.
top
();
...
...
This diff is collapsed.
Click to expand it.
Numeric/MetricBasis.h
+
3
−
3
View file @
42de2c0a
...
...
@@ -61,9 +61,9 @@ public:
static
double
getTol
()
{
return
_tol
;}
static
void
setWhich
(
int
which
)
{
_which
=
which
;}
double
getBoundRmin
(
const
MElement
*
,
MetricData
*&
,
fullMatrix
<
double
>&
)
const
;
double
getMinR
(
const
MElement
*
,
MetricData
*&
,
int
)
const
;
static
double
boundRmin
(
const
MElement
*
el
);
double
getBoundRmin
(
MElement
*
,
MetricData
*&
,
fullMatrix
<
double
>&
);
double
getMinR
(
MElement
*
,
MetricData
*&
,
int
)
const
;
static
double
boundRmin
(
MElement
*
el
);
//double getBoundRmin(int, MElement**, double*);
//static double boundRmin(int, MElement**, double*, bool sameType = 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