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

*** empty log message ***

parent 25eb6efd
No related branches found
No related tags found
No related merge requests found
// $Id: PView.cpp,v 1.16 2008-02-18 18:32:54 geuzaine Exp $ // $Id: PView.cpp,v 1.17 2008-02-20 09:24:41 geuzaine Exp $
// //
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
// //
...@@ -304,7 +304,7 @@ bool PView::readMSH(std::string filename, int fileIndex) ...@@ -304,7 +304,7 @@ bool PView::readMSH(std::string filename, int fileIndex)
// FIXME: to be implemented! // FIXME: to be implemented!
int index = 0; int index = 0;
PViewDataGModel *d = new PViewDataGModel(); PViewDataGModel *d = new PViewDataGModel(GModel::current());
if(!d->readMSH(fp)){ if(!d->readMSH(fp)){
Msg(GERROR, "Could not read data in msh file"); Msg(GERROR, "Could not read data in msh file");
delete d; delete d;
......
// $Id: PViewDataGModel.cpp,v 1.11 2008-02-18 18:49:18 geuzaine Exp $ // $Id: PViewDataGModel.cpp,v 1.12 2008-02-20 09:24:41 geuzaine Exp $
// //
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
// //
...@@ -28,6 +28,12 @@ ...@@ -28,6 +28,12 @@
bool PViewDataGModel::readMSH(FILE *fp) bool PViewDataGModel::readMSH(FILE *fp)
{ {
Msg(INFO, "Filling PViewDataGModel..."); Msg(INFO, "Filling PViewDataGModel...");
MVertex *v = _model->getMeshVertex(10);
if(v){
printf("vertex 10 in mesh is %p\n", v);
}
return false; return false;
} }
......
...@@ -31,7 +31,7 @@ class PViewDataGModel : public PViewData { ...@@ -31,7 +31,7 @@ class PViewDataGModel : public PViewData {
GModel *_model; GModel *_model;
PViewDataList *_cloneToList(); // create old-style data from this PViewDataList *_cloneToList(); // create old-style data from this
public: public:
PViewDataGModel(){} PViewDataGModel(GModel *model) : _model(model) {}
~PViewDataGModel(){} ~PViewDataGModel(){}
int getNumTimeSteps(){ return 1; } int getNumTimeSteps(){ return 1; }
double getMin(int step=-1){ return 0.; } double getMin(int step=-1){ return 0.; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment