Skip to content
Snippets Groups Projects
Commit 42de2c0a authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

trying to fix compile

parent a590fefd
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,8 @@ namespace { ...@@ -49,7 +49,8 @@ namespace {
} }
} }
MetricBasis::MetricBasis(int tag) { MetricBasis::MetricBasis(int tag)
{
const int type = ElementType::ParentTypeFromTag(tag); const int type = ElementType::ParentTypeFromTag(tag);
const int metOrder = metricOrder(tag); const int metOrder = metricOrder(tag);
if (type == TYPE_HEX || type == TYPE_PRI) { if (type == TYPE_HEX || type == TYPE_PRI) {
...@@ -66,15 +67,15 @@ MetricBasis::MetricBasis(int tag) { ...@@ -66,15 +67,15 @@ MetricBasis::MetricBasis(int tag) {
_fillInequalities(metOrder); _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; MetricData *md = NULL;
fullMatrix<double> dummy; fullMatrix<double> dummy;
return metric->getBoundRmin(el, md, 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; fullMatrix<double> samplingPoints;
...@@ -218,9 +219,9 @@ double MetricBasis::getMinR(const MElement *el, MetricData *&md, int deg) const ...@@ -218,9 +219,9 @@ double MetricBasis::getMinR(const MElement *el, MetricData *&md, int deg) const
return min; 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; //if (el->getNum() != 2701) return 0;
int nSampPnts = _gradients->getNumSamplingPoints(); int nSampPnts = _gradients->getNumSamplingPoints();
int nMapping = _gradients->getNumMapNodes(); int nMapping = _gradients->getNumMapNodes();
...@@ -316,7 +317,7 @@ double MetricBasis::getBoundRmin(const MElement *el, MetricData *&md, fullMatrix ...@@ -316,7 +317,7 @@ double MetricBasis::getBoundRmin(const MElement *el, MetricData *&md, fullMatrix
((MetricBasis*)this)->__numSub.resize(20); ((MetricBasis*)this)->__numSub.resize(20);
for (unsigned int i = 0; i < __numSub.size(); ++i) ((MetricBasis*)this)->__numSub[i] = 0; for (unsigned int i = 0; i < __numSub.size(); ++i) ((MetricBasis*)this)->__numSub[i] = 0;
((MetricBasis*)this)->__maxdepth = 0; ((MetricBasis*)this)->__maxdepth = 0;
double time = Cpu(); //double time = Cpu();
static int maxsub = 0, elmax; static int maxsub = 0, elmax;
double tt = _subdivideForRmin(md2, RminLag, MetricBasis::_tol, MetricBasis::_which); double tt = _subdivideForRmin(md2, RminLag, MetricBasis::_tol, MetricBasis::_which);
if (maxsub < __numSubdivision && tt > 10-10) { if (maxsub < __numSubdivision && tt > 10-10) {
...@@ -846,7 +847,7 @@ double MetricBasis::_subdivideForRmin( ...@@ -846,7 +847,7 @@ double MetricBasis::_subdivideForRmin(
subdomains.push(md); subdomains.push(md);
static unsigned int aa = 0*1000; static unsigned int aa = 0*1000;
bool write = false; //bool write = false;
if (++aa < 200) { if (++aa < 200) {
getMinR(__curElem, md, 16); getMinR(__curElem, md, 16);
} }
...@@ -915,7 +916,7 @@ double MetricBasis::_subdivideForRmin( ...@@ -915,7 +916,7 @@ double MetricBasis::_subdivideForRmin(
md = subdomains.top(); md = subdomains.top();
double ans = md->_RminBez; 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()) { while (subdomains.size()) {
md = subdomains.top(); md = subdomains.top();
......
...@@ -61,9 +61,9 @@ public: ...@@ -61,9 +61,9 @@ public:
static double getTol() {return _tol;} static double getTol() {return _tol;}
static void setWhich(int which) {_which = which;} static void setWhich(int which) {_which = which;}
double getBoundRmin(const MElement*, MetricData*&, fullMatrix<double>&) const; double getBoundRmin(MElement*, MetricData*&, fullMatrix<double>&);
double getMinR(const MElement*, MetricData*&, int) const; double getMinR(MElement*, MetricData*&, int) const;
static double boundRmin(const MElement *el); static double boundRmin(MElement *el);
//double getBoundRmin(int, MElement**, double*); //double getBoundRmin(int, MElement**, double*);
//static double boundRmin(int, MElement**, double*, bool sameType = false); //static double boundRmin(int, MElement**, double*, bool sameType = false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment