From 5bedd1ca4d09ad28937443230b0bbc1596c0a8a3 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 20 Feb 2008 09:24:41 +0000 Subject: [PATCH] *** empty log message *** --- Post/PView.cpp | 4 ++-- Post/PViewDataGModel.cpp | 8 +++++++- Post/PViewDataGModel.h | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Post/PView.cpp b/Post/PView.cpp index 1f984158be..a83789a938 100644 --- a/Post/PView.cpp +++ b/Post/PView.cpp @@ -1,4 +1,4 @@ -// $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 // @@ -304,7 +304,7 @@ bool PView::readMSH(std::string filename, int fileIndex) // FIXME: to be implemented! int index = 0; - PViewDataGModel *d = new PViewDataGModel(); + PViewDataGModel *d = new PViewDataGModel(GModel::current()); if(!d->readMSH(fp)){ Msg(GERROR, "Could not read data in msh file"); delete d; diff --git a/Post/PViewDataGModel.cpp b/Post/PViewDataGModel.cpp index baf79b42d7..41f2124bbe 100644 --- a/Post/PViewDataGModel.cpp +++ b/Post/PViewDataGModel.cpp @@ -1,4 +1,4 @@ -// $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 // @@ -28,6 +28,12 @@ bool PViewDataGModel::readMSH(FILE *fp) { Msg(INFO, "Filling PViewDataGModel..."); + + MVertex *v = _model->getMeshVertex(10); + if(v){ + printf("vertex 10 in mesh is %p\n", v); + } + return false; } diff --git a/Post/PViewDataGModel.h b/Post/PViewDataGModel.h index 8669829623..e54cdd3ced 100644 --- a/Post/PViewDataGModel.h +++ b/Post/PViewDataGModel.h @@ -31,7 +31,7 @@ class PViewDataGModel : public PViewData { GModel *_model; PViewDataList *_cloneToList(); // create old-style data from this public: - PViewDataGModel(){} + PViewDataGModel(GModel *model) : _model(model) {} ~PViewDataGModel(){} int getNumTimeSteps(){ return 1; } double getMin(int step=-1){ return 0.; } -- GitLab