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

fix virtual writeMSH

parent 4a56d5f2
No related branches found
No related tags found
No related merge requests found
......@@ -256,7 +256,8 @@ class PViewData {
virtual bool writeTXT(const std::string &fileName);
virtual bool writePOS(const std::string &fileName, bool binary=false, bool parsed=true,
bool append=false);
virtual bool writeMSH(const std::string &fileName, bool binary=false, bool savemesh=true);
virtual bool writeMSH(const std::string &fileName, bool binary=false, bool savemesh=true,
bool multipleView=false);
virtual bool writeMED(const std::string &fileName);
virtual bool toVector(std::vector<std::vector<double> > &vec);
virtual bool fromVector(const std::vector<std::vector<double> > &vec);
......
......@@ -241,7 +241,8 @@ class PViewDataGModel : public PViewData {
int fileIndex, FILE *fp, bool binary, bool swap, int step,
double time, int partition, int numComp, int numNodes,
const std::string &interpolationScheme);
bool writeMSH(const std::string &fileName, bool binary=false, bool savemesh=true,bool multipleView=false);
virtual bool writeMSH(const std::string &fileName, bool binary=false, bool savemesh=true,
bool multipleView=false);
bool readMED(const std::string &fileName, int fileIndex);
bool writeMED(const std::string &fileName);
};
......
......@@ -133,7 +133,8 @@ bool PViewDataGModel::readMSH(const std::string &viewName, const std::string &fi
return true;
}
bool PViewDataGModel::writeMSH(const std::string &fileName, bool binary, bool savemesh,bool multipleView)
bool PViewDataGModel::writeMSH(const std::string &fileName, bool binary, bool savemesh,
bool multipleView)
{
if(_steps.empty()) return true;
......
......@@ -176,7 +176,8 @@ bool PViewData::writePOS(const std::string &fileName, bool binary, bool parsed,
return true;
}
bool PViewData::writeMSH(const std::string &fileName, bool binary, bool savemesh)
bool PViewData::writeMSH(const std::string &fileName, bool binary, bool savemesh,
bool multipleView)
{
Msg::Error("MSH export not implemented for this view type");
return false;
......
......@@ -125,7 +125,8 @@ class PViewDataList : public PViewData {
bool readPOS(FILE *fp, double version, bool binary);
bool writePOS(const std::string &fileName, bool binary=false, bool parsed=true,
bool append=false);
virtual bool writeMSH(const std::string &fileName, bool binary=false, bool savemesh=true);
virtual bool writeMSH(const std::string &fileName, bool binary=false, bool savemesh=true,
bool multipleView=false);
};
#endif
......@@ -525,7 +525,8 @@ static void createElements(std::vector<double> &list, int nbelm, int nbnod,
}
}
bool PViewDataList::writeMSH(const std::string &fileName, bool binary, bool savemesh)
bool PViewDataList::writeMSH(const std::string &fileName, bool binary, bool savemesh,
bool multipleView)
{
if(_adaptive){
Msg::Warning("Writing adapted dataset (will only export current time step)");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment