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

pp

parent 162284b2
No related branches found
No related tags found
No related merge requests found
...@@ -241,8 +241,8 @@ class PViewDataGModel : public PViewData { ...@@ -241,8 +241,8 @@ class PViewDataGModel : public PViewData {
int fileIndex, FILE *fp, bool binary, bool swap, int step, int fileIndex, FILE *fp, bool binary, bool swap, int step,
double time, int partition, int numComp, int numNodes, double time, int partition, int numComp, int numNodes,
const std::string &interpolationScheme); const std::string &interpolationScheme);
virtual bool writeMSH(const std::string &fileName, double version=2.2, bool binary=false, bool savemesh=true, virtual bool writeMSH(const std::string &fileName, double version=2.2, bool binary=false,
bool multipleView=false); bool savemesh=true, bool multipleView=false);
bool readMED(const std::string &fileName, int fileIndex); bool readMED(const std::string &fileName, int fileIndex);
bool writeMED(const std::string &fileName); bool writeMED(const std::string &fileName);
}; };
......
...@@ -830,7 +830,7 @@ int PViewDataList::_getRawData(int idxtype, std::vector<double> **l, int **ne, ...@@ -830,7 +830,7 @@ int PViewDataList::_getRawData(int idxtype, std::vector<double> **l, int **ne,
int type = 0; int type = 0;
// No constant nn for polygons! // No constant nn for polygons!
if(idxtype > 23 && idxtype < 30) if(idxtype > 23 && idxtype < 30)
Msg::Warning("No constant number of nodes for polygons and polyhedra."); Msg::Warning("No constant number of nodes for polygons and polyhedra");
switch(idxtype){ switch(idxtype){
case 0 : *l = &SP; *ne = &NbSP; *nc = 1; *nn = 1; type = TYPE_PNT; break; case 0 : *l = &SP; *ne = &NbSP; *nc = 1; *nn = 1; type = TYPE_PNT; break;
case 1 : *l = &VP; *ne = &NbVP; *nc = 3; *nn = 1; type = TYPE_PNT; break; case 1 : *l = &VP; *ne = &NbVP; *nc = 3; *nn = 1; type = TYPE_PNT; break;
...@@ -887,7 +887,8 @@ void PViewDataList::setOrder2(int type) ...@@ -887,7 +887,8 @@ void PViewDataList::setOrder2(int type)
} }
const polynomialBasis *fs = (polynomialBasis*)BasisFactory::create(typeMSH); const polynomialBasis *fs = (polynomialBasis*)BasisFactory::create(typeMSH);
if(!fs){ if(!fs){
Msg::Error("Could not find polynomial function space for element type %d", typeMSH); Msg::Error("Could not find polynomial function space for element type %d",
typeMSH);
return; return;
} }
setInterpolationMatrices(type, fs->coefficients, fs->monomials, setInterpolationMatrices(type, fs->coefficients, fs->monomials,
......
...@@ -24,8 +24,8 @@ class PViewDataRemote : public PViewData { ...@@ -24,8 +24,8 @@ class PViewDataRemote : public PViewData {
double _time; double _time;
SBoundingBox3d _bbox; SBoundingBox3d _bbox;
public: public:
PViewDataRemote(onelab::localNetworkClient *remote, double min, double max, int numsteps, PViewDataRemote(onelab::localNetworkClient *remote, double min, double max,
double time, SBoundingBox3d &bbox) int numsteps, double time, SBoundingBox3d &bbox)
: _remote(remote), _min(min), _max(max), _numTimeSteps(numsteps), : _remote(remote), _min(min), _max(max), _numTimeSteps(numsteps),
_time(time), _bbox(bbox) {} _time(time), _bbox(bbox) {}
~PViewDataRemote(){} ~PViewDataRemote(){}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment